/**
 * Estilos de la Página Sobre Nosotros / Quiénes Somos - Versión 2
 *
 * Sistema de Diseño Versión 2:
 * - Tipografía: Cormorant Garamond + Muli
 * - Colores: #9F6D4A (terracota), #e1aa8c (acento suave), #faebe4 (fondo cálido), #ffffff (blanco)
 * - Hero con corte decorativo clip-path y rama blanca
 * - Cero CSS inline en PHP/HTML
 */

/* ==========================================================================
   1. HERO SECTION DE NOSOTROS
   ========================================================================== */
.hero-nosotros {
    position: relative;
    width: 100%;
    min-height: 350px;
    height: 380px;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Corte decorativo poligonal inferior v2 */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(50% + 30px) calc(100% - 24px), 50% 100%, calc(50% - 30px) calc(100% - 24px), 0 calc(100% - 24px));
    padding-bottom: 24px;
}

.hero-nosotros-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-nosotros-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 2;
}

.hero-nosotros-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.hero-nosotros-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-nosotros-rama-wrapper {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.hero-nosotros-rama-white {
    width: 44px;
    height: 44px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.hero-nosotros-title {
    font-family: 'Muli-Bold', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   2. ENCABEZADO DE INTRODUCCIÓN
   ========================================================================== */
.nosotros-intro-section {
    background-color: #ffffff;
    padding: 45px 20px 25px 20px;
    text-align: center;
}

.nosotros-star-icon {
    width: 22px;
    height: 22px;
    display: block;
    margin: 0 auto 22px auto;
}

.nosotros-title-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 14px;
}

.nosotros-header-rama {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: block;
}

.nosotros-page-title {
    font-family: 'Muli-Light', sans-serif;
    font-size: 2.3rem;
    line-height: 1.25;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2c2c2c;
    margin: 0;
    font-weight: 300;
    text-align: center;
}

.nosotros-page-subtitle {
    font-family: 'Cormorant-Italic', serif;
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.4;
    color: #9f6d4a;
    margin: 0 auto;
    max-width: 720px;
    text-align: center;
}

/* ==========================================================================
   3. SECCIÓN EDITORIAL (HISTORIA Y MANIFIESTO)
   ========================================================================== */
.nosotros-story-section {
    background-color: #ffffff;
    padding: 30px 20px 60px 20px;
}

.nosotros-story-container {
    max-width: 900px;
    margin: 0 auto;
}

.nosotros-story-header {
    text-align: center;
    margin-bottom: 35px;
}

.nosotros-story-title {
    font-family: 'Cormorant-Medium', serif;
    font-size: 2.2rem;
    color: #2c2c2c;
    line-height: 1.25;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.nosotros-story-bajada {
    font-family: 'Cormorant-Italic', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: #9f6d4a;
    margin: 0;
}

.nosotros-story-body {
    font-family: 'Muli-Light', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #4a4a4a;
    text-align: justify;
}

.nosotros-story-body p {
    margin-bottom: 22px;
}

.nosotros-story-body strong {
    font-family: 'Muli-SemiBold', sans-serif;
    color: #222222;
}

/* Manifiesto destacado */
.nosotros-manifesto-box {
    background-color: #faebe4;
    border-left: 4px solid #9F6D4A;
    border-radius: 0 8px 8px 0;
    padding: 28px 32px;
    margin: 38px 0;
    text-align: center;
}

.nosotros-manifesto-quote {
    font-family: 'Cormorant-Italic', serif;
    font-style: italic;
    font-size: 1.55rem;
    line-height: 1.5;
    color: #9F6D4A;
    margin: 0 0 10px 0;
}

.nosotros-manifesto-sub {
    font-family: 'Muli-SemiBold', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777777;
    margin: 0;
}

.nosotros-section-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 50px 0 40px 0;
}

.nosotros-section-separator::before,
.nosotros-section-separator::after {
    content: '';
    flex: 1;
    max-width: 140px;
    height: 1px;
    background-color: #e1aa8c;
    opacity: 0.6;
}

.nosotros-section-separator img {
    width: 16px;
    height: 16px;
    opacity: 0.85;
}

.nosotros-story-body a:not([class*="btn"]) {
    color: #9F6D4A;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}

.nosotros-story-body a:not([class*="btn"]):hover {
    color: #b87b52;
}

/* ==========================================================================
   4. PILARES / VALORES DE NUESTRA LABOR
   ========================================================================== */
.nosotros-pillars-section {
    background-color: #ffffff;
    padding: 20px 20px 70px 20px;
}

.nosotros-pillars-container {
    max-width: 1000px;
    margin: 0 auto;
}

.nosotros-section-title {
    font-family: 'Muli-SemiBold', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2c2c2c;
    text-align: center;
    margin: 0 0 35px 0;
}

.nosotros-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.pillar-card {
    background-color: #ffffff;
    border: 1px solid #faebe4;
    border-radius: 8px;
    padding: 30px 26px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(159, 109, 74, 0.04);
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: #e1aa8c;
    box-shadow: 0 8px 22px rgba(159, 109, 74, 0.1);
}

.pillar-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #faebe4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.pillar-icon-wrap svg {
    width: 24px;
    height: 24px;
    fill: #9F6D4A;
}

.pillar-title {
    font-family: 'Cormorant-Medium', serif;
    font-size: 1.45rem;
    color: #9F6D4A;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.pillar-text {
    font-family: 'Muli-Light', sans-serif;
    font-size: 0.96rem;
    line-height: 1.7;
    color: #555555;
    margin: 0;
}

/* ==========================================================================
   5. SECCIÓN DE RESPALDO Y CAPACITACIÓN INSTITUCIONAL
   ========================================================================== */
.nosotros-trust-section {
    background-color: #ffffff;
    padding: 30px 20px 80px 20px;
    border-top: 1.5px solid #faebe4;
}

.nosotros-trust-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.trust-section-title {
    font-family: 'Muli-SemiBold', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2c2c2c;
    margin: 0 0 8px 0;
}

.trust-section-subtitle {
    font-family: 'Cormorant-Italic', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #9F6D4A;
    margin: 0 0 40px 0;
}

.trust-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-card {
    background-color: #ffffff;
    border: 1px solid #faebe4;
    border-radius: 8px;
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.trust-card:hover {
    transform: translateY(-4px);
    border-color: #e1aa8c;
    box-shadow: 0 6px 18px rgba(159, 109, 74, 0.1);
}

.trust-logo-box {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    width: 100%;
}

.trust-logo-box img {
    max-width: 130px;
    max-height: 55px;
    object-fit: contain;
    display: block;
}

.trust-card-title {
    font-family: 'Muli-SemiBold', sans-serif;
    font-size: 0.95rem;
    color: #2c2c2c;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.trust-card-desc {
    font-family: 'Muli-Light', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #666666;
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   6. CTA FINAL DE CONVERSIÓN
   ========================================================================== */
.nosotros-cta-section {
    background-color: #ffffff;
    padding: 0 20px 90px 20px;
}

.nosotros-cta-box {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #9F6D4A;
    color: #ffffff;
    border-radius: 8px;
    padding: 50px 30px;
    text-align: center;
}

.nosotros-cta-title {
    font-family: 'Cormorant-Medium', serif;
    font-size: 2.3rem;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-transform: none;
    font-weight: 500;
}

.nosotros-cta-text {
    font-family: 'Muli-Light', sans-serif;
    font-size: 1.1rem;
    line-height: 1.65;
    color: #faebe4;
    max-width: 600px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.nosotros-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-cta-cita {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    background-color: #ffffff;
    color: #9F6D4A;
    font-family: 'Muli-SemiBold', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.btn-cta-cita:hover {
    background-color: #faebe4;
    color: #7c4b2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 32px;
    background-color: #25D366;
    color: #ffffff;
    font-family: 'Muli-SemiBold', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.btn-cta-whatsapp:hover {
    background-color: #1eb956;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-cta-servicios {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    background-color: transparent;
    color: #ffffff;
    border: 1.5px solid #ffffff;
    font-family: 'Muli-SemiBold', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.btn-cta-servicios:hover {
    background-color: #ffffff;
    color: #9F6D4A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nosotros-story-body .nosotros-servicios-link-box,
.nosotros-servicios-link-box {
    margin-top: 36px;
    text-align: center;
}

.nosotros-story-body a.btn-nosotros-ver-servicios,
a.btn-nosotros-ver-servicios,
.btn-nosotros-ver-servicios {
    display: inline-block;
    padding: 15px 36px !important;
    background-color: #de9f7f !important;
    color: #ffffff !important;
    font-family: 'Muli-Bold', sans-serif !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 14px rgba(222, 159, 127, 0.25);
}

.nosotros-story-body a.btn-nosotros-ver-servicios:hover,
a.btn-nosotros-ver-servicios:hover,
.btn-nosotros-ver-servicios:hover {
    background-color: #c98867 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(222, 159, 127, 0.4);
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS (TABLETS Y MÓVILES)
   ========================================================================== */
@media only screen and (max-width: 991px) {
    .hero-nosotros {
        height: 320px;
        min-height: 300px;
    }

    .hero-nosotros-title {
        font-size: 2.1rem;
        letter-spacing: 0.1em;
    }

    .nosotros-page-title {
        font-size: 1.9rem;
    }

    .nosotros-page-subtitle {
        font-size: 1.25rem;
    }

    .nosotros-header-rama {
        width: 55px;
        height: 55px;
    }

    .trust-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 767px) {
    .hero-nosotros {
        height: 260px;
        min-height: 240px;
        clip-path: none;
        padding-bottom: 0;
    }

    .hero-nosotros-rama-white {
        width: 34px;
        height: 34px;
    }

    .hero-nosotros-title {
        font-size: 1.55rem;
        letter-spacing: 0.08em;
    }

    .nosotros-intro-section {
        padding: 35px 15px 20px 15px;
    }

    .nosotros-star-icon {
        margin-bottom: 15px;
    }

    .nosotros-title-wrap {
        gap: 0;
        flex-direction: column;
    }

    .nosotros-header-rama {
        display: none;
    }

    .nosotros-page-title {
        font-size: 1.55rem;
        letter-spacing: 0.06em;
    }

    .nosotros-page-subtitle {
        font-size: 1.15rem;
        padding: 0 10px;
    }

    .nosotros-story-title {
        font-size: 1.65rem;
    }

    .nosotros-story-bajada {
        font-size: 1.15rem;
    }

    .nosotros-manifesto-box {
        padding: 22px 18px;
    }

    .nosotros-manifesto-quote {
        font-size: 1.3rem;
    }

    .nosotros-pillars-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .trust-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nosotros-cta-box {
        padding: 35px 20px;
    }

    .nosotros-cta-title {
        font-size: 1.6rem;
    }

    .btn-cta-cita,
    .btn-cta-whatsapp,
    .btn-cta-servicios,
    .btn-nosotros-ver-servicios {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
