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

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .event-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Medium screens (768px - 900px) */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    /* Ensure CTA is hidden when in hero section */
    .nav-cta.hidden {
        display: none !important;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Show mobile menu overlay */
    .mobile-menu-overlay {
        display: flex;
    }
    
    /* Logo responsive for medium screens */
    .logo {
        height: 40px;
        width: auto;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    /* Header */
    .nav-menu {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    /* Logo responsive */
    .logo {
        height: 35px;
        width: auto;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        cursor: pointer;
        z-index: 1001;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
    }
    
    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--text-white);
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--accent-color);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background: var(--accent-color);
    }
    
    /* Hide hamburger button when menu is open */
    .mobile-menu-overlay.active ~ .nav-toggle,
    .mobile-menu-overlay.active + .nav-toggle,
    .mobile-menu-overlay.active ~ .nav-toggle span {
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        display: none !important;
    }
    
    /* Hide hamburger button when menu is open */
    body.menu-open .nav-toggle {
        display: none !important;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(52, 58, 64, 0.98));
        backdrop-filter: blur(20px);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 0; /* Sin padding superior para alinear con el header */
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-content {
        width: 100%;
        max-width: 400px;
        padding: 10px 30px 40px 30px;
        text-align: center;
        transform: translateY(30px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-menu-overlay.active .mobile-menu-content {
        transform: translateY(0);
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding: 15px 20px; /* Mismo padding que el navbar principal */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        top: 0; /* Eliminar el desplazamiento hacia arriba */
    }
    
    .mobile-logo {
        height: 35px; /* Mismo tamaño que el logo principal en móvil */
        width: auto;
        margin-left: 0; /* Alineado a la izquierda como el logo principal */
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        color: var(--text-white);
        font-size: 20px;
        cursor: pointer;
        padding: 0;
        border-radius: 50%;
        transition: all 0.3s ease;
        width: 30px; /* Mismo tamaño que el botón hamburguesa */
        height: 30px; /* Mismo tamaño que el botón hamburguesa */
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        margin-right: 0; /* Alineado a la derecha como el hamburguesa */
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--accent-color);
        transform: rotate(90deg);
    }
    
    /* Mobile Navigation */
    .mobile-nav {
        margin-bottom: 50px;
    }
    
    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav-item {
        margin-bottom: 20px;
        opacity: 0;
        transform: translateY(20px);
        animation: slideInUp 0.5s ease forwards;
    }
    
    .mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
    .mobile-nav-item:nth-child(2) { animation-delay: 0.2s; }
    .mobile-nav-item:nth-child(3) { animation-delay: 0.3s; }
    .mobile-nav-item:nth-child(4) { animation-delay: 0.4s; }
    
    @keyframes slideInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mobile-nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding: 20px 30px;
        color: var(--text-white);
        text-decoration: none;
        font-size: 20px;
        font-weight: 600;
        border-radius: 15px;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
    }
    
    .mobile-nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.2), transparent);
        transition: left 0.5s;
    }
    
    .mobile-nav-link:hover {
        background: rgba(196, 30, 58, 0.1);
        border-color: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
    }
    
    .mobile-nav-link:hover::before {
        left: 100%;
    }
    
    .mobile-nav-link i {
        font-size: 24px;
        color: var(--text-white);
        transition: all 0.3s ease;
    }
    
    .mobile-nav-link:hover i {
        transform: scale(1.2);
    }
    
    .mobile-nav-link span {
        font-family: var(--font-heading);
        letter-spacing: 1px;
    }
    
    /* Mobile CTA */
    .mobile-menu-cta {
        opacity: 0;
        transform: translateY(20px);
        animation: slideInUp 0.5s ease forwards;
        animation-delay: 0.5s;
    }
    
    .mobile-menu-cta .btn-primary {
        width: 100%;
        padding: 20px 30px;
        font-size: 18px;
        border-radius: 50px;
        background: var(--accent-color);
        color: var(--text-white);
        border: 2px solid var(--accent-color);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
    }
    
    .mobile-menu-cta .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }
    
    .mobile-menu-cta .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(196, 30, 58, 0.6);
    }
    
    .mobile-menu-cta .btn-primary:hover::before {
        left: 100%;
    }
    
    /* Hero */
    .hero-title {
        font-size: 42px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-large {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Sections */
    .section-title {
        font-size: 32px;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .about-img {
        height: 280px;
        border-radius: 12px;
    }
    
    .about-description {
        font-size: 16px;
        line-height: 1.7;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature-card {
        padding: 35px 25px;
        border-radius: 12px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
        box-shadow: 0 3px 12px rgba(212, 175, 55, 0.3);
    }
    
    .feature-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .feature-description {
        font-size: 15px;
        line-height: 1.6;
    }
    
    /* Menu */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .menu-image {
        height: 200px;
    }
    
    .menu-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 40px 25px;
        margin: 0 15px;
        border-radius: 15px;
    }
    
    .testimonial-card::before {
        font-size: 60px;
        top: -5px;
        left: 20px;
    }
    
    .testimonial-text {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 25px;
    }
    
    .testimonial-stars {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .testimonial-author {
        margin-top: 20px;
    }
    
    .author-name {
        font-size: 14px;
    }
    
    /* Event Reservation */
    .event-reservation-card {
        padding: 30px 20px;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .event-reservation-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .event-reservation-subtitle {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .event-reservation-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Asegurar que la comuna tenga el ancho completo en móvil */
    .form-row:last-of-type {
        grid-template-columns: 1fr;
    }
    
    .form-control {
        padding: 15px;
        font-size: 16px;
    }
    
    .btn-large {
        width: 100%;
        padding: 18px;
        font-size: 18px;
    }
    
    /* Asegurar que el botón del formulario tenga el mismo ancho que los campos */
    .event-reservation-form .btn-primary {
        width: 100% !important;
        max-width: none !important;
        margin: 20px 0 0 0;
        padding: 18px 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .contact-item {
        margin-bottom: 15px;
    }
    
    .contact-item h4 {
        font-size: 16px;
    }
    
    .contact-item p {
        font-size: 14px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .social-links {
        justify-content: center;
        gap: 20px;
    }
    
    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .copyright {
        font-size: 13px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    /* Logo responsive for very small screens */
    .logo {
        height: 30px;
        width: auto;
    }
    
    /* Mobile Menu Adjustments */
    .mobile-menu-content {
        padding: 15px 20px 30px 20px;
    }
    
    .mobile-menu-header {
        margin-bottom: 40px;
        padding: 15px 20px; /* Mantener padding consistente */
    }
    
    .mobile-logo {
        height: 30px; /* Consistente con el logo principal en pantallas pequeñas */
        width: auto;
        margin-left: 0;
    }
    
    .mobile-nav-link {
        padding: 18px 25px;
        font-size: 18px;
        gap: 12px;
    }
    
    .mobile-nav-link i {
        font-size: 22px;
    }
    
    .mobile-menu-cta .btn-primary {
        padding: 18px 25px;
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .btn-large {
        padding: 16px 24px;
        font-size: 16px;
        width: 100%;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .about-img {
        height: 220px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    }
    
    .feature-title {
        font-size: 20px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .menu-image {
        height: 180px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .testimonial-card::before {
        font-size: 50px;
        top: -3px;
        left: 15px;
    }
    
    .testimonial-stars {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .testimonial-text {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .author-name {
        font-size: 13px;
    }
    
    .event-reservation-card {
        padding: 25px 20px;
    }
    
    .event-reservation-title {
        font-size: 24px;
    }
    
    .event-reservation-subtitle {
        font-size: 20px;
    }
    
    .form-control {
        padding: 14px;
        font-size: 16px;
    }
    
    /* Asegurar que el botón del formulario tenga el mismo ancho que los campos en pantallas pequeñas */
    .event-reservation-form .btn-primary {
        width: 100% !important;
        max-width: none !important;
        margin: 20px 0 0 0;
        padding: 16px 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hero-cta {
        gap: 10px;
    }
    
    .btn-large {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Notification responsive */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .hero-cta,
    .btn,
    .social-links {
        display: none !important;
    }
    
    .hero {
        height: auto;
        page-break-after: always;
    }
    
    .section-title {
        color: #000 !important;
    }
    
    .footer {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Fix phone number color on mobile */
@media (max-width: 768px) {
    .contact-item h4,
    .contact-item h4 a {
        color: var(--text-white) !important;
        text-decoration: none !important;
    }
    
    .contact-item h4 a:hover,
    .contact-item h4 a:visited,
    .contact-item h4 a:active {
        color: var(--text-white) !important;
        text-decoration: none !important;
    }
} 