/* ============================================
   Kemeldev — Design System Corporativo
   Paleta: Kemel Deep Blue · Midnight Navy · Steel Blue · Accent Orange · Clean White
   Estilo: Profesional sobrio (Stripe / Linear)
   ============================================ */

:root {
    /* Paleta base */
    --kemel-deep-blue: #1E3A8A;
    --midnight-navy:   #0F172A;
    --steel-blue:      #1E40AF;
    --accent-orange:   #F97316;
    --clean-white:     #FFFFFF;

    /* Aliases semánticos */
    --color-primary:        var(--kemel-deep-blue);
    --color-primary-hover:  var(--steel-blue);
    --color-accent:         var(--accent-orange);
    --color-accent-hover:   #EA670C;
    --color-surface:        var(--clean-white);
    --color-surface-alt:    #F8FAFC;   /* slate-50 */
    --color-surface-dark:   var(--midnight-navy);

    /* Texto */
    --text-primary:   #0F172A;   /* sobre fondo claro */
    --text-secondary: #475569;   /* slate-600 */
    --text-muted:     #64748B;   /* slate-500 */
    --text-on-dark:   #F1F5F9;   /* sobre fondo oscuro */
    --text-on-dark-2: #CBD5E1;

    /* Bordes / lineas */
    --border-soft:   #E2E8F0;   /* slate-200 */
    --border-medium: #CBD5E1;   /* slate-300 */
    --border-strong: #94A3B8;   /* slate-400 */

    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);
    --shadow-accent: 0 8px 24px rgba(249, 115, 22, 0.28);
    --shadow-primary: 0 8px 24px rgba(30, 58, 138, 0.18);

    /* Radios */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Tipografía */
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Gradientes (solo donde aportan: hero, banda CTA) */
    --gradient-primary: linear-gradient(135deg, var(--kemel-deep-blue) 0%, var(--steel-blue) 60%, #2563EB 100%);
    --gradient-dark:    linear-gradient(160deg, var(--midnight-navy) 0%, #1E293B 60%, var(--kemel-deep-blue) 140%);
    --gradient-accent:  linear-gradient(135deg, var(--accent-orange) 0%, #FB923C 100%);

    /* Layout */
    --container-max: 1200px;
    --section-py: clamp(64px, 8vw, 112px);
}

/* ============================================
   RESET / BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--color-surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

p { color: var(--text-secondary); }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--color-primary-hover); }

img { max-width: 100%; height: auto; display: block; }

::selection {
    background: var(--accent-orange);
    color: var(--clean-white);
}

/* Scrollbar discreta */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-surface-alt); }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    padding: 0.75rem 0;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled,
.navbar:has(.nav-link.active) {
    /* placeholder, real scrolled state injected by JS */
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border-soft);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary) !important;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s ease;
}
.navbar-brand:hover { opacity: 0.85; color: var(--color-primary) !important; }

.navbar-brand img {
    /* Logo circular, fondo transparente */
    height: 44px;
    width: 44px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    transition: transform 0.25s ease;
}
.navbar-brand:hover img { transform: rotate(-4deg) scale(1.05); }

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}
.nav-link:hover { color: var(--color-primary) !important; background: var(--color-surface-alt); }
.nav-link.active {
    color: var(--color-primary) !important;
    background: rgba(30, 58, 138, 0.08);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--accent-orange);
    border-radius: var(--radius-pill);
}

.navbar-toggler {
    border: 1px solid var(--border-medium);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%231E3A8A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ============================================
   BOTONES
   ============================================ */

.btn-primary-gradient,
.btn-outline-gradient,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.005em;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

/* CTA principal: naranja sólido (Accent Orange) */
.btn-primary-gradient {
    background: var(--accent-orange);
    color: var(--clean-white);
    box-shadow: var(--shadow-accent);
}
.btn-primary-gradient:hover {
    background: var(--color-accent-hover);
    color: var(--clean-white);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.36);
}
.btn-primary-gradient:active { transform: translateY(0); }

/* Botón secundario: outline azul corporativo */
.btn-outline-gradient {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--border-medium);
}
.btn-outline-gradient:hover {
    background: var(--color-primary);
    color: var(--clean-white);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

/* Botón fantasma para fondos oscuros */
.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--clean-white);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--clean-white);
}

.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* Botones bootstrap btn-outline-primary (usados en contacto) */
.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--border-medium);
    background: var(--clean-white);
    font-weight: 600;
    transition: all 0.18s ease;
}
.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--clean-white);
}

/* ============================================
   HERO
   ============================================ */

.hero-section {
    position: relative;
    padding: clamp(120px, 16vw, 180px) 0 clamp(80px, 10vw, 120px);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30, 58, 138, 0.06), transparent 70%),
        radial-gradient(ellipse 40% 40% at 90% 30%, rgba(249, 115, 22, 0.05), transparent 70%),
        var(--color-surface);
    overflow: hidden;
}

/* Grid sutil de fondo */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30, 58, 138, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 75%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(30, 58, 138, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(30, 58, 138, 0.15);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 2rem;
}

/* Hero variantes oscuras (CTA banda final, hero secundario dark) */
.hero-section.hero-dark {
    background: var(--gradient-dark);
    color: var(--text-on-dark);
}
.hero-section.hero-dark::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}
.hero-section.hero-dark .hero-title { color: var(--clean-white); }
.hero-section.hero-dark .hero-subtitle { color: var(--text-on-dark-2); }
.hero-section.hero-dark .hero-eyebrow {
    background: rgba(255, 255, 255, 0.1);
    color: var(--clean-white);
    border-color: rgba(255, 255, 255, 0.18);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: var(--section-py) 0;
    position: relative;
}

.section-alt { background: var(--color-surface-alt); }

.section-dark {
    background: var(--gradient-dark);
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
}
.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 20% 30%, rgba(30, 64, 175, 0.35), transparent 70%),
        radial-gradient(ellipse 40% 40% at 85% 70%, rgba(249, 115, 22, 0.12), transparent 70%);
    pointer-events: none;
}
.section-dark > .container { position: relative; z-index: 1; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6 { color: var(--clean-white); }
.section-dark p { color: var(--text-on-dark-2); }
.section-dark .section-title { color: var(--clean-white); }
.section-dark .section-subtitle { color: var(--text-on-dark-2); }

.section-eyebrow {
    display: inline-block;
    color: var(--accent-orange);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

/* ============================================
   CARDS
   ============================================ */

.card-custom {
    background: var(--clean-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xs);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 58, 138, 0.18);
}

/* En section-dark las cards mantienen claridad para legibilidad */
.section-dark .card-custom {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: var(--text-on-dark);
}
.section-dark .card-custom:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.section-dark .card-custom .card-title { color: var(--clean-white); }
.section-dark .card-custom .card-text { color: var(--text-on-dark-2); }

.card-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(30, 58, 138, 0.08);
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.card-custom:hover .card-icon {
    background: var(--accent-orange);
    color: var(--clean-white);
    transform: scale(1.05) rotate(-3deg);
}

.section-dark .card-icon {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0;
}

/* Card destacada con borde naranja superior */
.card-feature {
    position: relative;
    overflow: hidden;
}
.card-feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.card-feature:hover::before { transform: scaleX(1); }

/* ============================================
   BADGES & PILLS
   ============================================ */

.badge.bg-gradient,
.badge-orange {
    background: rgba(249, 115, 22, 0.12) !important;
    color: var(--accent-orange) !important;
    border: 1px solid rgba(249, 115, 22, 0.25);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0;
}

.badge-blue {
    background: rgba(30, 58, 138, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(30, 58, 138, 0.2);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */

.text-gradient {
    color: var(--color-primary);
    font-weight: 600;
}

.text-accent { color: var(--accent-orange) !important; }
.text-primary-blue { color: var(--color-primary) !important; }
.text-muted-custom { color: var(--text-muted) !important; }

/* Asegurar que .text-muted estándar de bootstrap se vea bien */
.text-muted { color: var(--text-muted) !important; }
.text-white-50 { color: var(--text-on-dark-2) !important; }

/* ============================================
   STATS BAND
   ============================================ */

.stats-band {
    background: var(--gradient-dark);
    color: var(--clean-white);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(249, 115, 22, 0.08), transparent 70%);
}
.stats-band .container { position: relative; }

.stat-item { text-align: center; padding: 1rem; }
.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--clean-white);
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-value .accent { color: var(--accent-orange); -webkit-text-fill-color: var(--accent-orange); }
.stat-label {
    color: var(--text-on-dark-2);
    font-size: 0.92rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

/* ============================================
   PROCESS STEPS
   ============================================ */

.process-step {
    position: relative;
    padding: 2rem 1.5rem 1.5rem;
    background: var(--clean-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}
.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 58, 138, 0.2);
}
.process-number {
    position: absolute;
    top: -18px;
    left: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--clean-white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
}

/* ============================================
   FORMS
   ============================================ */

.form-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control,
.form-select {
    width: 100%;
    background: var(--clean-white);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.12);
    background: var(--clean-white);
}
.form-control:hover,
.form-select:hover { border-color: var(--border-medium); }

textarea.form-control { resize: vertical; min-height: 110px; }

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border-radius: var(--radius-md);
    border: 1px solid;
    padding: 1rem 1.15rem;
    font-size: 0.95rem;
}
.alert-success {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}
.alert-info {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1E40AF;
}
.alert-warning {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #92400E;
}
.alert-danger {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

/* ============================================
   RATING STARS (testimonio)
   ============================================ */

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}
.rating-stars input { display: none; }
.rating-stars label {
    font-size: 1.75rem;
    color: var(--border-medium);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.15s ease;
}
.rating-stars label:hover { transform: scale(1.1); }
.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: var(--accent-orange);
}

/* Estrellas de display (testimonios mostrados) */
.fa-star.text-warning { color: var(--accent-orange) !important; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--midnight-navy);
    color: var(--text-on-dark-2);
    padding: 4rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.footer h5 {
    color: var(--clean-white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}
.footer h5 img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.footer .text-gradient { color: var(--clean-white); }

.footer-text {
    color: var(--text-on-dark-2);
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.footer-text i { color: var(--accent-orange); width: 16px; }

.footer-link {
    color: var(--text-on-dark-2);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    font-size: 0.92rem;
}
.footer-link:hover { color: var(--accent-orange); padding-left: 4px; }

.footer hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 1.5rem 0;
}

.footer-bottom {
    color: var(--text-on-dark-2);
    font-size: 0.88rem;
}

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark-2);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}
.social-link:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--clean-white);
    transform: translateY(-2px);
}

/* ============================================
   ANIMATIONS (sutiles, on-scroll)
   ============================================ */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content > * {
    animation: fadeUp 0.7s ease both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }
.hero-content > *:nth-child(5) { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================
   UTILIDADES
   ============================================ */

.container { max-width: var(--container-max); }

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
    border: 0;
    margin: 0;
}

.trust-strip {
    background: var(--color-surface-alt);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 2rem 0;
}
.trust-strip-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background 0.2s ease, transform 0.2s ease;
}
.trust-item:hover { background: var(--clean-white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.trust-item i { color: var(--color-primary); font-size: 1.4rem; }
.trust-item span { font-size: 0.85rem; font-weight: 500; }

/* Listas con check */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent-orange);
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Highlight box (resaltado de resultados) */
.highlight-box {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.04), rgba(249, 115, 22, 0.04));
    border: 1px solid rgba(30, 58, 138, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 0.98rem;
}
.highlight-box i { color: var(--accent-orange); font-size: 1.25rem; }

/* Result number (KPIs en cards de proyecto) */
.result-number {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    display: block;
}
.result-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ============================================
   CASE CARDS (section "Casos de éxito" en index)
   ============================================ */

/* Masonry-style: cada card adopta su altura natural según contenido */
.case-grid {
    column-count: 3;
    column-gap: 1.5rem;
}
@media (max-width: 991px) { .case-grid { column-count: 2; } }
@media (max-width: 575px) { .case-grid { column-count: 1; } }

.case-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
    /* Encajar dentro de las columnas CSS */
    width: 100%;
    margin: 0 0 1.5rem 0;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}
.case-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.case-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.45);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}
.case-card:hover::before { transform: scaleX(1); }

.case-card__head { display: flex; flex-direction: column; gap: 0.6rem; }
.case-card__client {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.32rem 0.7rem;
    background: rgba(249, 115, 22, 0.14);
    color: var(--accent-orange);
    border: 1px solid rgba(249, 115, 22, 0.32);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.case-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--clean-white);
    margin: 0;
    line-height: 1.25;
}

.case-card__kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.case-card__kpi {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.42rem 0.75rem;
    background: rgba(30, 64, 175, 0.25);
    border: 1px solid rgba(99, 145, 255, 0.35);
    border-radius: 999px;
    color: var(--clean-white);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
}
.case-card__kpi i { color: var(--accent-orange); font-size: 0.78rem; }

.case-card__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.case-card__col { display: flex; flex-direction: column; gap: 0.35rem; }
.case-card__col-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.case-card__col-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.case-card__col-label--before { color: rgba(255, 255, 255, 0.55); }
.case-card__col-label--after  { color: var(--accent-orange); }
.case-card__col-text {
    margin: 0;
    color: var(--text-on-dark-2);
    font-size: 0.93rem;
    line-height: 1.55;
}

.case-card__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-top: auto;
}
.case-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    background: var(--accent-orange);
    color: var(--clean-white);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.case-card__link:hover {
    background: #ea6a14;
    color: var(--clean-white);
    transform: translateX(2px);
}
.case-card__link i { transition: transform 0.2s ease; }
.case-card__link:hover i { transform: translateX(2px); }
.case-card__link--ghost {
    background: transparent;
    color: var(--clean-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.case-card__link--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(249, 115, 22, 0.55);
    color: var(--clean-white);
}

@media (min-width: 768px) {
    .case-card__body { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
    .case-card__body .case-card__col + .case-card__col {
        padding-left: 1.25rem;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .navbar { padding: 0.6rem 0; }
    .navbar-collapse { background: var(--clean-white); margin-top: 0.5rem; padding: 1rem; border-radius: var(--radius-md); border: 1px solid var(--border-soft); }
    .nav-link { padding: 0.6rem 0.8rem !important; }
    .nav-link.active::after { display: none; }
    .hero-section { padding: clamp(100px, 14vw, 140px) 0 clamp(60px, 8vw, 90px); }
}

@media (max-width: 575px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn-primary-gradient,
    .hero-actions .btn-outline-gradient { width: 100%; }
    .card-custom { padding: 1.5rem; }
}

/* ============================================
   ADMIN — Compatibilidad mínima
   El panel admin no se rediseña pero hereda colores básicos.
   ============================================ */

.admin-panel { background: var(--color-surface-alt); }
