/* VARIABLES DE DISEÑO (Verde y Dorado - Chiapas) */
:root {
  --primary: #0F4C3A;         /* Verde Chiapas Profundo */
  --primary-light: #186E55;   /* Verde Vibrante */
  --primary-dark: #072C21;    /* Verde Oscuro */
  --secondary: #B99326;       /* Dorado Chiapas */
  --secondary-light: #D4AF37; /* Dorado Brillante */
  --secondary-dark: #8F6F1A;  /* Dorado Mate */
  --accent: #E5C158;          /* Oro claro */
  --text: #2D3748;            /* Gris Oscuro Text */
  --text-muted: #718096;      /* Gris Medio */
  --bg-body: #F7FAFC;         /* Fondo General */
  --bg-white: #FFFFFF;        /* Fondo Contenedores */
  --bg-gold-light: #FDF9EE;   /* Fondo Dorado Suave */
  --border-color: #E2E8F0;    /* Bordes */
  
  --success: #38A169;
  --error: #E53E3E;
  --info: #3182CE;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* ESTILOS GLOBALES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-body);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

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

a:hover {
  color: var(--secondary-dark);
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 0.5rem;
  outline: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(15, 76, 58, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 76, 58, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(185, 147, 38, 0.2);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(185, 147, 38, 0.3);
}

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

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

.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
}

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

.btn-danger {
  background-color: var(--error);
  color: var(--bg-white);
}
.btn-danger:hover {
  background-color: #c53030;
  transform: translateY(-2px);
}

.btn:disabled {
  background: #CBD5E0;
  color: #718096;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* HEADER / NAVIGATION */
.header {
  background-color: var(--bg-white);
  border-bottom: 3px solid var(--secondary);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-container {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-shadow: var(--shadow-md);
}

.logo-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
  border: 2px solid var(--secondary);
}

.brand-text h1 {
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary-dark);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(15, 76, 58, 0.08);
  color: var(--primary);
}

.nav-link.active {
  border-bottom: 2px solid var(--secondary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

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

/* MAIN CONTENT & SPA SECTIONS */
main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.app-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.app-section.active {
  display: block;
}

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

/* HERO SECTION (INICIO) */
.hero {
  background: linear-gradient(135deg, rgba(15, 76, 58, 0.95) 0%, rgba(7, 44, 33, 0.98) 100%), 
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%230F4C3A" width="100" height="100"/><path d="M0 0 L50 50 L100 0 Z" fill="%23B99326" opacity="0.1"/><path d="M0 100 L50 50 L100 100 Z" fill="%23B99326" opacity="0.1"/></svg>');
  background-size: cover;
  color: var(--bg-white);
  padding: 4rem 3rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  border-right: 5px solid var(--secondary);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--secondary-light) 0%, transparent 70%);
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  z-index: 2;
}

.badge {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--primary-dark);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 3rem;
  color: var(--bg-white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

/* Escudo / Ilustración del Hero */
.hero-shield-art {
  width: 260px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid var(--secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.hero-shield-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.hero-shield-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  color: var(--secondary-light);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-shield-subtext {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* SECCIÓN DE INFORMACIÓN (TARJETAS) */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

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

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.info-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--secondary);
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(15, 76, 58, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: bold;
}

.info-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-list {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.info-list li::before {
  content: '✓';
  color: var(--secondary-dark);
  font-weight: bold;
}

/* CONTENEDOR MULTI-PASO DE CITAS */
.booking-container {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 3rem auto;
}

.booking-steps-header {
  background-color: var(--primary-dark);
  padding: 1.5rem 2rem;
  border-bottom: 3px solid var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--bg-white);
}

.booking-steps-title h2 {
  color: var(--bg-white);
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.booking-steps-title p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.steps-indicator {
  display: flex;
  gap: 1.5rem;
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.step-dot.active {
  color: var(--secondary-light);
}

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

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.step-dot.active .step-number {
  background-color: var(--secondary);
  color: var(--primary-dark);
  font-weight: 700;
}

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

.booking-body {
  padding: 2.5rem;
}

.booking-step-content {
  display: none;
}

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

/* ESTILOS DE FORMULARIO */
.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-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.required-star {
  color: var(--error);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background-color: var(--bg-body);
  transition: var(--transition);
  outline: none;
}

input:focus, select:focus {
  border-color: var(--primary-light);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.15);
}

/* Helper de validación de CURP */
.curp-helper {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: flex;
  justify-content: space-between;
}

.curp-valid {
  color: var(--success);
  font-weight: 600;
}

.curp-invalid {
  color: var(--error);
  font-weight: 600;
}

/* SELECCIÓN DE DÍA Y HORA (PASO 2) */
.scheduler-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.date-selection-panel {
  border-right: 1px solid var(--border-color);
  padding-right: 2rem;
}

.slots-selection-panel h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.slot-btn {
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-body);
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  outline: none;
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background-color: rgba(15, 76, 58, 0.05);
  color: var(--primary);
}

.slot-btn.selected {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
  box-shadow: 0 4px 8px rgba(15, 76, 58, 0.2);
}

.slot-btn:disabled {
  background-color: #E2E8F0;
  color: #A0AEC0;
  border-color: #E2E8F0;
  text-decoration: line-through;
  cursor: not-allowed;
  position: relative;
}

.slot-btn:disabled::after {
  content: 'Ocupado';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  font-size: 0.6rem;
  text-decoration: none;
  color: #A0AEC0;
  font-weight: normal;
}

.no-date-selected-message {
  grid-column: span 12;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  background-color: var(--bg-body);
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-color);
  font-style: italic;
}

/* BOTONES DE FLUJO */
.form-navigation {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* ÉXITO / TICKET (PASO 3) */
.success-container {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(56, 161, 105, 0.1);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1.5rem auto;
  border: 4px solid rgba(56, 161, 105, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(56, 161, 105, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 161, 105, 0);
  }
}

.ticket {
  background-color: var(--bg-gold-light);
  border: 2px dashed var(--secondary);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-width: 500px;
  margin: 2rem auto;
  text-align: left;
  position: relative;
  box-shadow: var(--shadow-md);
}

.ticket-header {
  border-bottom: 1px solid rgba(185, 147, 38, 0.3);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.ticket-code {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--secondary-dark);
  background-color: rgba(185, 147, 38, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.ticket-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.ticket-item-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.ticket-item.full {
  grid-column: span 2;
}

.ticket-footer-msg {
  margin-top: 1.5rem;
  background-color: rgba(15, 76, 58, 0.05);
  border-left: 3px solid var(--primary);
  padding: 0.8rem;
  font-size: 0.8rem;
  color: var(--primary-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.ticket-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* ACCESO ADMIN (LOGIN) */
.admin-login-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  max-width: 420px;
  margin: 4rem auto;
  overflow: hidden;
  border-top: 4px solid var(--secondary);
}

.admin-login-header {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  padding: 2rem 1.5rem;
  text-align: center;
}

.admin-login-header h2 {
  color: var(--bg-white);
  font-size: 1.4rem;
  margin-top: 0.5rem;
}

.admin-login-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.admin-login-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* PANEL DE ADMINISTRACIÓN */
.admin-dashboard {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.admin-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-title-area h2 {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-title-area p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-actions-bar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

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

.stat-card {
  background-color: var(--bg-body);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card.gold {
  border-left-color: var(--secondary);
}

.stat-card.info {
  border-left-color: var(--info);
}

.stat-card.success {
  border-left-color: var(--success);
}

.stat-info h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 0.2rem;
}

.stat-icon {
  font-size: 2.2rem;
  opacity: 0.25;
  color: var(--primary-dark);
}

/* Tabla y Controles */
.table-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-filter-box {
  display: flex;
  gap: 0.8rem;
  flex: 1;
  max-width: 600px;
}

.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

th {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) {
  background-color: rgba(247, 250, 252, 0.6);
}

tr:hover {
  background-color: rgba(15, 76, 58, 0.03);
}

.reason-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.reason-obra {
  background-color: #EBF8FF;
  color: #2B6CB0;
}

.reason-seguridad {
  background-color: #FFF5F5;
  color: #C53030;
}

.reason-servicios {
  background-color: #E6FFFA;
  color: #234E52;
}

.reason-otro {
  background-color: #EDF2F7;
  color: #4A5568;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-icon-delete {
  background-color: rgba(229, 62, 62, 0.1);
  color: var(--error);
}

.btn-icon-delete:hover {
  background-color: var(--error);
  color: var(--bg-white);
}

.no-records {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-style: italic;
}

/* FOOTER */
footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  border-top: 5px solid var(--secondary);
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--secondary-light);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--secondary-light);
  padding-left: 4px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* RESPONSIVO */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    gap: 2rem;
  }
  .hero-image {
    display: none; /* Oculta escudo en tablet/móvil para optimizar espacio */
  }
  .hero-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.8rem 1rem;
  }
  .nav-menu {
    display: none; /* Se oculta para simplificar, o se puede alternar */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--secondary);
  }
  .nav-menu.mobile-active {
    display: flex;
  }
  .nav-link {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.8rem;
  }
  .mobile-menu-btn {
    display: block;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .scheduler-layout {
    grid-template-columns: 1fr;
  }
  .date-selection-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }
  
  .steps-indicator {
    display: none; /* Esconde texto indicador en móvil para ahorrar espacio */
  }
  
  .table-controls {
    flex-direction: column;
  }
  .search-filter-box {
    flex-direction: column;
    max-width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

/* ESTILOS DEL MODAL PARA NOTAS DE ADMINISTRACIÓN */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.modal-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--secondary);
}

.modal-header h3 {
  color: var(--bg-white);
  margin: 0;
  font-size: 1.2rem;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--bg-white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  opacity: 0.8;
  transition: var(--transition);
}

.modal-close-btn:hover {
  opacity: 1;
  color: var(--secondary-light);
}

.modal-body {
  padding: 1.5rem;
  font-size: 0.95rem;
  overflow-y: auto;
  flex: 1;
}

.modal-body p {
  margin-bottom: 0.8rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background-color: var(--bg-body);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

/* Estilos de Impresión para el Ticket */
@media print {
  body * {
    visibility: hidden;
  }
  #citationTicket, #citationTicket * {
    visibility: visible;
  }
  #citationTicket {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 100%;
    max-width: 550px;
    border: 2px dashed #B99326 !important;
    background-color: #FDF9EE !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 2rem !important;
    border-radius: 12px !important;
  }
}

.logo-img{
  width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--gob-gold);
    box-shadow: 0 0 10px rgba(194, 157, 93, 0.2);
}