/* CSS Variables for Vexen Branding */
:root {
    --color-white: #FFFFFF;
    --color-black: #0B0B0B;
    --color-grey-light: #F5F5F5;
    --color-grey-medium: #E5E5E5;
    --color-grey-dark: #888888;
    --color-accent: #3B82F6;
    --color-accent-soft: rgba(59, 130, 246, 0.1);

    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --border-radius: 12px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;

    --max-width: 1200px;
    --section-padding: 100px 0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--color-grey-dark);
    font-size: 1.125rem;
}

span.accent {
    color: var(--color-accent);
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

.flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #222;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-grey-medium);
    color: var(--color-black);
}

.btn-secondary:hover {
    background-color: var(--color-grey-light);
    border-color: var(--color-black);
}

.btn-text {
    padding: 0;
    color: var(--color-black);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #FFFFFF;
    /* Blanco sólido para el logo */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Sombra suave para dar profundidad */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    /* Tamaño equilibrado para el banner */
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo img {
    height: 110px;
    /* Tamaño máximo dentro del banner */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* TRUCO: Elimina el fondo blanco del logo */
}

.logo-footer img {
    height: 40px;
    margin-bottom: 2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.938rem;
    color: var(--color-black);
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hero Section with Elite Professional Background */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 140px;
    overflow: hidden;
    background-color: #FFFFFF;
    background-image: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?q=80&w=2678&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Efecto Parallax elegante */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    /* Velo de suavidad para legibilidad total */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    color: #0B0B0B;
}

.hero-content p {
    color: var(--color-grey-dark) !important;
}

.hero h1 {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease backwards;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Feature Cards (Solution & Use Cases) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Forzar siempre 4 columnas en desktop */
    gap: 1.5rem;
}

.card {
    background: var(--color-grey-light);
    padding: 3rem;
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--color-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--color-grey-medium);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--color-white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--color-accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Problem Section */
.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid var(--color-grey-medium);
}

.problem-item:last-child {
    border-bottom: none;
}

.problem-dot {
    width: 12px;
    height: 12px;
    background: #ff4d4d;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

/* Steps Section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step {
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-grey-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 700px;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.active {
    transform: translateX(-50%) translateY(0);
}

.cookie-content h4 {
    margin-bottom: 0.5rem;
}

.cookie-content p {
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Footer */
footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 5rem 0 2rem;
}

footer p {
    color: #888;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.938rem;
    color: #888;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #555;
}

/* Time Slots Interactive UI */
.time-slot {
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--color-grey-medium);
    border-radius: 8px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--color-white);
}

.time-slot:hover:not(.booked) {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-soft);
}

.time-slot.selected {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
    transform: scale(1.05);
}

.time-slot.booked {
    background: #FFEDED;
    color: #FF4D4D;
    border-color: #FFCDCD;
    cursor: not-allowed;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid,
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .hero {
        height: auto;
        padding: 150px 0 100px;
    }

    .card-grid,
    .grid,
    .steps-container {
        grid-template-columns: 1fr !important;
    }

    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .cookie-banner {
        bottom: 20px;
        padding: 1.5rem;
    }

    .cookie-actions {
        flex-direction: column;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}