/* Variables y Tema Premium InnovAAires Dark */
:root {
    --primary: #00a8ff; 
    --primary-hover: #008fdb;
    --secondary: #0b1a30; 
    --accent: #38bdf8; 
    
    --bg-color: #050b14; 
    --text-main: #f8fafc; 
    --text-muted: #94a3b8; 
    --card-bg: rgba(255, 255, 255, 0.05); 
    
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 20px rgba(0, 168, 255, 0.4);
    
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
.hidden { display: none !important; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.2; color: var(--text-main); font-weight: 800; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--primary); }
p { color: var(--text-muted); }

.text-highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(5, 11, 20, 0.85); /* Dark blur */
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
}
.logo-img {
    height: 45px;
    width: auto;
}

nav { display: flex; gap: 1.5rem; align-items: center; }
nav a { text-decoration: none; color: var(--text-main); font-weight: 600; transition: var(--transition); }
nav a:hover { color: var(--primary); }

/* Botones */
.btn-primary, .btn-primary-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}
.btn-primary { background-color: var(--primary); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-primary-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-primary-outline:hover { background: var(--primary); color: white; box-shadow: var(--shadow-glow); }

.w-full { width: 100%; }
.shadow-effect:hover { box-shadow: var(--shadow-lg); }

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 6rem 5%;
    align-items: center;
    background: linear-gradient(rgba(5, 11, 20, 0.7), rgba(5, 11, 20, 0.95)), url('fondo-hero.jpg') center/cover no-repeat;
    min-height: 80vh;
}
.hero-content { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; animation: slideUp 0.8s ease forwards; }
.hero-content p { font-size: 1.125rem; max-width: 500px; }
.hero-graphics { position: relative; height: 400px; display: flex; justify-content: center; align-items: center; }

/* Glassmorphism Cards en Hero */
.glass-card {
    background: rgba(0, 168, 255, 0.05); /* Electric blue hint */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 168, 255, 0.2);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    animation: float 6s ease-in-out infinite;
}
.glass-card font { font-weight: 600; }
.glass-card p { margin: 0; font-weight: 600; color: var(--text-main); }
.glass-card .icon { font-size: 2rem; }

.decor-1 { top: 20%; left: 5%; animation-delay: 0s; }
.decor-2 { bottom: 20%; right: 5%; animation-delay: 3s; }

/* Servicios */
.services-section {
    padding: 5rem 5%;
    background: var(--bg-color); 
}
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.service-card {
    background: var(--card-bg);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-glow); border-color: var(--primary); background: rgba(0, 168, 255, 0.05); }
.service-icon { font-size: 3rem; margin-bottom: 1rem; display: inline-block; background: rgba(0, 168, 255, 0.1); width: 80px; height: 80px; line-height: 80px; border-radius: 50%; color: var(--primary); }
.service-card h3 { margin-bottom: 0.5rem; color: var(--text-main); }

/* Formulario de Agendamiento */
.schedule-section { padding: 5rem 5%; background: var(--secondary); }
.section-header { text-align: center; margin-bottom: 3rem; max-width: 600px; margin-inline: auto; }
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full-width { grid-column: span 2; }

label { font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
input, select, textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03); /* dark input background */
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.2);
    background: rgba(0, 168, 255, 0.05);
}
/* Style dropdown options for dark mode */
select option { background: var(--secondary); color: var(--text-main); }

/* Autenticación y Perfil */
.auth-box { display: flex; align-items: center; gap: 1rem; }
.btn-text { background: transparent; border: none; color: var(--text-muted); cursor: pointer; text-decoration: underline; font-family: inherit; font-size: 0.9rem; }
.btn-text:hover { color: var(--primary); }
#userMenu { display: flex; align-items: center; gap: 1rem; }
#userNameDisplay { font-weight: 600; color: var(--primary); }

.login-prompt { background: var(--card-bg); padding: 2rem; border-radius: var(--radius-md); text-align: center; border: 1px dashed var(--primary); }
.login-prompt p { margin-bottom: 1rem; font-weight: 600; color: var(--text-main); }

/* Custom Visual Calendar */
.custom-calendar-wrapper { border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.5rem; background: rgba(0,0,0,0.15); margin-bottom: 1.5rem; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.calendar-header h4 { margin: 0; color: var(--text-main); font-size: 1.2rem; text-transform: capitalize; }
.btn-calendar-nav { background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: var(--text-main); cursor: pointer; padding: 0.3rem 0.8rem; border-radius: var(--radius-md); transition: var(--transition); font-weight:bold; }
.btn-calendar-nav:hover { background: var(--primary); color: white; border-color: var(--primary); box-shadow: var(--shadow-glow); }

.calendar-days-header, .month-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 0.5rem; }
.calendar-days-header { margin-bottom: 0.5rem; }
.calendar-days-header span { font-size: 0.8rem; font-weight: 600; color: var(--primary); text-transform: uppercase; }

.cal-day { padding: 0.8rem 0; border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); border: 1px solid transparent; color: var(--text-main); font-weight: 600; font-size:1rem; }
.cal-day:hover:not(.disabled) { border-color: var(--primary); background: rgba(0, 168, 255, 0.1); }
.cal-day.selected { background: var(--primary); color: white; box-shadow: var(--shadow-glow); }
.cal-day.disabled { color: var(--text-muted); cursor: not-allowed; opacity: 0.2; background: transparent; border-color: transparent; }
.cal-day.empty { visibility: hidden; }

/* Calendario y Slots de Horario */
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; margin-top: 1rem; }
.slot-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: var(--text-main); padding: 0.6rem; border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); text-align: center; font-weight: 600; }
.slot-btn:hover:not(:disabled) { border-color: var(--primary); background: rgba(0, 168, 255, 0.1); }
.slot-btn.selected { background: var(--primary); color: white; border-color: var(--primary); box-shadow: var(--shadow-glow); }
.slot-btn:disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; background: rgba(255,255,255,0.02); }

.helper-text { font-size: 0.85rem; color: var(--accent); margin-bottom: 0.5rem; }

.modal-switch { margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.modal-switch a { color: var(--primary); font-weight: 600; text-decoration: none; }
.modal-switch a:hover { text-decoration: underline; }
.error-msg { color: #f87171; font-size: 0.85rem; margin-top: 0.5rem; text-align: left; }

/* Footer */
footer { background: #02060f; color: white; padding: 3rem 5%; border-top: 1px solid var(--border-color); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-brand strong { color: var(--primary); font-size: 1.5rem; }
.footer-brand p { color: var(--text-muted); margin-top: 0.5rem; }
.copyright { font-size: 0.875rem; color: var(--text-muted); }

/* Modal de éxito */
.modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 1; visibility: visible; transition: var(--transition);
}
.modal.hidden { opacity: 0; visibility: hidden; }
.modal-content {
    background: var(--secondary); border: 1px solid var(--primary);
    padding: 3rem; border-radius: var(--radius-lg); text-align: center;
    max-width: 400px; width: 90%; transform: scale(1); transition: transform 0.3s ease;
    box-shadow: var(--shadow-glow);
}
.modal.hidden .modal-content { transform: scale(0.9); }
.modal-icon { font-size: 4rem; margin-bottom: 1rem; }
.modal-details { margin: 1rem 0 2rem; font-size: 0.9rem; color: var(--text-muted); }

/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #fff; border-radius: 50px; text-align: center;
    font-size: 30px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); z-index: 1000;
    display: flex; justify-content: center; align-items: center; transition: var(--transition);
}
.whatsapp-float:hover {
    background-color: #20b858; transform: scale(1.1) translateY(-5px); box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6);
}
.whatsapp-float svg { width: 35px; height: 35px; }

/* Botón Flotante de Facebook */
.facebook-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 100px;
    background-color: #1877F2; color: #fff; border-radius: 50px; text-align: center;
    font-size: 30px; box-shadow: var(--shadow-md); z-index: 1000;
    display: flex; justify-content: center; align-items: center; transition: var(--transition);
}
.facebook-float:hover {
    background-color: #166fe5; transform: scale(1.1) translateY(-5px); box-shadow: 0 6px 15px rgba(24, 119, 242, 0.6);
}
.facebook-float svg { width: 30px; height: 30px; fill: currentColor; }

/* Animaciones Clave */
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(2deg); } }

/* Responsive */
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 3rem; gap: 2rem; }
    .hero-content { align-items: center; }
    .hero-graphics { height: 300px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .form-container { padding: 1.5rem; }
}
