/* ==========================================================================
   DISEÑO PROFESIONAL - WEB MÉDICA (PEDIATRÍA Y ADULTOS MAYORES)
   ========================================================================== */

/* Importar Fuentes desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Paleta de Colores Curada */
  --primary: #0d9488;          /* Verde azulado médico (Teal) */
  --primary-hover: #0f766e;
  --primary-light: #ccfbf1;
  --secondary: #0284c7;        /* Azul océano (Pediatría) */
  --secondary-hover: #0369a1;
  --secondary-light: #e0f2fe;
  --accent-warm: #f97316;       /* Naranja cálido (Toques amigables) */
  --accent-warm-light: #ffedd5;
  
  /* Tonos Neutros */
  --dark: #0f172a;             /* Slate 900 (Texto principal) */
  --dark-light: #334155;       /* Slate 700 (Subtítulos) */
  --light: #f8fafc;            /* Slate 50 (Fondos generales) */
  --surface: #ffffff;          /* Blanco (Tarjetas, contenedores) */
  --border: #e2e8f0;           /* Slate 200 (Bordes) */
  --border-focus: #94a3b8;
  
  /* Estados */
  --success: #10b981;
  --success-light: #d1fae5;
  --error: #ef4444;
  --error-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  
  /* Fuentes */
  --font-title: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Accesibilidad: Fuentes por defecto grandes y espaciados amplios */
  --font-scale: 1; /* Factor multiplicador para accesibilidad */
  
  /* Efectos y Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  
  /* Transiciones */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: calc(16px * var(--font-scale));
}

body {
  font-family: var(--font-body);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Ajustes de accesibilidad (para cambiar tamaño de letra) */
.accessibility-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 1000;
  background: var(--surface);
  padding: 8px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.btn-acc {
  background: var(--light);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
}

.btn-acc:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ==========================================================================
   CLASES DE UTILIDAD & CONTENEDORES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--dark-light);
  max-width: 600px;
  margin: 0 auto 48px auto;
  font-size: 1.1rem;
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

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

.btn-outline:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

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

.btn-danger:hover {
  background-color: #dc2626;
}

.btn:disabled {
  background-color: var(--border);
  color: var(--dark-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   NAVEGACIÓN (HEADER)
   ========================================================================== */
.header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.logo span {
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-light);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--dark);
}

/* ==========================================================================
   HERO / INTRODUCCIÓN
   ========================================================================== */
.hero {
  padding-top: 120px;
  padding-bottom: 100px;
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-content h1 span {
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--dark-light);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-badge-container {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-badge i {
  font-size: 1.2rem;
}

.badge-pami i {
  color: var(--primary);
}

.badge-peds i {
  color: var(--secondary);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-container {
  width: 100%;
  max-width: 380px;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 6px solid var(--surface);
  transform: rotate(2deg);
  transition: var(--transition);
  background-color: #cbd5e1; /* Fallback */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-container:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--accent-warm-light);
  bottom: -20px;
  left: -20px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: -1;
  animation: morphing 10s infinite alternate;
}

@keyframes morphing {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* ==========================================================================
   SECCIÓN: QUIÉN ES
   ========================================================================== */
.about {
  background-color: var(--surface);
}

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

.about-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  background-color: var(--light);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.about-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 1.5rem;
}

.about-card:nth-child(2) .about-card-icon {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--dark-light);
}

.about-text h2 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--dark-light);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.about-bullets {
  margin-top: 32px;
  list-style: none;
}

.about-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}

.about-bullets i {
  color: var(--success);
  font-size: 1.2rem;
}

/* ==========================================================================
   SECCIÓN: LUGARES DE ATENCIÓN
   ========================================================================== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.location-card {
  background-color: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.location-map-placeholder {
  height: 180px;
  background-color: #cbd5e1;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.location-card:hover .location-map-overlay {
  opacity: 1;
}

.location-card-content {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.location-card-content h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.location-card-address {
  display: flex;
  gap: 8px;
  color: var(--dark-light);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.location-card-address i {
  margin-top: 4px;
  color: var(--primary);
}

.location-card-hours {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.location-hour-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.location-hour-row .day {
  font-weight: 600;
  color: var(--dark-light);
}

.location-hour-row .hours {
  color: var(--dark);
}

.location-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.tag-pami {
  background-color: var(--primary-light);
  color: var(--primary);
}

.tag-pediatria {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

/* ==========================================================================
   SECCIÓN: TURNERO ONLINE
   ========================================================================== */
.booking {
  background-color: var(--surface);
  position: relative;
}

.booking-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.booking-wizard-nav {
  display: flex;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.wizard-step-indicator {
  flex: 1;
  text-align: center;
  padding: 20px 10px;
  font-weight: 600;
  color: var(--dark-light);
  position: relative;
  font-size: 0.95rem;
  border-right: 1px solid var(--border);
}

.wizard-step-indicator:last-child {
  border-right: none;
}

.wizard-step-indicator.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.wizard-step-indicator.completed {
  color: var(--success);
}

.wizard-step-number {
  display: inline-flex;
  width: 26px;
  height: 26px;
  background-color: var(--border);
  color: var(--dark-light);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 0.85rem;
}

.wizard-step-indicator.active .wizard-step-number {
  background-color: var(--primary);
  color: white;
}

.wizard-step-indicator.completed .wizard-step-number {
  background-color: var(--success);
  color: white;
}

.booking-wizard-content {
  padding: 40px;
  min-height: 400px;
}

.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Paso 1: Selección Especialidad */
.specialty-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 700px;
  margin: 40px auto;
}

.specialty-btn {
  background-color: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.specialty-btn:hover {
  transform: translateY(-4px);
  border-color: var(--primary-focus);
  box-shadow: var(--shadow-lg);
}

.specialty-btn.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.15);
}

.specialty-btn-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark-light);
  transition: var(--transition);
}

.specialty-btn:nth-child(2).selected {
  border-color: var(--secondary);
  background-color: var(--secondary-light);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
}

.specialty-btn.selected .specialty-btn-icon {
  background-color: var(--surface);
  color: var(--primary);
}

.specialty-btn:nth-child(2).selected .specialty-btn-icon {
  color: var(--secondary);
}

.specialty-btn h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.specialty-btn p {
  font-size: 0.95rem;
  color: var(--dark-light);
}

/* Paso 2: Selección Fecha/Hora */
.calendar-time-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

/* Calendario */
.calendar-wrapper {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

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

.calendar-header h3 {
  font-size: 1.25rem;
  text-transform: capitalize;
}

.calendar-nav-btn {
  background: none;
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.calendar-nav-btn:hover {
  background-color: var(--light);
  border-color: var(--primary);
  color: var(--primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}

.calendar-weekday {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--dark-light);
  padding-bottom: 8px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  border: 1px solid transparent;
  background: none;
}

.calendar-day:hover:not(:disabled) {
  background-color: var(--light);
  color: var(--primary);
  border-color: var(--primary-light);
}

.calendar-day.active {
  background-color: var(--primary) !important;
  color: white !important;
}

.calendar-day:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  font-weight: 300;
}

.calendar-day.vacation {
  background-color: var(--error-light);
  color: var(--error);
  cursor: not-allowed;
  font-weight: 400;
}

.calendar-day.fully-booked {
  text-decoration: line-through;
  opacity: 0.5;
  cursor: not-allowed;
}

/* Selector de Hora */
.time-slots-wrapper {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.time-slots-wrapper h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.time-shift-group {
  margin-bottom: 20px;
}

.time-shift-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.time-slot {
  background-color: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 4px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  background: none;
}

.time-slot:hover:not(:disabled) {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
}

.time-slot.selected {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

.time-slot:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: var(--border);
}

.no-slots-msg {
  color: var(--dark-light);
  font-style: italic;
  text-align: center;
  padding: 20px 0;
}

/* Paso 3: Datos del Paciente */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-light);
}

.form-input {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--surface);
  transition: var(--transition);
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.form-helper {
  font-size: 0.85rem;
  color: var(--dark-light);
  margin-top: 6px;
}

.booking-summary-banner {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: var(--primary-hover);
}

.booking-summary-banner strong {
  color: var(--dark);
}

/* Paso 4: Confirmación del Turno */
.confirmation-card {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 0;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  background-color: var(--success-light);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px auto;
}

.confirmation-card h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.confirmation-details {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  text-align: left;
  box-shadow: var(--shadow);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.detail-label {
  color: var(--dark-light);
  font-weight: 500;
}

.detail-value {
  font-weight: 700;
}

.wizard-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.footer {
  background-color: var(--dark);
  color: #94a3b8;
  padding-top: 60px;
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  color: white;
  font-size: 1.5rem;
  font-family: var(--font-title);
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--primary);
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: white;
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
}

/* ==========================================================================
   PANEL ADMINISTRATIVO (`admin.html`)
   ========================================================================== */
.admin-body {
  background-color: #f1f5f9;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
}

.login-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background-color: var(--dark);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-logo {
  font-weight: 800;
  color: white;
  font-size: 1.25rem;
}

.sidebar-menu {
  list-style: none;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  color: #94a3b8;
  width: 100%;
  text-align: left;
}

.sidebar-btn:hover, .sidebar-btn.active {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
}

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

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid #1e293b;
}

.admin-main {
  flex-grow: 1;
  margin-left: 260px;
  padding: 40px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-topbar h1 {
  font-size: 2rem;
}

/* Tarjetas de Estadísticas */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background-color: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-info h4 {
  font-size: 0.9rem;
  color: var(--dark-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-info p {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-title);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-icon.blue { background-color: var(--secondary-light); color: var(--secondary); }
.stat-icon.teal { background-color: var(--primary-light); color: var(--primary); }
.stat-icon.orange { background-color: var(--accent-warm-light); color: var(--accent-warm); }

/* Contenedores de Paneles de Admin */
.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.panel-card {
  background-color: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.panel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.panel-card-header h2 {
  font-size: 1.4rem;
}

/* Tabla de Turnos */
.table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.admin-table th {
  padding: 16px;
  background-color: var(--light);
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  color: var(--dark-light);
}

.admin-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:hover {
  background-color: var(--light);
}

.row-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background-color: var(--surface);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-icon:hover {
  background-color: var(--light);
}

.btn-icon-danger:hover {
  background-color: var(--error-light);
  color: var(--error);
  border-color: var(--error-light);
}

/* Badge en Tablas */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-sobreturno {
  background-color: var(--warning-light);
  color: var(--warning);
}

.status-regular {
  background-color: #f1f5f9;
  color: var(--dark-light);
}

/* Formularios Cortos / Horarios */
.horario-config-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

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

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--dark);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success { background-color: var(--success); }
.toast.error { background-color: var(--error); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

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

.modal-content {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 500px;
  padding: 32px;
  transform: translateY(-20px);
  transition: var(--transition);
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--dark-light);
}

.modal-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 2.75rem; }
  .about-grid { gap: 32px; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-badge-container {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    order: -1;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-info-cards {
    order: 1;
  }
  
  .calendar-time-grid {
    grid-template-columns: 1fr;
  }
  
  .specialty-selection-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
  
  .booking-wizard-content {
    padding: 24px 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-contact li {
    justify-content: center;
  }
  
  /* Admin responsive */
  .admin-sidebar {
    transform: translateX(-100%);
    transition: var(--transition);
  }
  
  .admin-sidebar.show {
    transform: translateX(0);
  }
  
  .admin-main {
    margin-left: 0;
    padding: 20px;
  }
  
  .horario-config-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .horario-config-row *:nth-child(5) {
    grid-column: span 2;
  }
}
