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

/* Tablet Large (1024px y menos) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .frequency-number {
        font-size: 5rem;
    }
    
    .programming-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .about-content {
        gap: 3rem;
    }
}

/* Tablet (768px y menos) */
@media screen and (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Navegación móvil */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: left var(--transition-normal);
        padding-top: 2rem;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Hero sección móvil */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .frequency-number {
        font-size: 4rem;
    }
    
    .wave-1 { width: 80px; height: 80px; }
    .wave-2 { width: 120px; height: 120px; }
    .wave-3 { width: 160px; height: 160px; }
    .wave-4 { width: 200px; height: 200px; }
    
    /* Reproductor móvil */
    .radio-player {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .player-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .player-controls {
        justify-content: center;
    }
    
    /* Programación móvil */
    .programming-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .program-card {
        padding: 1.25rem;
    }
    
    /* Nosotros móvil */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .culture-elements {
        width: 250px;
        height: 250px;
    }
    
    .corn-symbol {
        font-size: 3rem;
    }
    
    /* Eventos móvil */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-image {
        height: 180px;
    }
    
    /* Contacto móvil */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        margin-top: 1rem;
    }
    
    /* Footer móvil */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        text-align: center;
    }
}

/* Móvil (480px y menos) */
@media screen and (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
    }
    
    /* Tipografía móvil */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    h4 { font-size: 1.4rem; }
    
    .container {
        padding: 0 0.75rem;
    }
    
    /* Navegación extra pequeña */
    .nav-logo {
        gap: 0.5rem;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .frequency {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    /* Hero extra pequeño */
    .hero {
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .frequency-number {
        font-size: 3.5rem;
    }
    
    .frequency-unit {
        font-size: 1.5rem;
    }
    
    .wave-1 { width: 60px; height: 60px; }
    .wave-2 { width: 90px; height: 90px; }
    .wave-3 { width: 120px; height: 120px; }
    .wave-4 { width: 150px; height: 150px; }
    
    /* Reproductor extra pequeño */
    .radio-player {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .current-song {
        font-size: 1.2rem;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .volume-control {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .volume-slider {
        width: 80px;
    }
    
    /* Programación extra pequeña */
    .programming-grid {
        gap: 1rem;
    }
    
    .program-card {
        padding: 1rem;
    }
    
    .program-name {
        font-size: 1.2rem;
    }
    
    .program-time {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Nosotros extra pequeño */
    .features {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .feature-item i {
        font-size: 1.5rem;
    }
    
    .culture-elements {
        width: 200px;
        height: 200px;
    }
    
    .corn-symbol {
        font-size: 2.5rem;
    }
    
    .radio-waves-bg {
        width: 150px;
        height: 150px;
    }
    
    /* Eventos extra pequeño */
    .event-image {
        height: 150px;
        font-size: 2rem;
    }
    
    .event-content {
        padding: 1rem;
    }
    
    .event-content h3 {
        font-size: 1.1rem;
    }
    
    .event-tags {
        gap: 0.25rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Contacto extra pequeño */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    /* Footer extra pequeño */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
}

/* Móvil extra pequeño (360px y menos) */
@media screen and (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .frequency-number {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .radio-player {
        padding: 1rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .program-card,
    .event-content,
    .contact-form {
        padding: 0.75rem;
    }
    
    .culture-elements {
        width: 160px;
        height: 160px;
    }
    
    .corn-symbol {
        font-size: 2rem;
    }
}

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

/* Modo alto contraste */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #B8860B;
        --accent-color: #FF4500;
        --dark-primary: #000000;
        --white: #FFFFFF;
        --medium-gray: #333333;
    }
}

/* Orientación paisaje en móviles */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 120vh;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .frequency-display {
        margin: 1rem 0;
    }
}

/* Pantallas muy anchas */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .frequency-number {
        font-size: 8rem;
    }
    
    .section-title {
        font-size: 3.2rem;
    }
}