/* ===== RESPONSIVE FIXES FOR LANDING PAGE ===== */
/* This file contains specific fixes for responsive design issues */
/* Updated with modal UX improvements and SweetAlert2 compatibility */

/* ===== HERO SECTION FIXES ===== */

/* Asegurar que el carrusel contenga el contenido superpuesto */
.hero__carousel {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay configurable desde admin */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Contenido del hero encima de todo */
.hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 0 var(--spacing-sm);
}

/* Controles del carrusel */
.hero__carousel-btn {
    z-index: 3;
}

.hero__indicators {
    z-index: 3;
}

/* Slides del carrusel en la parte inferior */
.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.hero__slide.active {
    opacity: 1;
}

.hero__carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero__slide.active {
    opacity: 1;
    z-index: 2;
}

.hero__slide .hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Controles del carrusel */
.hero__carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
    font-size: 1.5rem;
}

.hero__carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.hero__carousel-btn--prev {
    left: 2rem;
}

.hero__carousel-btn--next {
    right: 2rem;
}

/* Indicadores */
.hero__indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero__indicator.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.hero__indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Texto del hero con transiciones */
.hero__text {
    position: relative;
}

.hero__text-content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.hero__text-content.active {
    opacity: 1;
    position: relative;
}

/* Responsive adjustments for carousel */
@media screen and (max-width: 768px) {
    .hero__carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hero__carousel-btn--prev {
        left: 1rem;
    }
    
    .hero__carousel-btn--next {
        right: 1rem;
    }
    
    .hero__indicators {
        bottom: 1.5rem;
        gap: 0.5rem;
    }
    
    .hero__indicator {
        width: 10px;
        height: 10px;
    }
}

@media screen and (max-width: 480px) {
    .hero__carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero__carousel-btn--prev {
        left: 0.5rem;
    }
    
    .hero__carousel-btn--next {
        right: 0.5rem;
    }
    
    .hero__indicators {
        bottom: 1rem;
    }
    
    .hero__indicator {
        width: 8px;
        height: 8px;
    }
}

/* ===== BASE RESPONSIVE ADJUSTMENTS ===== */

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* Ensure all containers respect viewport width */
.container,
.hero,
.section,
.modal,
.modal__content {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Fix for very narrow screens */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .nav {
        padding: 0 0.5rem;
    }
    
    .nav__logo-img {
        height: 35px;
        max-width: 100px;
    }
    
    .nav__actions {
        gap: 0.25rem;
    }
    
    .nav__cta {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* ===== CRITICAL MENU HAMBURGUESA FIXES ===== */

/* Asegurar que el menú hamburguesa funcione correctamente */
.nav__toggle {
    position: relative;
    z-index: 1002;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Evitar que se comprima */
}

/* Fix para acciones de navegación que no se corten */
.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0; /* Evitar que se compriman */
    min-width: max-content; /* Respetar contenido mínimo */
}

/* Ajustar botones para que no se corten */
@media screen and (max-width: 768px) {
    .nav__cta,
    .nav__login {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        white-space: nowrap; /* Evitar salto de línea */
    }
    
    .nav__login i {
        display: none; /* Ocultar icono en móvil para ahorrar espacio */
    }
}

@media screen and (max-width: 640px) {
    .nav__login {
        display: none; /* Ocultar botón de administración en pantallas muy pequeñas */
    }
    
    .nav__cta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

.nav__toggle:hover {
    background-color: rgba(204, 119, 16, 0.1);
}

.nav__toggle i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    padding: var(--spacing-xl) var(--spacing-lg);
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    overflow-y: auto;
}

.nav__menu.show-menu {
    right: 0;
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 1003;
}

.nav__close:hover {
    background-color: rgba(204, 119, 16, 0.1);
}

.nav__close i {
    font-size: 1.5rem;
    color: var(--gray-dark);
}

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.nav__link {
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    display: block;
}

.nav__link:hover,
.nav__link:focus {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    transform: translateX(5px);
}

/* Overlay para cerrar el menú al hacer clic fuera */
.nav__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

body.menu-open .nav__overlay {
    opacity: 1;
    visibility: visible;
}

/* ===== MODAL STYLES ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--secondary-color);
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-medium);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal__close:hover {
    background: rgba(204, 119, 16, 0.1);
    color: var(--primary-color);
}

.reservation-form {
    padding: 2rem;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form__group {
    margin-bottom: 1rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: var(--font-body);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form__textarea {
    resize: vertical;
    min-height: 80px;
}

.price-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.price-summary__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.price-row--total {
    border-top: 1px solid #ddd;
    padding-top: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form__actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* ===== BUTTON STYLES ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
}

.btn--primary {
    background: var(--primary-color);
    color: white;
}

.btn--primary:hover {
    background: #b5690e;
    transform: translateY(-1px);
}

.btn--secondary {
    background: #f8f9fa;
    color: var(--secondary-color);
    border: 1px solid #ddd;
}

.btn--secondary:hover {
    background: #e9ecef;
}

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

.btn--outline:hover {
    background: var(--primary-color);
    color: white;
}

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

/* ===== FLOATING ELEMENTS ===== */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-cta.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-cta__btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(204, 119, 16, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.floating-cta__btn:hover {
    background: #b5690e;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(204, 119, 16, 0.5);
}

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1500;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    color: white;
}

/* ===== UTILITY CLASSES ===== */
body.menu-open,
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Asegurar que SweetAlert2 tenga el z-index correcto */
.swal2-container {
    z-index: 2600 !important;
}

.swal2-backdrop-show {
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
}

/* Notificaciones con z-index más alto */
.notification {
    z-index: 2700 !important;
}

/* ===== MOBILE FIRST APPROACH ===== */

/* Base mobile styles (320px and up) */
@media screen and (min-width: 320px) {
    /* Typography adjustments */
    :root {
        --fs-6xl: 2rem;    /* 32px instead of 60px */
        --fs-5xl: 1.75rem; /* 28px instead of 48px */
        --fs-4xl: 1.5rem;  /* 24px instead of 36px */
        --fs-3xl: 1.25rem; /* 20px instead of 30px */
        --fs-2xl: 1.125rem;/* 18px instead of 24px */
    }

    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    /* Section spacing */
    .section {
        padding: 3rem 0;
    }

    /* Header adjustments */
    .header {
        padding: 0 0.5rem;
    }

    .nav {
        padding: 0 0.5rem;
        height: 60px;
    }

    .nav__logo-img {
        height: 40px;
    }

    /* Hero adjustments */
    .hero {
        min-height: 100vh;
        padding: 0;
    }

    .hero__content {
        padding: 1rem;
        max-width: 100%;
    }

    .hero__title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .hero__subtitle {
        font-size: 0.875rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .hero__actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    /* Cards and grids */
    .promotions__grid,
    .rooms__grid,
    .experiences__grid,
    .menu__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .promotion-card,
    .room-card,
    .experience-card,
    .menu-item {
        width: 100%;
        margin: 0;
    }

    /* Modal fixes */
    .modal {
        padding: 0;
    }

    .modal__content {
        width: 100%;
        min-height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal__header {
        padding: 1rem;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-bottom: 1px solid var(--neutral-beige);
    }

    .modal__title {
        font-size: 1.125rem;
    }

    .reservation-form {
        padding: 1rem;
    }

    /* Form improvements */
    .form__row {
        grid-template-columns: 1fr;
    }

    .form__input,
    .form__select,
    .form__textarea {
        width: 100%;
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form__actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form__actions .btn {
        width: 100%;
    }

    /* Footer adjustments */
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer__social {
        justify-content: center;
    }

    /* WhatsApp float button */
    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        width: 50px;
        height: 50px;
    }

    /* Floating CTA */
    .floating-cta {
        left: 1rem;
        right: 1rem;
        bottom: 70px;
        padding: 0.75rem;
    }

    .floating-cta__btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Small tablets and large phones (481px and up) */
@media screen and (min-width: 481px) {
    :root {
        --fs-6xl: 2.5rem;
        --fs-5xl: 2rem;
        --fs-4xl: 1.75rem;
        --fs-3xl: 1.5rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero__actions .btn {
        width: auto;
        min-width: 140px;
    }

    .promotions__grid,
    .experiences__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Tablets (768px and up) */
@media screen and (min-width: 768px) {
    :root {
        --fs-6xl: 3rem;
        --fs-5xl: 2.5rem;
        --fs-4xl: 2rem;
        --fs-3xl: 1.75rem;
        --fs-2xl: 1.5rem;
    }

    /* Container */
    .container {
        padding: 0 2rem;
    }

    /* Navigation */
    .nav {
        height: 80px;
        padding: 0 2rem;
    }

    .nav__logo-img {
        height: 50px;
    }

    .nav__menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .nav__list {
        flex-direction: row;
        margin-top: 0;
        gap: 2rem;
    }

    .nav__toggle,
    .nav__close {
        display: none;
    }

    .nav__cta {
        display: inline-flex;
    }

    /* Hero */
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    /* Grids */
    .promotions__grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .rooms__grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .experiences__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Restaurant section */
    .restaurant__content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 3rem;
    }

    /* Modal */
    .modal__content {
        width: auto;
        min-width: 500px;
        max-width: 600px;
        min-height: auto;
        max-height: 90vh;
        margin: 2rem;
        border-radius: 1rem;
    }

    .modal__header {
        position: static;
        padding: 1.5rem;
        border-bottom: 1px solid var(--neutral-beige);
    }

    .reservation-form {
        padding: 1.5rem;
    }

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

    .form__actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .form__actions .btn {
        width: auto;
    }

    /* Footer */
    .footer__content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        text-align: left;
        gap: 2rem;
    }

    .footer__social {
        justify-content: flex-start;
    }
}

/* Desktop (1024px and up) */
@media screen and (min-width: 1024px) {
    :root {
        --fs-6xl: 3.75rem;
        --fs-5xl: 3rem;
        --fs-4xl: 2.25rem;
        --fs-3xl: 1.875rem;
    }

    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

    .hero__content {
        max-width: 700px;
    }

    .promotions__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .menu__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .experiences__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials__carousel {
        max-width: 800px;
    }

    /* Location section */
    .location__content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Large desktop (1440px and up) */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1280px;
    }

    .hero__content {
        max-width: 800px;
    }

    .section {
        padding: 6rem 0;
    }
}

/* ===== SPECIFIC DEVICE FIXES ===== */

/* iPhone SE, 5, 5S */
@media screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) {
    .hero__title {
        font-size: 1.5rem;
    }

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

/* iPhone 6, 7, 8 */
@media screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) {
    .modal__content {
        max-height: 100vh;
    }
}

/* iPhone 6+, 7+, 8+ */
@media screen and (device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) {
    .hero__actions {
        flex-direction: row;
    }
}

/* iPhone X, XS, 11 Pro */
@media screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
    .header {
        padding-top: constant(safe-area-inset-top);
        padding-top: env(safe-area-inset-top);
    }

    .modal__content {
        padding-bottom: constant(safe-area-inset-bottom);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .floating-cta {
        bottom: calc(70px + constant(safe-area-inset-bottom));
        bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

/* iPad */
@media screen and (device-width: 768px) and (device-height: 1024px) {
    .hero {
        min-height: 70vh;
    }

    .modal__content {
        max-width: 500px;
    }
}

/* iPad Pro */
@media screen and (device-width: 1024px) and (device-height: 1366px) {
    .container {
        max-width: 900px;
    }
}

/* ===== ORIENTATION SPECIFIC ===== */

/* Landscape phones */
@media screen and (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero__content {
        padding: 1rem;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .hero__subtitle {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .hero__actions {
        gap: 0.5rem;
    }

    .hero__actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .modal__content {
        max-height: 100vh;
        overflow-y: auto;
    }

    .hero__scroll {
        display: none;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Ensure touch targets are at least 44x44px */
@media (pointer: coarse) {
    .btn,
    .nav__link,
    .form__input,
    .form__select,
    .form__textarea,
    .modal__close,
    .nav__toggle,
    .nav__close {
        min-height: 44px;
        min-width: 44px;
    }

    .form__input,
    .form__select {
        padding: 12px 16px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .form__input,
    .form__select,
    .form__textarea {
        border-width: 2px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed in the future */
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Disable animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .parallax-element,
    .parallax-bg,
    .parallax-card {
        transform: none !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .floating-cta,
    .whatsapp-float,
    .modal,
    .notification,
    .nav__toggle,
    .nav__close,
    .api-status,
    .pwa-install-banner {
        display: none !important;
    }

    .hero {
        min-height: auto;
        page-break-after: always;
    }

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

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}
