:root {
    /* Color Palette - Premium & Professional */
    --primary-color: #0d1b42;
    /* Deep Navy */
    --primary-dark: #070d21;
    --primary-light: #162a66;
    --secondary-color: #3b82f6;
    /* Trustworthy Blue */
    --accent-color: #10b981;
    /* Success Green */
    --dark-bg: #0f172a;
    --light-bg: #ffffff;
    --section-bg: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --grad-blue: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;

    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.py-20 {
    padding: 5rem 0;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
    text-align: left;
    /* Ensure text is left aligned relative to icon */
}

.check-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.check-item-content {
    flex: 1;
}

.feature-list {
    display: inline-block;
    /* Keep list compact if needed */
    text-align: left;
    max-width: 100%;
}

/* Specific fix for Geolocalización with image */
.check-item-content-flex {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    /* Allow wrapping on mobile */
}

.check-item-content-flex .text-block {
    flex: 1;
    min-width: 200px;
    /* Allow wrapping if space is less than this */
}

.check-item-content-flex img {
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.6rem;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(13, 27, 66, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 27, 66, 0.4);
    background-color: var(--primary-light);
}

.btn-outline {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background-color: #f8fafc;
}

/* Header Styles */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    font-weight: 500;
}

.nav-links a {
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    margin-top: var(--header-height);
    padding: 6rem 0;
    background: radial-gradient(circle at top right, #eff6ff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text .badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Hero Brand Styling */
.hero-brand {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-brand::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 4px;
    border-radius: 2px;
}

.hero-text p.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-google-play {
    background: #000;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-google-play svg {
    width: 32px;
}

.btn-google-play .text span {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.btn-google-play .text strong {
    font-size: 1.2rem;
    line-height: 1;
}

.features-check {
    display: grid;
    gap: 1rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.check-item i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.hero-image {
    perspective: 1000px;
}

.mockup-container {
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover .mockup-container {
    transform: rotateY(0deg) rotateX(0deg);
}

.hero-image img {
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 8px solid white;
}

/* Language Ticker */
.language-ticker {
    margin-top: 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    animation: ticker 40s linear infinite;
}

.ticker-content span {
    display: inline-block;
    padding: 0 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Feature Grid Section */
.feature-grid-section {
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    padding: 2.5rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: white;
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Dashboard Showcase */
.showcase {
    background: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.showcase h2 {
    color: white;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-text ul {
    margin: 2rem 0;
    display: grid;
    gap: 1.5rem;
}

.showcase-text li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.showcase-text li i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Local Server Section */
.server-section {
    background: #f1f5f9;
}

.server-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow-lg);
}

.server-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.server-visual {
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 3rem;
}

.wifi-animation {
    text-align: center;
}

.wifi-animation i {
    font-size: 120px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Steps Section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.step-card {
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    position: relative;
}

.step-icon::after {
    content: attr(data-step);
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Styles */
.footer-cta {
    background: var(--grad-primary);
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.footer-cta h2 {
    color: white;
    margin-bottom: 2rem;
}

footer {
    background: #0a0f1d;
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.logo-clock {
    height: 45px;
}

.footer-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

.logo-digital {
    height: 35px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-content,
    .showcase-grid,
    .server-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons,
    .hero-check {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .server-content {
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 4rem !important;
        /* Huge gap to ensure separation */
        text-align: center;
    }

    .footer-logo-brand {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .footer-divider {
        display: none !important;
    }

    .logo-clock {
        height: 50px;
    }

    .logo-digital {
        height: 40px;
    }

    .footer-logo p {
        margin: 0 auto 2rem;
        max-width: 450px;
        line-height: 1.6;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}