/* ==========================================================================
   4. SECCIONES DE LA PORTADA
   ========================================================================== */

/* --- HERO EDITORIAL (Ajustado: Blanco y Compacto) --- */
.hero-editorial {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.hero-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.cover-textos-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 8% 10%; /* Un poco más de margen hacia el centro */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #FFFFFF; /* Todo el texto en blanco */
    z-index: 10;
}

/* Titular Principal (Playfair Display) */
.txt-titulo-cover {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 0.9; /* Línea más apretada */
    margin: 0;
    color: #FFFFFF;
}

/* Subtítulo (Poppins) */
.txt-subtitulo-thin {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.6rem); /* Corregido para que sea fluido */
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0 0 -5px 0; /* MARGEN NEGATIVO para pegar la frase al título */
    opacity: 1;
    color: #FFFFFF;
}

/* Posiciones */
.top-left-editorial {
    text-align: left;
}

.bottom-right-editorial {
    text-align: right;
    align-self: flex-end;
}


/* --- Manifiesto --- */
.manifiesto-editorial { padding: 60px 0; background-color: var(--color-main); }
.manifiesto-editorial p { font-family: var(--font-headings); font-size: clamp(1.4rem, 2.5vw, 2.2rem); color: var(--color-text); line-height: 1.6; max-width: 900px; margin: 0 auto 30px; font-style: italic; font-weight: 400; }

/* --- Pilares de Marca --- */
.pilares-marca { padding: 60px 0; background-color: var(--color-main); }
.pilares-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; border-bottom: 1px solid rgba(195, 149, 243, 0.2); padding-bottom: 80px; }
.pilar-item { text-align: left; }
.pilar-titulo { font-family: var(--font-headings); font-size: 2.2rem; color: var(--color-lila); font-weight: 400; font-style: italic; margin-bottom: 15px; letter-spacing: -0.5px; }
.pilar-texto { font-size: 1.05rem; color: var(--color-muted); line-height: 1.7; font-weight: 300; }

/* --- Collage Universo (Ajustado) --- */
.collage-universo { 
    padding: 60px 0; 
    background-color: var(--color-main); 
}

.collage-wrapper { 
    position: relative; 
    display: inline-block; 
    width: 100%; 
    max-width: 1100px; 
    margin: 0 auto; 
    border-radius: 12px; 
    overflow: hidden; 
}

/* Capa oscura para que el texto y el botón resalten */
.collage-wrapper::after { 
    content: ""; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0, 0, 0, 0.4); /* Un pelín más oscuro para el botón */
    z-index: 2; 
}

.collage-img { 
    width: 100%; 
    height: auto; 
    display: block; 
    z-index: 1; 
    position: relative; 
}

/* El nuevo contenedor centrado */
.collage-overlay-centro {
    position: absolute;
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrado absoluto perfecto */
    width: 90%;
    z-index: 3; /* Por encima de la capa oscura */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente el texto y el botón */
    gap: 30px; /* Espacio entre el texto y el botón */
}

.collage-texto-llamada {
    font-family: var(--font-main); /* Corregido el nombre de la variable */
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #FFFFFF;
    font-weight: 300;
    line-height: 1.2;
    margin: 0; /* Quitamos márgenes antiguos */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Ajuste específico para que el botón no se vea gigante sobre la imagen */
.collage-overlay-centro .btn-pildora {
    padding: 14px 35px;
    font-size: 0.85rem;
}


/* --- Shop the Look --- */
.shop-the-look { padding: 60px 0; background-color: var(--color-main); }
.shop-titulo { font-family: var(--font-headings); font-size: clamp(2.5rem, 4vw, 4rem); color: var(--color-lila); margin-bottom: 25px; font-style: italic; }
.shop-texto { font-size: 1.1rem; color: var(--color-muted); line-height: 1.8; max-width: 700px; margin: 0 auto; font-weight: 300; }
.shop-destacado { display: block; margin-top: 20px; font-weight: 600; color: var(--color-text); font-size: 1.2rem; }

/* --- Sobre Mí --- */
.sobre-mi-page { padding: 60px 0; background-color: var(--color-main); }
.sobre-mi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;margin-top: 60px; }
.sobre-mi-imagen-wrapper { padding-right: 5%; }
.sobre-mi-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; box-shadow: -25px 25px 0 var(--color-lavender); display: block; }
.sobre-mi-titulo { font-family: var(--font-headings); font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 20px; font-weight: 400; }
.texto-lila-italic { color: var(--color-lila); font-style: italic;}
.sobre-mi-subtitulo { font-family: var(--font-headings); font-size: 1.8rem; font-weight: 300; color: var(--color-muted); margin-bottom: 40px; }
.sobre-mi-texto-dinamico { font-size: 1.1rem; color: #444; line-height: 1.8; margin-bottom: 90px; }

/* --- Instagram Falso --- */
.instagram-feed-falso { 
    padding: 60px 0; 
    background-color: var(--color-main); 
    /* rgba(195,149,243) convertido al equivalente RGB de #ff99cc (255,153,204) con 10% de opacidad */
    border-top: 1px solid rgba(255, 153, 204, 0.1); 
}

.insta-subtitulo { 
    font-size: 1.1rem; 
    color: var(--color-muted); 
    font-weight: 300; 
}

.insta-subtitulo a { 
    color: #ff99cc; /* Reemplaza var(--color-lila) */
    font-weight: 600; 
    text-decoration: underline; 
    transition: opacity 0.3s ease; /* Transición suave para el hover */
}

.insta-subtitulo a:hover { 
    color: #ff99cc; /* Reemplaza var(--color-lavender) */
    opacity: 0.8; /* Mantiene el feedback visual para el usuario */
}

.insta-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    justify-content: center;
}

.insta-item { 
    position: relative; 
    display: block; 
    overflow: hidden; 
    border-radius: 8px; 
    aspect-ratio: 1 / 1; /* Excelente para evitar CLS (Cumulative Layout Shift) */
}

.insta-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.insta-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: #ff99cc; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    opacity: 0; 
    transition: var(--transition); 
}

.insta-overlay span { 
    color: #fff; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 2px; 
}

.insta-item:hover img { 
    transform: scale(1.1); 
}

.insta-item:hover .insta-overlay { 
    opacity: 1; 
}

/* ====== RESPONSIVE PORTADA (Unificado) ====== */
@media (max-width: 768px) {
    
    /* --- 1. Ajustes del Hero Editorial en Móvil --- */
    .hero-editorial {
        height: 100svh; /* Ocupa exactamente la pantalla del móvil visible */
    }

    .hero-cover-img {
        position: absolute; /* Clave para que no deje espacios */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center; /* Mantiene el centro de la foto enfocado */
    }

    /* --- 2. Ajustes de textos en el Hero para que respiren --- */
    .cover-textos-wrapper {
        padding: 5%; /* Más margen a los lados */
        justify-content: center;
        align-items: center;
        gap: 40px; /* Separamos el bloque de arriba del de abajo */
    }

    .top-left-editorial, .bottom-right-editorial {
        text-align: center;
        max-width: 95%;
        margin-bottom: 0;
    }

    .txt-titulo-cover {
        font-size: 2.2rem; /* Letra más pequeña */
        line-height: 1.1; /* Más aire entre líneas */
    }

    .txt-subtitulo-thin {
        font-size: 1.1rem;
        margin-bottom: 5px; /* Quitamos el margen negativo */
        line-height: 1.4;
    }
    
    /* --- 3. Ajustes resto de secciones --- */
    .manifiesto-editorial { padding: 40px 0; }
    .manifiesto-editorial p { font-size: 1.5rem; }
    
    .pilares-marca { padding: 40px 0; }
    .pilares-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; padding-bottom: 40px; border-bottom: none; }
    .pilar-item { text-align: center; }
    
    /* --- Ajustes Collage Universo --- */
    .collage-universo { 
        padding: 40px 0; 
    }

    .collage-overlay-centro {
        gap: 15px; /* Reducimos el espacio entre texto y botón en móvil */
        width: 95%; /* Damos un poco más de margen lateral */
    }

    .collage-texto-llamada { 
        font-size: 1.5rem; 
        padding: 0 10px; 
    }

    /* Blindamos el botón píldora SOLO en móvil para que no sea gigante */
    .collage-overlay-centro .btn-pildora {
        padding: 10px 24px; /* Reducimos el relleno interno */
        font-size: 0.8rem;  /* Letra más pequeña */
        width: max-content; /* CRÍTICO: Evita que el botón se estire al 100% del ancho */
        margin: 0 auto;     /* Asegura el centrado */
    }
    
    .shop-the-look { padding: 40px 0; }
    .shop-texto { font-size: 1rem; padding: 0 15px; }
    
    .sobre-mi-page { padding: 40px 0; }
    .sobre-mi-grid { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .sobre-mi-imagen-wrapper { padding-right: 0; }
    .sobre-mi-img { box-shadow: 0 20px 0 var(--color-lavender); }
    
    .instagram-feed-falso { padding: 40px 0; }
    .insta-grid { grid-template-columns: repeat(1, 1fr); gap: 15px; max-width: 400px; margin: 0 auto; }
    .insta-subtitulo { font-size: 1rem; }
}