:root {
    /* Color Palette */
    --primary-color: #C41230;
    --bg-light: #F5F5F7;
    --bg-dark: #121212;
    --surface-light: #FFFFFF;
    --surface-dark: #1E1E1E;
    --text-main-light: #111827;
    /* gray-900 */
    --text-sub-light: #4B5563;
    /* gray-600 */
    --text-main-dark: #F3F4F6;
    /* gray-100 */
    --text-sub-dark: #9CA3AF;
    /* gray-400 */

    /* Spacing & Layout */
    --container-max-width: 28rem;
    /* max-w-md approx 448px */
    --border-radius-default: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;

    /* Typography */
    --font-family: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button,
a {
    touch-action: manipulation;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-main-light);
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* App Container (Mobile Simulator wrapper as per design) */
.app-container {
    width: 100%;
    /* Remove static max-width. We will control the inner elements for desktop */
    background-color: var(--surface-light);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: none;
    overflow-x: hidden;
}

/* Background Blurs */
.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    background-color: var(--primary-color);
}

.blur-top-right {
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    transform: translate(50%, -50%);
}

.blur-bottom-left {
    bottom: -4rem;
    left: 0;
    width: 12rem;
    height: 12rem;
    transform: translate(-50%, 0);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem;
    z-index: 100;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #E5E7EB;
    transition: border-color 0.3s ease;
}

@media (min-width: 1024px) {
    .header {
        padding: 1.5rem calc(50vw - 480px);
    }
}

.dark .header {
    background-color: rgba(18, 18, 18, 0.8);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo-container {
    height: 2.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Space between icon and text */
}

.brand-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.brand-name-img {
    height: 60%;
    /* Slightly smaller than icon for balance */
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-main-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:focus {
    outline: 2px solid var(--primary-color);
    border-radius: var(--border-radius-default);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem 3rem 1.5rem;
    z-index: 10;
    position: relative;
}

@media (min-width: 1024px) {
    .main-content {
        padding: 0 calc(50vw - 480px) 3rem calc(50vw - 480px);
    }
}

/* Hero Section */
.hero-section {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1.5rem;
    border-radius: 9999px;
    border: 1px solid #D1D5DB;
    /* gray-300 */
    background-color: #F3F4F6;
    /* gray-100 */
    backdrop-filter: blur(4px);
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.25rem;
    /* text-4xl */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    background: linear-gradient(to bottom right, var(--text-main-light), var(--text-sub-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    color: var(--text-sub-light);
    font-size: 1.125rem;
    /* text-lg */
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.625;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius-default);
    font-weight: 600;
    /* font-medium/semibold */
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(196, 18, 48, 0.3);
}

.btn-primary:hover {
    background-color: #A00F28;
    /* darker red */
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #D1D5DB;
    /* gray-300 */
    color: var(--text-main-light);
}

.btn-outline:hover {
    background-color: #F3F4F6;
    /* gray-100 */
}

/* Core Capabilities */
.capabilities-section {
    margin-top: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6B7280;
    /* gray-500 */
    font-weight: 600;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.capability-card {
    position: relative;
    background-color: #F9FAFB;
    /* gray-50 */
    border: 1px solid #E5E7EB;
    /* gray-200 */
    padding: 1.25rem;
    border-radius: 0.75rem;
    /* rounded-xl */
    transition: border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.capability-card:hover {
    border-color: rgba(196, 18, 48, 0.5);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    padding: 0.75rem;
    border-radius: var(--border-radius-default);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-software {
    background-color: #EFF6FF;
    color: #2563EB;
}

/* blue-50, blue-600 */
.icon-network {
    background-color: #F5F3FF;
    color: #7C3AED;
}

/* purple-50, purple-600 */
.icon-physical {
    background-color: #F0FDF4;
    color: #16A34A;
}

/* green-50, green-600 */

.card-text h3 {
    font-weight: 600;
    font-size: 1.125rem;
    /* text-lg */
    color: var(--text-main-light);
}

.card-text p {
    font-size: 0.75rem;
    /* text-xs */
    color: #6B7280;
    /* gray-500 */
    margin-top: 0.125rem;
}

.card-arrow {
    margin-left: auto;
    color: #9CA3AF;
    /* gray-400 */
    transition: color 0.3s;
}

.capability-card:hover .card-arrow {
    color: var(--primary-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid #E5E7EB;
    /* gray-200 */
    padding: 0.75rem 1.5rem;
    z-index: 100;
}

/* Desktop nav oculto por defecto (mobile-first) */
.desktop-nav {
    display: none;
}

body {
    padding-bottom: 70px;
}

@media (min-width: 1024px) {
    .bottom-nav {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}

.nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #9CA3AF;
    /* gray-400 */
    transition: color 0.3s;
}

.nav-btn.active {
    color: var(--primary-color);
}

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

.nav-label {
    font-size: 10px;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Material Symbols sizing */
.material-symbols-outlined {
    font-size: 24px;
}

.text-3xl {
    font-size: 1.875rem;
}

/* Desktop Responsive Adjustments */
@media (min-width: 768px) {
    .app-container {
        max-width: 100%;
        box-shadow: none;
    }

    .menu-btn {
        display: none;
    }

    .desktop-nav {
        display: flex;
        gap: 2.5rem;
        align-items: center;
    }

    .desktop-nav a {
        text-decoration: none;
        color: var(--text-main-light);
        font-weight: 500;
        font-size: 0.95rem;
        transition: color 0.3s;
    }

    .desktop-nav a:hover,
    .desktop-nav a.active {
        color: var(--primary-color);
    }

    .hero-title {
        font-size: 3rem;
        /* text-5xl */
    }

    .hero-actions {
        flex-direction: row;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blur-top-right {
        width: 32rem;
        height: 32rem;
    }

    .blur-bottom-left {
        width: 24rem;
        height: 24rem;
    }
}

/* Dark Mode Support (Class-based) */
body.dark {
    background-color: #000000;
}

.dark .app-container {
    background-color: var(--bg-dark);
}

.dark .badge {
    border-color: #374151;
    /* gray-700 */
    background-color: #1F2937;
    /* gray-800 */
}

.dark .hero-title {
    background: linear-gradient(to bottom right, #FFFFFF, #9CA3AF);
    -webkit-background-clip: text;
    background-clip: text;
}

.dark .hero-desc {
    color: #9CA3AF;
}

/* gray-400 */
.dark .btn-outline {
    border-color: #374151;
    /* gray-700 */
    color: white;
}

.dark .btn-outline:hover {
    background-color: #1F2937;
    /* gray-800 */
}

.dark .section-title {
    color: #6B7280;
}

.dark .capability-card {
    background-color: #1E1E1E;
    border-color: #1F2937;
    /* gray-800 */
}

.dark .card-text h3 {
    color: #F3F4F6;
}

/* gray-100 */
.dark .card-text p {
    color: #9CA3AF;
}

/* gray-400 */

.dark .icon-software {
    background-color: rgba(30, 58, 138, 0.5);
    color: #60A5FA;
}

/* blue-900/50, blue-400 */
.dark .icon-network {
    background-color: rgba(88, 28, 135, 0.5);
    color: #A78BFA;
}

/* purple-900/50, purple-400 */
.dark .icon-physical {
    background-color: rgba(20, 83, 45, 0.5);
    color: #4ADE80;
}

/* green-900/50, green-400 */

.dark .bottom-nav {
    background-color: rgba(18, 18, 18, 0.8);
    border-top-color: #1F2937;
    /* gray-800 */
}

.dark .menu-btn {
    color: white;
}

.dark .brand-logo {
    filter: invert(0);
}

/* Assuming white logo for dark mode if using PNG? Or use SVG fill */

/* Legal Footer */
.legal-footer {
    padding: 2rem max(1.5rem, calc((100% - 1000px) / 2));
    background-color: #F9FAFB;
    /* gray-50 */
    border-top: 1px solid #E5E7EB;
    /* gray-200 */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0;
    /* Sits right above bottom nav */
}

.legal-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: #6B7280;
    /* gray-500 */
}

.legal-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

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

.divider {
    color: #D1D5DB;
    /* gray-300 */
}

.libro-reclamaciones {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: var(--border-radius-default);
    color: var(--text-main-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.3s, color 0.3s;
}

.libro-reclamaciones:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.copyright {
    font-size: 0.75rem;
    color: #9CA3AF;
    /* gray-400 */
}

.dark .legal-footer {
    background-color: #121212;
    border-top-color: #1F2937;
}

.dark .legal-links {
    color: #9CA3AF;
}

.dark .libro-reclamaciones {
    border-color: #374151;
    color: #F3F4F6;
}

.dark .libro-reclamaciones:hover {
    border-color: var(--primary-color);
}

/* Value Proposition / Problem-Solution */
.value-section {
    margin-top: 4rem;
}

.value-content {
    background-color: transparent;
}

.value-description {
    font-size: 1rem;
    color: var(--text-sub-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.value-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.value-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.list-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #FEE2E2;
    /* red-100 */
    border-radius: var(--border-radius-default);
    color: var(--primary-color);
}

.list-text {
    font-weight: 500;
    color: var(--text-main-light);
    font-size: 1rem;
}

.dark .value-description {
    color: var(--text-sub-dark);
}

.dark .list-icon-wrapper {
    background-color: rgba(196, 18, 48, 0.2);
    /* primary color with opacity */
}

.dark .list-text {
    color: var(--text-main-dark);
}

/* Final CTA */
.cta-section {
    margin-top: 5rem;
    margin-bottom: 2rem;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main-light);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--text-sub-light);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.cta-btn {
    display: inline-flex;
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
}

.dark .cta-section {
    background-color: #1E1E1E;
    border-color: #1F2937;
}

.dark .cta-title {
    color: var(--text-main-dark);
}

.dark .cta-subtitle {
    color: var(--text-sub-dark);
}

@media (min-width: 768px) {
    .value-section {
        margin-top: 5rem;
    }

    .value-description {
        font-size: 1.125rem;
        max-width: 42rem;
    }

    .cta-section {
        margin-top: 6rem;
        padding: 4rem 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-btn {
        width: auto;
    }
}