/* =========================================
   IDP — Professional Design System v2
   ========================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary:        #2563eb;
    --primary-dark:   #1d4ed8;
    --primary-light:  #eff6ff;
    --primary-mid:    #dbeafe;
    --secondary:      #0ea5e9;
    --navy:           #0f172a;
    --navy-mid:       #1e293b;
    --text-dark:      #0f172a;
    --text-gray:      #475569;
    --text-light:     #94a3b8;
    --bg-light:       #f0f7ff;
    --bg-white:       #ffffff;
    --border-light:   #e2e8f0;
    --border-blue:    #bfdbfe;
    --shadow-sm:      0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md:      0 4px 16px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
    --shadow-lg:      0 20px 48px rgba(15,23,42,0.12), 0 8px 16px rgba(15,23,42,0.06);
    --shadow-blue:    0 8px 32px rgba(37,99,235,0.2);
    --gradient:       linear-gradient(135deg, var(--primary-dark), var(--primary));
    --gradient-h:     linear-gradient(135deg, #1d4ed8, #2563eb, #0ea5e9);
    --gradient-hero:  linear-gradient(160deg, #09101f 0%, #0c1421 40%, #0c1421 70%, #080e1b 100%);
    --gradient-soft:  linear-gradient(135deg, #eff6ff, #f0f9ff);
    --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
    --radius-sm:      8px;
    --radius-md:      12px;
    --radius-lg:      18px;
    --radius-xl:      28px;
    --max-width:      1200px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── LOGO ─────────────────────────────── */
.logo-img {
    height: 160px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
    margin: -40px 0;
}
.logo-img:hover { opacity: 0.85; }
.logo-img--white {
    filter: brightness(0) invert(1);
    height: 100px;
    margin: -25px 0;
}

/* ── NAVBAR ───────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 1px 0 var(--border-light);
    transition: all 0.3s ease;
}
.navbar.scrolled {
    padding: 0.2rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { text-decoration: none; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.005em;
    transition: color 0.2s ease;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover,
.nav-link.active { color: var(--primary); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
    background: var(--gradient);
    color: white !important;
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(29,78,216,0.3);
}
.nav-cta::after { display: none; }
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* Mobile hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ──────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.22s ease;
    font-family: inherit;
}
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(29,78,216,0.28);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(29,78,216,0.4);
}
.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--border-light);
}
.btn-outline:hover {
    border-color: rgba(29,78,216,0.35);
    color: var(--primary);
    background: rgba(29,78,216,0.04);
}
.btn-full { width: 100%; text-align: center; }

/* ── SECTION HELPERS ──────────────────── */
.section-light     { background: var(--bg-light); }
.section-white     { background: var(--bg-white); }
.section-dark      { background: var(--navy); }          /* #0f172a */
.section-dark-alt  { background: #080d19; }              /* deeper navy */

section { padding: 6rem 0; }

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}
.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
}
.section-tag {
    display: inline-block;
    color: var(--primary);
    background: rgba(29,78,216,0.07);
    border: 1px solid rgba(29,78,216,0.18);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.gradient-text {
    background: var(--gradient-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── PARTNERS STRIP ───────────────────── */
.partners-strip {
    background: var(--bg-white);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
    position: relative;
}
.partners-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(239,246,255,0.6) 0%, transparent 100%);
    pointer-events: none;
}
.partners-strip-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}
.partners-strip-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
}
.partner-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.partner-logo i { font-size: 1.25rem; color: var(--text-light); transition: color 0.2s ease; }
.partner-logo:hover { color: var(--primary); }
.partner-logo:hover i { color: var(--primary); }

/* ── CÓMO FUNCIONA ────────────────────── */
.como-funciona { padding: 5rem 0; }
.steps-row {
    display: grid;
    grid-template-columns: 1fr 50px 1fr 50px 1fr;
    gap: 0;
    max-width: 920px;
    margin: 0 auto 3rem;
    align-items: start;
}
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease-out);
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
    background: white;
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-h);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}
.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.step-card p {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}
.step-arrow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2rem;
    font-size: 2rem;
    color: var(--border-blue);
}
.step-arrow::after { content: '→'; }
.steps-cta {
    text-align: center;
    padding-top: 1rem;
}
.steps-cta-note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-light);
}
.steps-cta-note i { color: var(--primary); margin-right: 0.25rem; }

/* ── HERO ─────────────────────────────── */
@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-28px) scale(1.06); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(22px) scale(0.94); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.hero {
    min-height: 100vh;
    padding: 7rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}
/* Background image */
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=1920&q=80&auto=format') center center / cover no-repeat;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}
/* subtle grid mesh */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 1;
}
/* main orb — very subtle depth, no color saturation */
.hero::after {
    content: '';
    position: absolute;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(139,92,246,0.09) 0%, rgba(255,255,255,0.02) 45%, transparent 70%);
    top: -180px;
    right: -180px;
    border-radius: 50%;
    animation: orbFloat 9s ease-in-out infinite;
    pointer-events: none;
}
/* second orb — barely visible depth */
.hero-orb2 {
    position: absolute;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 68%);
    bottom: -100px;
    left: -80px;
    border-radius: 50%;
    animation: orbFloat2 11s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.hero-main, .hero-stats { position: relative; z-index: 2; }

/* eyebrow pill */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50px;
    padding: 0.45rem 1.1rem 0.45rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}
.hero-eyebrow-dot {
    width: 7px;
    height: 7px;
    background: #34d399;
    border-radius: 50%;
    animation: blink 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

.hero-content {
    max-width: 780px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero-content h1 {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.25rem;
    color: #ffffff;
    letter-spacing: -0.035em;
}
.hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.68);
    margin-bottom: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.85;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* override btn-outline inside hero (dark bg) */
.hero .btn-outline {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.88);
    border: 1.5px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(8px);
}
.hero .btn-outline:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

.partner-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.4rem;
    backdrop-filter: blur(10px);
    margin-bottom: 0.5rem;
}
.partner-badge-hero strong {
    display: block;
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.partner-badge-hero span {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: var(--max-width);
    width: 100%;
    position: relative;
    z-index: 1;
}
.stat-card {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.95);
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}
.stat-number {
    display: block;
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}
.stat-sublabel {
    font-size: 0.78rem;
    color: var(--text-gray);
}

/* ── HERO MAIN (2-col conversion layout) ───────────── */
.hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: var(--max-width);
    width: 100%;
    position: relative;
    z-index: 1;
}
.hero-main .hero-content {
    text-align: center;
    max-width: 800px;
}
.hero-main .hero-content p {
    margin-left: auto;
    margin-right: auto;
}
.hero-main .hero-content h1 {
    font-size: 3.2rem;
}

.hero-cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.hero-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}
.hero-trust-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.78);
    font-weight: 500;
}
.hero-trust-pills span i { color: #34d399; font-size: 0.75rem; }

.hero-form-box {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
}
.hero-form-header {
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}
.hero-form-header strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}
.hero-form-header p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
}
.hero-form-box .form-group { margin-bottom: 1rem; }
.hero-form-box .form-input {
    background: var(--bg-light);
    border: 1.5px solid var(--border-light);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.hero-form-box .form-input:focus {
    border-color: var(--primary);
    background: white;
}
.hero-form-cta {
    font-size: 1.05rem;
    padding: 1rem;
    margin-top: 0.25rem;
    box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}
.hero-form-trust {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.hero-form-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.73rem;
    color: var(--text-light);
}
.hero-form-trust span i { font-size: 0.7rem; color: #34d399; }

/* ── SERVICE CARDS ────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gradient-h);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(239,246,255,0.6), rgba(224,242,254,0.3));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    border-radius: var(--radius-lg);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(37,99,235,0.12);
    border-color: var(--border-blue);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after  { opacity: 1; }

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border: 1.5px solid var(--border-blue);
}
.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}
.service-card > p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.service-features li {
    font-size: 0.875rem;
    color: var(--text-gray);
    padding-left: 1.25rem;
    position: relative;
}
.service-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.55;
}

/* ── DARK SECTION OVERRIDES ──────────── */
/* Secciones con fondo claro no necesitan overrides, usan estilos base */
/* En sección blanca, las tarjetas usan el fondo light para dar contraste */
.section-white .service-card          { background: var(--bg-light); }
.section-white .service-card:hover    { background: white; }

/* ── NOSOTROS ─────────────────────────── */
.nosotros-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.nosotros-left h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0.75rem 0 1.25rem;
}
.nosotros-left > p {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 2rem;
}
.nosotros-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.nosotros-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}
.nosotros-list li i {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}
.nosotros-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.nosotros-value {
    background: var(--bg-light);
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    transition: all 0.3s var(--ease-out);
}
.nosotros-value:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-blue);
    background: white;
}
.nosotros-value-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.1rem;
}
.nosotros-value h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}
.nosotros-value p {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.55;
    margin: 0;
}

/* ── TESTIMONIOS ────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.testimonial-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-blue);
    border-color: var(--border-blue);
}
.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
}
.testimonial-card blockquote {
    font-size: 0.925rem;
    color: var(--text-gray);
    line-height: 1.75;
    margin: 0;
    font-style: italic;
    flex: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient-h);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}
.testimonial-name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.testimonial-role {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 0.1rem;
}

/* ── TECH SECTION ─────────────────────── */
.tech-section {
    background: linear-gradient(160deg, #080d19 0%, #0f172a 45%, #0d1a35 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}
.tech-section::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    top: -200px; right: -200px;
    pointer-events: none;
}

.tech-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}
.tech-badge span { color: rgba(255,255,255,0.7); font-weight: 500; }
.tech-badge strong { color: white; font-weight: 700; }

.tech-section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}
.tech-intro {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: left;
}
.tech-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
}
.tech-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}
.tech-item-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    color: rgba(255,255,255,0.85);
    transition: all 0.3s ease;
}
.tech-item:hover .tech-item-icon {
    background: rgba(37,99,235,0.35);
    border-color: rgba(37,99,235,0.5);
    color: #93c5fd;
}
.tech-item h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.tech-item p {
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ── CASES ────────────────────────────── */
.cases-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}
.case-row {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: center;
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.case-row-reverse { grid-template-columns: 380px 1fr; }

.case-row-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.case-row-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.case-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: rgba(29,78,216,0.1);
    color: var(--primary);
}
.case-tag-blue { background: rgba(59,130,246,0.10); color: #3b82f6; }
.case-tag-purple { background: rgba(14,165,233,0.10); color: var(--secondary); }

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}
.case-metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.3rem;
}
.case-metric-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.case-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.case-title-link:hover {
    color: var(--primary);
}
.case-title-link i {
    font-size: 0.65em;
    margin-left: 0.4rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.case-title-link:hover i {
    opacity: 1;
}

.case-row-visual {
    background: var(--gradient-soft);
    border-radius: var(--radius-md);
    border: 1px solid rgba(29,78,216,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    min-height: 200px;
}
.case-row-visual i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.7;
}
.case-row-visual span {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ── CONTACT ──────────────────────────── */
/* Two-column layout: form + info panel */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

/* Legacy single-column wrapper (fallback) */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-form {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.form-input {
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-light);
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}
.form-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* Contact form trust pills */
.contact-form-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    background: var(--primary-light);
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-md);
}
.contact-form-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
}
.contact-form-trust span i { font-size: 0.75rem; }

/* Checkbox legal */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}
.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
}
.form-check label {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.5;
    cursor: pointer;
}
.form-check label a { color: var(--primary); text-decoration: underline; }

/* Form disclaimer */
.form-disclaimer {
    font-size: 0.78rem;
    color: var(--text-light);
    text-align: center;
    margin: 0;
}
.form-disclaimer i { color: var(--primary); margin-right: 0.25rem; }

/* Info panel (right column) */
.contact-info-panel {
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    position: sticky;
    top: 100px;
    overflow: hidden;
}
.contact-info-panel::before {
    content: '';
    position: absolute;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(37,99,235,0.25) 0%, transparent 70%);
    top: -80px; right: -60px;
    pointer-events: none;
}
.contact-info-panel h3 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}
.contact-info-panel > p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-info-icon {
    width: 42px; height: 42px;
    background: rgba(37,99,235,0.2);
    border: 1px solid rgba(37,99,235,0.35);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    font-size: 1rem;
    flex-shrink: 0;
}
.contact-info-text strong {
    display: block;
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.contact-info-text a,
.contact-info-text span {
    color: rgba(255,255,255,0.82);
    font-size: 0.88rem;
    text-decoration: none;
    line-height: 1.5;
    display: block;
    font-weight: 500;
}
.contact-info-text a:hover { color: rgba(255,255,255,0.95); }
.contact-info-text small {
    display: block;
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.contact-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 1.75rem 0;
    position: relative;
    z-index: 1;
}
.contact-social {
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}
.contact-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.contact-social a:hover {
    background: rgba(37,99,235,0.25);
    border-color: rgba(37,99,235,0.45);
    color: #93c5fd;
}

/* Legacy contact details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem 0 0;
}
.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}
.contact-detail-item i {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}
.contact-detail-item a,
.contact-detail-item span {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}
.contact-detail-item a:hover { color: var(--primary); }

/* ── FOOTER ───────────────────────────── */
.footer {
    background: var(--navy);
    padding: 5rem 0 0;
    color: rgba(255,255,255,0.55);
}
.footer-top {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 3rem;
}
/* Legacy alias */
.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}
.footer-logo { margin-bottom: 1.25rem; }
.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.75;
    max-width: 300px;
}
.footer-col h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: white; }

/* Social row inside footer brand */
.footer-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.5rem;
}
.footer-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-social a:hover {
    background: rgba(37,99,235,0.25);
    border-color: rgba(37,99,235,0.45);
    color: #93c5fd;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.footer-bottom p { margin: 0; }
.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.footer-bottom-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s ease;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ── REFERENCIAS ──────────────────────── */
.referencias-section {
    background: var(--bg-white);
    padding: 5rem 2rem;
    position: relative;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.referencias-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.referencias-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.referencias-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0.75rem 0 1rem;
    letter-spacing: -0.025em;
}
.referencias-header p {
    font-size: 1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}
.referencias-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
.ref-logo {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.ref-logo:hover {
    background: white;
    border-color: var(--border-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue);
}
.ref-logo img,
.ref-logo svg {
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: opacity 0.25s ease, filter 0.25s ease;
}
.ref-logo:hover img,
.ref-logo:hover svg {
    opacity: 1;
    filter: grayscale(0%);
}

/* ── BACK TO TOP ───────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 998;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-h);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,99,235,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    box-shadow: 0 6px 28px rgba(37,99,235,0.55);
    transform: translateY(-2px);
}

/* ── REVEAL ANIMATION ─────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── IMAGE ENHANCEMENTS ────────────────── */

/* Hero image strip */
.hero-image-strip {
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 520px;
}
.hero-image-strip .hero-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Nosotros section image */
.nosotros-image-wrapper {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(37,99,235,0.12);
    border: 1px solid var(--border-blue);
}
.nosotros-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* Service card images */
.service-card-img {
    margin: -2.5rem -2.5rem 1.5rem;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    z-index: 1;
}
.service-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-out);
}
.service-card:hover .service-card-img img {
    transform: scale(1.05);
}

/* Step card illustrations */
.step-illustration {
    margin: -2rem -1.5rem 1.25rem;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.step-illustration img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-out);
}
.step-card:hover .step-illustration img {
    transform: scale(1.05);
}

/* Case study visual with images */
.case-row-visual--img {
    padding: 0;
    overflow: hidden;
    position: relative;
    background: none;
    border: none;
}
.case-row-visual--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 240px;
    border-radius: var(--radius-md);
    transition: transform 0.5s var(--ease-out);
}
.case-row:hover .case-row-visual--img img {
    transform: scale(1.05);
}
.case-row-visual-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(15,23,42,0.85);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}
.case-row-visual-label i {
    font-size: 0.9rem;
    color: #60a5fa;
}

/* Contact info panel image */
.contact-info-image {
    margin: -2.5rem -2rem 1.5rem;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.contact-info-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* ── FADE-IN ANIMATION ────────────────── */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ───────────────────────── */

/* ── Tablet / small desktop ───────────── */
@media (max-width: 1024px) {
    section { padding: 4.5rem 0; }

    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-image-strip { margin-left: auto; margin-right: auto; }
    .hero-trust-pills { justify-content: center; }
    .hero-content h1 { font-size: 3rem; }
    .hero-main .hero-content h1 { font-size: 2.8rem; }
    .stat-number { font-size: 2.5rem; }

    .section-header h2 { font-size: 2rem; }
    .section-header { margin-bottom: 3rem; }

    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .referencias-grid { grid-template-columns: repeat(4, 1fr); }

    .nosotros-layout { grid-template-columns: 1fr; gap: 3rem; }
    .nosotros-left h2 { font-size: 2rem; }

    .steps-row { grid-template-columns: 1fr; max-width: 420px; gap: 1.5rem; }
    .step-arrow { display: none; }

    .services-grid,
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-section h2 { font-size: 2rem; }

    .footer-top,
    .footer-content { grid-template-columns: 1fr 1fr; }

    .contact-layout { grid-template-columns: 1fr; }
    .contact-info-panel { position: static; }
}

/* ── Mobile landscape / small tablet ──── */
@media (max-width: 768px) {
    section { padding: 3.5rem 0; }

    .case-row,
    .case-row-reverse { grid-template-columns: 1fr; }
    .case-row-reverse .case-row-visual { order: -1; }
    .case-row-visual { min-height: 120px; padding: 1.5rem 2rem; flex-direction: row; justify-content: flex-start; gap: 1.5rem; }

    /* ── Navbar ── */
    .logo-img { height: 60px; margin: -2px 0; }
    .navbar { padding: 0.35rem 0; }
    .nav-container { padding: 0 1.25rem; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1.25rem 1.5rem 1.5rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-light);
    }
    .nav-link {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-light);
        font-size: 1rem;
        color: var(--text-gray);
    }
    .nav-link::after { display: none; }
    .nav-link:last-child { border-bottom: none; padding-top: 1rem; }
    .nav-cta { padding: 0.7rem 1.5rem; text-align: center; }
    .nav-links.open { display: flex; }
    .menu-toggle { display: flex; }

    /* ── Hero ── */
    .hero { padding: 5.5rem 1.25rem 2.5rem; gap: 2.5rem; min-height: auto; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-main .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; }
    .hero-eyebrow { font-size: 0.68rem; padding: 0.35rem 0.85rem 0.35rem 0.65rem; gap: 0.45rem; text-align: left; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .stat-card { padding: 1.25rem 1rem; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.82rem; }
    .stat-sublabel { font-size: 0.7rem; }
    .hero-trust-pills { gap: 0.45rem; }
    .hero-trust-pills span { font-size: 0.72rem; padding: 0.28rem 0.7rem; }
    .partner-badge-hero { padding: 0.6rem 1rem; gap: 0.7rem; flex-wrap: wrap; }
    .partner-badge-hero strong { font-size: 0.72rem; }
    .partner-badge-hero span { font-size: 0.85rem; }
    .hero-form-box { padding: 1.75rem; }

    /* ── Sections global ── */
    .section-container { padding: 0 1.25rem; }
    .section-header { margin-bottom: 2.5rem; }
    .section-header h2 { font-size: 1.75rem; }
    .section-header p { font-size: 1rem; }

    /* ── Partners strip ── */
    .partners-strip { padding: 1.75rem 0; }
    .partners-strip-inner { padding: 0 1.25rem; }
    .partners-strip-label { font-size: 0.65rem; margin-bottom: 1rem; }
    .partners-logos { gap: 0.6rem 1.25rem; }
    .partner-logo { font-size: 0.8rem; gap: 0.4rem; }
    .partner-logo i { font-size: 1.05rem; }

    /* ── Cómo funciona ── */
    .como-funciona { padding: 3.5rem 0; }
    .steps-row { max-width: 100%; gap: 1.25rem; }

    /* ── Services / Solutions ── */
    .services-grid,
    .solutions-grid,
    .tech-grid { grid-template-columns: 1fr; }
    .service-card { padding: 2rem 1.5rem; }
    .service-card-img { margin: -2rem -1.5rem 1.25rem; }

    /* ── Nosotros ── */
    .nosotros-layout { gap: 2.5rem; }
    .nosotros-left h2 { font-size: 1.75rem; }
    .nosotros-left > p { font-size: 0.95rem; }
    .nosotros-values { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .nosotros-value { padding: 1.25rem 1rem; }
    .nosotros-value h4 { font-size: 0.9rem; }
    .nosotros-value p { font-size: 0.8rem; }

    /* ── Tech section ── */
    .tech-section { padding: 4rem 1.25rem; }
    .tech-section h2 { font-size: 1.75rem; }
    .tech-intro { font-size: 1rem; margin-bottom: 2.5rem; }
    .tech-item { padding: 1.5rem; }

    /* ── Referencias ── */
    .referencias-section { padding: 3.5rem 1.25rem; }
    .referencias-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .ref-logo { padding: 1.25rem 0.75rem; }
    .ref-logo img,
    .ref-logo svg { height: 28px; max-width: 100px; }

    /* ── Cases ── */
    .case-row { padding: 1.75rem; gap: 1.5rem; }
    .case-row-visual:not(.case-row-visual--img) { display: none; }
    .case-row-visual--img { min-height: 200px; border-radius: var(--radius-lg); }
    .case-row-visual--img img { min-height: 200px; }
    .case-row-content h3 { font-size: 1.25rem; }
    .case-row-content p { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .case-metrics { gap: 0.75rem; }
    .case-metric-value { font-size: 1.4rem; }
    .case-metric-label { font-size: 0.75rem; }

    /* ── Contact ── */
    .contact-form { padding: 1.75rem; gap: 1.25rem; }
    .contact-form-trust { padding: 0.85rem 1rem; gap: 0.5rem; }
    .contact-form-trust span { font-size: 0.72rem; }
    .contact-info-panel { padding: 2rem 1.5rem; border-radius: var(--radius-lg); }

    /* ── Footer ── */
    .footer { padding: 3.5rem 0 0; }
    .footer-top,
    .footer-content { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.25rem 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; padding: 1.25rem 1.25rem; }
    .footer-bottom-links { justify-content: center; }

    /* ── back-to-top ── */
    .back-to-top { bottom: 1.5rem; right: 1rem; width: 42px; height: 42px; font-size: 1rem; }

    /* ── Testimonials ── */
    .testimonials-grid { grid-template-columns: 1fr; }

    /* ── Image responsive adjustments ── */
    .hero-image-strip { max-width: 100%; }
    .hero-image { height: 180px; }
    .nosotros-image { height: 220px; }
    .service-card-img img { height: 150px; }
    .step-illustration img { height: 120px; }
    .contact-info-image img { height: 150px; }
}

/* ── Mobile portrait ──────────────────── */
@media (max-width: 480px) {
    section { padding: 2.75rem 0; }

    /* ── Navbar ── */
    .logo-img { height: 48px; }

    /* ── Hero ── */
    .hero { padding: 5rem 1rem 2rem; gap: 2rem; }
    .hero-content h1 { font-size: 1.75rem; letter-spacing: -0.02em; }
    .hero-main .hero-content h1 { font-size: 1.65rem; }
    .hero-content p { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .hero-eyebrow { font-size: 0.62rem; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { text-align: center; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .stat-card { padding: 1rem 0.75rem; }
    .stat-number { font-size: 1.75rem; margin-bottom: 0.3rem; }
    .stat-label { font-size: 0.75rem; }
    .stat-sublabel { font-size: 0.65rem; }
    .hero-trust-pills span { font-size: 0.65rem; padding: 0.25rem 0.6rem; }
    .partner-badge-hero { padding: 0.5rem 0.85rem; }
    .partner-badge-hero strong { font-size: 0.68rem; }
    .partner-badge-hero span { font-size: 0.78rem; }

    /* ── Sections ── */
    .section-container { padding: 0 1rem; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header p { font-size: 0.92rem; }

    /* ── Partners strip ── */
    .partners-strip { padding: 1.25rem 0; }
    .partners-strip-inner { padding: 0 1rem; }
    .partners-logos { gap: 0.5rem 1rem; }
    .partner-logo { font-size: 0.72rem; }
    .partner-logo i { font-size: 0.95rem; }

    /* ── Cómo funciona ── */
    .como-funciona { padding: 2.75rem 0; }
    .steps-row { gap: 1rem; }
    .step-card { padding: 1.5rem 1.25rem; }
    .step-number { width: 48px; height: 48px; font-size: 1.15rem; }

    /* ── Service / Solution cards ── */
    .service-card { padding: 1.5rem 1.25rem; }
    .service-card-img { margin: -1.5rem -1.25rem 1.25rem; }
    .service-card-img img { height: 130px; }
    .service-card h3 { font-size: 1.05rem; }
    .service-card > p { font-size: 0.88rem; }

    /* ── Nosotros ── */
    .nosotros-left h2 { font-size: 1.45rem; }
    .nosotros-left > p { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .nosotros-list li { font-size: 0.88rem; gap: 0.6rem; }
    .nosotros-values { grid-template-columns: 1fr; gap: 0.85rem; }
    .nosotros-value { padding: 1.15rem 1rem; }
    .nosotros-image { height: 180px; }

    /* ── Tech section ── */
    .tech-section { padding: 3rem 1rem; }
    .tech-section h2 { font-size: 1.45rem; }
    .tech-intro { font-size: 0.92rem; margin-bottom: 2rem; }
    .tech-item { padding: 1.25rem; }
    .tech-item h3 { font-size: 0.95rem; }
    .tech-item p { font-size: 0.82rem; }

    /* ── Referencias ── */
    .referencias-section { padding: 2.75rem 1rem; }
    .referencias-header h2 { font-size: 1.5rem; }
    .referencias-header p { font-size: 0.9rem; }
    .referencias-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .ref-logo { padding: 1rem 0.5rem; }
    .ref-logo img,
    .ref-logo svg { height: 22px; max-width: 85px; }

    /* ── Cases ── */
    .cases-list { gap: 1.5rem; }
    .case-row { padding: 1.25rem; gap: 1.25rem; }
    .case-row-visual--img { min-height: 160px; }
    .case-row-visual--img img { min-height: 160px; }
    .case-row-content h3 { font-size: 1.1rem; }
    .case-row-content p { font-size: 0.85rem; line-height: 1.7; }
    .case-metrics { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .case-metric-value { font-size: 1.15rem; }
    .case-metric-label { font-size: 0.68rem; }
    .case-tag { font-size: 0.75rem; padding: 0.28rem 0.8rem; }

    /* ── Contact ── */
    .contact-form { padding: 1.25rem; gap: 1rem; }
    .contact-form-trust { padding: 0.7rem 0.85rem; flex-direction: column; text-align: center; }
    .contact-form-trust span { font-size: 0.7rem; justify-content: center; }
    .form-group label { font-size: 0.82rem; }
    .form-input { padding: 0.75rem 0.85rem; font-size: 0.88rem; }
    .btn { padding: 0.75rem 1.5rem; font-size: 0.85rem; }
    .form-check label { font-size: 0.75rem; }
    .form-disclaimer { font-size: 0.72rem; }
    .contact-info-panel { padding: 1.5rem 1.25rem; }
    .contact-info-panel h3 { font-size: 1.15rem; }
    .contact-info-panel > p { font-size: 0.82rem; }

    /* ── Footer ── */
    .footer { padding: 2.5rem 0 0; }
    .footer-top,
    .footer-content { padding: 0 1rem 2rem; gap: 1.75rem; }
    .footer-brand p { font-size: 0.82rem; }
    .footer-col h4 { font-size: 0.85rem; margin-bottom: 0.85rem; }
    .footer-links a { font-size: 0.82rem; }
    .footer-bottom { padding: 1rem; font-size: 0.75rem; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
    .footer-bottom-links a { font-size: 0.75rem; }

    /* ── back-to-top ── */
    .back-to-top { bottom: 1.25rem; right: 0.75rem; width: 38px; height: 38px; font-size: 0.9rem; }

    /* ── Image responsive adjustments ── */
    .hero-image { height: 150px; }
    .nosotros-image-wrapper { margin-bottom: 1.5rem; }
    .step-illustration { margin: -1.5rem -1.25rem 1rem; }
    .step-illustration img { height: 100px; }
    .contact-info-image { margin: -1.5rem -1.25rem 1.25rem; }
    .contact-info-image img { height: 140px; }
}

/* ── Extra-small (below 360px) ────────── */
@media (max-width: 360px) {
    .hero-content h1 { font-size: 1.5rem; }
    .hero-main .hero-content h1 { font-size: 1.4rem; }
    .hero-content p { font-size: 0.88rem; }
    .section-header h2 { font-size: 1.3rem; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.7rem; }
    .hero-trust-pills span { font-size: 0.6rem; }
    .partner-badge-hero { flex-direction: column; text-align: center; }
    .partner-badge-hero svg { display: none; }
    .nosotros-left h2 { font-size: 1.3rem; }
    .tech-section h2 { font-size: 1.25rem; }
    .referencias-grid { grid-template-columns: 1fr 1fr; }
    .ref-logo img,
    .ref-logo svg { height: 18px; }
    .case-metrics { grid-template-columns: 1fr; gap: 0.75rem; }
    .case-metric { text-align: center; }
}

/* ── FORM FEEDBACK (success / error) ─────── */
.form-feedback {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    animation: feedbackSlideIn 0.35s var(--ease-out);
    transition: opacity 0.4s ease;
}
.form-feedback i {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}
.form-feedback strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}
.form-feedback p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.form-feedback--success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}
.form-feedback--success i { color: #22c55e; }

.form-feedback--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}
.form-feedback--error i { color: #ef4444; }

@keyframes feedbackSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
