/* ===== RESPONSIVE DESIGN ===== */

/* Tablet - Medium Screens */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: var(--spacing-lg) 0;
        transition: var(--transition-base);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

    .nav-link {
        font-size: 1.125rem;
    }

    .nav-toggle {
        display: block;
    }

    /* Hero Section */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto var(--spacing-lg);
    }

    .hero-stats {
        gap: var(--spacing-md);
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    /* Videos Grid */
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Event Section */
    .event-content {
        grid-template-columns: 1fr;
    }

    .event-image {
        order: -1;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
    }

    /* Newsletter Form */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        width: 100%;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* Mobile - Small Screens */
@media (max-width: 576px) {
    /* Root Variables */
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.25rem;
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Hero Section */
    .hero {
        min-height: calc(100vh - var(--header-height));
        padding: var(--spacing-lg) 0;
    }

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

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

    /* Frases y Slogans */
    .nav-slogan {
        display: none; /* Ocultar en móvil para no saturar */
    }

    .hero-quote {
        font-size: 1.2rem;
        margin: var(--spacing-sm) 0;
    }

    .philosophy-quote {
        padding: var(--spacing-sm);
        margin: var(--spacing-md) 0;
    }

    .philosophy-quote span {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* About Section */
    .about-social {
        position: static;
        transform: none;
        margin-top: var(--spacing-md);
        justify-content: center;
    }

    /* Videos Grid */
    .videos-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .testimonial-item {
        padding: var(--spacing-md);
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* Event Features */
    .event-features {
        gap: var(--spacing-md);
    }

    .event-countdown {
        position: static;
        transform: none;
        margin-top: var(--spacing-md);
        width: 100%;
        min-width: unset;
    }

    /* Buttons */
    .btn {
        width: 100%;
        max-width: 300px;
    }

    .btn-large {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    /* Forms */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Large Screens */
@media (min-width: 1400px) {
    :root {
        --max-width: 1320px;
    }

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

    .videos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero-stats {
        display: none;
    }

    .nav-menu {
        height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-buttons,
    .social-link,
    .nav-toggle,
    .newsletter,
    .contact-form,
    .footer-social {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-md) 0;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Hover Effects - Only for devices with hover capability */
@media (hover: hover) {
    .nav-link:hover {
        color: var(--color-accent);
    }

    .video-item:hover {
        transform: translateY(-5px);
    }

    .blog-item:hover {
        transform: translateY(-5px);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000000;
        --color-secondary: #ffffff;
        --color-accent: #0066cc;
        --color-gray: #666666;
    }

    .btn-primary {
        border: 2px solid var(--color-primary);
    }

    .form-control {
        border-width: 2px;
    }
}

/* Dark Mode Support - DESACTIVADO para mantener colores claros */
/* Si quieres activar dark mode en el futuro, descomenta esta sección */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: #ffffff;
        --color-secondary: #1a1a1a;
        --color-gray-light: #2a2a2a;
        --color-gray: #999999;
        --color-gray-dark: #cccccc;
    }

    body {
        background-color: var(--color-secondary);
        color: var(--color-primary);
    }

    .header {
        background: rgba(26, 26, 26, 0.95);
    }

    .hero {
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    }

    .video-item,
    .blog-item,
    .testimonial-item {
        background: #2a2a2a;
    }

    .newsletter {
        background: #2a2a2a;
    }

    .footer {
        background: #0a0a0a;
    }

    .form-control {
        background: #2a2a2a;
        border-color: #3a3a3a;
        color: var(--color-primary);
    }
}
*/