/* ========== RESET Y VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-blue: #5771FE;
    --color-purple: #8B5CF6;
    --color-white: #FFFFFF;
    --color-bg-light: #F9FAFB;
    --color-text-dark: #111827;
    --glass-bg: rgba(240, 242, 250, 0.9);
    --glass-border: rgba(255, 255, 255, 0.5);
    --focus-outline: 2px solid var(--color-blue);
}

/* ========== ESTRUCTURA PRINCIPAL SIN SCROLL ========== */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-light);
    height: 100vh;
    overflow: hidden;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ========== NAVBAR ========== */
.chai-nav {
    margin: 12px 12px 0 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    flex-shrink: 0;
}

.chai-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.chai-logo {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.chai-logo:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 4px;
    border-radius: 4px;
}

.chai-nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.chai-nav-link {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-text-dark);
    transition: color 0.2s ease;
}

.chai-nav-link:hover,
.chai-nav-link:focus-visible {
    color: var(--color-blue);
    outline: none;
}

.chai-nav-contact {
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
    color: white !important;
    padding: 6px 16px !important;
    border-radius: 40px;
    font-weight: 600;
}

/* ========== TICKER ========== */
.ticker-container {
    background-color: #E6EAED;
    border-radius: 12px;
    margin: 12px 12px 12px 12px;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-track {
    display: inline-flex;
    animation: ticker-scroll 25s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none;
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 0 32px;
}

.ticker-text {
    font-size: 14px;
    font-weight: 500;
    color: #223180;
}

.ticker-button {
    font-size: 12px;
    font-weight: 600;
    background-color: var(--color-white);
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--color-blue);
    transition: all 0.2s ease;
}

.ticker-button:hover,
.ticker-button:focus-visible {
    background-color: var(--color-blue);
    color: white;
    outline: none;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== HERO ========== */
.hero {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px 40px;
    margin: 0 12px 12px 12px;
    border-radius: 12px;
    overflow: hidden;
    min-height: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('https://images.pexels.com/photos/8386440/pexels-photo-8386440.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 42, 0.85), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-left {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 0.98;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: -0.02em;
}

.hero-right {
    flex: 0.6;
    min-width: 280px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
}

.hero-card-text {
    font-size: 18px;
    line-height: 1.4;
    color: white;
    margin-bottom: 24px;
}

.hero-card-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-btn:hover,
.hero-btn:focus-visible {
    background: white;
    color: var(--color-blue);
    border-color: white;
    outline: none;
}

/* ========== FOOTER ========== */
.footer {
    flex-shrink: 0;
    background-color: #F0F2FA;
    border-radius: 12px;
    margin: 0 12px 12px 12px;
    padding: 20px 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
}

.footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 12px;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.5);
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--color-blue);
    outline: none;
}

.footer-cta {
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
    color: white !important;
    padding: 6px 16px;
    border-radius: 40px;
    font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .hero {
        padding: 40px 20px;
    }
    .hero-content {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-title {
        font-size: 48px;
    }
    .hero-right {
        width: 100%;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 36px;
    }
    .hero-card-text {
        font-size: 16px;
    }
    .hero-btn {
        width: 100%;
        text-align: center;
    }
    .chai-nav-container {
        flex-direction: column;
        text-align: center;
    }
    .chai-nav-links {
        justify-content: center;
    }
    .ticker-text {
        font-size: 12px;
    }
    .ticker-button {
        font-size: 10px;
        padding: 3px 10px;
    }
}