:root {
    --sl-bg:         #070f1c;
    --sl-navy:       #0c1e38;
    --sl-navy-mid:   #132948;
    --sl-blue:       #1e4db7;
    --sl-blue-d:     #163a8c;
    --sl-gold:       #c49a00;
    --sl-gold-light: #f0c040;
    --sl-gold-pale:  #fef3c7;
    --sl-gray:       #f6f5f1;
    --sl-dark:       #050c18;
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:     0 8px 32px rgba(0,0,0,0.13);
    --radius:        12px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1e293b;
    overflow-x: hidden;
}

/* ── Skip link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--sl-navy);
    color: white;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 var(--radius) 0;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Navbar ── */
.site-nav {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
    padding: 10px 0;
}
.site-nav .navbar-brand img { height: 42px; width: auto; }
.site-nav .nav-back {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.site-nav .nav-back:hover { color: var(--sl-gold); }
.site-nav .btn-nav-call {
    background: var(--sl-navy);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.site-nav .btn-nav-call:hover {
    background: var(--sl-gold);
    color: var(--sl-dark);
    transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
    min-height: 90vh;
    background:
        linear-gradient(140deg, rgba(5,12,24,0.94) 0%, rgba(12,30,56,0.90) 55%, rgba(30,77,183,0.75) 100%),
        url('../img/portfolio/smartlex.jpeg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding: 110px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
/* Gold radial blob */
.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(196,154,0,0.18) 0%, transparent 65%);
    bottom: -200px;
    left: -150px;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

/* SmartLex logotype */
.smartlex-brand {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.4rem;
}
.sl-logotype {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: white;
}
.sl-lex {
    color: var(--sl-gold-light);
}
.sl-by {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero .badge-tag {
    display: inline-block;
    background: rgba(196,154,0,0.15);
    border: 1px solid rgba(240,192,64,0.35);
    color: #f0c040;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 1.2rem;
    letter-spacing: -0.025em;
}
.hero-highlight {
    background: linear-gradient(90deg, var(--sl-gold-light), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .lead {
    font-size: clamp(1rem, 2vw, 1.18rem);
    opacity: 0.85;
    max-width: 620px;
    margin: 0 auto 2.4rem;
    line-height: 1.68;
}
.hero-pills {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.6rem;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.8);
    font-size: 0.83rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 50px;
}
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sl-gold);
    color: var(--sl-dark);
    padding: 15px 38px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 24px rgba(196,154,0,0.45);
}
.btn-hero:hover {
    background: var(--sl-gold-light);
    color: var(--sl-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(196,154,0,0.55);
}
.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.42);
    padding: 13px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.btn-hero-outline:hover {
    background: white;
    color: var(--sl-navy);
    border-color: white;
    transform: translateY(-2px);
}

/* ── Secciones ── */
.page-section { padding: 90px 0; }
.bg-sl-gray   { background: var(--sl-gray); }
.bg-white     { background: #fff; }

/* Dark section (servicios) */
.bg-sl-dark-section {
    background: var(--sl-navy);
    color: white;
}

/* ── Títulos (secciones claras) ── */
.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--sl-blue);
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 900;
    color: var(--sl-navy);
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}
.section-title-line {
    width: 52px;
    height: 4px;
    background: var(--sl-gold);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}
.section-title-line.left { margin-left: 0; }
.section-sub {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto 2.8rem;
    line-height: 1.7;
}

/* ── Títulos (sección oscura — Servicios) ── */
.section-eyebrow-dark {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--sl-gold-light);
    margin-bottom: 0.5rem;
}
.section-title-dark {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 900;
    color: white;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}
.section-title-line-gold {
    width: 52px;
    height: 4px;
    background: var(--sl-gold);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}
.section-sub-dark {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 2.8rem;
    line-height: 1.7;
}

/* ── Audience cards (Para quién) ── */
.audience-card {
    background: white;
    border-radius: var(--radius);
    padding: 2.4rem 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border-top: 4px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s, border-top-color 0.3s;
}
.audience-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--sl-gold);
}
.audience-card--featured {
    border-top-color: var(--sl-gold);
    box-shadow: 0 4px 24px rgba(196,154,0,0.15);
}
.audience-card--featured:hover {
    box-shadow: 0 16px 48px rgba(196,154,0,0.22);
}
.audience-icon {
    width: 60px;
    height: 60px;
    background: rgba(196,154,0,0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--sl-gold);
    margin-bottom: 1.2rem;
    transition: background 0.3s, color 0.3s;
}
.audience-card:hover .audience-icon {
    background: var(--sl-gold);
    color: white;
}
.audience-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sl-navy);
    margin-bottom: 1rem;
}
.audience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.audience-list li {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}
.audience-list li:last-child { border-bottom: none; }
.audience-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sl-gold);
}

/* ── Service cards (sección oscura) ── */
.service-card-dark {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem;
    height: 100%;
    border-top: 3px solid transparent;
    transition: transform 0.3s, background 0.3s, border-top-color 0.3s;
}
.service-card-dark:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.08);
    border-top-color: var(--sl-gold);
}
.service-icon-dark {
    width: 58px;
    height: 58px;
    background: rgba(196,154,0,0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--sl-gold-light);
    margin-bottom: 1.2rem;
    transition: background 0.3s, color 0.3s;
}
.service-card-dark:hover .service-icon-dark {
    background: var(--sl-gold);
    color: var(--sl-dark);
}
.service-card-dark h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}
.service-card-dark p {
    color: rgba(255,255,255,0.62);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* ── Proceso / Steps ── */
.process-step {
    position: relative;
    padding-left: 90px;
    margin-bottom: 3rem;
}
.process-step:last-child { margin-bottom: 0; }
.step-badge {
    position: absolute;
    left: 0; top: 0;
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--sl-navy) 0%, var(--sl-blue) 100%);
    border: 2px solid var(--sl-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--sl-gold-light);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(196,154,0,0.25);
}
.process-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sl-navy);
    margin-bottom: 0.5rem;
    margin-top: 0.6rem;
}
.process-step p {
    color: #64748b;
    font-size: 0.97rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Por qué SmartLex ── */
.why-card {
    background: white;
    border-radius: var(--radius);
    padding: 2.4rem 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border-left: 5px solid var(--sl-gold);
    transition: transform 0.3s, box-shadow 0.3s;
}
.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.why-icon {
    font-size: 2.2rem;
    color: var(--sl-gold);
    margin-bottom: 1.1rem;
    display: block;
}
.why-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sl-navy);
    margin-bottom: 0.75rem;
}
.why-card p {
    color: #64748b;
    font-size: 0.96rem;
    line-height: 1.7;
    margin: 0;
}

/* ── FAQ Accordion ── */
.accordion-button {
    font-weight: 600;
    color: var(--sl-navy);
    background: white;
    font-size: 1rem;
}
.accordion-button:not(.collapsed) {
    background: var(--sl-gold-pale);
    color: var(--sl-navy);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(196,154,0,0.25);
}
.accordion-button::after {
    filter: invert(45%) sepia(80%) saturate(500%) hue-rotate(25deg);
}
.accordion-item {
    border: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 0.5rem;
    border-radius: var(--radius) !important;
    overflow: hidden;
}
.accordion-body {
    color: #64748b;
    font-size: 0.97rem;
    line-height: 1.75;
}

/* ── CTA section ── */
.cta-section {
    background: linear-gradient(135deg, var(--sl-navy) 0%, var(--sl-dark) 60%, #0a1828 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(196,154,0,0.14) 0%, transparent 65%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}
.cta-badge {
    display: inline-block;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.25);
    margin-bottom: 1.2rem;
    position: relative;
}
.cta-badge span { color: var(--sl-gold-light); }
.cta-section h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
}
.cta-section p {
    font-size: 1.1rem;
    opacity: 0.72;
    max-width: 500px;
    margin: 0 auto 2.8rem;
    position: relative;
}
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 40px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s, border-color 0.3s, color 0.3s;
    position: relative;
}
.btn-cta-primary {
    background: var(--sl-gold);
    color: var(--sl-dark);
    box-shadow: 0 4px 20px rgba(196,154,0,0.45);
}
.btn-cta-primary:hover {
    background: var(--sl-gold-light);
    color: var(--sl-dark);
    transform: translateY(-2px);
}
.btn-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-cta-outline:hover {
    background: white;
    color: var(--sl-navy);
    border-color: white;
    transform: translateY(-2px);
}

/* ── Footer ── */
.site-footer {
    background: var(--sl-dark);
    color: rgba(255,255,255,0.72);
    padding: 60px 0 24px;
    font-size: 0.92rem;
}
.site-footer h4 {
    color: var(--sl-gold-light);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.1rem;
}
.site-footer a {
    color: rgba(255,255,255,0.68);
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover { color: var(--sl-gold-light); }
.site-footer li { margin-bottom: 0.4rem; }
.footer-social a {
    display: inline-flex;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    transition: background 0.3s;
}
.footer-social a:hover { background: var(--sl-gold); color: var(--sl-dark); }
.footer-divider { border-color: rgba(255,255,255,0.07); margin: 2rem 0 1.2rem; }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-tagline { font-size: 0.85rem; }

/* ── Cookie banner ── */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(5,12,24,0.97);
    color: white;
    padding: 18px 24px;
    z-index: 1060;
    backdrop-filter: blur(6px);
}
.cookie-banner.hidden { display: none; }
.cookie-banner-inner { max-width: 1200px; margin: 0 auto; }
.cookie-banner p { margin: 0; font-size: 0.88rem; line-height: 1.5; }
.cookie-banner a { color: var(--sl-gold-light); }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.btn-cookie {
    background: var(--sl-gold);
    color: var(--sl-dark);
    border: none;
    padding: 9px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-cookie:hover { background: var(--sl-gold-light); }
.btn-cookie-reject {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 9px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.btn-cookie-reject:hover {
    color: white;
    border-color: rgba(255,255,255,0.6);
}

/* ── WhatsApp float ── */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 58px; height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s, bottom 0.3s;
}
.whatsapp-float:hover { transform: scale(1.12); }
body.cookie-pending .whatsapp-float { bottom: 92px; }

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ── Fallback backdrop-filter ── */
@supports not (backdrop-filter: blur(1px)) {
    .site-nav      { background: rgba(255,255,255,0.99); }
    .cookie-banner { background: rgba(5,12,24,0.99); }
}
