/* ===== ROOT & VARIABLES ===== */
:root {
    --navy: #0D1B3E;
    --gold: #C9A84C;
    --gold-light: #D4B574;
    --white: #FFFFFF;
    --gray-dark: #1a1a1a;
    --gray-light: #f5f5f5;
    --text: #333333;
    --border: #e0e0e0;
    
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    opacity: 1 !important;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    opacity: 1 !important;
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    opacity: 1 !important;
    animation: fadeInRight 0.8s ease forwards;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy);
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 62, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    animation: slideDown 0.8s ease;
}

.logo-link {
    display: inline-block;
    margin-bottom: 3rem;
    cursor: pointer;
    transition: var(--transition);
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-link:hover {
    transform: scale(1.1) !important;
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.5));
}

.logo-hero {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.3));
    mix-blend-mode: screen;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* ===== BUTTONS ===== */
.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid var(--gold);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
}

.cta-button:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
}

.cta-button-large {
    display: inline-block;
    padding: 18px 50px;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--navy);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 27, 62, 0.3);
}

.cta-button-large:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 6rem 0;
    background: var(--gray-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 0;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 4px solid var(--gold);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== SECTIONS ===== */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-content.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.section-content.reverse > * {
    direction: ltr;
}

.section-text h2 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-text p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.section-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: #555;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.highlight-box {
    background: var(--gray-light);
    padding: 1.5rem;
    border-left: 4px solid var(--gold);
    margin-top: 2rem;
    border-radius: 6px;
}

/* ===== COLORED SECTIONS ===== */
.control-section {
    background: var(--white);
}

.partido-section {
    background: var(--gray-light);
}

.qr-section {
    background: var(--white);
}

.modos-section {
    background: var(--gray-light);
    padding: 6rem 0;
}

.modos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.modo-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-left: 4px solid var(--gold);
}

.modo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modo-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.modo-card p {
    color: #666;
    font-size: 0.95rem;
}

.modos-image {
    margin-top: 3rem;
}

.modos-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ===== CTA MAIN SECTION ===== */
.cta-main {
    background: linear-gradient(135deg, var(--navy) 0%, #0a1428 100%);
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
}

.cta-main h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-main p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--white);
    padding: 6rem 0;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact > .container > p {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--gray-light);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.submit-button {
    width: 100%;
    padding: 14px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.submit-button:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
}

.form-status {
    text-align: center;
    margin-top: 1rem;
    min-height: 1.5rem;
    font-size: 0.95rem;
}

.form-status.success {
    color: #22c55e;
}

.form-status.error {
    color: #ef4444;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--gold);
    font-size: 1.1rem;
}

.footer-section p {
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-logo {
    width: 150px;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

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

    .section-content.reverse {
        direction: ltr;
    }

    .section-content.reverse > * {
        direction: ltr;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-text h2 {
        font-size: 1.6rem;
    }

    .logo-hero {
        width: 80px;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

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

    .cta-main h2 {
        font-size: 1.8rem;
    }

    .cta-main p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-text h2 {
        font-size: 1.3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .modos-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }
}
