/* ==========================================================================
   Font Faces
   ========================================================================== */
@font-face {
    font-family: 'adineue PRO';
    src: url('../assets/fonts/adineue PRO Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Design Tokens & CSS Variables (from DESIGN.md & code.html)
   ========================================================================== */
:root {
    /* Fonts */
    --font-heading: 'adineue PRO', sans-serif;
    --font-body: 'Hanken Grotesk', sans-serif;

    /* Colors */
    --color-surface: #f2fbfe;
    --color-surface-dim: #d2dcde;
    --color-surface-bright: #f2fbfe;
    --color-surface-container-lowest: #ffffff;
    --color-surface-container-low: #ecf5f8;
    --color-surface-container: #e6eff2;
    --color-surface-container-high: #e1eaed;
    --color-surface-container-highest: #dbe4e7;
    --color-on-surface: #141d1f;
    --color-on-surface-variant: #414754;
    --color-inverse-surface: #293234;
    --color-inverse-on-surface: #e9f2f5;
    --color-outline: #717785;
    --color-outline-variant: #c1c6d6;
    --color-surface-tint: #005cbc;
    --color-primary: #0059b8;
    --color-on-primary: #ffffff;
    --color-primary-container: #0071e6;
    --color-on-primary-container: #fefcff;
    --color-inverse-primary: #abc7ff;
    --color-secondary: #006687;
    --color-on-secondary: #ffffff;
    --color-secondary-container: #00c4ff;
    --color-on-secondary-container: #004d67;
    --color-tertiary: #4e6410;
    --color-on-tertiary: #ffffff;
    --color-tertiary-container: #667d29;
    --color-on-tertiary-container: #fbffe5;
    --color-error: #ba1a1a;
    --color-on-error: #ffffff;
    --color-error-container: #ffdad6;
    --color-on-error-container: #93000a;
    --color-primary-fixed: #d7e2ff;
    --color-primary-fixed-dim: #abc7ff;
    --color-on-primary-fixed: #001b3f;
    --color-on-primary-fixed-variant: #004590;
    --color-secondary-fixed: #c0e8ff;
    --color-secondary-fixed-dim: #71d2ff;
    --color-on-secondary-fixed: #001e2b;
    --color-on-secondary-fixed-variant: #004d66;
    --color-tertiary-fixed: #d2ed8b;
    --color-tertiary-fixed-dim: #b6d172;
    --color-on-tertiary-fixed: #151f00;
    --color-on-tertiary-fixed-variant: #3a4d00;
    --color-background: #f2fbfe;
    --color-on-background: #141d1f;
    --color-surface-variant: #dbe4e7;

    /* Border Radii */
    --radius-sm: 0.25rem;
    --radius-default: 0.5rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;

    /* Spacing */
    --spacing-stack-lg: 24px;
    --spacing-stack-sm: 8px;
    --spacing-stack-md: 16px;
    --spacing-gutter: 24px;
    --spacing-section-padding: 80px;
    --spacing-card-padding: 32px;
    --spacing-container-max: 1200px;
}

/* ==========================================================================
   Base Resets & Global Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-background);
    color: var(--color-on-background);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

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

/* Utility Helpers */
.container-max {
    max-width: var(--spacing-container-max);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--spacing-gutter);
    padding-left: var(--spacing-gutter);
    width: 100%;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.w-full {
    width: 100%;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.inline-flex {
    display: inline-flex;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 8px;
}

.gap-6 {
    gap: 24px;
}

.border-b {
    border-bottom: 1px solid var(--color-surface-variant);
}

.border-t {
    border-top: 1px solid var(--color-surface-variant);
}

.border {
    border: 1px solid var(--color-surface-variant);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* Grid Layout System */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-stack-lg);
}

/* Form rows use tighter gap (stack-md = 16px) matching prototype */
.form-row {
    gap: var(--spacing-stack-md);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
}

/* Spacing Stacks */
.stack-md>*+* {
    margin-top: var(--spacing-stack-md);
}

/* ==========================================================================
   Typography System
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6,
.display-lg,
.headline-xl,
.headline-lg,
.title-md {
    font-family: var(--font-heading);
}

.display-lg {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.headline-xl {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.headline-lg {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.title-md {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.body-lg {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.body-md {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.label-bold {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.label-sm {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .display-lg {
        font-size: 64px;
    }

    .headline-xl {
        font-size: 48px;
    }

    .headline-lg {
        font-size: 32px;
    }

    .title-md {
        font-size: 20px;
    }

    .body-lg {
        font-size: 18px;
    }

    .body-md {
        font-size: 16px;
    }
}

/* ==========================================================================
   Buttons & Inputs
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: #D9F592;
    color: #141d1f;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(32, 125, 243, 0.25);
    background-color: #c9e880;
}

.btn-secondary {
    background-color: #D9F592;
    color: #141d1f;
}

.btn-secondary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(32, 125, 243, 0.25);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* Form Controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label,
.lead-card label {
    color: #000000;
    display: block;
}

.form-input {
    width: 100%;
    background-color: var(--color-surface-container-lowest);
    border: 1px solid var(--color-outline-variant);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    font-size: 16px;
    color: var(--color-on-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--color-outline);
    opacity: 0.7;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(32, 125, 243, 0.2);
}

.form-input.invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 2px rgba(186, 26, 26, 0.2);
}

.error-msg {
    font-size: 12px;
    color: var(--color-error);
    height: 16px;
    margin-top: -4px;
    display: block;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.error-msg.visible {
    opacity: 1;
}

/* ==========================================================================
   Header (TopNavBar)
   ========================================================================== */
.navbar-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 16px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-img {
    height: 32px;
    width: auto;
    object-contain: contain;
}

@media (min-width: 768px) {
    .logo-img {
        height: 40px;
    }
}

.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        gap: 32px;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
    transform: scale(1.05);
    color: var(--color-on-primary);
}

.nav-link.active {
    color: var(--color-on-primary);
    border-bottom: 2px solid var(--color-tertiary-fixed);
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.btn-nav {
    display: none;
}

@media (min-width: 768px) {
    .btn-nav {
        display: inline-flex;
        gap: 8px;
    }
}

.btn-hamburger {
    background: none;
    border: none;
    color: var(--color-on-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hamburger span {
    font-size: 30px;
}

@media (min-width: 768px) {
    .btn-hamburger {
        display: none;
    }
}

/* ==========================================================================
   Mobile Menu (Drawer)
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--color-surface-container-lowest);
    z-index: 100;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close-drawer {
    background: none;
    border: none;
    color: var(--color-on-surface);
    cursor: pointer;
}

.btn-close-drawer span {
    font-size: 28px;
}

.nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-mobile-link {
    color: var(--color-on-surface-variant);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-surface-variant);
    transition: color 0.2s ease;
}

.nav-mobile-link:hover {
    color: var(--color-primary);
}

.btn-mobile-cta {
    margin-top: 16px;
    width: 100%;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(20, 29, 31, 0.5);
    z-index: 99;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #207DF3 0%, #00C4FF 100%);
    /* Fill the viewport and vertically center the content */
    min-height: 100dvh;
    display: flex;
    align-items: center;
    /* Top padding clears the absolute nav (~112px); bottom stays symmetric */
    padding-top: 120px;
    padding-bottom: 48px;
    position: relative;
    overflow: hidden;
}

/* On desktop the nav is slightly taller visually, use smaller padding */
@media (min-width: 768px) {
    .hero-section {
        padding-top: 112px;
        padding-bottom: 48px;
    }
}

/* hero-container must stretch to fill the flex parent's width */
.hero-container {
    width: 100%;
}

.hero-content {
    z-index: 10;
}

/* Hero Pill — "Facturación Electrónica" label above H1 */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(217, 245, 146, 0.4);
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 14px 6px 10px;
    border-radius: 9999px;
    margin-bottom: 20px;
}

.hero-pill-icon {
    font-size: 16px;
    color: var(--color-tertiary-fixed);
    animation: pill-pulse 2s ease-in-out infinite;
}

@keyframes pill-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.text-on-primary {
    color: var(--color-on-primary);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-top: var(--spacing-stack-md);
    margin-bottom: var(--spacing-stack-lg);
    max-width: 512px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    max-width: 640px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-on-primary);
    font-weight: 500;
    font-size: 14px;
}

.text-tertiary {
    color: var(--color-tertiary-fixed);
}

.text-tertiary-fixed {
    color: var(--color-tertiary-fixed);
}

/* Lead Form Card */
.lead-card {
    background-color: var(--color-surface-container-lowest);
    border-radius: var(--radius-xl);
    padding: var(--spacing-card-padding);
    box-shadow: 0 8px 24px rgba(32, 125, 243, 0.15);
    position: relative;
    z-index: 10;
    color: var(--color-on-surface);
}

.lead-card-title {
    color: var(--color-on-surface);
    margin-bottom: var(--spacing-stack-lg);
    font-weight: 700;
}

.terms-text {
    color: var(--color-on-surface-variant);
    margin-top: 16px;
}

/* Decorative Blobs & Animations */
.decorator-blob {
    position: absolute;
    width: 384px;
    height: 384px;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(64px);
    pointer-events: none;
}

.blob-left {
    background-color: var(--color-secondary-container);
    bottom: -80px;
    left: -80px;
    opacity: 0.3;
    animation: blob 8s infinite alternate ease-in-out;
}

.blob-right {
    background-color: var(--color-tertiary-container);
    top: -80px;
    right: -80px;
    opacity: 0.2;
    animation: blob 8s infinite alternate-reverse ease-in-out;
    animation-delay: 2s;
}

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(40px, -60px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

/* ==========================================================================
   Social Proof — Infinite Marquee (JS-driven)
   ========================================================================== */
.social-proof-section {
    padding: 40px 0;
    background-color: var(--color-surface-container-low);
    overflow: hidden;
}

.title-social-proof {
    color: var(--color-on-surface-variant);
    margin-bottom: 28px;
    padding: 0 var(--spacing-gutter);
}

/* Outer row: [btn] [marquee] [btn] */
.marquee-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 var(--spacing-gutter);
}

/* Prev / Next control buttons */
.marquee-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--color-outline-variant);
    background-color: var(--color-surface-container-lowest);
    color: var(--color-on-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease,
        color 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.marquee-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-primary);
    transform: scale(1.08);
}

.marquee-btn .material-symbols-outlined {
    font-size: 22px;
}

/* Wrapper: clips scrolling track and adds edge fades */
.logos-marquee-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right,
            transparent 0%,
            #000 8%,
            #000 92%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            #000 8%,
            #000 92%,
            transparent 100%);
}

/* Track: JS drives transform each frame */
.logos-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

/* One set of logos */
.logos-marquee-set {
    display: flex;
    align-items: center;
    gap: 56px;
    padding: 0 28px;
}

/* Logo images */
.partner-logo {
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.25s ease;
    cursor: default;
    user-select: none;
    -webkit-user-drag: none;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .partner-logo {
        height: 44px;
    }

    .logos-marquee-set {
        gap: 72px;
    }
}

/* Reduced-motion: static centered layout, hide clones */
@media (prefers-reduced-motion: reduce) {
    .logos-marquee-track {
        transform: none !important;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .logos-marquee-set.js-clone {
        display: none;
    }

    .logos-marquee-set {
        flex-wrap: wrap;
        justify-content: center;
    }

    .marquee-btn {
        display: none;
    }
}

/* ==========================================================================
   Features Section (Bento Grid)
   ========================================================================== */
.features-section {
    padding: var(--spacing-section-padding) var(--spacing-gutter);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(0, 89, 184, 0.08);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 14px;
}

.section-header {
    margin-bottom: 56px;
}

.section-header h2 {
    color: var(--color-on-surface);
    margin-bottom: 16px;
}

.max-w-2xl {
    max-width: 672px;
}

.mx-auto {
    margin-right: auto;
    margin-left: auto;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bento-card-featured {
        grid-column: span 2;
    }
}

/* Base Bento Card */
.bento-card {
    background-color: var(--color-surface-container-lowest);
    border: 1px solid var(--color-surface-variant);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1),
        box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1),
        border-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 89, 184, 0.05);
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(32, 125, 243, 0.12);
    border-color: rgba(32, 125, 243, 0.3);
}

.bento-card:hover::before {
    opacity: 1;
}

/* Featured Bento Card (Spans 2 cols) */
.bento-card-featured {
    background: linear-gradient(145deg, #ffffff 0%, #f4fbfe 100%);
    border-color: rgba(0, 89, 184, 0.18);
}

.bento-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bento-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.bento-card:hover .bento-icon-wrapper {
    transform: scale(1.08) rotate(3deg);
}

.bento-icon-wrapper .material-symbols-outlined {
    font-size: 26px;
}

.bg-primary-soft {
    background-color: rgba(0, 89, 184, 0.1);
    color: var(--color-primary);
}

.bg-secondary-soft {
    background-color: rgba(0, 196, 255, 0.12);
    color: #0077aa;
}

.bg-tertiary-soft {
    background-color: rgba(78, 100, 16, 0.12);
    color: #3b500a;
}

/* Status Pills inside cards */
.bento-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pill-primary {
    background-color: rgba(0, 89, 184, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(0, 89, 184, 0.15);
}

.pill-accent {
    background-color: rgba(217, 245, 146, 0.4);
    color: #2b3a05;
    border: 1px solid rgba(210, 237, 139, 0.6);
}

.pill-success {
    background-color: #e8f8e8;
    color: #1a7a2e;
    border: 1px solid #c2e8c2;
}

.pill-neutral {
    background-color: var(--color-surface-container);
    color: var(--color-on-surface-variant);
    border: 1px solid var(--color-outline-variant);
}

.bento-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bento-card-body h3 {
    margin: 0;
    color: var(--color-on-surface);
}

.bento-card-body p {
    margin: 0;
    line-height: 1.55;
}

/* Tags in Featured Card */
.bento-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px dashed var(--color-surface-variant);
}

.bento-tag {
    background-color: var(--color-surface-container-lowest);
    border: 1px solid var(--color-surface-variant);
    color: var(--color-on-surface-variant);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.bento-tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ==========================================================================
   How It Works (Implementación)
   ========================================================================== */
.how-it-works {
    padding: var(--spacing-section-padding) var(--spacing-gutter);
    background-color: var(--color-surface-container);
    overflow: hidden;
}

.how-it-works-container {
    align-items: center;
}

.steps-content h2 {
    color: var(--color-on-surface);
    margin-bottom: 32px;
}

.steps-timeline {
    display: flex;
    flex-direction: column;
}

.step-item {
    display: flex;
    gap: 16px;
}

.step-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-line {
    width: 1px;
    background-color: var(--color-outline-variant);
    flex-grow: 1;
    margin: 8px 0;
}

.step-text {
    padding-bottom: 24px;
}

.step-text h3 {
    color: var(--color-on-surface);
}

.step-text p {
    margin-top: 4px;
}

.mockup-container {
    position: relative;
    width: 100%;
}

.dashboard-mockup {
    background-color: var(--color-surface-container-lowest);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

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

.floating-badge {
    position: absolute;
    top: 25%;
    left: -24px;
    background-color: var(--color-surface-container-lowest);
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(32, 125, 243, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 767px) {
    .floating-badge {
        left: 12px;
        padding: 8px 12px;
    }
}

/* ==========================================================================
   Sectores Section
   ========================================================================== */
.sectors-section {
    padding: var(--spacing-section-padding) var(--spacing-gutter);
}

.sectors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sectors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sector-card {
    background-color: var(--color-surface-container-low);
    padding: var(--spacing-card-padding);
    border-radius: var(--radius-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(32, 125, 243, 0.1);
}

.sector-icon-container {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 89, 184, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-primary);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, #207DF3 0%, #00C4FF 100%);
    padding: 80px var(--spacing-gutter);
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-subtitle {
    margin-top: 16px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMzAiIGN5PSIzMCIgcj0iMiIgZmlsbD0iI2ZmZiIgZmlsbC1vcGFjaXR5PSIwLjEiLz48L3N2Zz4=');
    opacity: 0.3;
    pointer-events: none;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer-section {
    background-color: var(--color-surface-container-lowest);
    padding: 48px var(--spacing-gutter) 24px;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer-section {
    background-color: var(--color-surface-container-lowest);
    padding: 60px 0 28px;
    border-top: 1px solid var(--color-surface-variant);
}

.footer-container {
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1.6fr 1fr 1.2fr;
        gap: 56px;
        align-items: start;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 360px;
}

.footer-logo-link {
    display: inline-block;
}

.logo-footer {
    height: 38px;
    width: auto;
    object-fit: contain;
    object-position: left;
}

.footer-desc {
    color: var(--color-on-surface-variant);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-col-title {
    color: var(--color-on-surface);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    display: block;
}

.footer-nav-wrapper {
    display: flex;
    flex-direction: column;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-link {
    color: var(--color-on-surface-variant);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    width: fit-content;
}

.footer-nav-link:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-on-surface);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
    width: fit-content;
}

.footer-phone .material-symbols-outlined {
    font-size: 20px;
    color: var(--color-primary);
}

.footer-phone:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-surface-container);
    border: 1px solid var(--color-outline-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-on-surface-variant);
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

.social-icon:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 89, 184, 0.2);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--color-surface-variant);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-on-surface-variant);
    font-size: 13px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        padding-top: 28px;
    }
}

.sunat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-on-surface-variant);
    font-weight: 500;
    font-size: 13px;
}

.sunat-badge .material-symbols-outlined {
    color: var(--color-primary);
    font-size: 18px;
}

/* Animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #1ebe5d 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.whatsapp-float:active {
    transform: translateY(-1px) scale(0.98);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-icon {
    transform: scale(1.08);
}

/* Pulse radar effect */
.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.6;
    z-index: 1;
    animation: whatsapp-pulse-anim 2.2s infinite ease-out;
    pointer-events: none;
}

@keyframes whatsapp-pulse-anim {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    60% {
        transform: scale(1.45);
        opacity: 0;
    }

    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

/* Tooltip message */
.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background-color: var(--color-surface-container-lowest, #ffffff);
    color: var(--color-on-surface, #141d1f);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--color-surface-variant, #e1eaed);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--color-surface-container-lowest, #ffffff);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 640px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}