﻿/* ==========================================================================
   Zeltron Academy — Componentes
   Botones, tarjetas, acordeones, formularios y piezas reutilizables.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.btn-zt {
  --zt-btn-bg: var(--zt-blue);
  --zt-btn-fg: var(--zt-white);
  --zt-btn-border: transparent;
  --zt-btn-bg-hover: var(--zt-blue-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--zt-btn-border);
  border-radius: 999px;
  background: var(--zt-btn-bg);
  color: var(--zt-btn-fg);
  font-family: var(--zt-font-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s var(--zt-ease), background-color 0.22s var(--zt-ease),
    box-shadow 0.22s var(--zt-ease), color 0.22s var(--zt-ease), border-color 0.22s var(--zt-ease);
}

.btn-zt .zt-icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.22s var(--zt-ease);
}

.btn-zt:hover {
  background: var(--zt-btn-bg-hover);
  color: var(--zt-btn-fg);
  transform: translateY(-2px);
}

.btn-zt:hover .zt-icon {
  transform: translateX(3px);
}

.btn-zt:active {
  transform: translateY(0);
}

/* Bootstrap define `.btn:focus-visible` y gana en especificidad: se repone el color. */
.btn-zt:focus-visible {
  outline: 3px solid rgba(4, 92, 180, 0.35);
  outline-offset: 3px;
  background: var(--zt-btn-bg);
  border-color: var(--zt-btn-border);
  color: var(--zt-btn-fg);
}

.btn-zt:hover:focus-visible {
  background: var(--zt-btn-bg-hover);
  color: var(--zt-btn-fg);
}

/* Variantes */
.btn-zt--accent {
  --zt-btn-bg: var(--zt-red);
  --zt-btn-bg-hover: var(--zt-red-strong);
  --zt-btn-fg: var(--zt-white);
  box-shadow: 0 14px 30px -14px rgba(255, 0, 0, 0.6);
}

.btn-zt--primary {
  --zt-btn-bg: var(--zt-blue);
  --zt-btn-bg-hover: var(--zt-blue-deep);
  box-shadow: 0 14px 30px -14px rgba(4, 92, 180, 0.6);
}

.btn-zt--ghost {
  --zt-btn-bg: rgba(255, 255, 255, 0.08);
  --zt-btn-bg-hover: rgba(255, 255, 255, 0.16);
  --zt-btn-fg: var(--zt-white);
  --zt-btn-border: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}

.btn-zt--light {
  --zt-btn-bg: var(--zt-white);
  --zt-btn-bg-hover: #eaf4ff;
  --zt-btn-fg: var(--zt-blue-deep);
}

.btn-zt--outline {
  --zt-btn-bg: transparent;
  --zt-btn-bg-hover: var(--zt-blue-050);
  --zt-btn-fg: var(--zt-blue);
  --zt-btn-border: rgba(4, 92, 180, 0.35);
}

/* Tamaños */
.btn-zt--sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
}

.btn-zt--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-zt--block {
  display: flex;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Tarjetas genéricas
   -------------------------------------------------------------------------- */

.zt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border: 1px solid var(--zt-line);
  border-radius: var(--zt-radius-lg);
  background: var(--zt-white);
  box-shadow: var(--zt-shadow-sm);
  transition: transform 0.28s var(--zt-ease), box-shadow 0.28s var(--zt-ease),
    border-color 0.28s var(--zt-ease);
}

.zt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(4, 92, 180, 0.28);
  box-shadow: var(--zt-shadow);
}

.zt-card__index {
  position: absolute;
  top: 1.15rem;
  right: 1.35rem;
  font-family: var(--zt-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(4, 92, 180, 0.32);
}

.zt-card__title {
  font-size: 1.06rem;
  line-height: 1.3;
}

.zt-card__text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--zt-text);
}

.zt-card--value {
  overflow: hidden;
}

.zt-card--value::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--zt-blue), transparent);
  opacity: 0;
  transition: opacity 0.28s var(--zt-ease);
}

.zt-card--value:hover::after {
  opacity: 1;
}

.zt-card--learn {
  background: var(--zt-white);
  border-color: transparent;
  box-shadow: 0 20px 45px -34px rgba(9, 37, 66, 0.55);
}

.zt-card--learn:hover {
  background: var(--zt-white);
}

/* Icon tile */
.zt-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--zt-blue), var(--zt-blue-deep));
  color: var(--zt-white);
  box-shadow: 0 10px 22px -12px rgba(4, 92, 180, 0.8);
  flex: 0 0 auto;
}

.zt-icon-tile .zt-icon {
  width: 22px;
  height: 22px;
}

.zt-icon-tile--outline {
  background: var(--zt-blue-050);
  color: var(--zt-blue);
  box-shadow: none;
  border: 1px solid rgba(4, 92, 180, 0.14);
}

.zt-icon-tile--sm {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.zt-icon-tile--sm .zt-icon {
  width: 19px;
  height: 19px;
}

/* --------------------------------------------------------------------------
   Acordeones
   -------------------------------------------------------------------------- */

.zt-accordion {
  --bs-accordion-border-color: transparent;
  --bs-accordion-border-width: 0;
  display: grid;
  gap: 0.7rem;
}

.zt-accordion .accordion-item {
  border: 1px solid var(--zt-line);
  border-radius: var(--zt-radius);
  background: var(--zt-white);
  overflow: hidden;
  box-shadow: var(--zt-shadow-sm);
  transition: border-color 0.25s var(--zt-ease), box-shadow 0.25s var(--zt-ease);
}

.zt-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: rgba(4, 92, 180, 0.3);
  box-shadow: 0 18px 40px -30px rgba(9, 37, 66, 0.5);
}

.zt-accordion .accordion-button {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.05rem 1.35rem;
  background: transparent;
  color: var(--zt-ink);
  font-family: var(--zt-font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: none;
}

.zt-accordion .accordion-button:not(.collapsed) {
  background: var(--zt-blue-050);
  color: var(--zt-blue-deep);
}

.zt-accordion .accordion-button:focus {
  box-shadow: inset 0 0 0 2px rgba(4, 92, 180, 0.35);
}

.zt-accordion .accordion-button::after {
  width: 1rem;
  height: 1rem;
  background-size: 1rem;
  opacity: 0.45;
  flex: 0 0 auto;
}

.zt-accordion__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--zt-blue-050);
  color: var(--zt-blue);
  font-family: var(--zt-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.zt-accordion .accordion-button:not(.collapsed) .zt-accordion__num {
  background: var(--zt-blue);
  color: var(--zt-white);
}

.zt-accordion__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.7rem;
  flex: 1 1 auto;
}

.zt-accordion__title {
  display: block;
}

.zt-accordion__meta {
  font-family: var(--zt-font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--zt-muted);
  white-space: nowrap;
}

.zt-accordion .accordion-body {
  padding: 0.35rem 1.35rem 1.4rem;
}

.zt-accordion__summary {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--zt-text);
}

.zt-topics {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px dashed var(--zt-line);
}

.zt-topics li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--zt-text);
}

.zt-topics li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zt-red);
  opacity: 0.7;
}

.zt-accordion--faq .accordion-button {
  padding: 1.1rem 1.35rem;
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   Formularios
   -------------------------------------------------------------------------- */

.zt-form .form-label {
  margin-bottom: 0.4rem;
  font-family: var(--zt-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--zt-ink);
}

.zt-input.form-control,
.zt-input.form-select {
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--zt-line);
  border-radius: var(--zt-radius-sm);
  background-color: #fbfdff;
  color: var(--zt-ink);
  font-family: var(--zt-font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s var(--zt-ease), box-shadow 0.2s var(--zt-ease),
    background-color 0.2s var(--zt-ease);
}

.zt-input.form-control::placeholder {
  color: #9aabbd;
}

.zt-input.form-control:focus,
.zt-input.form-select:focus {
  border-color: var(--zt-blue);
  background-color: var(--zt-white);
  box-shadow: 0 0 0 4px rgba(4, 92, 180, 0.12);
}

.zt-input.form-control.is-invalid,
.zt-input.form-select.is-invalid {
  border-color: var(--zt-red);
  background-image: none;
}

.zt-input.form-control.is-invalid:focus,
.zt-input.form-select.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.12);
}

.zt-input.is-valid,
.zt-input.form-control.is-valid,
.zt-input.form-select.is-valid {
  border-color: #2f9e63;
  background-image: none;
}

.zt-input.form-control.is-valid:focus,
.zt-input.form-select.is-valid:focus {
  box-shadow: 0 0 0 4px rgba(47, 158, 99, 0.12);
}

.invalid-feedback {
  font-size: 0.78rem;
  font-weight: 500;
}

.zt-check {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem;
  padding-left: 0;
  margin-bottom: 0;
}

.zt-check .invalid-feedback {
  flex: 0 0 100%;
  margin-top: 0;
}

.zt-check .form-check-input {
  margin-top: 0.2rem;
  margin-left: 0;
  width: 1.05em;
  height: 1.05em;
  border: 1.5px solid #b9cadb;
  border-radius: 5px;
  flex: 0 0 auto;
}

.zt-check .form-check-input:checked {
  background-color: var(--zt-blue);
  border-color: var(--zt-blue);
}

.zt-check .form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(4, 92, 180, 0.12);
  border-color: var(--zt-blue);
}

.zt-check .form-check-input.is-invalid {
  border-color: var(--zt-red);
}

.zt-check .form-check-label {
  /* flex-basis 0 evita que la etiqueta salte de línea y deje la casilla sola. */
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--zt-text);
}

/* --------------------------------------------------------------------------
   Avisos
   -------------------------------------------------------------------------- */

.zt-form-success {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(47, 158, 99, 0.35);
  border-radius: var(--zt-radius-sm);
  background: #f1fbf5;
  color: #1e6b43;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.55;
}

.zt-form-success .zt-icon {
  margin-top: 2px;
  color: #2f9e63;
}

.zt-form-card__demo {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--zt-line);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--zt-muted);
}

.zt-form-card__demo .zt-icon {
  margin-top: 1px;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Casillas opcionales y separadores de grupo
   -------------------------------------------------------------------------- */

.zt-check--optional .form-check-label {
  color: var(--zt-muted);
}

.zt-check__note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--zt-muted);
}

.zt-check--compact .form-check-label {
  font-size: 0.78rem;
}

.zt-form-card__group {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--zt-line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zt-muted);
}

.zt-form-card__group-hint {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--zt-muted);
}

/* --------------------------------------------------------------------------
   Panel posterior al registro: precio y condiciones
   -------------------------------------------------------------------------- */

.zt-offer {
  margin-top: 1.25rem;
}

.zt-offer:focus-visible {
  outline: 2px solid var(--zt-blue);
  outline-offset: 4px;
  border-radius: var(--zt-radius-sm);
}

.zt-offer__eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zt-red);
}

.zt-offer__title {
  margin: 0.35rem 0 0;
  font-family: var(--zt-font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--zt-ink);
}

.zt-offer__intro {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--zt-text);
}

.zt-offer__demo {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 0, 0, 0.28);
  border-radius: var(--zt-radius-sm);
  background: #fff5f5;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.5;
  color: #9b1c1c;
}

.zt-offer__demo .zt-icon {
  margin-top: 1px;
  flex: 0 0 auto;
  color: var(--zt-red);
}

.zt-offer__prices {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 576px) {
  .zt-offer__prices {
    grid-template-columns: 1fr 1fr;
  }
}

.zt-offer__price {
  padding: 0.9rem 1rem;
  border: 1px solid var(--zt-line);
  border-radius: var(--zt-radius-sm);
  background: #f7fafd;
}

.zt-offer__price--accent {
  border-color: rgba(4, 92, 180, 0.35);
  background: #eef5fd;
}

.zt-offer__price-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--zt-muted);
}

.zt-offer__badge {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--zt-red);
  color: var(--zt-white);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.zt-offer__price-value {
  margin: 0.35rem 0 0;
  font-family: var(--zt-font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--zt-blue);
}

.zt-offer__price-note {
  margin: 0.3rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--zt-text);
}

.zt-offer__subtitle {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--zt-ink);
}

.zt-offer__installment {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--zt-red);
  border-radius: 0 var(--zt-radius-sm) var(--zt-radius-sm) 0;
  background: #fff5f5;
}

.zt-offer__installment .zt-offer__subtitle {
  margin-top: 0;
}

.zt-offer__installment-value {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--zt-ink);
}

.zt-offer__installment-note {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--zt-text);
}

.zt-offer__list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.zt-offer__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.79rem;
  line-height: 1.55;
  color: var(--zt-text);
}

.zt-offer__list .zt-icon {
  margin-top: 2px;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--zt-blue);
}

.zt-offer__stages {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  counter-reset: zt-stage;
  display: grid;
  gap: 0.55rem;
}

.zt-offer__stages li {
  position: relative;
  padding-left: 2rem;
  counter-increment: zt-stage;
  font-size: 0.79rem;
  line-height: 1.55;
  color: var(--zt-text);
}

.zt-offer__stages li::before {
  content: counter(zt-stage);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: rgba(4, 92, 180, 0.12);
  color: var(--zt-blue);
  font-size: 0.7rem;
  font-weight: 700;
}

.zt-offer__stages strong {
  display: block;
  font-size: 0.83rem;
  color: var(--zt-ink);
}

.zt-offer__webinar {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--zt-line);
  border-radius: var(--zt-radius-sm);
  background: #f7fafd;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--zt-text);
}

.zt-offer__webinar .zt-offer__subtitle {
  margin-top: 0;
  font-size: 0.83rem;
}

.zt-offer__webinar p {
  margin: 0.3rem 0 0;
}

.zt-offer__next {
  margin: 1rem 0 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--zt-muted);
}

.zt-offer__next strong {
  color: var(--zt-ink);
}

.zt-offer > .btn-zt {
  margin-top: 1rem;
}

/* Offer hierarchy and discreet privacy note. */
.zt-form-note { margin: .75rem 0; padding: .5rem .65rem; border-left: 3px solid var(--zt-blue); background: #eef5fd; color: #34506b; font-size: .75rem; line-height: 1.5; }
.zt-form-error { margin: .5rem 0 .75rem; padding: .6rem .75rem; border: 1px solid rgba(255, 0, 0, .35); border-radius: 8px; background: #fff4f4; color: #a30000; font-size: .82rem; line-height: 1.45; }
.zt-offer__prices { grid-template-columns: 1fr; }
.zt-offer__price--accent { order: -1; padding: 1.3rem; border: 2px solid var(--zt-blue); background: #eef5fd; }
.zt-offer__price--accent .zt-offer__price-value { font-size: clamp(2.3rem, 5vw, 3.2rem); }
.zt-offer__price--accent .zt-offer__badge { padding: .35rem .65rem; font-size: .88rem; text-transform: uppercase; }
.zt-offer__price:not(.zt-offer__price--accent) { background: transparent; }
.zt-offer__price:not(.zt-offer__price--accent) .zt-offer__price-value { font-size: 1.2rem; color: var(--zt-muted); }

/* Título de llegada desde /informacion/: sitúa al visitante ante el recorrido
   completo del curso, sin franja de demostración. */
.zt-info-intro {
  padding: clamp(1rem, 2.2vw, 1.6rem) 0 clamp(0.85rem, 1.8vw, 1.4rem);
  background: var(--zt-white);
}

.zt-info-intro__title {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--zt-ink);
  font-family: var(--zt-font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.015em;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 575.98px) {
  .zt-info-intro {
    padding: 0.95rem 0 1.1rem;
  }

  .zt-info-intro__title {
    font-size: 1.12rem;
    line-height: 1.3;
  }
}

/* --------------------------------------------------------------------------
   Botón flotante de WhatsApp
   -------------------------------------------------------------------------- */

.zt-wa-fab {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0.8rem;
  border-radius: 999px;
  background: #25d366;
  color: var(--zt-white);
  font-family: var(--zt-font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 16px 34px -14px rgba(18, 140, 126, 0.85),
    0 2px 8px -2px rgba(9, 37, 66, 0.28);
  transition: background-color 0.22s var(--zt-ease), transform 0.22s var(--zt-ease),
    box-shadow 0.22s var(--zt-ease);
}

.zt-wa-fab:hover,
.zt-wa-fab:focus-visible {
  background: #1eb85a;
  color: var(--zt-white);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -14px rgba(18, 140, 126, 0.9),
    0 3px 10px -2px rgba(9, 37, 66, 0.3);
}

.zt-wa-fab:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.45);
  outline-offset: 3px;
}

.zt-wa-fab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.zt-wa-fab__icon .zt-icon {
  width: 100%;
  height: 100%;
}

/* La etiqueta se despliega al pasar el cursor o al enfocar con teclado. */
.zt-wa-fab__label {
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.28s var(--zt-ease), margin-left 0.28s var(--zt-ease),
    opacity 0.18s var(--zt-ease);
}

.zt-wa-fab:hover .zt-wa-fab__label,
.zt-wa-fab:focus-visible .zt-wa-fab__label {
  max-width: 12rem;
  margin-left: 0.55rem;
  opacity: 1;
}

/* Pulso suave para llamar la atención sin mover el botón. */
.zt-wa-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: zt-wa-pulse 2.8s var(--zt-ease) infinite;
  pointer-events: none;
}

@keyframes zt-wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* En móvil sube por encima de la barra fija de CTA para no taparla. */
@media (max-width: 767.98px) {
  .zt-wa-fab {
    right: 0.9rem;
    bottom: calc(88px + env(safe-area-inset-bottom));
    padding: 0.72rem;
  }

  .zt-wa-fab__label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zt-wa-fab,
  .zt-wa-fab__label {
    transition: none;
  }

  .zt-wa-fab::after {
    animation: none;
  }

  .zt-wa-fab:hover,
  .zt-wa-fab:focus-visible {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Aviso de cupos en el hero
   -------------------------------------------------------------------------- */

.zt-hero__reserva {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  max-width: 100%;
  margin-top: 1.35rem;
  padding: 0.42rem 0.42rem 0.42rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(226, 240, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.25s var(--zt-ease), border-color 0.25s var(--zt-ease),
    transform 0.25s var(--zt-ease);
}

.zt-hero__reserva:hover,
.zt-hero__reserva:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
  color: var(--zt-white);
  transform: translateY(-1px);
}

.zt-hero__reserva-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--zt-red);
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.22);
}

.zt-hero__reserva-text strong {
  font-weight: 700;
  color: var(--zt-white);
}

.zt-hero__reserva-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: var(--zt-white);
  color: var(--zt-blue-deep);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.zt-hero__reserva-action .zt-icon {
  width: 14px;
  height: 14px;
}

.zt-hero__reserva + .zt-hero__actions {
  margin-top: 1.2rem;
}

/* En pantallas pequeñas el aviso se queda en una línea, como la píldora fija. */
@media (max-width: 575.98px) {
  .zt-hero__reserva-text {
    font-size: 0.78rem;
  }
}

/* --------------------------------------------------------------------------
   Píldora flotante de cupos (bajo el encabezado)
   -------------------------------------------------------------------------- */

.zt-book-bar {
  position: fixed;
  top: calc(var(--zt-header-h) + 0.7rem);
  left: 50%;
  z-index: 1035;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.4rem 0.4rem 0.4rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--zt-blue-deep) 0%, var(--zt-blue) 68%, #0b6fd8 100%);
  color: var(--zt-white);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 16px 36px -20px rgba(2, 33, 66, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -14px);
  transition: opacity 0.3s var(--zt-ease), transform 0.3s var(--zt-ease),
    visibility 0.3s, box-shadow 0.3s var(--zt-ease);
}

.zt-book-bar.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.zt-book-bar:hover,
.zt-book-bar:focus-visible {
  color: var(--zt-white);
  box-shadow: 0 20px 42px -18px rgba(2, 33, 66, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  transform: translate(-50%, -2px);
}

.zt-book-bar__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--zt-red);
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.24);
  animation: zt-book-pulse 2.2s var(--zt-ease) infinite;
}

.zt-book-bar__text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
  white-space: nowrap;
}

.zt-book-bar__text strong {
  font-weight: 700;
}

.zt-book-bar__action {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  flex: 0 0 auto;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  background: var(--zt-white);
  color: var(--zt-blue-deep);
  font-size: 0.77rem;
  font-weight: 700;
  white-space: nowrap;
}

.zt-book-bar__action .zt-icon {
  width: 14px;
  height: 14px;
}

@keyframes zt-book-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.28);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 0, 0, 0);
  }
}

@media (max-width: 767.98px) {
  .zt-book-bar {
    gap: 0.55rem;
    padding: 0.34rem 0.34rem 0.34rem 0.75rem;
    font-size: 0.76rem;
  }

  .zt-book-bar__action {
    padding: 0.3rem 0.62rem;
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zt-book-bar,
  .zt-hero__reserva {
    transition: none;
  }

  .zt-book-bar__dot {
    animation: none;
  }
}

