/* --- ADN VISUAL: EDITORIAL MINIMAL & SPLIT --- */
:root {
    --rojo-coral: #f24e4d;
    --rojo-oscuro: #b83232;
    --crema-fondo: #fcfaf7;
    --lineas: #e6e1da;
    --texto-negro: #1a1a1a;
    --texto-gris: #706e6a;
    --fuente-titulo: 'Playfair Display', Georgia, serif;
    --fuente-base: 'Inter', system-ui, sans-serif;
    --whatsapp: #25d366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-base);
    color: var(--texto-negro);
    background-color: var(--crema-fondo);
    display: flex;
}

/* --- MENÚ LATERAL ASIMÉTRICO --- */
.side-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-color: var(--crema-fondo);
    border-right: 1px solid var(--lineas);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 30px;
    z-index: 100;
}

.logo-container {
    text-decoration: none;
    display: block;
    text-align: center;
}

.logo-container img {
    width: 110px;
    height: auto;
    margin-bottom: 15px;
}

.brand-name {
    font-family: var(--fuente-titulo);
    font-size: 1.2rem;
    color: var(--texto-negro);
    letter-spacing: 1px;
    line-height: 1.2;
}

.brand-name span {
    display: block;
    font-family: var(--fuente-base);
    font-size: 0.75rem;
    color: var(--rojo-coral);
    margin-top: 5px;
    font-weight: 600;
}

.side-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.side-nav a {
    text-decoration: none;
    color: var(--texto-gris);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.side-nav a:hover {
    color: var(--rojo-coral);
    padding-left: 5px;
}

.side-footer {
    font-size: 0.7rem;
    color: var(--texto-gris);
    letter-spacing: 1px;
    line-height: 1.5;
}

/* --- CONTENEDOR PRINCIPAL REESTRUCTURADO --- */
main {
    margin-left: 260px;
    width: calc(100% - 260px);
}

/* --- HERO DIVIDIDO (SPLIT SCREEN) --- */
.split-hero {
    display: flex;
    width: 100%;
    height: 100vh;
    border-bottom: 1px solid var(--lineas);
}

.hero-left {
    width: 55%;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--crema-fondo);
}

.hero-left h1 {
    font-family: var(--fuente-titulo);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-left h1 em {
    color: var(--rojo-coral);
    font-style: italic;
}

.hero-left p {
    font-size: 1.1rem;
    color: var(--texto-gris);
    max-width: 480px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-right {
    width: 45%;
    background: url('https://picsum.photos') center/cover no-repeat;
    border-left: 1px solid var(--lineas);
}

/* --- BOTÓN RECTO EDITORIAL --- */
.btn-editorial {
    display: inline-block;
    border: 1px solid var(--texto-negro);
    color: var(--texto-negro);
    padding: 16px 40px;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: all 0.4s ease;
    align-self: flex-start;
}

.btn-editorial:hover {
    background-color: var(--rojo-coral);
    border-color: var(--rojo-coral);
    color: white;
}

/* --- RECONSTRUCCIÓN DE GALERÍA (REVISTA GRID) --- */
.editorial-catalog {
    padding: 120px 80px;
    border-bottom: 1px solid var(--lineas);
}

.editorial-catalog h2 {
    font-family: var(--fuente-titulo);
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 80px;
}

.editorial-catalog h2 span {
    color: var(--rojo-coral);
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
}

.block-item {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
}

/* Bloques intercalados asimétricos */
.block-item.wide { grid-column: span 7; }
.block-item.narrow { grid-column: span 5; margin-top: 80px; }
.block-item.full { grid-column: span 12; margin-top: 40px; }

.block-img-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: var(--lineas);
    margin-bottom: 20px;
}

.block-item.wide .block-img-wrapper { height: 450px; }
.block-item.narrow .block-img-wrapper { height: 350px; }
.block-item.full .block-img-wrapper { height: 500px; }

.block-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.block-item:hover .block-img-wrapper img {
    transform: scale(1.04);
}

.block-meta h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 80px; /* Espacio antes del siguiente bloque */
}

.block-meta h3 span {
    display: block;
    font-family: var(--fuente-base);
    font-size: 0.8rem;
    color: var(--texto-gris);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* --- SECCIÓN CONTACTO MINIMALISTA --- */
.editorial-contact {
    padding: 120px 80px;
}

.contact-flex {
    display: flex;
    gap: 100px;
}

.contact-intro {
    width: 40%;
}

.contact-intro h2 {
    font-family: var(--fuente-titulo);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 30px;
}

.contact-intro p {
    color: var(--texto-gris);
    margin-bottom: 40px;
    font-weight: 300;
}

.contact-form-side {
    width: 60%;
}

.input-line {
    margin-bottom: 40px;
}

.input-line label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
}

.input-line input, .input-line textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--texto-negro);
    color: var(--texto-negro);
    font-size: 1.1rem;
    font-family: var(--fuente-base);
}

.input-line input:focus, .input-line textarea:focus {
    outline: none;
    border-bottom-color: var(--rojo-coral);
}

.btn-submit-editorial {
    width: 100%;
    background-color: var(--texto-negro);
    color: white;
    border: none;
    padding: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit-editorial:hover {
    background-color: var(--rojo-coral);
}

/* --- WHATSAPP EDITORIAL --- */
.editorial-whatsapp {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: var(--texto-negro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    transition: all 0.3s ease;
}

.editorial-whatsapp:hover {
    background-color: var(--whatsapp);
    transform: rotate(15deg);
}

.editorial-whatsapp svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* --- RESPONSIVO TOTAL --- */
@media (max-width: 1024px) {
    body { flex-direction: column; }
    .side-header { position: relative; width: 100%; height: auto; padding: 30px; border-right: none; border-bottom: 1px solid var(--lineas); }
    .side-nav ul { flex-direction: row; justify-content: center; margin: 20px 0; }
    .side-footer { display: none; }
    main { margin-left: 0; width: 100%; }
    .split-hero { flex-direction: column; height: auto; }
    .hero-left { width: 100%; padding: 40px 20px; }
    .hero-left h1 { font-size: 2.5rem; }
    .hero-right { width: 100%; height: 400px; border-left: none; }
    .editorial-catalog, .editorial-contact { padding: 60px 20px; }
    .magazine-grid { display: flex; flex-direction: column; gap: 0; }
    .block-item.wide, .block-item.narrow, .block-item.full { width: 100%; margin-top: 0; }
    .block-img-wrapper { height: 300px !important; }
    .contact-flex { flex-direction: column; gap: 50px; }
    .contact-intro, .contact-form-side { width: 100%; }
}
