/* =========================================================
   ESTUDIO CONTABLE - HOJA DE ESTILOS UNIFICADA (styles.css)
   Diseño Responsive Mobile-First & Desktop High-Fidelity
   ========================================================= */

:root {
  --primary: #154338;
  --primary-dark: #0d2b24;
  --primary-light: #205c4e;
  --primary-accent: #2ecc71;
  
  --secondary: #d97736;
  --secondary-hover: #c46424;

  --bg-main: #f8faf9;
  --bg-card: #ffffff;
  --bg-subtle: #f0f4f2;
  --bg-dark: #0f1715;

  --text-main: #1c2724;
  --text-muted: #5e6d67;
  --text-light: #8e9e98;
  --text-white: #ffffff;

  --border-color: #e2e8e5;
  --border-focus: #154338;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(15, 43, 36, 0.07);
  --shadow-lg: 0 14px 34px rgba(15, 43, 36, 0.12);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

/* Modo oscuro opcional activado por JS */
body.dark-mode {
  --bg-main: #0c1412;
  --bg-card: #141f1c;
  --bg-subtle: #1a2925;
  --text-main: #eef3f1;
  --text-muted: #9eb0aa;
  --border-color: #263832;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, h5 {
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
}

p {
  color: var(--text-muted);
}

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

/* Contenedor estándar */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Barra superior */
.top-bar {
  background-color: var(--primary-dark);
  color: #c9ded7;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.badge-link {
  color: #8be6be;
  font-weight: 600;
  white-space: nowrap;
}

.badge-link:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  background: var(--primary);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

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

.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--primary);
}

body.dark-mode .brand-name {
  color: #5be3a8;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.menu-toggle-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px 20px;
  box-shadow: var(--shadow-md);
}

.mobile-nav.open {
  display: flex;
}

.nav-item-link {
  padding: 12px 14px;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.nav-item-link.highlight {
  background-color: var(--primary);
  color: #ffffff;
  margin-top: 8px;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  padding: 36px 0 30px;
  background: radial-gradient(circle at top right, rgba(32, 92, 78, 0.08), transparent 70%);
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pill-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #e5f4ef;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

body.dark-mode .pill-tag {
  background-color: #1a382f;
  color: #6fe1b1;
}

.pill-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.3);
}

.hero-title {
  font-size: 2.1rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-title span {
  color: var(--primary);
  position: relative;
}

body.dark-mode .hero-title span {
  color: #4bd79a;
}

.hero-desc {
  font-size: 1.05rem;
  max-width: 600px;
}

/* Quick Action Cards */
.quick-action-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 8px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.quick-card.highlight {
  border-color: rgba(217, 119, 54, 0.4);
  background: linear-gradient(135deg, var(--bg-card), #fef7f2);
}

body.dark-mode .quick-card.highlight {
  background: linear-gradient(135deg, var(--bg-card), #261b14);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-subtle);
  color: var(--primary);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.quick-card.highlight .card-icon {
  background: #fdeee3;
  color: var(--secondary);
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-info strong {
  font-size: 0.98rem;
  color: var(--text-main);
}

.card-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.arrow-icon {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Metrics bar */
.stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 10px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.stat-num {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}

body.dark-mode .stat-num {
  color: #5be3a8;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.stat-sep {
  width: 1px;
  height: 30px;
  background-color: var(--border-color);
}

/* Secciones generales */
.section-block {
  padding: 50px 0;
}

.portal-bg {
  background-color: #f1f6f4;
}

body.dark-mode .portal-bg {
  background-color: #0f1a17;
}

.turnos-bg {
  background: linear-gradient(180deg, var(--bg-main) 0%, #edf5f1 100%);
}

body.dark-mode .turnos-bg {
  background: linear-gradient(180deg, var(--bg-main) 0%, #0d1714 100%);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 30px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: #e2f1ec;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

body.dark-mode .section-badge {
  background: #19382e;
  color: #71dfb1;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 0.95rem;
}

/* =========================================================
   PORTAL DE CLIENTES
   ========================================================= */
.portal-box {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.portal-header-icon {
  width: 54px;
  height: 54px;
  background: #e8f5f0;
  color: var(--primary);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 14px;
}

body.dark-mode .portal-header-icon {
  background: #193a2f;
  color: #5be3a8;
}

.portal-login-view h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.portal-login-view p {
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.clean-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  font-size: 0.95rem;
  pointer-events: none;
}

.input-with-icon input,
.input-with-icon select,
textarea,
.custom-date-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: var(--transition);
}

textarea {
  padding: 12px 14px;
}

.custom-date-input {
  padding: 12px 14px;
}

.input-with-icon input:focus,
.input-with-icon select:focus,
textarea:focus,
.custom-date-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 67, 56, 0.15);
}

.form-row-remember {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-muted);
}

.form-link {
  color: var(--primary);
  font-weight: 600;
}

.portal-hint {
  margin-top: 18px;
  padding: 12px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Portal Logged In State */
.dash-user-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.dash-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dash-user-meta {
  flex: 1;
}

.user-greeting {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.dash-user-meta h4 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.badge-active {
  font-size: 0.72rem;
  color: #1d7c58;
  font-weight: 600;
}

body.dark-mode .badge-active {
  color: #5fe0a9;
}

.logout-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.logout-btn:hover {
  background: #fee;
  color: #d93838;
  border-color: #fcc;
}

.tax-status-banner {
  background: #fff8ee;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

body.dark-mode .tax-status-banner {
  background: #231b10;
  border-color: #634015;
}

.tax-status-icon.warning {
  color: #d97706;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tax-status-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tax-status-text strong {
  font-size: 0.85rem;
  color: #92400e;
}

body.dark-mode .tax-status-text strong {
  color: #fbbf24;
}

.tax-status-text span {
  font-size: 0.75rem;
  color: #b45309;
}

/* Tabs inside portal */
.dash-tabs-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.dash-tab {
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition);
}

.dash-tab.active {
  background-color: var(--primary);
  color: #fff;
}

.dash-tab-content {
  display: none;
}

.dash-tab-content.active {
  display: block;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.doc-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: #edf7f3;
  color: var(--primary);
  flex-shrink: 0;
}

.doc-icon.pdf {
  background: #fef2f2;
  color: #dc2626;
}

.doc-icon.check {
  background: #f0fdf4;
  color: #16a34a;
}

.doc-icon.invoice {
  background: #eff6ff;
  color: #2563eb;
}

.doc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.doc-info strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.doc-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.doc-download-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.doc-download-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.dash-footer-note {
  margin-top: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* =========================================================
   CARGA DE DOCUMENTACIÓN
   ========================================================= */
.uploader-container {
  max-width: 650px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.uploader-fields-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.dropzone {
  border: 2px dashed #9bc3b6;
  background: #f8fbf9;
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

body.dark-mode .dropzone {
  border-color: #2b5748;
  background: #111d19;
}

.dropzone.drag-active {
  border-color: var(--primary-accent);
  background: #eef9f4;
  transform: scale(1.01);
}

.file-input-hidden {
  display: none;
}

.dropzone-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

body.dark-mode .dropzone-icon {
  color: #5be3a8;
}

.dropzone-content h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.browse-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 700;
}

.dropzone-content p {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* File queue list */
.queued-files-box {
  margin-top: 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.queued-files-box h5 {
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.file-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.queued-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  border: 1px solid var(--border-color);
}

.file-meta-name {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-file-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 2px 6px;
}

/* Progress bar */
.upload-progress-wrapper {
  margin-top: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-subtle);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-accent));
  transition: width 0.3s ease;
}

/* Success Banner */
.success-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 15px;
}

body.dark-mode .success-banner {
  background: #11281d;
  border-color: #1e5138;
}

.success-banner-icon {
  font-size: 1.8rem;
  color: #16a34a;
  flex-shrink: 0;
}

.success-banner-body h4 {
  font-size: 1.1rem;
  color: #14532d;
  margin-bottom: 6px;
}

body.dark-mode .success-banner-body h4 {
  color: #86efac;
}

.success-banner-body p {
  font-size: 0.86rem;
  color: #166534;
  margin-bottom: 12px;
}

body.dark-mode .success-banner-body p {
  color: #bbf7d0;
}

/* =========================================================
   TURNOS DE CONSULTA
   ========================================================= */
.turnos-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.turnos-steps-tracker {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.step-indicator {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.step-indicator span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-main);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}

.step-indicator.active {
  color: var(--primary);
  border-color: var(--primary);
  background: #edf6f2;
}

body.dark-mode .step-indicator.active {
  background: #153229;
  color: #6fe1b1;
}

.step-indicator.active span {
  background: var(--primary);
  color: #fff;
}

.booking-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.step-heading {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.selection-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
}

.choice-card input[type="radio"] {
  accent-color: var(--primary);
  transform: scale(1.15);
}

.choice-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-subtle);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.choice-card.active {
  border-color: var(--primary);
  background-color: #f3f8f5;
}

body.dark-mode .choice-card.active {
  background-color: #122820;
}

.choice-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
}

.choice-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.calendar-picker-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-picker-box label {
  font-weight: 600;
  font-size: 0.85rem;
}

.helper-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.time-slot {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.time-slot:hover {
  border-color: var(--primary);
}

.time-slot.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.summary-pill-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

.sum-label {
  color: var(--text-muted);
}

.sum-label i {
  width: 16px;
  color: var(--primary);
}

.form-grid-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-group-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn-group-split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Card Confirmación Turno */
.booking-confirmed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.confirmed-icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

body.dark-mode .confirmed-icon {
  background: #143825;
  color: #4ade80;
}

.ticket-receipt {
  background: var(--bg-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.confirmed-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-accordion {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-arrow {
  color: var(--text-light);
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 0 16px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  display: block;
}

/* =========================================================
   BOTONES Y COMPONENTES GLOBALES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(21, 67, 56, 0.25);
}

.btn-secondary {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-success {
  background-color: #16a34a;
  color: #fff;
}

.btn-success:hover {
  background-color: #15803d;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 1rem;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

/* Floating WhatsApp */
.floating-contact {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 99;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.floating-btn.whatsapp {
  background: #25d366;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-tooltip {
  display: none;
}

/* Footer */
.footer-main {
  background-color: var(--bg-dark);
  color: #a4b3ae;
  padding: 40px 0 25px;
  font-size: 0.88rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.text-white {
  color: #ffffff !important;
}

.text-white-muted {
  color: #8da49d !important;
}

.footer-brand p {
  color: #8da49d;
  font-size: 0.84rem;
  margin-top: 10px;
  max-width: 480px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
}

.footer-contact-info i {
  color: #4bd79a;
  width: 20px;
}

.footer-bottom {
  padding-top: 20px;
  font-size: 0.78rem;
  color: #667973;
  text-align: center;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #111827;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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

.toast-notification i {
  color: #22c55e;
}

/* Clases de utilidad */
.hidden {
  display: none !important;
}

.mt-20 {
  margin-top: 20px;
}

.mt-25 {
  margin-top: 25px;
}

/* =========================================================
   MEDIA QUERIES (RESPONSIVE TABLET & DESKTOP)
   ========================================================= */
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }

  .top-bar-content {
    font-size: 0.88rem;
  }

  .menu-toggle-btn {
    display: none;
  }

  .mobile-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    justify-content: center;
    background: none;
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 4px;
  }

  .nav-item-link {
    font-size: 0.88rem;
    padding: 8px 12px;
  }

  .nav-item-link.highlight {
    margin-top: 0;
  }

  .hero-section {
    padding: 60px 0 50px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .quick-action-cards {
    flex-direction: row;
  }

  .quick-card {
    flex: 1;
  }

  .uploader-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .uploader-fields-grid .form-group:first-child {
    grid-column: span 2;
  }

  .selection-grid {
    flex-direction: row;
  }

  .choice-card {
    flex: 1;
  }

  .form-grid-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .form-grid-inputs .form-group:nth-child(4) {
    grid-column: span 2;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }

  .confirmed-actions {
    flex-direction: row;
    justify-content: center;
  }
}