/* =====================================================
   DR. LUIS MARTÍNEZ - MEDICINA INTERNA DE PRECISIÓN
   Estilo: Dark Luxury Medical Aesthetic
   Color Principal: Azul Médico / Eléctrico (#3B82F6 / #2563EB)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Fondos */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #121216;
    --bg-card: rgba(18, 18, 22, 0.7);

    /* Color Primario: Azul Eléctrico (#3B82F6) */
    --primary-rgb: 59, 130, 246;
    --primary-50:  #EFF6FF;
    --primary-100: #DBEAFE;
    --primary-200: #BFDBFE;
    --primary-300: #93C5FD;
    --primary-400: #60A5FA;
    --primary-500: #3B82F6; /* Base principal */
    --primary-600: #2563EB; /* Botones activos */
    --primary-700: #1D4ED8; /* Gradientes profundos */
    --primary-800: #1E40AF;
    --primary-900: #1E3A8A;

    /* Textos */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    /* Acentos Secundarios */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Fuentes */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Reset Base & Mobile Anti-Overflow */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-primary);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

/* Background Glowing Canvas / Radial Overlay */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-radial-gradient {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    max-width: 100vw;
    height: 600px;
    background: radial-gradient(ellipse at top, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--primary-rgb), 0.03) 45%, transparent 70%);
    filter: blur(60px);
}

.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(var(--primary-rgb), 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.8);
    animation: float-particle 18s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% { transform: translate(0, 0); opacity: 0.2; }
    25% { transform: translate(80px, -80px); opacity: 0.8; }
    50% { transform: translate(-40px, -160px); opacity: 0.4; }
    75% { transform: translate(-80px, -80px); opacity: 0.7; }
}

/* Typography Utility (Responsive Clamping) */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 600;
    line-height: 1.3;
}

p.lead {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 400;
}

.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 30%, var(--primary-300) 70%, var(--primary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blue-glow-text {
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.6);
}

/* Layout Utilities */
.container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.section-padding {
    padding: 5rem 0;
}

.text-center { text-align: center; }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-300);
    padding: 0.4rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}

/* Componentes: Glass Card */
.glass-card {
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.06) 0%,
        rgba(18, 18, 22, 0.7) 50%,
        rgba(var(--primary-rgb), 0.04) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 
        0 20px 40px -10px rgba(var(--primary-rgb), 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/* Botones Responsive */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-align: center;
    max-width: 100%;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary-600) 0%,
        var(--primary-500) 40%,
        var(--primary-400) 80%,
        var(--primary-500) 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #FFFFFF;
    box-shadow: 
        0 0 0 1px rgba(var(--primary-rgb), 0.5),
        0 6px 24px rgba(var(--primary-rgb), 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 0 0 2px rgba(var(--primary-rgb), 0.8),
        0 12px 40px rgba(var(--primary-rgb), 0.6);
    color: #FFFFFF;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: var(--primary-400);
    transform: translateY(-3px);
    color: #FFFFFF;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 1.1rem 2.2rem;
    font-size: 1.05rem;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.pulse-glow {
    animation: pulse-glow-anim 3s ease-in-out infinite;
}

@keyframes pulse-glow-anim {
    0%, 100% {
        box-shadow: 
            0 0 0 1px rgba(var(--primary-rgb), 0.5),
            0 4px 24px rgba(var(--primary-rgb), 0.4),
            0 0 50px rgba(var(--primary-rgb), 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 2px rgba(var(--primary-rgb), 0.9),
            0 8px 40px rgba(var(--primary-rgb), 0.7),
            0 0 80px rgba(var(--primary-rgb), 0.5);
    }
}

/* NAVBAR RESPONSIVE */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.1rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 44px;
    width: 44px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
    transition: transform 0.3s ease;
}

.logo-brand:hover .logo-img {
    transform: scale(1.08) rotate(2deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--primary-400);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    box-shadow: 0 0 8px var(--primary-400);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #FFFFFF;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary-400);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6.5rem;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    margin-bottom: 1.1rem;
}

.hero-subtitle {
    margin-bottom: 2rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    width: 100%;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--primary-400);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* HERO VISUAL (3D Floating Element) */
.hero-visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-visual-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.35) 0%, rgba(var(--primary-rgb), 0.1) 50%, transparent 75%);
    filter: blur(40px);
    z-index: 0;
}

.hero-img {
    width: 100%;
    max-width: 440px;
    height: auto;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(var(--primary-rgb), 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-14px) rotate(1deg); }
    50% { transform: translateY(-6px) rotate(-1deg); }
    75% { transform: translateY(-18px) rotate(0.5deg); }
}

/* SECTION 2: SOCIAL PROOF / CERTIFICACIONES */
.social-proof {
    background: var(--bg-secondary);
    border-y: 1px solid rgba(var(--primary-rgb), 0.15);
    padding: 2.5rem 0;
}

.proof-header {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.proof-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.proof-badge-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.proof-badge-item:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.proof-badge-item i {
    color: var(--primary-400);
    font-size: 1.15rem;
}

/* SECTION 3: FLIP CARDS GRID (SERVICIOS) */
.services-section {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* 3D FLIP CARD */
.service-card-flip {
    background-color: transparent;
    height: 380px;
    perspective: 1000px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
}

.service-card-flip:hover .service-card-inner,
.service-card-flip.flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.service-card-front {
    background: var(--bg-tertiary);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-flip:hover .service-image {
    transform: scale(1.08);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(9, 9, 11, 0.95) 0%,
        rgba(9, 9, 11, 0.6) 40%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.6rem;
}

.service-tag-badge {
    align-self: flex-start;
    background: rgba(var(--primary-rgb), 0.25);
    border: 1px solid rgba(var(--primary-rgb), 0.5);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.service-title-front {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}

.flip-hint {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--primary-300);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.service-card-back {
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.12) 0%,
        rgba(18, 18, 22, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    transform: rotateY(180deg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 20px rgba(var(--primary-rgb), 0.15);
}

.service-title-back {
    color: var(--primary-300);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
    padding-bottom: 0.4rem;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.service-card-btn {
    align-self: flex-start;
    margin-top: 0.85rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
}

/* SECTION 4: SHOWCASE / TECNOLOGÍA E INSTALACIONES */
.showcase-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.showcase-img-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.2);
    width: 100%;
}

.showcase-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    transition: transform 0.6s ease;
}

.showcase-img-container:hover .showcase-img {
    transform: scale(1.03);
}

.showcase-overlay-card {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    left: 1.25rem;
    background: rgba(9, 9, 11, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 16px;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.showcase-stat {
    display: flex;
    flex-direction: column;
}

.showcase-stat-val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary-400);
}

.showcase-stat-lbl {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.showcase-content-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.showcase-list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.showcase-icon-box {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-400);
    font-size: 1.15rem;
}

/* DIAGNOSTIC MONITOR CANVAS */
.diagnostic-canvas-container {
    background: rgba(18, 18, 22, 0.9);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1.75rem;
    width: 100%;
}

.canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.canvas-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--success);
    font-weight: 600;
    font-size: 0.78rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

#ecgCanvas {
    width: 100%;
    height: 80px;
    background: #050508;
    border-radius: 8px;
    display: block;
}

/* SECTION 5: SOBRE MÍ / DR. LUIS MARTÍNEZ */
.about-section {
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
}

.about-portrait-wrapper {
    position: relative;
    width: 100%;
}

.about-img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(var(--primary-rgb), 0.2);
}

.about-floating-card {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    background: rgba(18, 18, 22, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-floating-icon {
    font-size: 1.75rem;
    color: var(--primary-400);
}

.about-bio {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    color: var(--text-secondary);
}

.credentials-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-top: 0.75rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.credential-item i {
    color: var(--primary-400);
}

/* CALCULADORA PREVENTIVA (INTERACTIVE WIDGET) */
.calculator-section {
    background: var(--bg-tertiary);
    border-y: 1px solid rgba(var(--primary-rgb), 0.15);
}

.calc-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(9, 9, 11, 0.9);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 24px;
    padding: 2.25rem;
    box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.15);
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.75rem 0;
}

.calc-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.calc-checkbox:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.08);
}

.calc-checkbox input {
    accent-color: var(--primary-500);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.calc-result {
    display: none;
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    text-align: center;
}

/* TESTIMONIOS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 3rem;
}

.testimonial-card {
    position: relative;
}

.testimonial-quote {
    font-size: 2.2rem;
    color: rgba(var(--primary-rgb), 0.3);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stars {
    color: #F59E0B;
    margin-bottom: 0.85rem;
    display: flex;
    gap: 0.2rem;
    font-size: 0.9rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.2);
    border: 2px solid var(--primary-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #FFFFFF;
    font-size: 0.9rem;
}

.user-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.user-info p {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

/* CTA FINAL */
.cta-banner {
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.2) 0%,
        rgba(9, 9, 11, 0.95) 50%,
        rgba(var(--primary-rgb), 0.15) 100%
    );
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    border-radius: 28px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(var(--primary-rgb), 0.2);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-width: 100%;
    height: 350px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

/* MODALES & WIZARD */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 1rem;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card-wizard {
    background: rgba(18, 18, 22, 0.98);
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    border-radius: 24px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.25rem 2rem;
    position: relative;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(var(--primary-rgb), 0.25);
    transform: scale(0.94);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card-wizard {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-tertiary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
}

.modal-close:hover {
    color: #FFFFFF;
    background: rgba(var(--primary-rgb), 0.4);
}

/* WIZARD STEP INDICATOR */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
    transform: translateY(-50%);
}

.wizard-progress-bar {
    position: absolute;
    top: 50%;
    left: 10%;
    height: 2px;
    background: var(--primary-500);
    box-shadow: 0 0 10px var(--primary-400);
    z-index: 0;
    transform: translateY(-50%);
    transition: width 0.4s ease;
    width: 0%;
}

.step-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #121216;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.step-node.active .step-circle {
    border-color: var(--primary-400);
    background: var(--primary-600);
    color: #FFFFFF;
    box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.6);
}

.step-node.completed .step-circle {
    border-color: var(--success);
    background: var(--success);
    color: #FFFFFF;
}

.step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-node.active .step-label {
    color: var(--primary-300);
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* STEP 1: SERVICE SELECTOR CARDS */
.booking-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-top: 1rem;
}

.booking-service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.booking-service-card:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.08);
}

.booking-service-card.selected {
    border-color: var(--primary-400);
    background: rgba(var(--primary-rgb), 0.16);
    box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.3);
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.4rem;
}

.service-card-icon {
    font-size: 1.3rem;
    color: var(--primary-400);
}

.service-card-duration {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-tertiary);
    padding: 0.2rem 0.55rem;
    border-radius: 99px;
    font-family: var(--font-mono);
}

.service-card-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.2rem;
}

.service-card-desc {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    line-height: 1.35;
}

/* STEP 2: CALENDAR & TIME SLOTS */
.booking-datetime-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
}

.calendar-widget {
    background: rgba(9, 9, 11, 0.8);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 16px;
    padding: 0.85rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.calendar-month-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFFFFF;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: var(--primary-600);
    color: #FFFFFF;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.day-cell.empty {
    cursor: default;
}

.day-cell.disabled {
    color: var(--text-quaternary);
    opacity: 0.25;
    cursor: not-allowed;
    text-decoration: line-through;
}

.day-cell.available:hover {
    background: rgba(var(--primary-rgb), 0.2);
    color: #FFFFFF;
}

.day-cell.selected {
    background: var(--primary-500) !important;
    color: #FFFFFF !important;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.6);
}

/* TIME SLOTS GRID */
.time-slots-container {
    display: flex;
    flex-direction: column;
}

.time-slots-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.time-slot-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.55rem 0.4rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.time-slot-btn:hover:not(.disabled) {
    border-color: rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.15);
    color: #FFFFFF;
}

.time-slot-btn.selected {
    background: var(--primary-500) !important;
    border-color: var(--primary-400) !important;
    color: #FFFFFF !important;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.5);
}

.time-slot-btn.disabled {
    opacity: 0.3;
    background: rgba(255, 255, 255, 0.02);
    border-color: transparent;
    cursor: not-allowed;
    text-decoration: line-through;
}

.wizard-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-group {
    margin-bottom: 1.1rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.05);
}

/* STEP 4: SUCCESS SUMMARY SCREEN */
.summary-card-box {
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 16px;
    padding: 1.25rem;
    margin: 1.25rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-tertiary);
}

.summary-value {
    color: #FFFFFF;
    font-weight: 600;
}

.summary-code-badge {
    font-family: var(--font-mono);
    background: rgba(var(--primary-rgb), 0.25);
    color: var(--primary-300);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-weight: 700;
}

/* PANEL DE ADMINISTRACIÓN MÉDICO (DOCTOR ADMIN DASHBOARD) */
.modal-card-admin {
    background: rgba(12, 12, 16, 0.98);
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    border-radius: 20px;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95);
}

.admin-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.admin-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
}

.admin-stat-lbl {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.admin-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.admin-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-filter-btn.active, .admin-filter-btn:hover {
    background: var(--primary-600);
    border-color: var(--primary-500);
    color: #FFFFFF;
}

/* TABLA DE CITAS ADMIN */
.admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
    min-width: 650px;
}

.admin-table th {
    background: rgba(18, 18, 24, 0.9);
    color: var(--text-tertiary);
    font-weight: 600;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.admin-table tr:hover td {
    background: rgba(var(--primary-rgb), 0.04);
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-status.pendiente {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status.confirmada {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-status.completada {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-status.cancelada {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* FOOTER RESPONSIVE */
.footer {
    background: #050507;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 0 2rem;
    color: var(--text-tertiary);
    font-size: 0.88rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-300);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links {
    display: flex;
    gap: 0.85rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-500);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
}

/* =====================================================
   🎯 MEDIA QUERIES RESPONSIVAS DE ALTA PRECISIÓN
   ===================================================== */

/* Desktop XL & Large Screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Tablets (1024px e inferiores) */
@media (max-width: 1024px) {
    .hero-grid, .showcase-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero {
        padding-top: 6rem;
        min-height: auto;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-metrics {
        justify-content: center;
    }

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

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

/* Dispositivos Móviles (768px e inferiores) */
@media (max-width: 768px) {
    .section-padding {
        padding: 3.5rem 0;
    }

    /* Navbar & Menú Hamburguesa */
    .menu-toggle {
        display: flex;
    }

    .nav-cta .btn {
        display: none; /* Ocultar CTA largo en navbar móvil para dar espacio */
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        height: calc(100vh - 65px);
        background: rgba(9, 9, 11, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
        display: none;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.15rem;
        text-align: center;
        width: 100%;
    }

    /* Hero section en móvil */
    .hero-title {
        font-size: 2.1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        text-align: center;
    }

    .hero-img {
        max-width: 320px;
    }

    /* Grillas a 1 columna en móvil */
    .services-grid, 
    .testimonials-grid, 
    .calc-options,
    .booking-services-grid,
    .booking-datetime-grid,
    .credentials-list {
        grid-template-columns: 1fr;
    }

    /* Flip Cards en Móvil */
    .service-card-flip {
        height: auto;
        min-height: 360px;
    }

    .service-card-front, .service-card-back {
        position: absolute;
    }

    /* Showcase & Overlay card en móvil */
    .showcase-overlay-card {
        position: relative;
        inset: auto;
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    /* About Floating Card en móvil */
    .about-floating-card {
        position: relative;
        inset: auto;
        margin-top: 1rem;
        justify-content: center;
    }

    /* Modales en Móvil */
    .modal-card-wizard, .modal-card-admin {
        padding: 1.25rem 1rem;
        width: 98%;
        max-height: 94vh;
        border-radius: 18px;
    }

    .wizard-progress {
        margin-bottom: 1.5rem;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .time-slots-grid {
        max-height: 200px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }
}

/* Pantallas de Móviles Pequeños (480px e inferiores) */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 0.75rem;
    }

    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.45rem; }

    .calc-box {
        padding: 1.25rem 0.85rem;
    }

    .cta-banner {
        padding: 2.5rem 1rem;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}
