@import url("assets/runtime/styles-core.css?v=7715a84");

/* B12.P01 — Header persistente, Hero y flip-cards de Problemas */
.header-actions .header-cta {
  min-height: 2.55rem;
  display: inline-flex;
  padding: 0.55rem 0.7rem;
  font-size: 0.68rem;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-actions .button-secondary {
  display: none;
}

.flip-card {
  min-height: 18.5rem;
  perspective: 80rem;
}

.flip-card-toggle {
  width: 100%;
  min-height: 18.5rem;
  display: block;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 1.2rem;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 18.5rem;
  display: grid;
  transform-style: preserve-3d;
  transition: transform 420ms ease;
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-face {
  grid-area: 1 / 1;
  min-height: 18.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid rgba(13, 27, 61, 0.11);
  border-radius: 1.2rem;
  box-shadow: 0 0.9rem 2.5rem rgba(13, 27, 61, 0.055);
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card-front {
  background: var(--paper);
}

.flip-card-back {
  color: white;
  background: var(--navy);
  border-color: rgba(255, 255, 255, 0.12);
  transform: rotateY(180deg);
}

.flip-card-icon.semantic-icon {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 0 1.5rem;
}

.flip-card-title {
  max-width: 15ch;
  color: var(--navy);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.flip-card-description {
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

.flip-card-toggle:hover .flip-card-face {
  box-shadow: 0 1.15rem 2.8rem rgba(13, 27, 61, 0.11);
}

@media (max-width: 24rem) {
  .header-shell,
  .header-actions {
    gap: 0.5rem;
  }

  .brand-name {
    display: none;
  }

  .header-actions .header-cta {
    padding-inline: 0.55rem;
    font-size: 0.64rem;
  }
}

@media (min-width: 62rem) {
  .header-actions .header-cta {
    min-height: 2.8rem;
    padding: 0.65rem 1rem;
    font-size: 0.78rem;
  }

  .header-actions > .social-links {
    display: none;
  }
}

/* Tablet landscape / desktop estrecho: evita comprimir texto + video en dos columnas. */
@media (min-width: 62rem) and (max-width: 71.99rem) {
  .hero-shell {
    width: min(100% - 4rem, 60rem);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 0;
    row-gap: 1.5rem;
  }

  .hero-shell > :not(.hero-visual) {
    grid-column: 1;
  }

  .hero-visual {
    width: min(100%, 44rem);
    min-height: 0;
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }
}

/* Desktop amplio: recupera dos columnas y prioriza presencia visual del video. */
@media (min-width: 72rem) {
  .hero-shell {
    width: min(100% - 3rem, 96rem);
    grid-template-columns: minmax(0, 0.8fr) minmax(34rem, 1.2fr);
    column-gap: clamp(2rem, 3vw, 3.5rem);
  }
}

@media (min-width: 76rem) {
  .header-actions > .social-links {
    display: inline-flex;
  }
}

/* B12.P05 — ajustes visuales atómicos autorizados */
.plans-section .plan-number {
  font-size: calc(0.72rem + 5px);
}

.benefits-section .benefit-index {
  font-size: calc(0.7rem + 5px);
}

.hero-copy {
  width: 100%;
  max-width: none;
  text-align: center;
}

.authority-content blockquote {
  border-left-width: 0.625rem;
}

.need-fieldset {
  padding-inline: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.footer-cookie-button {
  text-decoration: none !important;
}

.footer-column h2 {
  color: var(--teal);
}

/* B12-080 — reducir 25% el control play del Hero desde tablet */
@media (min-width: 48rem) {
  .hero .hero-visual .hero-play-b12 {
    left: calc(50% - 35px);
    width: 6.375rem;
    height: 6.375rem;
  }

  .hero .hero-visual .hero-play-b12 svg {
    width: 2.475rem;
    height: 2.475rem;
  }
}

/* B12.P06 — selector de fecha y affordance de flip-cards */
.appointment-date-field input[data-appointment-date] {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.flip-card-face {
  position: relative;
}

.flip-card-front::after,
.flip-card-back::after {
  position: absolute;
  bottom: 1rem;
  color: var(--teal);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.flip-card-front::after {
  right: 1rem;
  content: "+ INFO";
}

.flip-card-back::after {
  left: 1rem;
  content: "← REGRESAR";
}

/* B12-035 — centrar Confirmar cita dentro de su contenedor */
.appointment-confirm {
  display: block;
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner {
    transition: none !important;
  }
}

/* B12.P07 — Tipo de necesidad */
.need-fieldset legend {
  margin-bottom: 0.4rem;
}

.radio-options label {
  padding: 0.65rem 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* B12-067 — dos puntos en legends del formulario */
.contact-form legend > span[aria-hidden="true"]::before {
  content: ":";
  display: inline-block;
  margin-left: -0.25em;
  margin-right: 0.25em;
}

.contact-form legend:not(:has(> span[aria-hidden="true"]))::after {
  content: ":";
}

/* B12-068 — secuencia eyebrow → encabezado → imagen */
.authority-layout.authority-layout-b12 > .authority-title-b12 {
  order: 2;
}

.authority-layout.authority-layout-b12 > .authority-visual {
  order: 3;
}

/* B12-067 / B12-069 — correctivo tras QA rechazado */
.contact-form .need-fieldset > legend {
  font-size: 0;
}

.contact-form .need-fieldset > legend::before {
  content: "Tipo de clases:";
  font-size: 0.82rem;
}

.contact-form .need-fieldset > legend > span[aria-hidden="true"] {
  margin-left: 0.25em;
  font-size: 0.82rem;
}

.contact-form .need-fieldset > legend > span[aria-hidden="true"]::before {
  content: none;
}

/* B12-062 / B12-064 — correctivos mobile tras QA */
@media (max-width: 39.99rem) and (orientation: portrait) {
  .contact-form .appointment-date-field input[data-appointment-date] {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 3.35rem;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0.75rem 0.85rem;
    color: var(--navy);
    background-color: #fff;
    border: 1px solid #aeb6c2;
    border-radius: 0.6rem;
    font: inherit;
    line-height: 1.2;
    color-scheme: light;
    appearance: auto;
    opacity: 1;
  }

  .site-footer .footer-shell > .footer-contact-b12-p06 { order: 1; }
  .site-footer .footer-shell > .footer-nav-b12-p06 { order: 3; }
  .site-footer .footer-shell > .footer-column:last-child { order: 4; }
}

/* B12-070 — separar indicadores de flip-cards del borde */
.flip-card-front::after,
.flip-card-back::after {
  padding-right: 3px;
  padding-bottom: 3px;
}

/* B12-077 — lógica canónica de focus-visible */
:focus-visible,
.inline-check input:focus-visible,
.radio-options input:focus-visible,
.privacy-consent input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 0.1875rem;
  box-shadow: none;
}

.consent-toggle input:focus-visible + .toggle-control {
  outline: 2px solid var(--teal);
  outline-offset: 0.1875rem;
  box-shadow: none;
}

.faq-item button:focus-visible {
  outline-offset: -2px;
}

/* B12-078 — homologar altura del selector Materia */
.field-group select#subject {
  min-height: 3rem;
  padding-block: 0.75rem;
}
