/* ==========================================================================
   VARIABLES GLOBALES & DISEÑO DE SISTEMA (Kalia.app inspired)
   ========================================================================== */
:root {
    /* Colores */
    --color-bg-pure: #050506;
    --color-bg-card: #0c0d10;
    --color-bg-card-hover: #121318;
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    --color-accent: #38bdf8; /* Cian desaturado */
    --color-accent-glow: rgba(56, 189, 248, 0.12);
    --color-border: rgba(255, 255, 255, 0.07);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    
    /* Tipografía */
    --font-titles: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Espaciados y Bordes */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Transiciones */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-pure);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-bg-pure);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

ul {
    list-style: none;
}

/* ==========================================================================
   REVELACIÓN CON SCROLL (Scroll Reveal)
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   COMPONENTES: BOTONES & BADGES
   ========================================================================== */
.badge {
    display: inline-block;
    padding: 6px 14px;
    font-family: var(--font-titles);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-titles);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-titles);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--color-text-primary);
    color: var(--color-bg-pure);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--color-border-hover);
    transform: translateY(-1px);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--color-text-secondary);
    padding-left: 12px;
    padding-right: 12px;
}

.btn-tertiary:hover {
    color: var(--color-text-primary);
}

.btn-block {
    width: 100%;
}

.btn-arrow {
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   HEADER / NAV BAR
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    background-color: rgba(5, 5, 6, 0.65);
    backdrop-filter: blur(12px) saturate(180%);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 10px 0;
    background-color: rgba(5, 5, 6, 0.85);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-container {
    padding: 12px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-text-primary);
}

.logo-icon {
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
}

.logo:hover .logo-icon {
    transform: rotate(15deg);
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-titles);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 1.5px;
    background-color: var(--color-text-primary);
    transition: var(--transition-fast);
    transform-origin: center;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 100px;
    background: radial-gradient(circle at 12% 38%, #0d1527 0%, #030304 60%);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente que oscurece el fondo para mejorar el contraste tipográfico, manteniendo visible el faro */
    background: linear-gradient(180deg, 
                rgba(5, 5, 6, 0.4) 0%, 
                rgba(5, 5, 6, 0.75) 50%, 
                rgba(5, 5, 6, 0.98) 100%);
    z-index: 2;
    pointer-events: none; /* Let clicks pass through */
}

/* SVG Scene */
#hero-interactive-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#light-beam {
    mix-blend-mode: screen;
    pointer-events: none;
}

#light-spotlight {
    mix-blend-mode: screen;
    pointer-events: none;
}

.cliff-lighthouse {
    pointer-events: none;
}
/* Waves (Mar Tormentoso) */
.wave {
    pointer-events: none;
    transition: fill 0.3s ease;
    animation: wave-slide 12s linear infinite;
    transform-origin: bottom;
}

.wave-back {
    fill: #06070a;
    opacity: 0.35;
    animation: wave-slide 15s linear infinite;
}

.wave-mid {
    fill: #040507;
    opacity: 0.5;
    animation: wave-slide-right 8s linear infinite;
}

.wave-front {
    fill: #030304;
    animation: wave-slide 5.5s linear infinite; /* fast and stormy scrolling */
}

.boat-found .wave {
    animation-play-state: paused;
    transition: fill 0.8s ease;
}

@keyframes wave-slide {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes wave-slide-right {
    0% {
        transform: translate3d(-50%, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* Boat & Label (Stormy Float Animations) */
#interactive-boat {
    pointer-events: none;
    animation: float-boat 4.5s ease-in-out infinite; /* faster stormy bobbing */
    transform-origin: center;
}

.boat-found #interactive-boat {
    animation: none;
    transform: translate(var(--boat-x), var(--boat-y)) rotate(0deg) !important;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.boat-dark {
    transition: opacity 0.3s ease;
}

.boat-light {
    transition: opacity 0.15s ease;
}

@keyframes float-boat {
    0% {
        transform: translate(var(--boat-x), var(--boat-y)) rotate(-6deg);
    }
    50% {
        transform: translate(var(--boat-x), calc(var(--boat-y) - 15px)) rotate(8deg);
    }
    100% {
        transform: translate(var(--boat-x), var(--boat-y)) rotate(-6deg);
    }
}

.boat-label-wrapper {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    transform: translate(-50%, -100%);
    animation: float-label 4.5s ease-in-out infinite;
}

.boat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(12, 13, 16, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.08);
}

.label-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent);
}

.label-text {
    font-family: var(--font-titles);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-text-primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@keyframes float-label {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}
.hero-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 3;
    text-align: center;
    pointer-events: none; /* Let pointer events go through the container to the background scene */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ensure buttons and links are clickable since container is pointer-events: none */
.hero-content .badge,
.hero-content h1,
.hero-content p {
    pointer-events: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    pointer-events: auto;
}

/* Indicador de Scroll */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
}

.scroll-indicator:hover {
    transform: translate(-50%, 4px);
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    position: relative;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.02);
}

.wheel {
    width: 3px;
    height: 8px;
    background-color: var(--color-text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s infinite ease-out;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 12px);
    }
}

/* ==========================================================================
   SECCIONES: LAYOUT GENERAL
   ========================================================================== */
section {
    padding: 140px 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-title {
    font-family: var(--font-titles);
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 60%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* ==========================================================================
   BENTO GRID - SERVICIOS
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    position: relative;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    transition: var(--transition-smooth);
    z-index: 1;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.04), transparent 40%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    background-color: var(--color-bg-card-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(250px circle at 50% 0%, var(--color-accent-glow), transparent 60%);
    pointer-events: none;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.bento-card:hover .card-glow {
    opacity: 0.7;
}

.card-large {
    grid-column: span 2;
}

.card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    margin-bottom: 32px;
    transition: var(--transition-smooth);
}

.bento-card:hover .card-icon-wrapper {
    color: var(--color-accent);
    border-color: rgba(56, 189, 248, 0.3);
    background-color: rgba(56, 189, 248, 0.05);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-family: var(--font-titles);
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.card-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.card-features li {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-features li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* Dashboard Visual elements */
.card-visual-dashboard {
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: flex-end;
    height: 60px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    gap: 8px;
}

.bar {
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 2px 2px 0 0;
    height: var(--height);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.bento-card:hover .bar {
    background-color: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--color-accent);
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bar::after {
    height: 100%;
}

/* ==========================================================================
   SECCIÓN: POR QUÉ BLACKFARO (Typographic)
   ========================================================================== */
.why-us-section {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(180deg, var(--color-bg-pure) 0%, rgba(255, 255, 255, 0.01) 50%, var(--color-bg-pure) 100%);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
}

.why-us-sticky-header {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.why-us-sticky-header .section-title {
    text-align: left;
    font-size: 2.75rem;
    line-height: 1.15;
}

.why-us-content .lead-text {
    font-size: 1.45rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: 24px;
}

.why-us-content .brand-highlight {
    font-weight: 500;
    color: var(--color-text-primary);
    position: relative;
}

.why-us-content .body-text {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 56px;
}

.why-us-content .body-text strong {
    font-weight: 400;
    color: var(--color-text-primary);
}

.pillars-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pillar-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.pillar-num {
    font-family: var(--font-titles);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-accent);
    background-color: var(--color-accent-glow);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.pillar-desc h4 {
    font-family: var(--font-titles);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.pillar-desc p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN DE CONTACTO
   ========================================================================== */
.contact-section {
    background: radial-gradient(circle at 50% 100%, var(--color-accent-glow), transparent 70%);
}

.contact-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.contact-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.contact-header {
    text-align: center;
    margin-bottom: 48px;
}

.contact-header .section-title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-header .section-subtitle {
    font-size: 0.95rem;
    max-width: 550px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.col-span-2 {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-titles);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(56, 189, 248, 0.5);
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-feedback {
    margin-top: 8px;
    font-size: 0.9rem;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.form-feedback.success {
    color: #4ade80;
    padding: 10px;
    background-color: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.15);
}

.form-feedback.error {
    color: #f87171;
    padding: 10px;
    background-color: rgba(248, 113, 113, 0.05);
    border: 1px solid rgba(248, 113, 113, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--color-bg-pure);
    border-top: 1px solid var(--color-border);
    padding-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px 24px;
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 80px;
}

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

.footer-col h4 {
    font-family: var(--font-titles);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 300;
}

.footer-col a:hover {
    color: var(--color-text-primary);
}

.footer-info {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 300;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 32px 0;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-socials {
    display: flex;
    gap: 24px;
}

.social-link {
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--color-text-primary);
}

/* ==========================================================================
   RESPONSIVIDAD (MOBILE FIRST)
   ========================================================================== */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-us-sticky-header {
        position: relative;
        top: 0;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-large {
        grid-column: span 2;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 48px;
    }
    
    .footer-links {
        justify-content: space-between;
        gap: 32px;
    }
}

/* Móvil (≤ 768px) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    section {
        padding: 90px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .card-large {
        grid-column: span 1;
    }
    
    .bento-card {
        padding: 30px;
        min-height: auto;
    }
    
    .contact-box {
        padding: 40px 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .col-span-2 {
        grid-column: span 1;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Menú móvil interactivo */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-bg-pure);
        border-left: 1px solid var(--color-border);
        flex-direction: column;
        padding: 100px 40px;
        gap: 24px;
        z-index: 1050;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ==========================================================================
   SCROLL SNAP SYSTEM (Desktop only to prevent snap trap on mobile/tablet)
   ========================================================================== */
@media (min-width: 1025px) {
    html {
        scroll-snap-type: y mandatory;
        scroll-padding-top: 80px; /* height of sticky header */
    }
    
    section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 80px 0 !important; /* reduce padding so content fits inside 100vh */
        scroll-snap-align: start;
        scroll-snap-stop: always;
        box-sizing: border-box;
    }
    
    /* Make sure section container takes full width */
    .section-container {
        width: 100%;
    }
    
    .main-footer {
        scroll-snap-align: end;
        scroll-snap-stop: always;
    }
}
