/* =========================================
   NOSOTROS.CSS - CASAPIEL
   ========================================= */

/* 1. RESET Y CONFIGURACIÓN DE PANTALLA COMPLETA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
}

/* Logo Animación */
.logo-wrapper {
    text-align: center;
}

.logo-text {
    font-size: 1.8rem;
    letter-spacing: 10px;
    margin: 0;
    transition: 0.4s;
}

.logo-line {
    height: 1px;
    background: black;
    margin: 4px 0;
}

.logo-sub {
    font-size: 0.6rem;
    letter-spacing: 5px;
    display: block;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

/* 3. SECCIÓN 1: HERO (IMAGEN ARRIBA, TEXTO ABAJO) */
/* --- CONFIGURACIÓN MAESTRA MANUAL --- */

#nosotros-hero-manual {
    position: relative;
    height: 100vh; /* Ocupa exactamente el alto de la pantalla */
    width: 100%;
    background-color: #fff;
    overflow: hidden;
}

/* 1. AJUSTE DE LA FOTO: Que entre completa */
.nh-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.nh-bg-layer img {
    width: 100%;
    height: 100%;
    /* 'contain' asegura que se vea el edificio completo como en la captura 2 */
    object-fit: cover; 
    opacity: 0.8;
}

/* 2. AJUSTE DEL TÍTULO: Subirlo */
.nh-title-layer {
    position: absolute;
    z-index: 10;
    width: 100%;
    text-align: center;
    /* CAMBIA ESTE NÚMERO PARA SUBIR O BAJAR EL TÍTULO */
    top: 20%; 
}

.nh-title-layer h1 {
    font-family: 'Mulish', 'Avenir Next Light', sans-serif !important;
    font-weight: 200 !important;
    font-size: 3rem;
    line-height: 1.1;
    color: #1a1a1a;
    letter-spacing: 1px;
}

/* 3. AJUSTE DE LOS PÁRRAFOS: Subirlos y agruparlos */
.nh-body-layer {
    position: absolute;
    z-index: 10;
    width: 100%;
    max-width: 850px; /* Evita que el texto se estire a los lados */
    left: 50%;
    transform: translateX(-50%); /* Lo centra horizontalmente */
    
    /* CAMBIA ESTE NÚMERO PARA SUBIR O BAJAR TODO EL BLOQUE DE TEXTO */
    top: 50%; 
    
    text-align: center;
}

.nh-body-layer p {
    font-family: 'Mulish', 'Avenir Next Regular', sans-serif !important;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1a1a1a;
    /* Espacio entre párrafos para que no se vea amontonado */
    margin-bottom: 18px; 
}

.nh-body-layer strong {
    font-weight: 700;
}

/* 4. SECCIÓN 2: QUIÉNES SOMOS (MANUAL LADO A LADO) */

#quienes-somos-manual {
    position: relative;
    height: 100vh;
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
    scroll-snap-align: start;
}

/* 1. POSICIÓN DEL TEXTO */
.qs-text-layer {
    position: absolute;
    z-index: 10;
    
    /* AJUSTE MANUAL: Controla la distancia desde la izquierda y arriba */
    left: 8%; 
    top: 25%; 
    
    /* Ancho del bloque para que se acerque a la foto */
    width: 45%; 
}

.qs-text-layer h2 {
    font-family: 'Mulish', 'Avenir Next Light', sans-serif !important;
    font-weight: 200 !important;
    font-size: 2.8rem;
    margin-bottom: 30px;
    text-align: center; /* Título centrado respecto a su bloque */
    width: 100%;
}

/* Subrayado sutil debajo de Quiénes somos */
.qs-text-layer h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: #000;
    margin: 10px auto 0;
}

.qs-body p {
    font-family: 'Mulish', 'Avenir Next Regular', sans-serif !important;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #1a1a1a;
    margin-bottom: 20px;
    
    /* CAMBIO CLAVE: Texto Justificado como pidió el Gerente */
    text-align: justify; 
}

/* 2. POSICIÓN DE LA IMAGEN */
.qs-image-layer {
    position: absolute;
    top: 15%;
    right: 0; /* Pegada al borde derecho */
    width: 45%; /* Ocupa casi la mitad de la pantalla */
    height: 90vh;
    z-index: 1;
    border-radius: 4px;
}

.qs-image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el edificio llene su mitad */
}

/* 5. SECCIONES TESTIMONIALES (FUNDADORES) */
/* 1. SECCIÓN GENERAL: Fondo de agua en la parte inferior */
.testimonial-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

/* MARCA DE AGUA GIGANTE: Movida a la esquina inferior derecha */
.testimonial-section::before {
    content: '”';
    position: absolute;
    font-family: Georgia, serif;
    font-size: 35rem;
    color: #000;
    opacity: 0.03;
    font-weight: 900;
    pointer-events: none;
    z-index: 1;
    /* POSICIONAMIENTO */
    bottom: -10%;  /* Que asome por la esquina inferior */
    right: 5%;
}

.testimonial-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 85%;
    gap: 40px;
}

.founder-info {
    flex: 1;
    text-align: right;
}

.founder-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.v-line-separator {
    width: 1px;
    height: 470px;
    background-color: #000;
}

.testimonial-content {
    flex: 2;
    position: relative;
}

.testimonial-content p {
    font-family: 'Mulish', sans-serif !important;
    margin-bottom: 8px !important; /* Espacio corto entre párrafos */
    position: relative;
    z-index: 5;
}

/* 1. COMILLAS NEGRAS (INICIO Y FIN) */
.testimonial-content::before,
.testimonial-content::after {
    font-family: Georgia, serif;
    font-size: 5.5rem;
    color: #000;
    position: absolute;
    line-height: 1;
    font-weight: 900;
}

.testimonial-content::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 6rem;
    font-weight: 900;
    color: #000;
    position: absolute;
    top: -45px;
    left: -15px; /* Pegada a la izquierda */
}

.testimonial-content::after {
    display: none !important;
}

.quote-icon-top {
    top: -40px;
    left: -20px;
    font-size: 6rem;
}

.quote-icon-bottom {
    bottom: -100px;
    right: 0;
}

.gray-bg {
    background-color: #f9f9f9;
}

/* 6. TEXTURA DE GRANO (Consistencia con Home) */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_ext_noise.png');
    z-index: 9999;
}

/* Añadimos un margen al final de la última sección de María Bonita */
.testimonial-section:last-of-type {
    padding-bottom: 150px !important; 
}

/* ============================================================
   JIHAD FLAYOU: AJUSTE DE COMILLAS Y MARCA DE AGUA
   ============================================================ */
#testimonial-jihad {
    /* SUBIR EL BLOQUE: Bajamos el padding superior para que el texto suba */
    padding-top: 100px !important; 
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-start;
}

#testimonial-jihad .testimonial-content p {
    font-size: 0.92rem;
    line-height: 1.4;
    margin-bottom: 8px !important;
}

/* Marca de agua GIGANTE de Jihad: Más abajo */
#testimonial-jihad::before {
    content: '“'; /* CAMBIADA A COMILLA DE APERTURA */
    position: absolute;
    font-family: Georgia, serif;
    font-size: 40rem;
    font-weight: 900;
    color: #000;
    opacity: 0.03;
    z-index: 1;
    bottom: -60%; 
    right: -1%;
    pointer-events: none;
}

/* Nuevo método para que la comilla "pegue" al texto */
#testimonial-jihad .testimonial-content p:last-child::after {
    content: ' ”';
    font-family: Georgia, serif;
    font-size: 5rem;      /* Bajamos un poco de 6rem a 5rem para que no sea tan invasiva */
    font-weight: 900;
    color: #000;
    line-height: 0;
    display: inline-block;
    vertical-align: middle; 
    
    /* ESTO ES LA CLAVE: */
    transform: translateY(25px); /* La bajamos para que el "gancho" de la comilla esté a nivel del texto */
    margin-left: 0px;            /* Pegada a la última palabra */
    opacity: 0.8;                /* Un toque de suavidad */
}

/* ============================================================
   MARÍA BONITA: AJUSTE DE POSICIÓN Y COMILLAS
   ============================================================ */
#testimonial-maria {
    padding-top: 100px !important;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-start;
    background-color: #f9f9f9;
}

#testimonial-maria .testimonial-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px !important;
}

/* Marca de agua GIGANTE de María: Más abajo */
#testimonial-maria::before {
    content: '“';
    position: absolute;
    font-family: Georgia, serif;
    font-size: 40rem;
    font-weight: 900;
    color: #000;
    opacity: 0.03;
    z-index: 1;
    /* MOVER AQUÍ: Ajusta estos números */
    bottom: -60%; 
    right: -1%;
    pointer-events: none;
}

#testimonial-maria .testimonial-content p:last-child::after {
    content: ' ”';
    font-family: Georgia, serif;
    font-size: 5.5rem; 
    font-weight: 900;
    color: #000;
    line-height: 0;
    display: inline-block;
    vertical-align: middle;

    /* AJUSTE PARA MARÍA: */
    transform: translateY(30px); /* Un poco más abajo por su tamaño de fuente */
    margin-left: 2px;
    opacity: 0.8;
}

/* ============================================================
   SOLUCIÓN MAESTRA MÓVIL - NOSOTROS.CSS (CASAPIEL)
   ============================================================ */
@media (max-width: 768px) {

    /* 1. HEADER MÓVIL LIMPIO */
    #main-header {
        height: 65px !important;
    }
    .shop-dropdown {
        display: none !important; /* Oculta "Comprar productos" en celular */
    }
    .nav-left { flex: 1 !important; justify-content: flex-start !important; }
    .nav-center { flex: 3 !important; justify-content: center !important; }
    .nav-right { flex: 1 !important; justify-content: flex-end !important; }
    .main-logo { height: 32px !important; }

    /* 2. HERO NOSOTROS (SI APLICA) */
    #nosotros-hero-manual {
        height: auto !important;
        min-height: 85vh !important;
        padding: 90px 20px 40px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }
    .nh-title-layer, .nh-body-layer {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
    }
    .nh-title-layer h1 {
        font-size: 2.2rem !important;
        margin-bottom: 15px !important;
    }

    /* 3. SECCIÓN QUIÉNES SOMOS (CAPTURA 2: FOTO Y TEXTO EN VERTICAL) */
    #quienes-somos-manual {
        height: auto !important;
        min-height: auto !important;
        padding: 90px 20px 50px !important;
        display: flex !important;
        flex-direction: column !important; /* Uno encima de otro */
        position: relative !important;
        overflow: visible !important;
    }

    /* La Foto del Edificio: Arriba y a pantalla completa */
    .qs-image-layer {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        height: 38vh !important;
        margin-bottom: 25px !important;
        border-radius: 6px !important;
    }
    .qs-image-layer img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* El Texto: Abajo ocupando el 100% del ancho */
    .qs-text-layer {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        padding: 0 !important;
        text-align: center !important;
    }
    .qs-text-layer h2 {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }
    .qs-body p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        text-align: left !important;
        margin-bottom: 15px !important;
    }

    /* 4. TESTIMONIALES: JIHAD Y MARÍA BONITA (CAPTURAS 1 Y 3) */
    .testimonial-section,
    #testimonial-jihad,
    #testimonial-maria {
        height: auto !important;        /* CERO ALTURA FIJA: Evita que choquen los textos */
        min-height: auto !important;
        padding: 60px 20px 60px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        position: relative !important;
        overflow: visible !important;
    }

    .testimonial-wrapper {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0 !important;
        text-align: center !important;
    }

    .founder-info {
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    .founder-info h3 {
        font-size: 1.6rem !important;
        font-weight: 700 !important;
    }

    /* LA LÍNEA VERTICAL SE CONVIERTE EN UNA ELEGANTE RAYA HORIZONTAL */
    .v-line-separator {
        width: 50px !important;        /* Ancho horizontal */
        height: 1px !important;         /* Grosor de 1px */
        margin: 18px auto !important;  /* Centrada */
        background-color: #000 !important;
    }

    .testimonial-content {
        width: 100% !important;
        text-align: center !important;
        padding: 0 10px !important;
    }

    .testimonial-content p {
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
        text-align: center !important;
        margin-bottom: 12px !important;
    }

    /* Ajuste de las comillas en celular */
    .testimonial-content::before {
        font-size: 3.5rem !important;
        top: -25px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    #testimonial-jihad .testimonial-content p:last-child::after,
    #testimonial-maria .testimonial-content p:last-child::after {
        font-size: 3.5rem !important;
        transform: translateY(15px) !important;
    }

    /* Ocultamos la marca de agua gigante para no ensuciar la lectura en pantalla chica */
    .testimonial-section::before,
    #testimonial-jihad::before,
    #testimonial-maria::before {
        display: none !important;
    }
}
