/* ============================================
   FUNDACIÓN COGUAY - Estilos Personalizados
   Paleta OFICIAL basada en el Logo:
   AZUL INSTITUCIONAL + AMARILLO ORO + CREMA
   ============================================ */

:root {
    --azul-institucional: #0d47a1;
    --azul-profundo: #1565c0;
    --azul-natural: #1e88e5;
    --azul-bosque: #0a3578;
    --azul-claro: #2196f3;
    --azul-oscuro: #052c65;
    --amarillo-oro: #ffc107;
    --amarillo-oro-profundo: #ffb300;
    --arena: #e8dcc4;
    --arena-claro: #f5efe0;
    --arena-oscuro: #d4c4a0;
    --crema: #fbf8f1;
    --blanco: #ffffff;
    --gris-claro: #f8f9fa;
    --gris-texto: #4a5568;
    --gris-oscuro: #2d3748;
    --sombra-suave: 0 4px 24px rgba(13, 71, 161, 0.08);
    --sombra-media: 0 8px 40px rgba(13, 71, 161, 0.14);
    --radius-grande: 22px;
    --radius-medio: 16px;
    --radius-pequeno: 12px;
    --transicion: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gris-oscuro);
    background-color: var(--crema);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--azul-institucional);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.2rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem);
    font-weight: 700;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.highlight-oro {
    color: var(--amarillo-oro);
}

.highlight-azul {
    color: var(--azul-natural);
}

/* ===== Header ===== */
.navbar {
    background-color: var(--crema);
    box-shadow: 0 1px 0 rgba(13, 71, 161, 0.05);
    transition: var(--transicion);
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(251, 248, 241, 0.98);
    box-shadow: var(--sombra-suave);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.logo-img {
    height: 54px;
    width: auto;
    flex-shrink: 0;
    transition: var(--transicion);
    filter: drop-shadow(0 3px 8px rgba(13, 71, 161, 0.18));
}

.navbar.scrolled .logo-img {
    height: 48px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 800;
    color: var(--azul-institucional);
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--azul-profundo);
    font-weight: 500;
    opacity: 0.85;
}

.navbar-nav {
    gap: 0.25rem;
}

.nav-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: var(--azul-profundo);
    font-weight: 600;
    font-size: 0.89rem;
    padding: 0.6rem 0.95rem !important;
    border-radius: 50px;
    transition: var(--transicion);
    position: relative;
    white-space: nowrap;
    line-height: 1;
}

.nav-link i {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--amarillo-oro), var(--azul-natural));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--azul-oscuro);
    background-color: rgba(13, 71, 161, 0.05);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

@media (max-width: 991.98px) {
    .nav-link {
        justify-content: flex-start;
        padding: 0.75rem 1rem !important;
        border-radius: 14px;
        font-size: 0.95rem;
    }
    .nav-link::after { display: none; }
    .nav-link:hover, .nav-link.active {
        background-color: rgba(13, 71, 161, 0.07);
    }
    .navbar-nav { gap: 0.15rem; }
}

.btn-primary-cg {
    background: linear-gradient(135deg, var(--azul-institucional), var(--azul-profundo));
    color: var(--blanco);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transicion);
    box-shadow: 0 4px 14px rgba(13, 71, 161, 0.2);
}

.btn-primary-cg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.28);
    color: var(--blanco);
}

/* ===== BOTÓN DONACIÓN PREMIUM (destacado) ===== */
.btn-donar-cg {
    position: relative;
    background: linear-gradient(135deg, #e53935 0%, #c62828 55%, #b71c1c 100%);
    color: var(--blanco) !important;
    border: none;
    padding: 0.78rem 1.55rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: var(--transicion);
    box-shadow:
        0 6px 18px rgba(198, 40, 40, 0.35),
        0 0 0 3px rgba(255, 193, 7, 0.25);
    overflow: hidden;
    white-space: nowrap;
}

.btn-donar-cg::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--amarillo-oro), rgba(255,193,7,0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(8px);
}

.btn-donar-cg i.donar-heart {
    font-size: 1.05rem;
    animation: heartBeat 1.65s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.btn-donar-cg:hover {
    transform: translateY(-3px) scale(1.02);
    color: var(--blanco) !important;
    box-shadow:
        0 10px 28px rgba(198, 40, 40, 0.45),
        0 0 0 4px rgba(255, 193, 7, 0.4);
}

.btn-donar-cg:hover::before {
    opacity: 0.6;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.18); }
    30% { transform: scale(1); }
    45% { transform: scale(1.14); }
    60% { transform: scale(1); }
}

@media (max-width: 991.98px) {
    .btn-donar-cg {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
        padding: 0.9rem 1.5rem;
        font-size: 0.98rem;
    }
}

.btn-outline-cg {
    background: transparent;
    color: var(--azul-institucional);
    border: 2px solid var(--azul-institucional);
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transicion);
}

.btn-outline-cg:hover {
    background-color: var(--azul-institucional);
    color: var(--blanco);
    transform: translateY(-2px);
}

.btn-oro-cg {
    background: linear-gradient(135deg, var(--amarillo-oro), var(--amarillo-oro-profundo));
    color: var(--azul-oscuro);
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transicion);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.35);
}

.btn-oro-cg:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255, 179, 0, 0.45);
    color: var(--azul-oscuro);
}

.btn-light-cg {
    background: rgba(255, 255, 255, 0.95);
    color: var(--azul-institucional);
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transicion);
    box-shadow: var(--sombra-suave);
}

.btn-light-cg:hover {
    background: var(--blanco);
    transform: translateY(-2px);
    color: var(--azul-institucional);
    box-shadow: var(--sombra-media);
}

/* ===== Hero ===== */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 53, 120, 0.92) 0%,
        rgba(13, 71, 161, 0.78) 45%,
        rgba(30, 136, 229, 0.6) 100%
    );
    z-index: -1;
}

.hero-content {
    color: var(--blanco);
    padding: 3rem 0;
    max-width: 720px;
    animation: fadeInUp 1s ease-out;
}

.hero-eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--amarillo-oro);
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--blanco);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.25rem;
    max-width: 560px;
    line-height: 1.75;
}

.hero-wave-bottom {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 1;
    line-height: 0;
}

.hero-wave-bottom svg {
    width: 100%;
    height: auto;
}

/* ===== Sección Quiénes Somos ===== */
.section-padding {
    padding: 6rem 0;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--azul-natural);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--gris-texto);
    font-size: 1.02rem;
    max-width: 620px;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-grande);
    overflow: hidden;
    box-shadow: var(--sombra-media);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.04);
}

.about-shape-1 {
    position: absolute;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--azul-natural), var(--azul-claro));
    border-radius: 50% 20% 50% 30%;
    top: -30px;
    left: -30px;
    opacity: 0.12;
    z-index: -1;
}

.about-shape-2 {
    position: absolute;
    width: 180px;
    height: 180px;
    background: var(--amarillo-oro);
    border-radius: 40% 50% 30% 60%;
    bottom: -40px;
    right: -20px;
    opacity: 0.18;
    z-index: -1;
}

.quote-block {
    background: linear-gradient(135deg, var(--arena-claro), var(--arena));
    border-left: 4px solid var(--amarillo-oro);
    padding: 1.5rem 1.75rem;
    border-radius: 0 var(--radius-pequeno) var(--radius-pequeno) 0;
    margin-top: 2rem;
}

.quote-block p {
    font-style: italic;
    font-weight: 600;
    color: var(--azul-institucional);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.55;
}

/* ===== Visión Integral - 5 perspectivas ===== */
.perspectives-section {
    background: linear-gradient(180deg, var(--crema) 0%, var(--arena-claro) 100%);
    position: relative;
}

.perspective-card {
    background: var(--blanco);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-grande);
    text-align: center;
    transition: var(--transicion);
    position: relative;
    box-shadow: 0 2px 16px rgba(13, 71, 161, 0.05);
    height: 100%;
}

.perspective-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-media);
}

.perspective-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: var(--transicion);
}

.perspective-card:hover .perspective-icon {
    transform: scale(1.08);
}

.perspective-social .perspective-icon {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.12), rgba(30, 136, 229, 0.05));
    color: var(--azul-natural);
}

.perspective-ambiental .perspective-icon {
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.16), rgba(255, 179, 0, 0.06));
    color: #e6a300;
}

.perspective-politica .perspective-icon {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.13), rgba(13, 71, 161, 0.05));
    color: var(--azul-institucional);
}

.perspective-economica .perspective-icon {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.22), rgba(255, 193, 7, 0.08));
    color: #b8860b;
}

.perspective-cultural .perspective-icon {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.14), rgba(21, 101, 192, 0.05));
    color: var(--azul-profundo);
}

.perspective-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--azul-institucional);
}

.perspective-desc {
    font-size: 0.88rem;
    color: var(--gris-texto);
    margin: 0;
    line-height: 1.65;
}

/* ===== Servicios ===== */
.services-section {
    background-color: var(--blanco);
}

.service-card {
    background: var(--blanco);
    border-radius: var(--radius-grande);
    overflow: hidden;
    box-shadow: 0 3px 20px rgba(13, 71, 161, 0.06);
    transition: var(--transicion);
    border: 1px solid rgba(13, 71, 161, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-media);
}

.service-image {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(5, 44, 101, 0.6) 100%);
}

.service-icon-badge {
    position: absolute;
    left: 1.25rem;
    bottom: -20px;
    width: 48px;
    height: 48px;
    background: var(--blanco);
    border-radius: var(--radius-pequeno);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--azul-institucional);
    box-shadow: 0 4px 14px rgba(13, 71, 161, 0.18);
    z-index: 2;
}

.service-body {
    padding: 2.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--azul-institucional);
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: 0.87rem;
    color: var(--gris-texto);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1rem;
}

.service-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--azul-natural);
    text-decoration: none;
    transition: var(--transicion);
    width: fit-content;
}

.service-card:hover .service-arrow {
    gap: 0.6rem;
    color: var(--azul-institucional);
}

/* ===== Experiencia (azul bosque oscuro) ===== */
.experience-section {
    background-color: var(--azul-bosque);
    color: var(--blanco);
    position: relative;
    overflow: hidden;
}

.experience-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    z-index: 0;
}

.experience-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 53, 120, 0.97), rgba(13, 71, 161, 0.94));
    z-index: 1;
}

.experience-section > .container {
    position: relative;
    z-index: 2;
}

.experience-section .section-eyebrow {
    color: var(--amarillo-oro);
}

.experience-section .section-title {
    color: var(--blanco);
}

.experience-section .section-subtitle {
    color: rgba(255, 255, 255, 0.82);
}

.stat-main {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255, 193, 7, 0.04));
    border: 1px solid rgba(255, 193, 7, 0.22);
    border-radius: var(--radius-grande);
    padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: clamp(2.5rem);
    font-weight: 800;
    color: var(--amarillo-oro);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.experience-pillar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-medio);
    transition: var(--transicion);
}

.experience-pillar:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 193, 7, 0.25);
    transform: translateX(6px);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: rgba(255, 193, 7, 0.15);
    color: var(--amarillo-oro);
}

.pillar-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blanco);
    margin: 0 0 0.15rem;
}

.pillar-text p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

/* ===== Timeline ===== */
.timeline-section {
    background: linear-gradient(180deg, var(--crema), var(--arena-claro));
}

.timeline-wrap {
    position: relative;
}

.timeline-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--azul-institucional);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.timeline-line {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--azul-natural), var(--amarillo-oro));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 52px;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 30px;
    height: 30px;
    background: var(--blanco);
    border: 3px solid var(--azul-natural);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12);
    transition: var(--transicion);
}

.timeline-item:hover .timeline-dot {
    background: var(--amarillo-oro);
    border-color: var(--amarillo-oro);
    transform: scale(1.1);
}

.timeline-year {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--azul-profundo);
    margin-bottom: 0.35rem;
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--gris-texto);
    line-height: 1.65;
    margin: 0 0 0.25rem;
}

.timeline-content .timeline-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 193, 7, 0.22);
    color: #8a6500;
    border-radius: 50px;
}

/* ===== Historia / Misión Visión ===== */
.history-image-block {
    border-radius: var(--radius-grande);
    overflow: hidden;
    box-shadow: var(--sombra-media);
}

.history-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-card {
    background: var(--blanco);
    border-radius: var(--radius-grande);
    padding: 2rem 1.75rem;
    height: 100%;
    box-shadow: 0 2px 16px rgba(13, 71, 161, 0.06);
    border-top: 4px solid transparent;
    transition: var(--transicion);
}

.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-media);
}

.mv-card.mision {
    border-top-color: var(--azul-natural);
}

.mv-card.vision {
    border-top-color: var(--amarillo-oro);
}

.mv-card.valores {
    border-top-color: var(--azul-institucional);
}

.mv-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.mv-card.mision .mv-icon {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.14), rgba(30, 136, 229, 0.04));
    color: var(--azul-natural);
}

.mv-card.vision .mv-icon {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.22), rgba(255, 193, 7, 0.08));
    color: #b8860b;
}

.mv-card.valores .mv-icon {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.14), rgba(13, 71, 161, 0.05));
    color: var(--azul-institucional);
}

.mv-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
    color: var(--azul-institucional);
}

.mv-card p {
    font-size: 0.92rem;
    color: var(--gris-texto);
    line-height: 1.7;
    margin: 0;
}

.valores-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.valores-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--gris-texto);
    font-weight: 500;
}

.valor-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: rgba(13, 71, 161, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-natural);
    font-size: 0.7rem;
}

/* ===== CTA ===== */
.cta-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.94), rgba(21, 101, 192, 0.82));
    z-index: -1;
}

.cta-content {
    text-align: center;
    color: var(--blanco);
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    color: var(--blanco);
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.02rem;
    margin-bottom: 2rem;
    line-height: 1.75;
}

/* ===== Footer ===== */
.footer-section {
    background: var(--azul-bosque);
    color: rgba(255, 255, 255, 0.88);
    padding-top: 4rem;
    position: relative;
}

.footer-top-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-logo-block .logo-title {
    color: var(--blanco);
    font-size: 1.15rem;
}

.footer-logo-block .logo-subtitle {
    color: rgba(255, 255, 255, 0.72);
}

.footer-info-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.45rem 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
    align-items: flex-start;
}

.footer-info-icon {
    width: 20px;
    min-width: 20px;
    color: var(--amarillo-oro);
    font-size: 0.9rem;
    margin-top: 2px;
}

.footer-info-text p {
    margin: 0;
    line-height: 1.55;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 1.1rem;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    padding: 0.35rem 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transicion);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-links a:hover {
    color: var(--amarillo-oro);
    padding-left: 4px;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transicion);
}

.social-link:hover {
    background: var(--amarillo-oro);
    color: var(--azul-oscuro);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom-tags {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ===== Animaciones ===== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== Scrollbar personalizado ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--crema);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--azul-natural), var(--azul-profundo));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--azul-institucional);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 4rem 0;
    }

    .hero-section {
        min-height: auto;
        padding: 120px 0 100px;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    .hero-section {
        padding: 110px 0 90px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .footer-bottom-tags {
        justify-content: flex-start;
        margin-top: 0.75rem;
    }

    .timeline-wrap {
        margin-top: 2rem;
    }
}

.hero-section {
    position: relative;
    min-height: clamp(560px, 90vh, 880px);
    padding: 115px 0 140px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    object-position: center 35%;
    filter: saturate(1.08) contrast(1.02);
}

.hero-content {
    max-width: 100%;
}

.hero-eyebrow {
    font-size: clamp(0.72rem, 1.5vw, 0.82rem);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
}

.hero-title {
    font-size: clamp(1.75rem, 4.4vw, 3rem);
    line-height: 1.16;
    margin: 1rem 0 1rem;
    letter-spacing: -0.01em;
    max-width: 12ch;
}

.hero-subtitle {
    font-size: clamp(0.83rem, 1.7vw, 1rem);
    line-height: 1.68;
    margin-bottom: 1.75rem;
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.88);
}

.hero-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.hero-buttons-row .btn-oro-cg,
.hero-buttons-row .btn-light-cg,
.hero-buttons-row .btn-donar-cg {
    padding: 0.7rem 1.35rem !important;
    font-size: 0.88rem !important;
}

.hero-stats-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.hero-stat-mini {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 0.5rem 0.85rem;
}

.hero-stat-mini .mini-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.hero-stat-mini .mini-text p {
    margin: 0;
    line-height: 1.25;
}

.hero-stat-mini .mini-text p:first-child {
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}

.hero-stat-mini .mini-text p:last-child {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
}

.hero-decor {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hero-decor.shape-blob-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -140px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 193, 7, 0.32), transparent 58%);
    filter: blur(2px);
    animation: floatSoft 8.5s ease-in-out infinite;
}

.hero-decor.shape-blob-2 {
    width: 520px;
    height: 520px;
    bottom: -220px;
    left: -180px;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 70%, rgba(33, 150, 243, 0.30), transparent 60%);
    filter: blur(2px);
    animation: floatSoft 11s ease-in-out infinite reverse;
}

.hero-decor.shape-ring {
    width: 240px;
    height: 240px;
    top: 22%;
    right: 12%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    animation: rotateSlow 30s linear infinite;
}

.hero-decor.shape-dotgrid {
    width: 130px;
    height: 130px;
    right: 28%;
    bottom: 18%;
    opacity: 0.35;
    background-image: radial-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1.3px);
    background-size: 11px 11px;
}

.hero-cert-strip {
    position: absolute;
    right: clamp(1.25rem, 4vw, 3.5rem);
    top: clamp(125px, 18vh, 165px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.hero-cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 30px rgba(13, 71, 161, 0.18);
    transform-origin: right center;
    animation: floatSoft 6s ease-in-out infinite;
}

.hero-cert-badge:nth-child(2) { animation-delay: 0.8s; }
.hero-cert-badge:nth-child(3) { animation-delay: 1.6s; }

.hero-cert-badge i {
    color: var(--amarillo-oro);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.hero-cert-badge small {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.68rem;
    display: block;
}

@keyframes floatSoft {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.6deg); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Tabs Experiencia ===== */
.exp-tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    margin-bottom: 2.5rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.exp-tab-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.exp-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.exp-tab-btn.active {
    background: linear-gradient(135deg, var(--azul-institucional) 0%, var(--azul-natural) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.38), 0 0 0 2px rgba(255, 193, 7, 0.28);
}

.exp-tab-btn i {
    font-size: 0.95rem;
}

.exp-tab-panel {
    display: none;
    animation: fadeInUp 0.55s ease both;
}

.exp-tab-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Testimonios ===== */
.testimonial-wrapper {
    position: relative;
    padding: 0 0 1rem;
}

.testimonial-track {
    display: flex;
    gap: 1.25rem;
    overflow: hidden;
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    scroll-snap-align: start;
    flex: 0 0 calc((100% - 2.5rem) / 3);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 1.75rem 1.5rem;
    color: #fff;
    position: relative;
    transition: all 0.35s ease;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, var(--amarillo-oro), transparent 70%);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.testimonial-quote {
    color: var(--amarillo-oro);
    font-size: 1.75rem;
    opacity: 0.9;
    margin-bottom: 0.6rem;
    line-height: 1;
}

.testimonial-text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1.35rem;
    font-style: italic;
    min-height: 120px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul-institucional), var(--azul-natural));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 193, 7, 0.45);
}

.testimonial-author .author-name {
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    margin: 0;
}

.testimonial-author .author-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.35;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    margin-top: 1.75rem;
}

.test-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.test-arrow:hover {
    background: var(--amarillo-oro);
    color: var(--azul-institucional);
    border-color: var(--amarillo-oro);
    transform: scale(1.08);
}

.test-dots {
    display: inline-flex;
    gap: 0.4rem;
}

.test-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-dot.active {
    background: var(--amarillo-oro);
    width: 22px;
    border-radius: 999px;
}

/* ===== Proyectos Destacados ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    overflow: hidden;
    color: var(--gris-oscuro);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(.2,.7,.3,1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    border: 0 solid transparent;
    transition: all 0.35s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(13, 71, 161, 0.22);
}

.project-card:hover::after {
    border: 2px solid var(--amarillo-oro);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(13, 71, 161, 0.82) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay .btn-zoom {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--amarillo-oro);
    color: var(--azul-institucional);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.45);
    transform: translateY(10px);
    transition: transform 0.35s ease;
    font-size: 1.1rem;
}

.project-card:hover .project-overlay .btn-zoom {
    transform: translateY(0);
}

.project-category-tag {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: rgba(255, 193, 7, 0.95);
    color: var(--azul-institucional);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
    z-index: 1;
}

.project-year-tag {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: rgba(13, 71, 161, 0.92);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    z-index: 1;
    letter-spacing: 0.04em;
}

.project-body {
    padding: 1.3rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.project-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--azul-institucional);
    line-height: 1.35;
    margin: 0;
}

.project-excerpt {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--gris-texto);
    margin: 0;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(13, 71, 161, 0.15);
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-top: auto;
}

.project-meta i {
    color: var(--azul-natural);
    margin-right: 0.25rem;
    font-size: 0.8rem;
}

@media (max-width: 1199.98px) {
    .hero-cert-strip {
        top: clamp(120px, 14vh, 145px);
    }
    .hero-cert-badge {
        padding: 0.5rem 0.7rem;
        font-size: 0.7rem;
    }
    .testimonial-card {
        flex: 0 0 calc((100% - 1.25rem) / 2);
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 110px 0 100px;
        min-height: auto;
    }
    .hero-title {
        font-size: clamp(1.75rem, 5vw, 2.4rem);
        max-width: 18ch;
    }
    .hero-cert-strip {
        position: static;
        margin-top: 1.75rem;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .hero-decor.shape-ring,
    .hero-decor.shape-dotgrid {
        display: none;
    }
    .hero-decor.shape-blob-1,
    .hero-decor.shape-blob-2 {
        opacity: 0.8;
        filter: blur(6px);
    }
    .exp-tabs-nav {
        border-radius: 20px;
    }
    .testimonial-card {
        flex: 0 0 100%;
    }
    .exp-tab-btn {
        font-size: 0.78rem;
        padding: 0.5rem 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 105px 0 110px;
    }
    .hero-title {
        font-size: clamp(1.55rem, 6.4vw, 2.15rem);
    }
    .hero-subtitle {
        font-size: clamp(0.82rem, 3.2vw, 0.93rem);
        line-height: 1.6;
    }
    .hero-buttons-row .btn-oro-cg,
    .hero-buttons-row .btn-light-cg,
    .hero-buttons-row .btn-donar-cg {
        padding: 0.62rem 1.05rem !important;
        font-size: 0.82rem !important;
    }
    .hero-stats-compact {
        gap: 0.6rem;
    }
    .hero-stat-mini {
        padding: 0.45rem 0.65rem;
        gap: 0.5rem;
    }
    .hero-stat-mini .mini-text p:first-child { font-size: 0.8rem; }
    .hero-stat-mini .mini-text p:last-child { font-size: 0.68rem; }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }
    .hero-cert-strip {
        gap: 0.5rem;
    }
    .hero-cert-badge {
        font-size: 0.7rem;
        padding: 0.5rem 0.7rem;
    }
    .footer-bottom-tags {
        justify-content: flex-start;
        margin-top: 0.75rem;
    }
    .timeline-wrap {
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.6rem;
    }
    .hero-title {
        font-size: clamp(1.5rem, 7.2vw, 1.95rem);
    }
    .hero-subtitle {
        font-size: 0.84rem;
    }
    .stat-main {
        padding: 1.75rem 1.25rem;
    }
    .mv-card {
        padding: 1.5rem 1.25rem;
    }
    .service-body {
        padding: 2rem 1.15rem 1.25rem;
    }
    .exp-tabs-nav {
        gap: 0.4rem;
        padding: 0.4rem;
    }
    .exp-tab-btn {
        font-size: 0.74rem;
        padding: 0.45rem 0.75rem;
    }
    .exp-tab-btn i { display: none; }
    .testimonial-text {
        min-height: auto;
    }
    .project-body {
        padding: 1.1rem 1.15rem 1.2rem;
    }
    .hero-buttons-row {
        gap: 0.55rem;
    }
    .hero-buttons-row .btn-oro-cg,
    .hero-buttons-row .btn-light-cg,
    .hero-buttons-row .btn-donar-cg {
        flex: 1 1 auto;
        justify-content: center;
        padding: 0.6rem 0.9rem !important;
    }
}
