/* ===== FULL BLEED BACKGROUND (arregla el fondo negro a los lados) ===== */
#amb-app-bg{
  background:#fff !important;
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
}
body{overflow-x:hidden}
body.amb-modal-open{overflow:hidden}

/* ===== RESET / BASE ===== */
#amb-app{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  font-family:-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#111;
  background:#fff;
  padding-bottom:100px;
  box-sizing:border-box;
}
#amb-app *{box-sizing:border-box}
#amb-app .amb-loading{padding:40px 16px;text-align:center;color:#767676}

/* ===== HERO: foto | (mapa + datos + estilista) apilados a la derecha ===== */
#amb-app .amb-hero{
  border-bottom:1px solid #EDEDED;margin-bottom:8px;padding:16px;
  display:flex;flex-direction:column;gap:16px;
}
#amb-app .amb-hero-foto{width:100%;height:220px;border-radius:18px;overflow:hidden}
#amb-app .amb-hero-foto img{width:100%;height:100%;object-fit:cover;display:block}

#amb-app .amb-hero-right{display:flex;flex-direction:column}

#amb-app .amb-hero-mapa{display:none}
#amb-app .amb-hero-mapa iframe{width:100%;height:100%;border:0;display:block}

#amb-app .amb-hero-datos h2{margin:0 0 4px;font-size:19px;font-weight:700}
#amb-app .amb-hero-direccion{display:flex;align-items:center;gap:6px;margin:0 0 6px;color:#767676;font-size:13px}
#amb-app .amb-hero-direccion svg{flex-shrink:0;color:#767676}
#amb-app .amb-hero-maps-link{display:inline-block;font-size:12.5px;font-weight:600;color:#111 !important;text-decoration:underline !important;margin-bottom:12px}
#amb-app .amb-hero-links{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
#amb-app .amb-hero-link{
  display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;
  color:#111 !important;text-decoration:none !important;background:#F2F2F2 !important;
  border-radius:20px !important;padding:8px 14px;
}
#amb-app .amb-hero-link svg{flex-shrink:0}
#amb-app .amb-hero-link-whatsapp{background:#E9FBF0 !important;color:#128C4A !important}
#amb-app .amb-hero-horario{font-size:13px;border-top:1px solid #EDEDED;padding-top:10px}
#amb-app .amb-hero-horario summary{cursor:pointer;font-weight:600;color:#111;list-style:none;display:flex;align-items:center;gap:6px}
#amb-app .amb-hero-horario summary::-webkit-details-marker{display:none}
#amb-app .amb-hero-horario summary:after{content:' \25BE';font-weight:400;margin-left:auto}
#amb-app .amb-hero-horario[open] summary:after{content:' \25B4'}
#amb-app .amb-horario-fila{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px solid #f5f5f5;color:#767676}
#amb-app .amb-horario-fila:last-child{border-bottom:none}

#amb-app .amb-hero-estilista{display:flex;align-items:center;gap:10px;padding-top:14px;margin-top:14px;border-top:1px solid #EDEDED}
#amb-app .amb-hero-estilista img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0}
#amb-app .amb-hero-estilista strong{display:block;font-size:14px}
#amb-app .amb-hero-estilista span{font-size:12px;color:#767676}

@media (min-width:700px){
  #amb-app .amb-hero{flex-direction:row;align-items:stretch;padding:24px;gap:24px}
  #amb-app .amb-hero-foto{width:42%;height:auto}
  #amb-app .amb-hero-right{flex:1;min-width:0}
  #amb-app .amb-hero-mapa{display:block;width:100%;height:200px;border-radius:18px;overflow:hidden;margin-bottom:14px}
}

/* ===== PASO 1: BUSCADOR + CATEGORIAS (sidebar) + SERVICIOS ===== */
#amb-app .amb-paso1-layout{display:flex;flex-direction:column}

#amb-app .amb-sidebar{padding:12px 16px;border-bottom:1px solid #EDEDED}

#amb-app .amb-buscador{margin-bottom:12px}
#amb-app .amb-buscador-input{
  width:100%;border:1px solid #ddd !important;border-radius:10px !important;padding:11px 14px;
  font-size:14px;font-family:inherit;background:#F8F8F8 !important;color:#111 !important;box-shadow:none !important;
}
#amb-app .amb-buscador-input:focus{outline:none;border-color:#111 !important;background:#fff !important}

#amb-app .amb-categorias-nav{
  display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
#amb-app .amb-categorias-nav::-webkit-scrollbar{display:none}
#amb-app .amb-cat-nav-item{
  flex:0 0 auto;padding:9px 16px;border-radius:20px !important;background:#F2F2F2 !important;
  color:#111 !important;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;
  border:1px solid transparent !important;transition:background .15s,color .15s;
}
#amb-app .amb-cat-nav-item.activo{background:#111 !important;color:#fff !important}

#amb-app .amb-main-servicios{padding:4px 0 0}
#amb-app .amb-sin-resultados{padding:24px 16px;color:#767676;font-size:13px;text-align:center}

@media (min-width:900px){
  #amb-app .amb-paso1-layout{flex-direction:row;align-items:flex-start;gap:24px;padding:20px 24px}
  #amb-app .amb-sidebar{
    width:270px;flex:0 0 270px;border-bottom:none;padding:0;position:sticky;top:16px;
  }
  #amb-app .amb-categorias-nav{flex-direction:column;overflow-x:visible}
  #amb-app .amb-cat-nav-item{
    width:100%;white-space:normal;word-break:break-word;text-align:left;font-size:12.5px;line-height:1.35;
  }
  #amb-app .amb-main-servicios{flex:1;min-width:0;padding:0}
}

/* ===== SECCIONES DE CATEGORIA ===== */
#amb-app .amb-categoria{margin:0 16px;border-bottom:1px solid #EDEDED}
#amb-app .amb-categoria-header{
  display:flex;align-items:center;justify-content:space-between;padding:16px 4px;cursor:pointer;background:#fff;
}
#amb-app .amb-categoria-header h3{margin:0;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.4px}
#amb-app .amb-categoria-toggle{
  width:26px;height:26px;border-radius:50% !important;background:#F2F2F2 !important;
  display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;color:#111 !important;flex:0 0 auto;
}
@media (min-width:900px){
  #amb-app .amb-categoria{margin:0}
}

#amb-app .amb-servicios-list{display:none;padding-bottom:12px}
#amb-app .amb-servicios-list.abierta{display:block}

/* ===== TARJETA DE SERVICIO ===== */
#amb-app .amb-servicio-card{
  border:1px solid #E4E4E4 !important;border-radius:14px;padding:16px;margin-bottom:12px;background:#fff !important;position:relative;
}
#amb-app .amb-servicio-card.seleccionado{border-color:#111 !important;background:#FAFAFA !important}
#amb-app .amb-servicio-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
#amb-app .amb-servicio-nombre{font-size:15px;font-weight:700;margin:0 0 4px;line-height:1.3;color:#111 !important}
#amb-app .amb-servicio-duracion{color:#767676 !important;font-size:12.5px;margin:0 0 6px}
#amb-app .amb-servicio-precio{font-weight:700;font-size:15px;margin:0 0 8px;color:#111 !important}
#amb-app .amb-servicio-precio .amb-badge-desde{
  font-size:10px;font-weight:700;background:#111 !important;color:#fff !important;padding:2px 7px;
  border-radius:20px;text-transform:uppercase;margin-left:6px;vertical-align:middle;
}
#amb-app .amb-servicio-desc{
  color:#767676 !important;font-size:13px;line-height:1.5;margin:0 0 6px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
#amb-app .amb-servicio-desc.expandida{-webkit-line-clamp:unset;display:block}

#amb-app .amb-mas-info{
  background:none !important;border:none !important;padding:0 !important;color:#111 !important;
  font-size:13px;font-weight:600;text-decoration:underline;cursor:pointer;margin-bottom:10px;
  display:inline-block;box-shadow:none !important;
}

#amb-app .amb-largo-tag{
  display:inline-flex;align-items:center;gap:5px;background:#F2F2F2 !important;border-radius:20px !important;
  padding:3px 10px 3px 4px;font-size:11.5px;font-weight:600;color:#111 !important;cursor:pointer;margin-bottom:10px;
}
#amb-app .amb-largo-tag img{width:16px;height:16px;border-radius:50%;object-fit:cover;flex-shrink:0}
#amb-app .amb-largo-tag-svg{display:inline-flex;align-items:center;flex-shrink:0}
#amb-app .amb-largo-tag-svg svg{width:16px;height:16px}

#amb-app .amb-servicio-bottom{display:flex;justify-content:flex-end}
#amb-app .amb-btn-agendar{
  background:#111 !important;color:#fff !important;border:none !important;padding:10px 18px;
  border-radius:10px !important;font-size:13.5px;font-weight:600;cursor:pointer;box-shadow:none !important;
}
#amb-app .amb-btn-agendar.quitar{background:#fff !important;color:#111 !important;border:1px solid #111 !important}

/* ===== BARRA STICKY INFERIOR (paso 1: continuar a fecha/hora) ===== */
.amb-sticky-bar{
  position:fixed;left:0;right:0;bottom:0;
  background:#fff !important;color:#111 !important;
  padding:14px 16px;
  display:none;align-items:center;justify-content:space-between;
  z-index:1000;
  border-top:2px solid #111;
  box-shadow:0 -6px 20px rgba(0,0,0,.15);
  flex-wrap:wrap;gap:10px;
}
.amb-sticky-bar.visible{display:flex}
.amb-sticky-bar .amb-sticky-info{font-size:13px;line-height:1.4;color:#111 !important}
.amb-sticky-bar .amb-sticky-info strong{font-size:16px;display:block;color:#111 !important}
.amb-sticky-bar .amb-btn{
  width:auto !important;padding:12px 24px !important;margin:0 !important;
  background:#111 !important;color:#fff !important;border:none !important;border-radius:10px !important;
}

/* En mobile, tu sitio tiene su propio menú inferior fijo (75px de alto) -> subimos nuestra barra para que no quede tapada */
@media (max-width:1100px){
  .amb-sticky-bar{ bottom:75px; }
}

/* ===== BOTONES GENERALES ===== */
#amb-app .amb-btn{
  display:block;width:100%;background:#111 !important;color:#fff !important;border:none !important;
  padding:14px;font-size:15px;font-weight:600;border-radius:10px !important;cursor:pointer;text-align:center;box-shadow:none !important;
}
#amb-app .amb-btn:disabled{opacity:.4;cursor:not-allowed}

/* ===== RESUMEN (con botón de quitar) ===== */
#amb-app .amb-resumen{background:#F2F2F2 !important;border-radius:12px;padding:14px 16px;font-size:13px;margin-bottom:16px}
#amb-app .amb-resumen-item{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
#amb-app .amb-resumen-item-info{flex:1}
#amb-app .amb-resumen-remove{
  background:#fff !important;border:1px solid #ccc !important;color:#767676 !important;
  width:22px;height:22px;border-radius:50% !important;font-size:13px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;box-shadow:none !important;
}
#amb-app .amb-resumen-remove:hover{background:#111 !important;color:#fff !important;border-color:#111 !important}
#amb-app .amb-resumen-total{display:flex;justify-content:space-between;font-weight:700;margin-top:8px;border-top:1px solid #ddd;padding-top:8px}

#amb-app .amb-notice{background:#FFF7E0 !important;color:#5c4b00 !important;padding:12px;border-radius:10px;font-size:13px;margin-bottom:14px;line-height:1.5}
#amb-app .amb-notice strong{color:#5c4b00 !important}

/* ===== TOOLTIP / MODAL LARGO ===== */
.amb-tooltip-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px}
.amb-tooltip-card{background:#fff !important;border-radius:14px;padding:20px;max-width:280px;text-align:center}
.amb-tooltip-icono{display:flex;align-items:center;justify-content:center;margin-bottom:10px;color:#111}
.amb-tooltip-icono svg{width:48px;height:48px}
.amb-tooltip-icono img{width:96px;height:96px;border-radius:12px;object-fit:cover}

/* ===== FORMULARIO ===== */
#amb-app .amb-form-group{margin-bottom:14px}
#amb-app .amb-form-group label{font-size:13px;font-weight:600;margin-bottom:4px;display:block;color:#111 !important}
#amb-app .amb-required{color:#C0392B !important}
#amb-app .amb-form-group input,
#amb-app .amb-form-group textarea{
  width:100%;border:1px solid #ddd !important;border-radius:8px !important;padding:10px 14px;font-size:14px;
  box-sizing:border-box;font-family:inherit;background:#fff !important;color:#111 !important;box-shadow:none !important;
}
#amb-app .amb-form-group textarea{min-height:70px;resize:vertical}
#amb-app .amb-form-group textarea::placeholder{color:#a0a0a0 !important}

#amb-app .amb-seguridad-datos{
  display:flex;align-items:center;gap:8px;color:#767676 !important;font-size:12px;line-height:1.4;
  margin:-4px 0 14px;
}
#amb-app .amb-seguridad-datos svg{flex-shrink:0;color:#767676}

#amb-app .amb-horarios-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:12px}
#amb-app .amb-horario-btn{
  border:1px solid #ddd !important;padding:10px;border-radius:8px !important;background:#fff !important;
  color:#111 !important;cursor:pointer;font-size:14px;box-shadow:none !important;
}
#amb-app .amb-horario-btn.seleccionado{background:#111 !important;color:#fff !important;border-color:#111 !important}
@media (min-width:700px){
  #amb-app .amb-horarios-grid{grid-template-columns:repeat(5,1fr)}
}

/* ===== CONFIRMACION ===== */
#amb-app .amb-confirmacion{text-align:center;padding:20px 4px}
#amb-app .amb-confirmacion .amb-check-icon{
  width:60px;height:60px;border-radius:50% !important;background:#111 !important;color:#fff !important;
  display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:30px;
}

/* ===== MODAL (pasos 2, 3 y 4): mascara de pagina completa sobre el hero ===== */
.amb-modal-overlay{
  position:fixed;inset:0;z-index:2000;
  background:rgba(0,0,0,.5);
  display:flex;align-items:stretch;justify-content:stretch;
}
.amb-modal{
  background:#fff;
  width:100%;height:100%;
  display:flex;flex-direction:column;
  border-radius:0;
  overflow:hidden;
}
.amb-modal-header{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:14px 16px;border-bottom:1px solid #EDEDED;flex:0 0 auto;
}
.amb-modal-back{
  background:none !important;border:none !important;color:#111 !important;font-size:14px;font-weight:600;
  cursor:pointer;padding:6px 4px !important;box-shadow:none !important;white-space:nowrap;
}
.amb-modal-title{font-size:15px;font-weight:700;color:#111;flex:1;text-align:center}
.amb-modal-close{
  background:#F2F2F2 !important;border:none !important;width:32px;height:32px;border-radius:50% !important;
  font-size:18px;line-height:1;color:#111 !important;cursor:pointer;display:flex;align-items:center;justify-content:center;
  flex:0 0 auto;box-shadow:none !important;
}
.amb-modal-body{flex:1 1 auto;overflow-y:auto;padding:16px}
.amb-modal-footer{
  flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 16px;border-top:1px solid #EDEDED;background:#fff;
}
.amb-modal-footer-info{font-size:12.5px;color:#111;line-height:1.4}
.amb-modal-footer-info strong{display:block;font-size:16px}
.amb-modal-footer-btn{width:auto !important;padding:12px 24px !important;flex:0 0 auto}

@media (min-width:700px){
  .amb-modal-overlay{align-items:center;justify-content:center;padding:24px}
  .amb-modal{
    max-width:480px;width:100%;height:auto;max-height:85vh;
    border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.3);
  }
}

/* ===== GESTIONAR RESERVA (cancelar / reagendar desde el correo) ===== */
#amb-gestion-app{max-width:480px;margin:0 auto;padding:32px 16px 60px}
#amb-gestion-app .amb-gestion-box{background:#fff}
#amb-gestion-app .amb-gestion-head{text-align:center;margin-bottom:20px}
#amb-gestion-app .amb-gestion-head h2{margin:0 0 4px;font-size:20px;font-weight:700;color:#111}
#amb-gestion-app .amb-gestion-head p{margin:0;color:#767676;font-size:13px}
#amb-gestion-app .amb-gestion-acciones{display:flex;flex-direction:column;gap:10px;margin-top:20px}
#amb-gestion-app .amb-btn{
  display:block;width:100%;background:#111 !important;color:#fff !important;border:none !important;
  padding:14px;font-size:15px;font-weight:600;border-radius:10px !important;cursor:pointer;text-align:center;box-shadow:none !important;
}
#amb-gestion-app .amb-btn-outline{background:#fff !important;color:#111 !important;border:1px solid #111 !important}
#amb-gestion-app .amb-btn-confirmar{margin-bottom:6px}
#amb-gestion-app .amb-btn-whatsapp{
  background:#25D366 !important;color:#fff !important;text-align:center;text-decoration:none !important;
  display:block;margin-top:16px;
}

/* ===== RESPONSIVE GENERAL ===== */
@media (max-width:480px){
  #amb-app .amb-cat-nav-item{font-size:12px;padding:8px 13px}
  #amb-app .amb-servicio-nombre{font-size:14px}
}
@media (min-width:700px) and (max-width:899px){
  #amb-app .amb-servicios-list.abierta{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  #amb-app .amb-servicio-card{margin-bottom:0}
}
@media (min-width:900px){
  #amb-app .amb-servicios-list.abierta{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  #amb-app .amb-servicio-card{margin-bottom:0}
}