/* ============================================
   SEMILLAS DE ÉXITO — Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Brand Colors */
    --azul-profundo: #1E3A8A;
    --azul-profundo-rgb: 30, 58, 138;
    --turquesa: #14B8A6;
    --turquesa-dark: #0f9485;
    --coral: #FF6B57;
    --coral-dark: #e85945;
    --amarillo: #FBBF24;
    --amarillo-light: #fcd34d;
    --marfil: #FFF8EB;
    --grafito: #1F2937;
    --blanco: #FFFFFF;
    --negro: #000000;

    /* Utility Colors */
    --overlay-dark: rgba(30, 58, 138, 0.75);
    --overlay-hero: rgba(10, 30, 45, 0.6);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 16px rgba(30, 58, 138, 0.07);
    --shadow-card-hover: 0 8px 32px rgba(30, 58, 138, 0.13);

    /* Typography */
    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Source Sans 3', sans-serif;

    /* Spacing */
    --section-py: 5rem;
    --section-px: 1.25rem;
    --container-max: 1200px;
    --gap-sm: 1rem;
    --gap-md: 2rem;
    --gap-lg: 3rem;
    --gap-xl: 4rem;

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s ease;
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--grafito);
    background-color: var(--marfil);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--azul-profundo);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

p {
    font-size: 1.0625rem;
    color: var(--grafito);
    max-width: 680px;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amarillo);
}

.section-subtitle {
    font-size: 1.125rem;
    color: #495a6a;
    max-width: 620px;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-px);
}

.section {
    padding: var(--section-py) 0;
    position: relative;
}

.section--ivory {
    background-color: var(--marfil);
}

.section--white {
    background-color: var(--blanco);
}

.section--dark {
    background-color: var(--azul-profundo);
    color: var(--blanco);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--blanco);
}

.section--dark p {
    color: rgba(255, 255, 255, 0.85);
}

.section--dark .eyebrow {
    color: var(--amarillo-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--gap-lg);
}

.section-header p {
    margin: 1rem auto 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-align: center;
}

.btn--primary {
    background-color: var(--coral);
    color: var(--blanco);
    box-shadow: 0 2px 8px rgba(255, 107, 87, 0.25);
}

.btn--primary:hover {
    background-color: var(--coral-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 87, 0.35);
}

.btn--secondary {
    background-color: transparent;
    color: var(--azul-profundo);
    border: 2px solid var(--azul-profundo);
}

.btn--secondary:hover {
    background-color: rgba(var(--azul-profundo-rgb), 0.06);
}

.btn--secondary-light {
    background-color: transparent;
    color: var(--blanco);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--secondary-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn--small {
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
}

.btn--ghost {
    background: transparent;
    color: var(--coral);
    font-weight: 600;
    padding: 0.5rem 0;
    border-radius: 0;
    position: relative;
}

.btn--ghost::after {
    content: '→';
    margin-left: 0.35rem;
    transition: transform var(--transition-fast);
}

.btn--ghost:hover::after {
    transform: translateX(4px);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* --- Cards --- */
.card {
    background: var(--blanco);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    border: 1px solid rgba(30, 58, 138, 0.05);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(30, 58, 138, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--turquesa);
    overflow: hidden;
}

.card__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.card__icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.975rem;
    line-height: 1.65;
    color: #4b5e6d;
}

.card .btn--ghost {
    margin-top: 1.25rem;
}

/* --- Grid Layouts --- */
.grid-3 {
    display: grid;
    gap: var(--gap-md);
}

.grid-4 {
    display: grid;
    gap: var(--gap-md);
}

/* ============================================
   1. NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background-color: var(--azul-profundo);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding: 0.65rem 0;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 1001;
}

.navbar__logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: height var(--transition-base);
    filter: brightness(0) invert(1);
    /* Hace que el logo sea blanco */
}

.navbar.scrolled .navbar__logo-img {
    height: 40px;
}

.navbar__logo-icon {
    width: 36px;
    height: 36px;
    background: var(--turquesa);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.navbar__links {
    display: none;
    gap: 2rem;
    align-items: center;
}

.navbar__links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.925rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.navbar__links a:hover {
    color: var(--blanco);
}

.navbar__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amarillo);
    transition: width var(--transition-fast);
}

.navbar__links a:hover::after {
    width: 100%;
}

.navbar__cta {
    display: none;
}

.navbar__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 4px;
}

.navbar__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blanco);
    transition: all var(--transition-fast);
    transform-origin: center;
}

.navbar__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--azul-profundo);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: 999;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    color: var(--blanco);
    font-size: 1.25rem;
    font-weight: 500;
    font-family: var(--font-heading);
}

.mobile-menu .btn--primary {
    margin-top: 1rem;
}

/* ============================================
   2. HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--azul-profundo);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55) saturate(0.85);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg,
            rgba(10, 28, 42, 0.5) 0%,
            rgba(30, 58, 138, 0.7) 60%,
            rgba(30, 58, 138, 0.9) 100%);
}

.hero__content {
    position: relative;
    z-index: 3;
    padding-top: 6rem;
    padding-bottom: 3rem;
    max-width: 720px;
}

.hero__content .eyebrow {
    margin-bottom: 1.25rem;
}

.hero__content h1 {
    color: var(--blanco);
    margin-bottom: 1.25rem;
}

.hero__content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 600px;
}

.hero__badge {
    display: inline-flex;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 0.875rem 1.5rem;
    margin-top: 2rem;
    color: var(--blanco);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero__badge span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.hero__badge span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--amarillo);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounceDown 2s ease-in-out infinite;
}

.hero__scroll-indicator svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ============================================
   3. PAIN CARDS
   ============================================ */
.pain-cards {
    padding: var(--section-py) 0;
    background: var(--blanco);
}

.pain-cards .card__icon {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(20, 184, 166, 0.1));
}

/* ============================================
   4. TRANSFORMATION
   ============================================ */
.transformation {
    background: var(--marfil);
    overflow: hidden;
}

.transformation__grid {
    display: grid;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.transformation__panel {
    padding: 2.5rem 2rem;
    position: relative;
}

.transformation__panel--before {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: var(--blanco);
}

.transformation__panel--before h3 {
    color: #ff6b6b;
}

.transformation__panel--before .panel-label {
    color: rgba(255, 255, 255, 0.4);
}

.transformation__panel--after {
    background: linear-gradient(135deg, var(--azul-profundo), #0d5c53);
    color: var(--blanco);
}

.transformation__panel--after h3 {
    color: var(--amarillo);
}

.transformation__panel--after .panel-label {
    color: rgba(255, 255, 255, 0.4);
}

.panel-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.transformation__panel h3 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.transformation__panel ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.transformation__panel li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.transformation__panel li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.transformation__panel--before li svg {
    color: #ff6b6b;
}

.transformation__panel--after li svg {
    color: var(--amarillo);
}

.transformation__cta {
    text-align: center;
    margin-top: var(--gap-md);
}

/* ============================================
   5. METHODOLOGY TIMELINE
   ============================================ */
.methodology {
    background: var(--blanco);
}

.timeline {
    display: grid;
    gap: var(--gap-md);
    margin-top: var(--gap-lg);
    position: relative;
}

.timeline__item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.timeline__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline__number {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--turquesa), var(--azul-profundo));
    color: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.timeline__line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, var(--turquesa), rgba(20, 184, 166, 0.15));
    margin-top: 0.5rem;
    min-height: 30px;
}

.timeline__content {
    padding-bottom: 1rem;
}

.timeline__content h3 {
    color: var(--coral);
    margin-bottom: 0.35rem;
    font-size: 1.25rem;
}

.timeline__content p {
    font-size: 0.975rem;
    color: #4b5e6d;
}

/* ============================================
   5.5 GALLERY MASONRY
   ============================================ */
.gallery {
    background: var(--marfil);
    overflow: hidden;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: var(--gap-lg);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--azul-profundo);
    min-height: 220px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.gallery-item:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Gallery overlay & caption */
.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
            rgba(30, 58, 138, 0.85) 0%,
            rgba(30, 58, 138, 0.1) 45%,
            transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__caption {
    color: var(--blanco);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transform: translateY(8px);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-item__caption {
    transform: translateY(0);
}

/* Gallery Placeholders (elegant gradient backgrounds with SVG icons) */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-placeholder svg {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.25);
    transition: all var(--transition-base);
    z-index: 1;
}

.gallery-item:hover .gallery-placeholder svg {
    color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Unique gradient for each placeholder */
.gallery-placeholder--teamwork {
    background: linear-gradient(135deg, #1E3A8A 0%, #0d5c53 50%, #14B8A6 100%);
}

.gallery-placeholder--presentation {
    background: linear-gradient(145deg, #1a2a4a 0%, #1E3A8A 60%, #1f6b8a 100%);
}

.gallery-placeholder--whiteboard {
    background: linear-gradient(120deg, #14B8A6 0%, #0f9485 40%, #1E3A8A 100%);
}

.gallery-placeholder--validation {
    background: linear-gradient(155deg, #1E3A8A 0%, #0f2d40 50%, #0d5c53 100%);
}

.gallery-placeholder--focus {
    background: linear-gradient(130deg, #1a2a3a 0%, #1E3A8A 45%, #14B8A6 100%);
}

.gallery-placeholder--celebration {
    background: linear-gradient(140deg, #14B8A6 0%, #0d5c53 55%, #1E3A8A 100%);
}

.gallery-placeholder--handson {
    background: linear-gradient(160deg, #1E3A8A 0%, #1f4d6e 50%, #14B8A6 100%);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 30, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox__close svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lightbox__close:hover svg {
    color: var(--blanco);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox__nav svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.12);
}

.lightbox__nav:hover svg {
    color: var(--blanco);
}

.lightbox__nav--prev {
    left: 1rem;
}

.lightbox__nav--next {
    right: 1rem;
}

.lightbox__content {
    position: relative;
    z-index: 5;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lightbox__image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.active .lightbox__image {
    transform: scale(1);
    opacity: 1;
}

.lightbox__caption {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.02em;
}

.lightbox__counter {
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* Lightbox placeholder rendering */
.lightbox__placeholder-display {
    width: 70vw;
    max-width: 600px;
    height: 50vh;
    max-height: 400px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.active .lightbox__placeholder-display {
    transform: scale(1);
    opacity: 1;
}

.lightbox__placeholder-display svg {
    width: 72px;
    height: 72px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   6. VALUES
   ============================================ */
.values {
    background: var(--blanco);
}

.values .card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.values .card__icon {
    margin: 0 auto 1.25rem;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(251, 191, 36, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.values .card__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.values .card__icon svg {
    width: 30px;
    height: 30px;
}

.values .card h3 {
    font-size: 1.15rem;
}

/* ============================================
   7. RESULTS / STATS
   ============================================ */
.results {
    background: var(--azul-profundo);
    color: var(--blanco);
}

.stats-grid {
    display: grid;
    gap: var(--gap-md);
    margin-top: var(--gap-lg);
}

.stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all var(--transition-base);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-card__number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 700;
    color: var(--amarillo);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stat-card__label {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================
   8. TEAM
   ============================================ */
.team {
    background: var(--blanco);
}

.team-grid {
    display: grid;
    gap: var(--gap-md);
}

.team-card {
    text-align: center;
    padding: 0 1.5rem 2rem;
    background: var(--marfil);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(30, 58, 138, 0.05);
    overflow: hidden;
    position: relative;
}

.team-card__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--turquesa), var(--azul-profundo));
    margin-bottom: 1.75rem;
    border-radius: 0 0 2px 2px;
    transition: height var(--transition-base);
}

.team-card:hover {
    box-shadow: 0 12px 36px rgba(30, 58, 138, 0.12), 0 4px 12px rgba(20, 184, 166, 0.08);
    transform: translateY(-6px);
}

.team-card:hover .team-card__accent {
    height: 5px;
}

.team-card__avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.25rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--turquesa), var(--azul-profundo));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.15);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.team-card:hover .team-card__avatar {
    box-shadow: 0 8px 28px rgba(30, 58, 138, 0.22);
    transform: scale(1.04);
}

.team-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover .team-card__avatar img {
    transform: scale(1.08);
}

.team-card h4 {
    color: var(--azul-profundo);
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
}

.team-card p {
    font-size: 0.925rem;
    color: #6b7d8d;
}

.team-card__bio {
    font-size: 0.85rem !important;
    font-style: italic;
    color: #5a6e7e !important;
    line-height: 1.55;
    margin-top: 0.6rem;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

/* Social icons */
.team-card__social {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.team-card__social a {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: rgba(30, 58, 138, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-profundo);
    transition: all var(--transition-fast);
}

.team-card__social a:hover {
    background: var(--coral);
    color: var(--blanco);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 87, 0.3);
}

.team-card__social svg {
    width: 16px;
    height: 16px;
}


/* ============================================
   9. INSTITUTIONAL OPPORTUNITY
   ============================================ */
.opportunity {
    background: var(--marfil);
}

.opportunity__grid {
    display: grid;
    gap: var(--gap-lg);
    align-items: center;
}

.opportunity__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--azul-profundo), #0d5c53);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.opportunity__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(20, 184, 166, 0.2));
}

.opportunity__image-placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
    z-index: 1;
}

.opportunity__benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-item__number {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--turquesa);
    color: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.benefit-item p {
    font-size: 1rem;
    color: var(--grafito);
}

/* ============================================
   10. CTA SEGMENTED
   ============================================ */
.cta-segmented {
    background: var(--blanco);
}

.cta-cards {
    display: grid;
    gap: var(--gap-md);
}

.cta-card {
    background: var(--marfil);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition-base);
}

.cta-card:hover {
    border-color: var(--coral);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.cta-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--azul-profundo), var(--turquesa));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-card__icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.cta-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--blanco);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cta-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.cta-card p {
    font-size: 0.95rem;
    margin: 0 auto 1.5rem;
    color: #5a6e7e;
}

/* ============================================
   11. MODALS (Forms)
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.modal.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-dark);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal__content {
    position: relative;
    background: var(--blanco);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 480px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.is-open .modal__content {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(30, 58, 138, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--grafito);
    transition: all var(--transition-fast);
}

.modal__close:hover {
    background: rgba(30, 58, 138, 0.1);
    color: var(--coral);
    transform: rotate(90deg);
}

.modal__close svg {
    width: 20px;
    height: 20px;
}

.modal__header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal__header h3 {
    margin-bottom: 0.5rem;
    color: var(--azul-profundo);
}

.modal__header p {
    font-size: 0.95rem;
    color: #5a6e7e;
    line-height: 1.5;
}

/* Forms */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--azul-profundo);
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    background-color: #fafbfc;
}

.form-group input:focus {
    outline: none;
    border-color: var(--turquesa);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
    background-color: var(--blanco);
}

.form-group input::placeholder {
    color: #a0aaba;
}

.btn--full {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    font-size: 1.05rem;
}

.btn--full.is-loading {
    background-color: #a0aaba;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

.form-message {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    min-height: 20px;
    font-weight: 500;
}

.form-message.success {
    color: var(--turquesa-dark);
}

.form-message.error {
    color: var(--coral);
}

/* ============================================
   12. CLOSING
   ============================================ */
.closing {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: var(--azul-profundo);
}

.closing__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.closing__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(0.8);
}

.closing__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg,
            rgba(30, 58, 138, 0.7) 0%,
            rgba(10, 28, 42, 0.85) 100%);
}

.closing__content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    padding: 3rem var(--section-px);
}

.closing__content h2 {
    color: var(--blanco);
    margin-bottom: 1.25rem;
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
}

.closing__content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin: 0 auto 2rem;
    max-width: 560px;
}

/* ============================================
   12. FOOTER
   ============================================ */
.footer {
    background: #0c1f2e;
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 0 1.5rem;
}

.footer__grid {
    display: grid;
    gap: var(--gap-md);
    margin-bottom: 2rem;
}

.footer__brand {
    max-width: 320px;
}

.footer__brand-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--blanco);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__brand p {
    font-size: 0.925rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

.footer__nav h4 {
    color: var(--blanco);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer__nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__nav a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer__nav a:hover {
    color: var(--amarillo);
}

.footer__contact h4 {
    color: var(--blanco);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer__contact p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
    font-size: 0.85rem;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Hero stagger animation */
.hero__content .eyebrow,
.hero__content h1,
.hero__content p,
.hero__content .btn-group,
.hero__content .hero__badge {
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__content .eyebrow {
    animation-delay: 0.2s;
}

.hero__content h1 {
    animation-delay: 0.4s;
}

.hero__content p {
    animation-delay: 0.6s;
}

.hero__content .btn-group {
    animation-delay: 0.8s;
}

.hero__content .hero__badge {
    animation-delay: 1s;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Count-up number animation */
.stat-card__number {
    display: inline-block;
}

/* ============================================
   RESPONSIVE — Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
    :root {
        --section-py: 6rem;
        --section-px: 2rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .transformation__grid {
        grid-template-columns: 1fr 1fr;
    }

    .opportunity__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .navbar__links {
        display: flex;
    }

    .navbar__cta {
        display: inline-flex;
    }

    .navbar__hamburger {
        display: none;
    }

    /* Gallery — Tablet: 2 columns */
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 1.25rem;
    }

    .gallery-item--tall {
        grid-row: span 2;
    }

    .gallery-item--wide {
        grid-column: span 2;
    }
}

/* ============================================
   RESPONSIVE — Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    :root {
        --section-py: 7rem;
        --section-px: 2rem;
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .timeline {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    .timeline__item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline__marker {
        flex-direction: row;
        width: 100%;
        margin-bottom: 1rem;
    }

    .timeline__number {
        margin: 0 auto;
    }

    .timeline__line {
        display: none;
    }

    .closing {
        min-height: 70vh;
    }

    /* Gallery — Desktop: 3 columns */
    .gallery-masonry {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 220px;
        gap: 1.25rem;
    }

    .gallery-item--tall {
        grid-row: span 2;
    }

    .gallery-item--wide {
        grid-column: span 2;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero__content .eyebrow,
    .hero__content h1,
    .hero__content p,
    .hero__content .btn-group,
    .hero__content .hero__badge {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero__scroll-indicator {
        animation: none;
    }

    .gallery-item,
    .gallery-item:hover {
        transform: none;
    }

    .gallery-item img,
    .gallery-item:hover img {
        transform: none;
    }

    .gallery-item__overlay {
        opacity: 1;
    }

    .lightbox__image,
    .lightbox__placeholder-display {
        transform: none;
        opacity: 1;
    }
}

/* Gallery — Small phone: 2 columns */
@media (min-width: 480px) and (max-width: 767px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .gallery-item--tall {
        grid-row: span 2;
    }
}