/**
 * Estilos para la Página Nosotros
 * Incluye: Hero, Intro, Misión/Visión, Valores, Timeline, CTA
 * Paleta Corporativa Arya: Verde #1ea894 + Azul #1b6983
 */

/* ============================================
   FULL WIDTH - Eliminar límites del tema GeneratePress
   ============================================ */

body:has(.nosotros-page-wrapper),
body:has(.nosotros-page-wrapper) .site,
body:has(.nosotros-page-wrapper) #page,
body:has(.nosotros-page-wrapper) .site-content,
body:has(.nosotros-page-wrapper) #content {
    background: var(--color-background) !important;
}

/* Eliminar todos los contenedores restrictivos de GeneratePress */
body:has(.nosotros-page-wrapper) .grid-container,
body:has(.nosotros-page-wrapper) .site-main,
body:has(.nosotros-page-wrapper) .inside-article,
body:has(.nosotros-page-wrapper) .entry-content,
body:has(.nosotros-page-wrapper) article,
body:has(.nosotros-page-wrapper) .entry-header,
body:has(.nosotros-page-wrapper) .post-image {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* El wrapper debe romper fuera de cualquier contenedor del tema */
body:has(.nosotros-page-wrapper) .nosotros-page-wrapper {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* ============================================
   GENERAL
   ============================================ */

.nosotros-page-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.nosotros-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.nosotros-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 54, 83, 1) 0%, #1b6983 50%, #185458 100%);
    overflow: hidden;
}

.nosotros-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 168, 148, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.nosotros-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(27, 105, 131, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.nosotros-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.nosotros-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 50px 20px;
    text-align: center;
}

.nosotros-hero-label {
    display: inline-block;
    background: rgba(30, 168, 148, 0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 168, 148, 0.3);
}

.nosotros-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.nosotros-hero-highlight {
    display: inline-block;
    background: linear-gradient(90deg, #1ea894, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nosotros-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.nosotros-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.nosotros-section-label {
    display: inline-block;
    background: linear-gradient(135deg, #1ea894, #1b6983);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.nosotros-section-title {
    font-size: 42px;
    font-weight: 800;
    color: #140428;
    margin: 0 0 15px;
    line-height: 1.2;
}

.nosotros-section-description {
    font-size: 18px;
    color: #746d7d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   STATS STRIP
   ============================================ */

.sv-stats-strip {
    background: linear-gradient(135deg, rgba(30,54,83,1) 0%, #1b6983 50%, #185458 100%);
    padding: 4px 0;
}

.nosotros-page-wrapper .sv-stats-grid {
    display: flex;
    justify-content: center;
    gap: 0;
    text-align: center;
}

.nosotros-page-wrapper .sv-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 60px;
    border-right: 1px solid rgba(255,255,255,.15);
}

.nosotros-page-wrapper .sv-stat-item:last-child {
    border-right: none;
}

.nosotros-page-wrapper .sv-stat-item strong {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
}

.nosotros-page-wrapper .sv-stat-item span {
    font-size: 14px;
    color: rgba(255,255,255,.75);
    font-weight: 500;
}

/* ============================================
   INTRO/QUIÉNES SOMOS
   ============================================ */

.nosotros-intro {
    padding: 100px 0;
    background: #fff;
}

.nosotros-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.nosotros-intro-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.nosotros-intro-extra {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(116, 109, 125, 0.15);
}

.nosotros-intro-extra .nosotros-intro-text:last-child {
    margin-bottom: 0;
}

.nosotros-intro-image-placeholder {
    width: 100%;
    min-height: 420px;
    background: linear-gradient(135deg, #140428 0%, #1b6983 60%, #1ea894 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.nosotros-logo {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.nosotros-intro-content {
    padding: 20px 0;
}

.nosotros-intro-text {
    font-size: 18px;
    color: #746d7d;
    line-height: 1.8;
    margin: 0 0 20px;
}

/* ============================================
   MISIÓN Y VISIÓN
   ============================================ */

.nosotros-mision-vision {
    padding: 100px 0;
    background: #f7fafc;
}

.nosotros-mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.nosotros-mv-card {
    background: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #1ea894;
}

.nosotros-mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.nosotros-mv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1ea894, #1b6983);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 25px;
}

.nosotros-mv-title {
    font-size: 28px;
    font-weight: 700;
    color: #140428;
    margin: 0 0 20px;
}

.nosotros-mv-text {
    font-size: 16px;
    color: #746d7d;
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   VALORES
   ============================================ */

.nosotros-valores {
    padding: 100px 0;
    background: #fff;
}

.nosotros-valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nosotros-valor-card {
    background: #f7fafc;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nosotros-valor-card:hover {
    background: #fff;
    border-color: #1ea894;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.nosotros-valor-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1ea894, #1b6983);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.nosotros-valor-title {
    font-size: 20px;
    font-weight: 700;
    color: #140428;
    margin: 0 0 15px;
}

.nosotros-valor-text {
    font-size: 15px;
    color: #746d7d;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   TIMELINE/HISTORIA
   ============================================ */

.nosotros-timeline {
    padding: 100px 0;
    background: #f7fafc;
}

.nosotros-timeline-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Línea vertical central */
.nosotros-timeline-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #1ea894, #1b6983);
    transform: translateX(-50%);
}

.nosotros-timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.nosotros-timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid #1ea894;
    border-radius: 50%;
    z-index: 2;
}

.nosotros-timeline-marker.active {
    background: #1ea894;
    box-shadow: 0 0 0 8px rgba(30, 168, 148, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 8px rgba(30, 168, 148, 0.2);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(30, 168, 148, 0.1);
    }
}

.nosotros-timeline-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: calc(50% - 40px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.nosotros-timeline-item:nth-child(odd) .nosotros-timeline-card {
    margin-right: auto;
    margin-left: 0;
}

.nosotros-timeline-item:nth-child(even) .nosotros-timeline-card {
    margin-left: auto;
    margin-right: 0;
}

.nosotros-timeline-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.nosotros-timeline-card.active {
    border: 2px solid #1ea894;
}

.nosotros-timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, #1ea894, #1b6983);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.nosotros-timeline-title {
    font-size: 20px;
    font-weight: 700;
    color: #140428;
    margin: 0 0 12px;
}

.nosotros-timeline-text {
    font-size: 15px;
    color: #746d7d;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CTA FINAL
   ============================================ */

.nosotros-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1b6983 0%, #185458 100%);
    position: relative;
    overflow: hidden;
}

.nosotros-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.nosotros-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.nosotros-cta-title {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.2;
}

.nosotros-cta-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px;
}

.nosotros-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.nosotros-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid transparent;
    letter-spacing: 0.02em;
}

.nosotros-cta-button.primary {
    background: rgba(30, 168, 148, 0.22);
    color: #fff;
    border-color: rgba(30, 168, 148, 0.65);
    box-shadow: 0 8px 24px rgba(30, 168, 148, 0.2);
}

.nosotros-cta-button.primary:hover {
    background: rgba(30, 168, 148, 0.38);
    border-color: rgba(30, 168, 148, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(30, 168, 148, 0.35);
}

.nosotros-cta-button.secondary {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}

.nosotros-cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.75);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.18);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .nosotros-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nosotros-mv-grid {
        grid-template-columns: 1fr;
    }

    .nosotros-valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nosotros-hero-title {
        font-size: 38px;
    }

    .nosotros-section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nosotros-hero {
        min-height: auto;
        padding: 50px 0;
    }

    .nosotros-hero-title {
        font-size: 32px;
    }

    .nosotros-hero-subtitle {
        font-size: 16px;
    }

    .nosotros-hero-label {
        font-size: 12px;
        padding: 6px 16px;
    }

    .nosotros-section-title {
        font-size: 28px;
    }

    .nosotros-section-description {
        font-size: 15px;
    }

    .nosotros-intro,
    .nosotros-mision-vision,
    .nosotros-valores,
    .nosotros-timeline,
    .nosotros-cta {
        padding: 50px 0;
    }

    .nosotros-valores-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Stats strip responsive */
    .nosotros-page-wrapper .sv-stats-grid {
        flex-wrap: wrap;
        gap: 0;
    }

    .nosotros-page-wrapper .sv-stat-item {
        padding: 10px 20px;
        flex: 1 1 50%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.1);
        align-items: center;
    }

    .nosotros-page-wrapper .sv-stat-item:nth-child(odd) {
        border-right: 1px solid rgba(255,255,255,.1);
    }

    .nosotros-page-wrapper .sv-stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .nosotros-page-wrapper .sv-stat-item strong {
        font-size: 28px;
    }

    .nosotros-page-wrapper .sv-stat-item span {
        font-size: 12px;
    }

    /* Timeline móvil - sin línea vertical */
    .nosotros-timeline-content::before {
        left: 20px;
    }

    .nosotros-timeline-marker {
        left: 20px;
    }

    .nosotros-timeline-card {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .nosotros-cta-title {
        font-size: 24px;
    }

    .nosotros-cta-description {
        font-size: 16px;
    }

    .nosotros-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nosotros-cta-button {
        width: auto;
        min-width: 220px;
        justify-content: center;
        padding: 10px 22px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nosotros-hero-title {
        font-size: 26px;
    }

    .nosotros-section-title {
        font-size: 24px;
    }

    .nosotros-page-wrapper .sv-stat-item strong {
        font-size: 24px;
    }

    .nosotros-page-wrapper .sv-stat-item span {
        font-size: 11px;
    }

    .nosotros-mv-card,
    .nosotros-valor-card {
        padding: 30px 20px;
    }

    .nosotros-cta-title {
        font-size: 22px;
    }

    .nosotros-intro-text {
        font-size: 16px;
    }
}
