/* ===================== */
/* 1. CSS Variables      */
/* ===================== */
:root {
    --primary: #1a2a5e;
    --primary-light: #2c4a9e;
    --accent: #e8a035;
    --dark: #0d1117;
    --light: #f4f6f9;
    --text: #333333;
    --text-light: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* ===================== */
/* 2. Base / Reset       */
/* ===================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
}

a {
    color: var(--primary-light);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

section {
    padding: 5rem 0;
}

/* ===================== */
/* 3. Navbar             */
/* ===================== */
.navbar {
    background-color: var(--primary) !important;
    padding: 1rem 0;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.navbar.shrink {
    padding: 0.4rem 0;
    background-color: rgba(26, 42, 94, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-light) !important;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent) !important;
}

/* ===================== */
/* 4. Hero               */
/* ===================== */
.hero-home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
}

.hero-home h1 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-home p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.hero-home .btn {
    margin: 0.5rem;
}

/* Hero interno (paginas secundarias) */
.hero-inner {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero-inner h1 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-inner .breadcrumb {
    justify-content: center;
    margin-bottom: 0;
}

.hero-inner .breadcrumb-item a {
    color: var(--accent);
}

.hero-inner .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

/* ===================== */
/* 5. Buttons            */
/* ===================== */
.btn-accent {
    background-color: var(--accent);
    color: var(--dark);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-accent:hover {
    background-color: #d4912e;
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

.btn-primary-custom {
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* ===================== */
/* 6. Section Styles     */
/* ===================== */
.section-light {
    background-color: var(--light);
}

.section-dark {
    background-color: var(--dark);
    color: var(--text-light);
}

.section-dark h2,
.section-dark h3 {
    color: var(--text-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

/* ===================== */
/* 7. Cards              */
/* ===================== */
.service-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card .card-body {
    padding: 2rem;
}

.service-card .card-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-card .card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
}

/* Stat cards (energia) */
.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-card .stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-card .stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* ===================== */
/* 8. Contact Form       */
/* ===================== */
#contacto {
    background-color: var(--light);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(44, 74, 158, 0.25);
}

.contact-info i {
    color: var(--accent);
    font-size: 1.3rem;
    width: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

/* ===================== */
/* 9. Footer             */
/* ===================== */
footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
}

footer h5 {
    color: var(--text-light);
    font-family: var(--font-heading);
    margin-bottom: 1.2rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent);
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ===================== */
/* 10. Energia page      */
/* ===================== */
.badge-spec {
    background-color: var(--primary-light);
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin: 0.25rem;
}

.phase-card {
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem;
    background: var(--text-light);
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.phase-card h3 {
    font-size: 1.3rem;
}

.lego-unit {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.sector-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* ===================== */
/* 12. CTA Band          */
/* ===================== */
.cta-band {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.cta-band h2 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===================== */
/* 13. Language Switcher */
/* ===================== */
.lang-switcher {
    display: flex;
    align-items: center;
}

.btn-lang {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-lang:hover,
.btn-lang.active {
    color: var(--accent);
}

/* ===================== */
/* 14. Case Cards        */
/* ===================== */
.case-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
}

.case-card .case-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
}

.case-card h5 {
    color: var(--text-light);
}

/* ===================== */
/* 14b. EaaS & Calculadora */
/* ===================== */
.eaas-banner {
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.check-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.check-list li {
    padding: 0.4rem 0;
}

.check-list li i {
    color: var(--accent);
    margin-right: 0.6rem;
}

.compare-table .col-us {
    background-color: rgba(232, 160, 53, 0.12);
    font-weight: 600;
}

.calc-panel {
    background: var(--text-light);
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.calc-range {
    accent-color: var(--accent);
}

.calc-range::-webkit-slider-thumb {
    background-color: var(--accent);
}

.calc-range::-moz-range-thumb {
    background-color: var(--accent);
}

.calc-mini-stat {
    background: var(--light);
    border-radius: 0.5rem;
    padding: 1rem;
    height: 100%;
}

.calc-result-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 575.98px) {
    .eaas-banner {
        font-size: 1.05rem;
        padding: 1rem 1.2rem;
    }

    .calc-panel {
        padding: 1.2rem;
    }

    .calc-result-value {
        font-size: 1.1rem;
    }
}

/* ===================== */
/* 15. Video Section     */
/* ===================== */
#video-dke video,
.lang-video {
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ===================== */
/* 16. Responsive        */
/* ===================== */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-inner h1 {
        font-size: 2rem;
    }

    section {
        padding: 3.5rem 0;
    }

    .hero {
        background-attachment: scroll;
    }

    .badge-spec {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
        display: inline-block;
        margin-bottom: 0.3rem;
    }

    .phase-card {
        padding: 1.2rem 1.2rem;
    }

    .case-card .case-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 575.98px) {
    .hero h1,
    .hero-home h1 {
        font-size: 1.8rem;
    }

    .hero p,
    .hero-home p {
        font-size: 1rem;
    }

    .hero-inner h1 {
        font-size: 1.6rem;
    }

    .hero-inner .lead {
        font-size: 0.95rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .stat-card .stat-number {
        font-size: 1.8rem;
    }

    .stat-card {
        padding: 1rem 0.5rem;
    }

    .stat-card p {
        font-size: 0.8rem;
    }

    .service-card .card-body {
        padding: 1.2rem;
    }

    .service-card .card-icon {
        font-size: 2.2rem;
    }

    .badge-spec {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .case-card {
        padding: 1.2rem 1rem;
    }

    .case-card .case-number {
        font-size: 1.5rem;
    }

    .cta-band {
        padding: 2.5rem 0;
    }

    .cta-band h2 {
        font-size: 1.4rem;
    }

    .phase-card {
        padding: 1rem 1rem;
    }

    .phase-card h4 {
        font-size: 1.1rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    footer {
        text-align: center;
    }
}


/* ============================================================ */
/* 17. Premium layer (visual upgrade pass)                       */
/* ============================================================ */
:root {
    --accent-ink: #8f5a08;           /* amber dark enough for small text on light bg */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body { counter-reset: sec; overflow-x: hidden; }

::selection { background: var(--accent); color: var(--dark); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Scroll progress bar ---- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--accent), #f5c46b);
    z-index: 2000;
    pointer-events: none;
}

/* ---- Glassy navbar ---- */
.navbar {
    background: linear-gradient(180deg, rgba(10, 16, 38, 0.82), rgba(10, 16, 38, 0.45)) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: padding 0.35s var(--ease-out), background 0.35s ease, box-shadow 0.35s ease;
}

.navbar.shrink {
    background: rgba(14, 22, 54, 0.82) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: rgba(232, 160, 53, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.navbar-nav .nav-link {
    position: relative;
    letter-spacing: 0.02em;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 1rem; right: 1rem; bottom: 0.2rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.35s var(--ease-out);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(10, 16, 38, 0.94);
        border-radius: 0.5rem;
        padding: 0.75rem 1rem;
        margin-top: 0.5rem;
    }
    .navbar-nav .nav-link::after { left: 1rem; right: auto; width: 2rem; }
}

/* ---- Hero (home + inner): cinematic dark with grid, glow and fiber lines ---- */
.hero-home,
.hero-inner,
.section-dark,
.cta-band {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-home {
    background:
        radial-gradient(ellipse 60% 55% at 82% 8%, rgba(44, 74, 158, 0.55), transparent 62%),
        radial-gradient(ellipse 45% 45% at 8% 92%, rgba(232, 160, 53, 0.13), transparent 60%),
        linear-gradient(160deg, #16235a 0%, #0b1226 58%, #070b17 100%);
}

.hero-inner {
    background:
        radial-gradient(ellipse 55% 90% at 85% 0%, rgba(44, 74, 158, 0.5), transparent 65%),
        radial-gradient(ellipse 40% 70% at 5% 100%, rgba(232, 160, 53, 0.12), transparent 60%),
        linear-gradient(160deg, #16235a 0%, #0b1226 70%, #080d1c 100%);
}

.section-dark {
    background:
        radial-gradient(ellipse 50% 60% at 90% 0%, rgba(44, 74, 158, 0.35), transparent 65%),
        linear-gradient(180deg, #0d1117 0%, #0a0f1d 100%);
}

.cta-band {
    background:
        radial-gradient(ellipse 50% 120% at 50% 0%, rgba(232, 160, 53, 0.14), transparent 60%),
        linear-gradient(160deg, #1a2a5e 0%, #101a3d 100%);
}

/* grid overlay */
.hero-home::before,
.hero-inner::before,
.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 20%, transparent 78%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 20%, transparent 78%);
    pointer-events: none;
}

/* cursor-follow glow (position set by effects.js; static fallback at 70%/30%) */
.hero-home::after,
.hero-inner::after,
.section-dark::after,
.cta-band::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(232, 160, 53, 0.13), transparent 60%);
    opacity: var(--glow-o, 0.55);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hero-home > .container,
.hero-inner > .container,
.section-dark > .container,
.cta-band > .container { position: relative; z-index: 1; }

/* fiber / energy pulses */
.hero-fx {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero-fx i {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.hero-fx i:nth-child(1) { top: 24%; }
.hero-fx i:nth-child(2) { top: 56%; }
.hero-fx i:nth-child(3) { top: 82%; }

.hero-fx i::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 1px;
    width: 18%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 12px 1px rgba(232, 160, 53, 0.55);
    animation: fx-pulse 9s linear infinite;
}

.hero-fx i:nth-child(2)::after { animation-duration: 12s; animation-delay: -4s; }
.hero-fx i:nth-child(3)::after { animation-duration: 10s; animation-delay: -7s; }

@keyframes fx-pulse {
    from { transform: translateX(-100%); }
    to   { transform: translateX(560%); }
}

/* display typography */
.hero-home h1 {
    font-size: clamp(2.4rem, 6.2vw, 4.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-wrap: balance;
}

.hero-home h1::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    margin: 1.5rem auto 0;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 18px rgba(232, 160, 53, 0.6);
}

.hero-home p {
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82);
    margin: 1.5rem 0 2.25rem;
}

.hero-inner h1 {
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    letter-spacing: -0.015em;
    line-height: 1.12;
    text-wrap: balance;
}

.hero-inner .lead { color: rgba(255, 255, 255, 0.82); }

/* hero entrance */
.hero-home .container > *,
.hero-inner .container > * {
    animation: hero-in 0.9s var(--ease-out) both;
}
.hero-home .container > *:nth-child(2),
.hero-inner .container > *:nth-child(2) { animation-delay: 0.12s; }
.hero-home .container > *:nth-child(n+3),
.hero-inner .container > *:nth-child(n+3) { animation-delay: 0.24s; }

@keyframes hero-in {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

/* ---- Buttons ---- */
.btn-accent {
    box-shadow: 0 6px 22px rgba(232, 160, 53, 0.28);
    letter-spacing: 0.02em;
}

.btn-accent:hover {
    box-shadow: 0 10px 30px rgba(232, 160, 53, 0.45);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.btn-outline-light:hover { transform: translateY(-2px); }

/* ---- Numbered section labels: "01 / ..." (CSS counter, no text to translate) ---- */
section .section-title:not(.mt-5) { counter-increment: sec; }

section .section-title::before {
    content: counter(sec, decimal-leading-zero) "  /";
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.28em;
    color: var(--accent-ink);
    margin-bottom: 0.75rem;
}

section .section-title.mt-5::before { content: none; }

.section-dark .section-title::before,
.cta-band .section-title::before { color: var(--accent); }

.section-title h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.section-title p {
    max-width: 680px;
    margin: 1rem auto 0;
    color: #5b6478;
}

.section-dark .section-title p { color: rgba(255, 255, 255, 0.72); }

#sobre-nosotros .lead { font-size: 1.25rem; line-height: 1.7; color: #2a3350; }

/* ---- Cards ---- */
.service-card {
    position: relative;
    border: 1px solid rgba(26, 42, 94, 0.07);
    background: #fff;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #f5c46b);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.5s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(232, 160, 53, 0.45);
    box-shadow: 0 18px 40px rgba(26, 42, 94, 0.16), 0 0 0 1px rgba(232, 160, 53, 0.15);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem; height: 4.5rem;
    font-size: 2.2rem;
    border-radius: 50%;
    background: rgba(232, 160, 53, 0.12);
    transition: transform 0.4s var(--ease-out), background-color 0.3s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.08) rotate(-4deg);
    background: rgba(232, 160, 53, 0.22);
}

.phase-card {
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.phase-card:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 28px rgba(26, 42, 94, 0.12);
}

.lego-unit {
    background: linear-gradient(145deg, var(--primary-light), var(--primary));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(26, 42, 94, 0.25);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.lego-unit:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(26, 42, 94, 0.32); }

.calc-panel {
    border: 1px solid rgba(26, 42, 94, 0.06);
    box-shadow: 0 10px 40px rgba(26, 42, 94, 0.08);
}

.calc-mini-stat { border-left: 3px solid var(--accent); }

.eaas-banner {
    background: linear-gradient(120deg, #1a2a5e, #101a3d);
    border: 1px solid rgba(232, 160, 53, 0.35);
    box-shadow: 0 10px 30px rgba(26, 42, 94, 0.25);
}

/* ---- Stats: big confident numbers ---- */
.stat-card {
    container-type: inline-size;
    position: relative;
    padding: 2rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -1px; left: 50%;
    width: 48px; height: 3px;
    margin-left: -24px;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(232, 160, 53, 0.7);
}

.stat-card .stat-number {
    font-size: clamp(1.15rem, 9.5cqw, 2.8rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #ffd28a, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.75rem;
}

.case-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.35s var(--ease-out), border-color 0.35s ease, background-color 0.35s ease;
}

.case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 160, 53, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

/* ---- Spec badges ---- */
.badge-spec {
    background: linear-gradient(135deg, #2c4a9e, #1a2a5e);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 3px 10px rgba(26, 42, 94, 0.2);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.badge-spec::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    margin-right: 0.5rem;
    vertical-align: middle;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.badge-spec:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(26, 42, 94, 0.3); }

/* ---- Feature lists ---- */
.check-list li {
    border-bottom: 1px solid rgba(26, 42, 94, 0.08);
    padding: 0.6rem 0;
}
.check-list li:last-child { border-bottom: 0; }

/* ---- Process timeline (#proceso) ---- */
.process-step {
    position: relative;
    height: 100%;
    padding: 2.25rem 1.5rem 1.5rem;
    background: #fff;
    border-top: 2px solid rgba(26, 42, 94, 0.14);
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: 0 6px 22px rgba(26, 42, 94, 0.07);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(26, 42, 94, 0.15);
}

/* node on the line */
.process-step::before {
    content: '';
    position: absolute;
    top: -8px; left: 1.5rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--light), 0 0 0 5px rgba(232, 160, 53, 0.45), 0 0 16px rgba(232, 160, 53, 0.55);
    z-index: 1;
}

/* connector to the next step in the same row */
.process-step::after {
    content: '';
    position: absolute;
    top: -2px;
    left: calc(1.5rem + 14px);
    width: calc(100% + var(--bs-gutter-x, 1.5rem) - 1.5rem - 14px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(232, 160, 53, 0.25));
    z-index: 0;
}

.row > [class*="col-"]:last-child > .process-step::after { content: none; }

@media (min-width: 992px) {
    .row > .col-lg-4:nth-child(3n) > .process-step::after { content: none; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .row > .col-md-6:nth-child(2n) > .process-step::after { content: none; }
}

@media (max-width: 767.98px) {
    .process-step::after { content: none; }
}

.process-num {
    position: absolute;
    top: 0.9rem; right: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(26, 42, 94, 0.22);
    letter-spacing: -0.02em;
}

.process-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem; height: 3rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--accent-ink);
    background: rgba(232, 160, 53, 0.14);
    border-radius: 0.75rem;
}

.process-step h4 { color: var(--primary); margin-bottom: 0.5rem; }

/* ---- Contact ---- */
.contact-info {
    background: linear-gradient(160deg, #16235a, #0b1226);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 14px 40px rgba(26, 42, 94, 0.25);
}

.contact-info h4 { color: #fff; }
.contact-info a { color: #fff; text-decoration: none; }
.contact-info a:hover { color: var(--accent); }
.contact-info hr { border-color: rgba(255, 255, 255, 0.2); opacity: 1; }

/* ---- Footer ---- */
footer {
    position: relative;
    background: linear-gradient(180deg, #0a0f1d, #070b14);
    padding-top: 4rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

footer ul a { display: inline-block; transition: color 0.3s ease, transform 0.3s var(--ease-out); }
footer ul a:hover { transform: translateX(4px); }

/* ---- Scroll reveal (only when JS enabled) ---- */
.js-fx .reveal {
    opacity: 0;
    translate: 0 28px;
    transition:
        opacity 0.8s var(--ease-out) var(--d, 0s),
        translate 0.8s var(--ease-out) var(--d, 0s),
        transform 0.4s var(--ease-out),
        box-shadow 0.4s ease,
        border-color 0.4s ease,
        background-color 0.35s ease;
}

.js-fx .reveal.in {
    opacity: 1;
    translate: 0 0;
}

/* ---- Small screens ---- */
@media (max-width: 575.98px) {
    .stat-card { padding: 1.25rem 0.5rem; }
    .stat-card .stat-label { font-size: 0.7rem; letter-spacing: 0.08em; }
    .process-num { font-size: 2.1rem; }
    .contact-info { padding: 1.5rem; }
    .hero-home .btn { width: 100%; max-width: 20rem; }
    section .section-title::before { font-size: 0.7rem; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
    .js-fx .reveal { opacity: 1; translate: 0 0; }
    .hero-fx { display: none; }
    .scroll-progress { display: none; }
}

/* ---- Brand logo (designed for a white background) ---- */
.brand-logo {
    display: block;
    height: 48px;
    width: auto;
    padding: 4px 10px;
    background: #fff;
    border-radius: 8px;
    transition: height 0.35s var(--ease-out);
}

.navbar.shrink .brand-logo { height: 40px; }

footer h5 .brand-logo {
    display: inline-block;
    height: 56px;
}

@media (max-width: 576px) {
    .brand-logo { height: 40px; }
}

/* ============================================================ */
/* 18. Legal page + cookie notice                               */
/* ============================================================ */
.legal-page {
    padding: 3rem 0 4rem;
}

.legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-family: var(--font-heading);
}

.legal-toc a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
}

.legal-block {
    padding-top: 2rem;
    scroll-margin-top: 90px;
}

.legal-block h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.legal-block h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: 1.5rem;
}

.legal-block a {
    color: var(--primary-light);
}

footer .footer-legal {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.cookie-notice {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--dark);
    color: rgba(255, 255, 255, 0.85);
    border-top: 3px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    font-size: 0.9rem;
}

.cookie-notice a {
    color: var(--accent);
}

.cookie-notice .btn {
    flex-shrink: 0;
}

@media (max-width: 575px) {
    .cookie-notice {
        flex-direction: column;
        align-items: stretch;
    }
}

.form-privacy {
    font-size: 0.75rem;
    line-height: 1.45;
    text-align: left;
}
