.ip-cfg-toast {
  position: fixed;
  inset: 0;
  z-index: 11050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
}
.ip-cfg-toast[hidden] { display: none !important; }
.ip-cfg-toast-inner {
  position: relative;
  min-width: min(92vw, 28rem);
  max-width: 36rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, #cbd5e1);
  border-radius: 0.65rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
  padding: 1.1rem 2.75rem 1.1rem 1.25rem;
}
.ip-cfg-toast.is-ok .ip-cfg-toast-inner {
  border-color: color-mix(in srgb, var(--primary) 45%, #86efac);
}
.ip-cfg-toast.is-error .ip-cfg-toast-inner {
  border-color: #dc3545;
  color: #842029;
}
.ip-cfg-toast-msg { margin: 0; font-weight: 600; }
.ip-cfg-toast-close { position: absolute; top: 0.65rem; right: 0.65rem; }
.ip-cfg-preview {
  max-width: min(100%, 420px);
  max-height: 240px;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

/* Público index — tarjetas */
.ip-card-servicio {
  font-weight: 600;
  font-size: 1.1rem;
}
.ip-card-actor {
  font-weight: 500;
  font-size: 0.98rem;
  color: #334155;
}
.ip-card-dias {
  font-weight: 400;
  letter-spacing: 0.04em;
}
.ip-card-accion {
  display: flex;
  justify-content: center;
}

/* Acción secundaria: casi blanca; menos peso que servicio/actor */
.ip-btn-horarios {
  display: inline-block;
  margin: 0;
  padding: 0.32rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.3;
  color: #4A7168;
  background-color: #F5FAF8;
  border: 1px solid #DCEAE6;
  border-radius: 9px;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.ip-btn-horarios:hover {
  background-color: #EDF5F2;
  color: #4A7168;
  box-shadow: none;
  transform: none;
}
.ip-btn-horarios:active {
  background-color: #EDF5F2;
  color: #4A7168;
  box-shadow: none;
  transform: none;
}
.ip-btn-horarios:focus {
  outline: none;
}
.ip-btn-horarios:focus-visible {
  outline: 2px solid #4A7168;
  outline-offset: 2px;
  box-shadow: none;
}

.ip-hero-img-wrap { max-width: 1100px; margin: 0 auto; }
.ip-hero-img {
  width: 100%;
  height: auto;
  max-height: min(70vh, 520px);
  object-fit: contain;
}

/* Modal días y horarios */
.ip-horarios-overlay {
  position: fixed;
  inset: 0;
  z-index: 11040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.45);
}
.ip-horarios-overlay[hidden] { display: none !important; }
.ip-horarios-panel {
  display: flex;
  flex-direction: column;
  width: min(96vw, 36rem);
  max-height: min(90vh, 40rem);
  background: #fff;
  border-radius: 0.85rem;
  border: 1px solid #d8e5e1;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}
.ip-horarios-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 1rem 1rem 0.85rem 1.25rem;
  border-bottom: 1px solid #e8eef0;
  background: #fff;
}
.ip-horarios-head h3 {
  margin: 0;
  padding-right: 0.25rem;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
  color: #1e3a36;
  border-left: 3px solid var(--primary, #2f6f66);
  padding-left: 0.65rem;
}
.ip-horarios-close {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -0.15rem -0.15rem 0 0;
  padding: 0;
  border: 1px solid #d5dde3;
  border-radius: 0.5rem;
  background: #fff;
  color: #334155;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.ip-horarios-close:hover {
  background: #f1f5f9;
}
.ip-horarios-close:focus-visible {
  outline: 2px solid #315F58;
  outline-offset: 2px;
}
.ip-horarios-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1.1rem 1.25rem 0.85rem;
  -webkit-overflow-scrolling: touch;
}
.ip-horarios-meta {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  padding: 0.9rem 1rem;
  background: #f7faf9;
  border: 1px solid #e4eeeb;
  border-radius: 0.65rem;
}
.ip-horarios-field {
  display: grid;
  gap: 0.15rem;
}
.ip-horarios-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.ip-horarios-value {
  font-size: 1.02rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  word-break: break-word;
}
.ip-horarios-dias-wrap {
  margin-bottom: 1rem;
}
.ip-horarios-dias-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.ip-horarios-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  padding: 0.28rem 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #315F58;
  background: #EAF4F2;
  border: 1px solid #B8D5CF;
  border-radius: 0.4rem;
}
.ip-horarios-dias-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}
.ip-horarios-edad {
  margin: 0 0 1rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #315F58;
  background: #f0f7f5;
  border-radius: 0.45rem;
}
.ip-horarios-edad.d-none { display: none !important; }
.ip-horarios-franjas-wrap > .ip-horarios-label {
  margin-bottom: 0.5rem;
}
.ip-horarios-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.ip-horarios-franja {
  display: grid;
  grid-template-columns: minmax(7.5rem, 38%) 1fr;
  gap: 0.2rem 0.85rem;
  align-items: baseline;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid #e5ecea;
  border-radius: 0.55rem;
}
.ip-horarios-franja-dia {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.95rem;
  font-weight: 650;
  color: #1e3a36;
  line-height: 1.3;
}
.ip-horarios-franja-hora {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.98rem;
  font-weight: 500;
  color: #334155;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ip-horarios-franja-tipo {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: #94a3b8;
}
.ip-horarios-foot {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid #e8eef0;
  background: #fafbfc;
}
.ip-horarios-aviso {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #64748b;
}
@media (max-width: 480px) {
  .ip-horarios-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 0.7rem;
  }
  .ip-horarios-franja {
    grid-template-columns: 1fr;
  }
  .ip-horarios-franja-hora {
    text-align: left;
  }
  .ip-horarios-head h3 {
    font-size: 1.05rem;
  }
}
