﻿/* ===================================================
   AuroMed — landing-mobile.css
   Optimización responsive para pantallas <= 768px.
   No modifica landing.css ni lógica de backend.
   =================================================== */

/* --- BASE RESET --- */
html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

body {
    padding-top: 70px !important;
}

/* --- TOP BAR: ocultar barra superior morada --- */
.top-bar {
    display: none !important;
}

/* --- NAVBAR --- */
.glass-nav {
    top: 0 !important;
    height: 64px !important;
    padding: 0 16px !important;
    z-index: 1000 !important;
}

/* Ocultar links de desktop */
.nav-links {
    display: none !important;
}

/* Mostrar acciones mobile */
.nav-mobile-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* --- HAMBURGER BUTTON --- */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-hamburger:hover {
    background: #f5f3ff;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #334155;
    border-radius: 2px;
    transition: 0.3s;
}

/* --- DRAWER BACKDROP --- */
.drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s;
}

.drawer-backdrop.open {
    display: block;
    opacity: 1;
}

/* --- MOBILE DRAWER --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: #ffffff;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    min-height: 64px;
    flex-shrink: 0;
}

.drawer-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    flex-shrink: 0;
}

.drawer-close:hover {
    background: #e2e8f0;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    flex: 1;
}

.drawer-nav a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s, color 0.2s;
}

.drawer-nav a:hover {
    background: #f5f3ff;
    color: #7A68BB;
}

.drawer-nav a:last-child {
    border-bottom: none;
}

.drawer-btn-patient {
    background: #f5f3ff !important;
    color: #7A68BB !important;
    margin: 12px 16px 4px !important;
    border-radius: 50px !important;
    text-align: center !important;
    padding: 12px 20px !important;
    border-bottom: none !important;
}

.drawer-btn-login {
    background: #7A68BB !important;
    color: white !important;
    margin: 4px 16px 12px !important;
    border-radius: 50px !important;
    text-align: center !important;
    padding: 12px 20px !important;
    border-bottom: none !important;
}

.drawer-btn-login:hover {
    background: #4A3B7E !important;
    color: white !important;
}

.drawer-social {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.drawer-social i {
    width: 22px;
    height: 22px;
    color: #7A68BB;
    cursor: pointer;
    transition: opacity 0.2s;
}

.drawer-social i:hover {
    opacity: 0.7;
}

/* --- HERO SECTION --- */
.hero {
    flex-direction: column !important;
    padding: 32px 16px 40px !important;
    gap: 24px !important;
    min-height: auto !important;
    align-items: center !important;
    text-align: center !important;
}

.hero-content {
    max-width: 100% !important;
    align-items: center !important;
    text-align: center !important;
    order: 1 !important;
}

.hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    order: 2 !important;
    display: flex !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.devices-container {
    width: 100% !important;
    height: auto !important;
    transform: scale(0.6) !important;
    transform-origin: top center !important;
    margin-bottom: -100px !important;
}

h1 {
    font-size: 38px !important;
    line-height: 1.15 !important;
}

.hero p {
    font-size: 16px !important;
    max-width: 100% !important;
}

.hero-btns {
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-bottom: 24px !important;
}

/* --- GRILLAS MULTICOLUMNA: colapsar a 1 columna --- */
.pricing-grid,
.extras-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
}

.price-card,
.extra-card {
    width: 100% !important;
}

.modality-tabs {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
}

.tab-btn {
    width: 100% !important;
    text-align: center !important;
}

/* Feedback form grid (index.html) */
#df-step-1 > div[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* --- FOOTER SOCIAL (solo mobile) --- */
.footer-social-mobile {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px 0 0;
    margin-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.footer-social-mobile i {
    width: 22px;
    height: 22px;
    color: #7A68BB;
    cursor: pointer;
    transition: opacity 0.2s;
}

.footer-social-mobile i:hover {
    opacity: 0.7;
}

/* --- SECTION PADDING FIX --- */
.faq-section {
    padding-top: 90px !important;
}

.modality-section {
    padding-top: 90px !important;
}

.extras-section {
    padding-top: 90px !important;
}

/* --- CONTAINER --- */
.container {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* --- TIPOGRAFÍA RESPONSIVE --- */
.section-title-group h2,
.container > h2 {
    font-size: 28px !important;
}

/* --- ACCORDION (faq.html) --- */
.accordion {
    width: 100% !important;
}

.accordion-header {
    font-size: 15px !important;
}

/* --- BTN LOGIN EN NAVBAR MOBILE (Ingresar) --- */
.nav-mobile-actions .btn-login-outline {
    font-size: 13px !important;
    padding: 8px 16px !important;
    white-space: nowrap !important;
}
