/*
   =====================================================================
   AGAVE ELITE EXPERIENCE · Custom CSS para SimplyBook.me
   Cómo usarlo: borra TODO el contenido de tu caja de Custom CSS
   y pega este archivo completo. Guarda y revisa en "Previsualizar".
   Sigue el mismo orden que la plantilla de SimplyBook.
   =====================================================================
*/

/* ---------- FUENTES Y COLORES DE MARCA ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --ae-gold:       #B08A3E;
  --ae-gold-light: #D9B96E;
  --ae-gold-dark:  #8A6A2C;
  --ae-espresso:   #1E1611;
  --ae-cream:      #FBF7EF;
  --ae-text:       #2B211A;
  --ae-muted:      #6E5E4E;
  --ae-radius:     16px;
  --ae-ease:       cubic-bezier(.22, .61, .36, 1);
  --ae-title:      'Cormorant Garamond', Georgia, serif;
  --ae-body:       'Montserrat', Arial, sans-serif;
}

body, #events, #eventForm {
  font-family: var(--ae-body) !important;
  -webkit-font-smoothing: antialiased;
}


/* =====================================================================
   1. TARJETAS DE SERVICIOS (#events)
   ===================================================================== */

/* Cada tarjeta: entra subiendo, una tras otra, y se eleva al pasar el mouse */
#events .event,
#events .item,
#events li {
  background: var(--ae-cream) !important;
  border: 1px solid rgba(176, 138, 62, .25) !important;
  border-radius: var(--ae-radius) !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(30, 22, 17, .18) !important;
  transition: transform .45s var(--ae-ease), box-shadow .45s var(--ae-ease), border-color .45s var(--ae-ease) !important;
  opacity: 0;
  animation: aeFadeUp .8s var(--ae-ease) forwards;
}
#events .event:nth-child(1), #events .item:nth-child(1), #events li:nth-child(1) { animation-delay: .05s; }
#events .event:nth-child(2), #events .item:nth-child(2), #events li:nth-child(2) { animation-delay: .17s; }
#events .event:nth-child(3), #events .item:nth-child(3), #events li:nth-child(3) { animation-delay: .29s; }
#events .event:nth-child(4), #events .item:nth-child(4), #events li:nth-child(4) { animation-delay: .41s; }
#events .event:nth-child(5), #events .item:nth-child(5), #events li:nth-child(5) { animation-delay: .53s; }
#events .event:nth-child(6), #events .item:nth-child(6), #events li:nth-child(6) { animation-delay: .65s; }
#events .event:nth-child(n+7), #events .item:nth-child(n+7), #events li:nth-child(n+7) { animation-delay: .75s; }

@media (hover: hover) {
  #events .event:hover, #events .item:hover, #events li:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(30, 22, 17, .32) !important;
    border-color: var(--ae-gold) !important;
  }
}

/* Foto: zoom lento al pasar el mouse */
#events img {
  transition: transform 1.2s var(--ae-ease), filter .6s var(--ae-ease) !important;
}
@media (hover: hover) {
  #events .event:hover img, #events .item:hover img, #events li:hover img {
    transform: scale(1.07);
    filter: saturate(1.15) contrast(1.05);
  }
}


/* Título del servicio */
#events h3 {
  font-family: var(--ae-title) !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--ae-espresso) !important;
  letter-spacing: .01em;
  margin: .6rem 0 .4rem !important;
  transition: color .3s var(--ae-ease);
}
@media (hover: hover) {
  #events .event:hover h3, #events .item:hover h3, #events li:hover h3 {
    color: var(--ae-gold-dark) !important;
  }
}


/* Duración (1 h, 3 h) como etiqueta dorada */
#events p.duration, #events div.duration {
  display: inline-block !important;
  padding: 3px 12px !important;
  border-radius: 999px !important;
  background: rgba(176, 138, 62, .14) !important;
  color: var(--ae-gold-dark) !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
  letter-spacing: .06em;
}


/* Descripción más legible */
#events p.description, #events div.description {
  font-size: .88rem !important;
  line-height: 1.6 !important;
  color: var(--ae-muted) !important;
}
#events p.description a, #events div.description a {
  color: var(--ae-gold-dark) !important;
  font-weight: 600 !important;
}


/* Precio con brillo dorado que lo recorre cada pocos segundos */
#events .price, #events .event-price, #events .service-price {
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  background: linear-gradient(100deg, var(--ae-gold-dark) 40%, var(--ae-gold-light) 50%, var(--ae-gold-dark) 60%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aeShine 4.5s ease-in-out infinite;
}


/* Servicio seleccionado: borde dorado con brillo que "respira" */
#events .selectedEvent {
  border: 2px solid var(--ae-gold) !important;
  border-radius: var(--ae-radius) !important;
  animation: aeGlow 2.4s ease-in-out infinite !important;
  opacity: 1 !important;
}


/* Botón principal (SELECCIONAR / Reservar) con barrido de luz */
#events input.reserve_time_btn,
#eventForm #save_button,
#events .btn-primary,
#events .btn-default,
#events button {
  position: relative;
  background: linear-gradient(135deg, var(--ae-gold) 0%, var(--ae-gold-dark) 100%) !important;
  background-size: 200% 100% !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 12px 26px !important;
  font-family: var(--ae-body) !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(138, 106, 44, .35) !important;
  transition: transform .3s var(--ae-ease), box-shadow .3s var(--ae-ease), background-position .5s var(--ae-ease) !important;
}
@media (hover: hover) {
  #events input.reserve_time_btn:hover,
  #eventForm #save_button:hover,
  #events .btn-primary:hover,
  #events .btn-default:hover,
  #events button:hover {
    transform: translateY(-2px);
    background-position: 100% 0 !important;
    box-shadow: 0 12px 28px rgba(138, 106, 44, .45) !important;
  }
}
#events input.reserve_time_btn:active,
#eventForm #save_button:active,
#events button:active {
  transform: scale(.97);
}


/* Botón secundario "Elegir otro": contorno dorado, se rellena al pasar */
#events input.select_another_btn {
  background: transparent !important;
  color: var(--ae-gold-dark) !important;
  border: 2px solid var(--ae-gold) !important;
  border-radius: 999px !important;
  padding: 10px 22px !important;
  font-family: var(--ae-body) !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: background .3s var(--ae-ease), color .3s var(--ae-ease) !important;
}
@media (hover: hover) {
  #events input.select_another_btn:hover {
    background: var(--ae-gold) !important;
    color: #fff !important;
  }
}


/* =====================================================================
   2. FORMULARIO Y CALENDARIO (#eventForm)
   ===================================================================== */

/* Títulos "Fecha" y "Hora" */
#eventForm #start_date-block-container h3,
#eventForm #timeline-container h3 {
  font-family: var(--ae-title) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--ae-espresso) !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid var(--ae-gold) !important;
  display: inline-block !important;
  animation: aeFadeUp .6s var(--ae-ease) both;
}

/* Botón de confirmar reserva: ya hereda el estilo dorado de arriba,
   aquí lo hacemos más grande porque es el paso final */
#eventForm #save_button {
  padding: 15px 36px !important;
  font-size: .85rem !important;
  animation: aeGlow 2.4s ease-in-out infinite;
}

/* Calendario */
div.ui-widget-content {
  background: #fff !important;
  border: 1px solid rgba(176, 138, 62, .25) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 30px rgba(30, 22, 17, .12) !important;
  font-family: var(--ae-body) !important;
  overflow: hidden;
}
div.ui-widget-content a.ui-state-default {
  border-radius: 8px !important;
  transition: background .25s var(--ae-ease), color .25s var(--ae-ease), transform .25s var(--ae-ease) !important;
}
div.ui-widget-content a.ui-state-default:hover {
  background: rgba(176, 138, 62, .18) !important;
  transform: scale(1.08);
}
div.ui-widget-content a.ui-state-active,
div.ui-widget-content .ui-datepicker-current-day a {
  background: var(--ae-gold) !important;
  color: #fff !important;
  border-color: var(--ae-gold) !important;
}

/* Barra superior del calendario (mes y flechas) */
div.ui-widget-header {
  background: var(--ae-espresso) !important;
  color: var(--ae-gold-light) !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--ae-title) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
}

/* Tabla de horarios */
#timeline-container table.timeline {
  border-collapse: separate !important;
  border-spacing: 4px !important;
  font-family: var(--ae-body) !important;
}
#timeline-container table.timeline td {
  border-radius: 8px !important;
  transition: background .25s var(--ae-ease), transform .25s var(--ae-ease) !important;
}

/* Horario no laborable */
.timeline td.not_worked_time {
  background: #EFEAE2 !important;
  color: #B5AA9C !important;
}

/* Horario disponible */
.timeline td.free_time {
  background: rgba(176, 138, 62, .14) !important;
  color: var(--ae-gold-dark) !important;
  font-weight: 600 !important;
  cursor: pointer;
}
.timeline td.free_time:hover {
  background: rgba(176, 138, 62, .32) !important;
  transform: scale(1.05);
}

/* Horario elegido */
.timeline td.selected_time {
  background: var(--ae-gold) !important;
  color: #fff !important;
  font-weight: 700 !important;
  animation: aePop .35s var(--ae-ease);
}

/* Horario ocupado */
.timeline td.reserved_time {
  background: #E4DDD3 !important;
  color: #9C9083 !important;
  text-decoration: line-through;
}


/* Pantalla de "Cargando": spinner dorado en lugar del default */
div#loading {
  background: rgba(30, 22, 17, .55) !important;
  backdrop-filter: blur(3px);
}
div#loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border: 3px solid rgba(217, 185, 110, .25);
  border-top-color: var(--ae-gold-light);
  border-radius: 50%;
  animation: aeSpin .8s linear infinite;
}


/* Etiquetas del formulario de fecha
   (la plantilla original tenía un error: faltaba el # en dos selectores) */
#start_date-block-container .zend_form dt,
#start_date-block-container .zend_form dt b,
#start_date-block-container .zend_form dd label {
  font-family: var(--ae-body) !important;
  font-size: .85rem !important;
  font-weight: 600 !important;
  color: var(--ae-text) !important;
  letter-spacing: .02em;
}

/* Campos de texto del formulario de datos del cliente */
#eventForm input[type="text"],
#eventForm input[type="email"],
#eventForm input[type="tel"],
#eventForm textarea,
#eventForm select {
  border: 1px solid rgba(176, 138, 62, .35) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  transition: border-color .25s var(--ae-ease), box-shadow .25s var(--ae-ease) !important;
}
#eventForm input:focus,
#eventForm textarea:focus,
#eventForm select:focus {
  border-color: var(--ae-gold) !important;
  box-shadow: 0 0 0 4px rgba(176, 138, 62, .18) !important;
  outline: none !important;
}


/* =====================================================================
   3. ANIMACIONES
   ===================================================================== */
@keyframes aeFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes aeShine {
  0%, 60% { background-position: 100% 0; }
  100%    { background-position: -50% 0; }
}
@keyframes aeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(176, 138, 62, .45); }
  50%      { box-shadow: 0 0 0 8px rgba(176, 138, 62, 0); }
}
@keyframes aePop {
  0%   { transform: scale(.85); }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes aeSpin {
  to { transform: rotate(360deg); }
}


/* =====================================================================
   4. ACCESIBILIDAD Y CELULAR
   ===================================================================== */

/* Quien desactivó animaciones en su teléfono o compu, no las ve */
@media (prefers-reduced-motion: reduce) {
  #events *, #eventForm *, div#loading::after {
    animation: none !important;
    transition: none !important;
  }
  #events .event, #events .item, #events li { opacity: 1 !important; }
}

/* Celular: botones a lo ancho y fáciles de tocar */
@media (max-width: 768px) {
  #events input.reserve_time_btn,
  #events input.select_another_btn,
  #eventForm #save_button,
  #events button {
    width: 100% !important;
    padding: 14px 20px !important;
  }
  #events h3 { font-size: 1.2rem !important; }
}