@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-base: #f8fafc;
  --bg-vidrio: rgba(255, 255, 255, 0.78);
  --borde-vidrio: rgba(255, 255, 255, 0.30);
  --texto-principal: #0f172a;
  --texto-atenuado: #475569;
  --destacado: #008b8b;
  --destacado-hover: #006d6d;
  --destacado-suave: #e0f2fe;
  --destacado-cyan: #00e5ff;
  --eliminar: #e11d48;
  --exitoso: #059669;
  --advertencia: #d97706;
  --sombra-suave: 0 10px 30px -10px rgba(15, 23, 42, 0.09);
  --sombra-cyan: 0 10px 30px -10px rgba(0, 229, 255, 0.2);

}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-base);
  color: var(--texto-principal);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Fondo Aurora Boreal Claro */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.aurora-burbuja {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: flotar 14s infinite alternate ease-in-out;
}

.burbuja-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #a5f3fc, #bae6fd);
  top: -120px;
  left: -100px;
}

.burbuja-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #ddd6fe, #fbcfe8);
  top: 25%;
  right: -100px;
  animation-delay: -4s;
}

.burbuja-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #bbf7d0, #99f6e4);
  bottom: -100px;
  left: 30%;
  animation-delay: -8s;
}

@keyframes flotar {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35px, 25px) scale(1.08); }
}

.tarjeta-vidriada {
  background: var(--bg-vidrio);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--borde-vidrio);
  border-radius: 20px;
  box-shadow: var(--sombra-suave);
  padding: 1.5rem;
}


.contenedor {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
header {
  position: sticky;
  top: 0; /* Frena exactamente en el borde superior */
  z-index: 50;
  padding-top: 1rem; /* Mantiene el margen visual arriba de la tarjeta */
  padding-bottom: 0.5rem;
  margin-bottom: 2.5rem;
  
  /* Tapa el contenido que pasa por detrás (usa la variable de fondo de tu body) */
 background: var(--aurora-bg);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  margin-top: 1.5rem;
 }
 nav.tarjeta-vidriada{
  padding: 0.9rem 1.5rem;
  background-color: white;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--destacado);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-acciones {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Botones */
.btn {
  padding: 0.58rem 1.1rem;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-primario {
  background: var(--destacado);
  color: #fff;
}

.btn-primario:hover {
  background: var(--destacado-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.85);
  color: var(--texto-principal);
  border: 1px solid #cbd5e1;
}

.btn-outline:hover {
  background: #fff;
  border-color: var(--destacado);
}

.btn-eliminar {
  background: #ffe4e6;
  color: var(--eliminar);
}

.btn-eliminar:hover {
  background: var(--eliminar);
  color: #fff;
}

.btn-exitoso {
  background: #d1fae5;
  color: var(--exitoso);
}

.btn-exitoso:hover {
  background: var(--exitoso);
  color: #fff;
}

/* Popover de información en el header */
.info-popover {
  /* En navegadores con Popover API, reseteamos estilos por defecto del navegador */
  margin: 0;
  inset: auto;
  top: 5.2rem;
  right: max(1.5rem, calc((100% - 1220px) / 2 + 1.5rem));
  width: min(300px, calc(100vw - 3rem));
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: var(--sombra-suave), 0 18px 36px -12px rgba(15, 23, 42, 0.18);
  z-index: 60;
}

.info-popover strong {
  display: block;
  font-size: 0.98rem;
  color: var(--accent-primary);
  margin-bottom: 0.45rem;
}

.info-popover p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

.info-popover p:last-of-type {
  margin-bottom: 0.65rem;
}

/* Animación sutil al abrir (opcional, en navegadores compatibles) */
.info-popover:popover-open {
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  .info-popover:popover-open {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.info-popover {
  transition: opacity 0.18s ease, transform 0.18s ease, overlay 0.18s ease allow-discrete, display 0.18s ease allow-discrete;
}

@media (max-width: 768px) {
  .info-popover {
    top: auto;
    bottom: 1.25rem;
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}





/* Hero Section */
#hero {
  text-align: center;
  padding: 2.6rem 1.5rem;
  margin-bottom: 2.2rem;
  margin-top: 1.5rem;
}

#hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(120deg, #0f172a, #008b8b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero p {
  max-width: 660px;
  margin: 0 auto 1.4rem;
  color: var(--texto-atenuado);
  font-size: 1.02rem;
}

#hero .galeria-presentacion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}



#hero .galeria-presentacion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid #fff;
  transition: 0.4s linear;
}

#hero .galeria-presentacion .caja-imagen {
  border-radius: 16px;
  height: 165px;
  box-shadow: var(--sombra-suave);
  border: 1px solid var(--borde-vidrio);
  overflow: hidden;
}
#hero .galeria-presentacion .caja-imagen:hover img {
  transform: scale(1.03);
}

/* Layout Principal */
.grid-principal {
  display: grid;
  grid-template-columns: 1.45fr 1.15fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

@media (max-width: 960px) {
  .grid-principal {
    grid-template-columns: 1fr;
  }
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

.tarjeta-servicio {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  transition: transform 0.2s ease;
}

.tarjeta-servicio:hover {
  transform: translateY(-3px);
}

.tarjeta-servicio img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 0.8rem;
}

.servicio-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.75rem 0;
  font-size: 0.85rem;
}

.etiqueta {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.etiqueta-tiempo {
  background: #e0f2fe;
  color: #0369a1;
}

.etiqueta-precio {
  background: #ccfbf1;
  color: #0f766e;
  font-size: 0.9rem;
}

/* Panel de Reserva */
.panel {
  position: sticky;
  top: 5.5rem;
}

.estilo-listado {
  list-style: none;
  margin: 0.9rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.item-listado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 4px solid var(--destacado);
  box-shadow: var(--sombra-cyan);
 
}

.sumario{
  border-top: 1px dashed #cbd5e1;
  padding-top: 0.8rem;
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

/* Selector de Peluqueras (hasta 5) */
.selector-estilistas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.estilista-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.65rem 0.45rem;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.estilista-btn img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.35rem;
  border: 2px solid #fff;
}

.estilista-btn strong {
  font-size: 0.82rem;
  color: var(--texto-principal);
  line-height: 1.2;
}

.estilistabtn span {
  font-size: 0.7rem;
  color: var(--texto-atenuado);
  margin-top: 0.15rem;
}

.estilista-btn:hover {
  border-color: var(--destacado);
  transform: translateY(-2px);
}

.estilista-btn.activo {
  border-color: var(--destacado);
  background: #f0fdfa;
  box-shadow: 0 4px 12px rgba(0, 139, 139, 0.16);
}

/* Botones de Fechas: Hoy, Mañana, En 2 días */
.fecha-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.fecha-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.4rem;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}

.fecha-btn .etiqueta-dia {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--texto-principal);
}

.fecha-btn .dia-mes {
  font-size: 0.74rem;
  color: var(--texto-atenuado);
}

.fecha-btn:hover {
  border-color: var(--destacado);
}

.fecha-btn.activo {
  background: var(--destacado);
  border-color: var(--destacado);
  color: #fff;
}

.fecha-btn.activo .etiqueta-dia,
.fecha-btn.activo .dia-mes {
  color: #fff;
}

/* Botones de Horarios Disponibles */
.hora-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.hora-btn {
  padding: 0.55rem 0.4rem;
  border-radius: 10px;
  border: 1.5px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.hora-btn:hover {
  background: #ccfbf1;
  border-color: var(--destacado);
  transform: translateY(-1px);
}

.hora-btn.activo {
  background: var(--destacado);
  border-color: var(--destacado);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 139, 139, 0.25);
}

/* Formularios */
.form-grupo {
  margin-bottom: 1rem;
}

.form-grupo label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--texto-atenuado);
}

input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.95);
  font-family: inherit;
  font-size: 0.92rem;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--destacado);
}

/* Modal Nativo Dialog */
dialog {
  margin: auto;
  border: none;
  border-radius: 20px;
  padding: 0;
  background: transparent;
  max-width: 440px;
  width: 92%;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}

.auth-links {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
  font-size: 0.84rem;
}

.auth-links a {
  color: var(--destacado);
  font-weight: 600;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Tablas y Estados */
.contenedor-tabla {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.88rem;
}

th, td {
  text-align: left;
  padding: 0.78rem;
  border-bottom: 1px solid #e2e8f0;
}

.status-pendiente { background: #fef3c7; color: var(--advertencia); }
.status-confirmado { background: #d1fae5; color: var(--exitoso); }
.status-anulado { background: #ffe4e6; color: var(--eliminar); }

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

.horarios-franjas-contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
  max-height: 240px;
  overflow-y: auto;
}

.horario-franja {
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.horario-disponible { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.horario-ocupado { background: #f1f5f9; color: #64748b; text-decoration: line-through; }


/* Footer */
footer {
  margin-top: 1rem;
  padding-bottom: 2.5rem;
}

.sitio-footer {
  padding: 2rem 1.75rem 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.footer-marca p {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 380px;
}

.sitio-footer h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.7rem;
}

.footer-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-lista li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-lista strong {
  color: var(--text-main);
  font-weight: 600;
}

.footer-pie-pagina {
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-nota {
  color: var(--accent-primary);
  font-weight: 600;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}





/* ======================================
   ESTILOS NOTIFICACIONES TOAST
   ======================================*/

/* CONTENEDOR DE TOAST */
.contenedor-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;

    display: flex;
    flex-direction: column;
    gap: 12px;

    width: min(360px, calc(100vw - 40px));
    pointer-events: none;
}

/* NOTIFICACIÓN */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px;
    border-radius: 10px;

    background: #1e293b;
    color: white;

    border-left: 4px solid #0ea5e9;
    box-shadow: 0 8px 25px #0003;

    opacity: 0;
    transform: translateX(40px);

    transition: opacity .3s ease, transform .3s ease;

    pointer-events: auto;
}

/* ENTRADA */
.toast-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ICONO */
.toast-icono {
    font-size: 20px;
    font-weight: bold;
}

/* MENSAJE */
.toast-mensaje {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

/* CERRAR */
.toast-cerrar {
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 23px;
    cursor: pointer;
}

.toast-cerrar:hover {
    color: white;
}

/* TIPOS */
.toast-exito {
    border-left-color: #22c55e;
}

.toast-exito .toast-icono {
    color: #22c55e;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-error .toast-icono {
    color: #ef4444;
}

.toast-advertencia {
    border-left-color: #f59e0b;
}

.toast-advertencia .toast-icono {
    color: #f59e0b;
}

.toast-info {
    border-left-color: #0ea5e9;
}

.toast-info .toast-icono {
    color: #0ea5e9;
}
