/* =========================================
   STUDENTXPERIENCE - RESPONSIVE DESIGN
   ========================================= */

/* Tablets y dispositivos medianos (max-width: 992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Hero */
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 36px;
    }
    
    /* Trips Grid */
    .trips-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-logo {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    /* Community and Scholarships */
    .scholarship-content {
        grid-template-columns: 1fr;
    }
    
    .trip-details-grid {
        grid-template-columns: 1fr;
    }
    
    .trip-sidebar {
        position: static;
    }
}

/* Móviles (max-width: 768px) */
@media (max-width: 768px) {
    /* Navegación Mobile */
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--color-border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: var(--spacing-xl);
        gap: var(--spacing-sm);
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-md);
        border-radius: var(--border-radius-md);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    /* Hero */
    .hero {
        min-height: 80vh;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    /* Section Titles */
    .section-title {
        font-size: 30px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    /* Trips */
    .trip-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding: var(--spacing-xs);
        width: 100%;
        border-radius: var(--border-radius-lg);
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .trips-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stories */
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* About Us Section */
    .about-mission {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Community Section */
    .community-benefits {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    /* Scholarships Section */
    .scholarship-types {
        grid-template-columns: 1fr;
    }
    
    .scholarship-info h3,
    .scholarship-criteria h3 {
        font-size: 24px;
    }
    
    /* Trip Detail Pages */
    .trip-detail-title {
        font-size: 36px;
    }
    
    .trip-detail-subtitle {
        font-size: 16px;
    }
    
    .trip-meta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .itinerary-day {
        flex-direction: column;
    }
    
    .day-number {
        width: 60px;
        height: 60px;
        font-size: 16px;
    }
    
    .includes-grid {
        grid-template-columns: 1fr;
    }
    
    .accommodation-options {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto var(--spacing-sm);
    }
    
    /* Modal */
    .modal-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* Móviles pequeños (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .trip-card-title {
        font-size: 20px;
    }
    
    .story-icon, .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Landscape en móviles */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-xxl) 0;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: var(--spacing-lg);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .nav-toggle,
    .modal,
    .scroll-to-top,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
}
