/**
 * SANNA CLÍNICA BELÉN - Estilos Responsive
 * Adaptación para dispositivos móviles y tablets
 */

/* ===================================
   TABLETS (768px - 1024px)
   =================================== */
@media screen and (max-width: 1024px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* ===================================
   MÓVILES Y TABLETS (max 768px)
   =================================== */
@media screen and (max-width: 768px) {
    /* === NAVIGATION === */
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .brand-logo img {
        height: 48px;
    }
    
    .site-tagline {
        font-size: 0.7rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0.5rem;
        box-shadow: -5px 0 30px rgba(0, 168, 89, 0.2);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        justify-content: flex-start;
    }
    
    .nav-link:hover {
        transform: translateX(0);
    }
    
    /* Dropdowns en móvil */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 8px;
        margin-top: 8px;
        padding: 8px;
        background: #f8f9fa;
        border: none;
        transform: none !important;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        display: block;
    }
    
    .dropdown-menu li {
        margin: 0.25rem 0;
    }
    
    .dropdown-menu li a {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    
    .dropdown-menu li a:hover {
        transform: translateX(0);
    }
    
    .btn-search {
        width: 100%;
        justify-content: center;
    }
    
    /* === SEARCH MODAL === */
    .search-modal {
        padding: 1rem;
    }
    
    .search-modal-content {
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .search-modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    #searchInput {
        font-size: 16px; /* Prevenir zoom en iOS */
    }
    
    /* === CONTENT SECTIONS === */
    .content-section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-icon {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* === CARDS === */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .protocol-card {
        padding: 1.5rem;
    }
    
    .protocol-card h3 {
        font-size: 1.3rem;
    }
    
    .card-btn {
        width: 100%;
        text-align: center;
    }
    
    /* === NUESTRO EQUIPO === */
    .equipo-message {
        margin-bottom: 2rem;
    }
    
    .lead-text {
        font-size: 1.1rem;
    }
    
    .equipo-message p {
        font-size: 1rem;
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* === FOOTER === */
    .main-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
}

/* ===================================
   MÓVILES PEQUEÑOS (max 480px)
   =================================== */
@media screen and (max-width: 480px) {
    /* === NAVIGATION === */
    .brand-logo img {
        height: 42px;
    }
    
    .site-tagline {
        font-size: 0.65rem;
    }
    
    .nav-menu {
        width: 90%;
    }
    
    /* === SECTIONS === */
    .content-section {
        padding: 2.5rem 0;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    /* === CARDS === */
    .protocol-card {
        padding: 1.25rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-header i {
        font-size: 1.5rem;
    }
    
    .protocol-card h3 {
        font-size: 1.2rem;
    }
    
    .protocol-card p {
        font-size: 0.95rem;
    }
    
    /* === EQUIPO === */
    .lead-text {
        font-size: 1rem;
    }
    
    .valor-card {
        padding: 1.5rem;
    }
    
    .valor-icon {
        font-size: 2.5rem;
    }
    
    .valor-card h3 {
        font-size: 1.3rem;
    }
    
    /* === FOOTER === */
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
}

/* ===================================
   LANDSCAPE MÓVILES
   =================================== */
/* Landscape móviles - Hero section removido */

/* ===================================
   MEJORAS DE ACCESIBILIDAD TÁCTIL
   =================================== */
@media (hover: none) and (pointer: coarse) {
    /* Aumentar áreas táctiles en móviles */
    .nav-menu > li > a,
    .dropdown-toggle,
    .card-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .dropdown-menu li a {
        min-height: 44px;
    }
    
    /* Remover efectos hover en dispositivos táctiles */
    .protocol-card:hover {
        transform: none;
    }
    
    .card-btn:hover {
        transform: none;
    }
}

/* ===================================
   IMPRESIÓN
   =================================== */
@media print {
    .main-header,
    .menu-toggle,
    .search-modal,
    .main-footer {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .protocol-card {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
        color: #000 !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ===================================
   DARK MODE (Opcional)
   =================================== */
@media (prefers-color-scheme: dark) {
    /* Implementar si se desea soporte para modo oscuro
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    */
}

/* ===================================
   ANIMACIONES REDUCIDAS
   =================================== */
@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;
    }
}