        /* 
ESTILOS COMPLETOS PARA PLANTILLA DE CITAS
===============================================================
👨‍💻 Solo cambia LOS COLORES  para personalizar tu sistema web.
🚫 No toques nada más para evitar que algo se desconfigure.
*/
 :root {
      --color-primario: #1a5f7a; /* Color principal: se usa en encabezados, color de fondo principal, algunos botones, descripciones, títulos importantes y fondo de pie de pagina */
      --color-secundario: #2c8c99; /* Color secundario: usado en iconos, adornos de titulo, precios y algunos botones */
      --color-terciario: #6cc6d7; /* Color para el texto mas chico */
      --color-texto: #2d3748; /* Color para el fondo de la pagina y algunos titulos */
      --color-fondo: #f7fafc; /* Color para el fondo de la pagina */
      --color-blanco: #ffffff; /* Color para algunos titulos, formulario y tarjetas de servcios */
    }
 /* 🚫 Recuerda: No cambies nada fuera de esta sección para que todo siga funcionando bien. */

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    body {
      background-color: var(--color-fondo);
      color: var(--color-texto);
      line-height: 1.6;
    }

    header {
      background: linear-gradient(rgba(26, 95, 122, 0.85), rgba(26, 95, 122, 0.85)), url('https://images.unsplash.com/photo-1532938911079-1b06ac7ceec7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
      background-size: cover;
      background-position: center;
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: white;
      padding: 0 20px;
    }

    .logo {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      border: 3px solid var(--color-blanco);
      margin-bottom: 30px;
      object-fit: cover;
      background-color: var(--color-blanco);
      padding: 15px;
    }

    h1 {
      font-size: 3rem;
      margin-bottom: 15px;
      letter-spacing: 1.5px;
      font-weight: 600;
    }

    .tagline {
      font-size: 1.5rem;
      margin-bottom: 30px;
      font-weight: 300;
    }

    .btn {
      display: inline-block;
      background: var(--color-blanco);
      color: var(--color-primario);
      padding: 12px 30px;
      border: none;
      border-radius: 30px;
      font-size: 1.1rem;
      font-weight: bold;
      letter-spacing: 1px;
      transition: all 0.3s;
      text-decoration: none;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .btn:hover {
      background: var(--color-terciario);
      color: var(--color-blanco);
      transform: translateY(-3px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    section {
      padding: 80px 20px;
      max-width: 1200px;
      margin: 0 auto;
    }

    h2 {
      text-align: center;
      font-size: 2.5rem;
      margin-bottom: 50px;
      color: var(--color-primario);
      position: relative;
    }

    h2::after {
      content: '';
      display: block;
      width: 100px;
      height: 4px;
      background: var(--color-terciario);
      margin: 15px auto;
      border-radius: 2px;
    }

    .servicios-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
    }

    .servicio-card {
      background: var(--color-blanco);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
      transition: all 0.3s;
      cursor: pointer;
      border-top: 5px solid var(--color-secundario);
    }

    .servicio-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    }

    .servicio-imagen {
      height: 200px;
      overflow: hidden;
    }

    .servicio-imagen img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s;
    }

    .servicio-card:hover .servicio-imagen img {
      transform: scale(1.1);
    }

    .servicio-contenido {
      padding: 20px;
      position: relative;
    }

    .servicio-titulo {
      font-size: 1.5rem;
      margin-bottom: 10px;
      color: var(--color-primario);
    }

    .servicio-precio {
      font-size: 1.3rem;
      color: var(--color-secundario);
      font-weight: bold;
      margin-bottom: 15px;
    }

    .servicio-descripcion {
      margin-bottom: 15px;
      color: #4a5568;
    }

    .servicio-detalles {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.5s ease;
      padding: 0 20px;
      background-color: #edf2f7;
    }

    .servicio-card.active .servicio-detalles {
      max-height: 500px;
      padding: 20px;
    }

    .servicio-detalles ul {
      list-style-type: none;
    }

    .servicio-detalles li {
      margin-bottom: 8px;
      position: relative;
      padding-left: 25px;
    }

    .servicio-detalles li::before {
      content: '✓';
      color: var(--color-secundario);
      position: absolute;
      left: 0;
      font-weight: bold;
    }

    .btn-saber-mas {
      background: transparent;
      color: var(--color-primario);
      border: 2px solid var(--color-primario);
      padding: 8px 15px;
      border-radius: 30px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s;
      margin-top: 10px;
      display: inline-block;
    }

    .btn-saber-mas:hover {
      background: var(--color-primario);
      color: white;
    }

    #citas {
      background-color: #e6f2f5;
    }

    .form-cita {
      max-width: 600px;
      margin: 0 auto;
      background: var(--color-blanco);
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: var(--color-primario);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 12px 15px;
      border: 2px solid #e2e8f0;
      border-radius: 8px;
      font-size: 16px;
      transition: all 0.3s;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      border-color: var(--color-terciario);
      outline: none;
      box-shadow: 0 0 0 3px rgba(108, 198, 215, 0.2);
    }

    .hora-ocupada {
      color: #a0aec0;
      text-decoration: line-through;
      cursor: not-allowed;
    }

    .mapa-container {
      height: 400px;
      margin-top: 30px;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .mapa-container iframe {
      width: 100%;
      height: 100%;
      border: none;
    }

    .contacto {
      background: var(--color-primario);
      color: white;
      text-align: center;
    }

    .contacto h2 {
      color: white;
    }

    .contacto h2::after {
      background: var(--color-terciario);
    }

    .info-contacto {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
      margin-top: 50px;
    }

    .info-item {
      margin-bottom: 20px;
    }

    .info-item i {
      font-size: 2rem;
      color: var(--color-terciario);
      margin-bottom: 15px;
    }

    .info-item h3 {
      font-size: 1.3rem;
      margin-bottom: 10px;
    }

    .info-item a {
      color: var(--color-terciario);
      text-decoration: none;
    }

    .info-item a:hover {
      text-decoration: underline;
    }

    .whatsapp-float {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 60px;
      height: 60px;
      background-color: #25D366;
      color: white;
      border-radius: 50%;
      text-align: center;
      font-size: 30px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
    }

    .whatsapp-float:hover {
      transform: scale(1.1);
      background-color: #128C7E;
    }

    footer {
      background: #0f2e3d;
      color: #cbd5e0;
      text-align: center;
      padding: 20px;
      font-size: 0.9rem;
    }

    @media (max-width: 768px) {
      h1 {
        font-size: 2rem;
      }
      
      .tagline {
        font-size: 1.2rem;
      }
      
      section {
        padding: 50px 0px;
      }
      
      .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
      }
    }

    /* Estilos para las tarjetas de servicios dinámicas */
    .servicios-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
      margin-top: 30px;
    }
    
    .servicio-card {
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0,0,0,0.08);
      transition: transform 0.3s ease;
    }
    
    .servicio-card:hover {
      transform: translateY(-5px);
    }
    
    .servicio-imagen img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }
    
    .servicio-contenido {
      padding: 15px;
      background: #fff;
    }
    
    .servicio-detalles {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
      background: #f7fafc;
    }
    
    .servicio-card.active .servicio-detalles {
      max-height: 500px;
      padding: 15px;
    }
    
    /* Estilos para horas ocupadas */
    .hora-ocupada {
      color: #a0aec0;
      text-decoration: line-through;
    }

    /* Estados de carga mejorados */
    .loading-state {
      position: relative;
      color: transparent !important;
    }
    
    .loading-state::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 20px;
      height: 20px;
      border: 3px solid rgba(0,0,0,0.1);
      border-radius: 50%;
      border-top-color: var(--color-terciario);
      animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
      to { transform: translate(-50%, -50%) rotate(360deg); }
    }
    
    /* Select de hora durante carga */
    #hora[disabled] {
      background-color: #f8f8f8;
      color: #999;
      cursor: wait;
    }
    
    /* Botón durante envío */
    .btn--loading .fa-spinner {
      margin-right: 8px;
      animation: spin 1s linear infinite;
    }
    
    /* Mensaje de carga para select */
    .loading-message {
      color: #666;
      font-style: italic;
    }
    
    /* Transiciones suaves */
    #hora, #servicio, .btn {
      transition: all 0.3s ease;
    }

    /* Estados de carga mejorados */
    .loading {
      position: relative;
      color: transparent !important;
    }
    
    .loading::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 20px;
      height: 20px;
      border: 3px solid rgba(0,0,0,0.1);
      border-radius: 50%;
      border-top-color: var(--color-terciario);
      animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
      to { transform: translate(-50%, -50%) rotate(360deg); }
    }
    
    /* Botón durante envío */
    .btn--loading {
      position: relative;
      opacity: 0.8;
    }
    
    .btn--loading .fa-spinner {
      margin-right: 8px;
    }
    
    /* Select durante carga */
    #hora[disabled] {
      background-color: #f8f8f8;
      cursor: wait;
    }
    
    /* Transiciones suaves */
    select, button {
      transition: all 0.3s ease;
    }
    
    /* Mensajes de estado */
    option[disabled] {
      color: #666;
      font-style: italic;
    }
    
    .hora-ocupada {
      color: #a0aec0;
      text-decoration: line-through;
    }
    /* Estilos para información de horarios */
.info-horarios {
  background-color: #e3f2fd !important;
  border-left: 4px solid #2196f3;
  padding: 12px;
  margin: 10px 0;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
}

/* Estilos para opciones con horarios específicos */
option[title] {
  position: relative;
}

option[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 100%;
  top: 0;
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 1000;
}

/* Mejora visual para horarios ocupados */
.hora-ocupada {
  color: #dc3545 !important;
  font-style: italic;
}

/* Loading states */
select.loading {
  opacity: 0.7;
  background-color: #f8f9fa;
}

.btn--loading {
  opacity: 0.7;
  pointer-events: none;
}
.info-horarios {
  margin-top: 10px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 5px;
  font-size: 14px;
  border-left: 4px solid #007bff;
}

.hora-ocupada {
  color: #dc3545 !important;
  font-style: italic;
}

option[title] {
  position: relative;
}

option[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 100%;
  top: 0;
  background: #fff;
  border: 1px solid #ccc;
  padding: 5px;
  z-index: 1000;
  width: 200px;
}
/* Estilos para select de hora */
#hora.loading {
  opacity: 0.7;
  background-color: #f8f9fa;
}



/* Indicador visual de carga */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.loading {
  animation: pulse 1.5s infinite;
}
/* Estilos para horarios ocupados */
.hora-ocupada {
  color: #dc3545 !important;
  background-color: #fff5f5 !important;
  text-decoration: line-through;
}

/* Estilos para horarios disponibles */
#hora option:not(.hora-ocupada) {
  color: #198754;
  font-weight: 500;
}

/* Mejorar visibilidad del select durante carga */
#hora:disabled {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  opacity: 0.8;
}

/* ESTILOS DEL CARRUSEL */
.servicios-carrusel {
  position: relative;
  margin: 40px auto;
  overflow: hidden;
}

.carrusel-contenedor {
  display: flex;
  transition: transform 0.5s ease;
}

.servicio-slide {
  min-width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* ESTILOS DEL CARRUSEL */
.servicios-carrusel {
  position: relative;
  margin: 40px auto;

  overflow: hidden;
  padding: 10px;
}

.carrusel-contenedor {
  display: flex;
  transition: transform 0.5s ease;
  margin: 0 -15px;
}

.servicio-slide {
  min-width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Controles del carrusel */
.carrusel-controls {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  gap: 15px;
}

.carrusel-btn {
  background: var(--color-primario);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 18px;
}

.carrusel-btn:hover {
  background: var(--color-secundario);
  transform: scale(1.1);
}

.carrusel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--color-primario);
  transform: scale(1.2);
}

/* Indicadores de navegación */
.carrusel-info {
  text-align: center;
  margin-top: 15px;
  color: #666;
  font-size: 14px;
}

/* Responsive */
@media (min-width: 768px) {
  .servicio-slide {
    min-width: 50%;
  }
}

@media (min-width: 1024px) {
  .servicio-slide {
    min-width: 33.333%;
  }
}

@media (max-width: 767px) {
  .carrusel-btn {
    width: 40px;
    height: 40px;
  }
}

/* Estilos MEJORADOS para horarios ocupados */
#hora option.hora-ocupada {
  color: #dc3545 !important;
  background-color: #fff5f5 !important;
  text-decoration: line-through;
  font-style: italic;
  opacity: 0.8;
}

/* Estilos para horarios disponibles */
#hora option.hora-disponible {
  color: #198754 !important;
  font-weight: 500;
  background-color: #f8fff8 !important;
}

/* Mejorar la visualización general del select */
#hora {
  padding: 12px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: white;
}

#hora:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#hora:disabled {
  background-color: #f8f9fa;
  border-color: #ced4da;
  opacity: 0.7;
}

/* Tooltip para opciones (mejorado) */
#hora option[title]:hover {
  background-color: #e9ecef !important;
}

/* Indicador visual de carga */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.loading {
  animation: pulse 1.5s infinite;
  background-color: #f8f9fa !important;
}

/* Mensaje cuando no hay horarios */
#hora option[value=""] {
  color: #6c757d;
  font-style: italic;
}

/* Estilos para horas pasadas */
.hora-pasada {
  color: #6c757d !important;
  background-color: #f8f9fa !important;
  text-decoration: line-through;
  font-style: italic;
  opacity: 0.7;
}

/* Mejorar visibilidad de tooltips */
option[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 100%;
  top: 0;
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 12px;
  z-index: 1000;
  width: 200px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  font-size: 14px;
}







       /* 🔒 ACTIVADOR - OCULTO POR DEFECTO */
        #activador-licencia {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            font-family: Arial, sans-serif;
        }

        .activador-contenido {
            background: white;
            padding: 30px;
            border-radius: 10px;
            text-align: center;
            max-width: 350px;
            width: 90%;
        }

        #input-licencia {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 15px;
            text-align: center;
        }

        .btn-activar {
            background: #007cba;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            width: 100%;
        }

        #mensaje-activacion {
            margin-top: 15px;
            padding: 10px;
            border-radius: 5px;
            display: none;
        }

        .mensaje-exito { background: #e8f5e8; color: #2e7d32; }
        .mensaje-error { background: #ffebee; color: #c62828; }

        #contenido-principal {
            display: none;
        }