/* ==========================================================================
   QuórumPH — hoja de estilos
   Colores tomados del logo: azul #063E60 y verde azulado #05AFA1
   ========================================================================== */

/* --- Fuentes (alojadas en el sitio, licencia SIL Open Font License) --- */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #063e60;
  --navy-deep: #042c45;
  --teal: #05afa1;
  --teal-ink: #04786f;      /* verde azulado oscuro: apto para texto sobre blanco */
  --ink: #0f2a3a;
  --muted: #46606f;
  --tint: #eef6f8;
  --line: #d3e2e8;
  --white: #fff;

  --font-display: "Nunito", "Nunito Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 10px;
}

/* --- Base ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5.4vw, 3.7rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.45rem); line-height: 1.12; }
h3 { font-size: 1.3rem; line-height: 1.25; }

p { margin: 0 0 1em; }

a { color: var(--teal-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--white); }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); color: var(--white); }

.btn--teal { background: var(--teal); color: var(--navy-deep); }
.btn--teal:hover { background: #17c4b5; color: var(--navy-deep); }

.btn--outline { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn--outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }

.btn--line { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn--line:hover { background: var(--navy); color: var(--white); }
.btn--small { padding: 0.5rem 0.95rem; font-size: 0.92rem; }

/* --- Encabezado ---------------------------------------------------------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 0.8rem;
}

.brand { display: block; line-height: 0; }
.brand img { height: 40px; width: auto; }

.site-nav { order: 3; width: 100%; }
.site-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.2rem;
  overflow-x: auto;
}
.site-nav a {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--teal-ink); text-decoration: underline; }

.site-header .btn { padding: 0.6rem 1.05rem; font-size: 0.95rem; gap: 0; }

/* texto adicional del botón: solo en pantallas con espacio */
.hide-sm { display: none; }
@media (min-width: 480px) { .hide-sm { display: inline; } }

@media (min-width: 860px) {
  .site-header { position: sticky; top: 0; }
  .site-header__bar { flex-wrap: nowrap; }
  .site-nav { order: 0; width: auto; margin-left: auto; }
  .site-nav ul { padding: 0; overflow: visible; }
  .brand img { height: 44px; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  background: var(--navy);
  color: #d9e9f0;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.hero__grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

.hero h1 { color: var(--white); max-width: 15ch; }

.hero__lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  max-width: 50ch;
  margin-top: 1.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__note {
  margin: 1.5rem 0 0;
  font-size: 0.98rem;
  color: #b4cdd9;
  max-width: 46ch;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}

/* --- Panel de quórum (ejemplo ilustrativo del hero) ---------------------- */

.quorum {
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  box-shadow: 0 22px 48px rgba(2, 20, 32, 0.38);
  max-width: 460px;
  width: 100%;
  justify-self: center;
}

.quorum__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.quorum__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
}
.quorum__tag {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--tint);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  white-space: nowrap;
}

.units {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-bottom: 1.3rem;
}
.u {
  display: block;
  aspect-ratio: 1;
  border-radius: 5px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1.5px #c7dae2;
}
.u.on {
  background: var(--teal);
  box-shadow: none;
  animation: connect 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) both;
  animation-delay: calc(0.5s + var(--d) * 55ms);
}

@keyframes connect {
  from { background: var(--tint); box-shadow: inset 0 0 0 1.5px #c7dae2; transform: scale(0.72); }
  to   { background: var(--teal); box-shadow: none; transform: scale(1); }
}

.quorum__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.quorum__stat dt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.3;
  order: 2;
}
.quorum__stat dd {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--navy);
}
.quorum__stat { display: flex; flex-direction: column; }

.bar {
  position: relative;
  height: 14px;
  border-radius: 7px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1.5px #c7dae2;
  margin-bottom: 2.1rem;
}
.bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 71.4%;
  border-radius: 7px;
  background: var(--teal);
  transform-origin: left center;
  animation: fill 1.9s linear 0.5s both;
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.bar__mark {
  position: absolute;
  left: 50%;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: var(--navy);
}
.bar__mark span {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.3rem;
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}

.quorum__status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: #e3f6f3;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.25;
  animation: pop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) 2.5s both;
}
.quorum__status svg { width: 1.7rem; height: 1.7rem; flex: none; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .u.on, .bar__fill, .quorum__status { animation: none; }
  html { scroll-behavior: auto; }
}

/* --- Secciones ----------------------------------------------------------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tint { background: var(--tint); }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { margin: 1rem 0 0; color: var(--muted); font-size: 1.1rem; }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 4.5rem; align-items: start; }
  .split > .section__head { margin-bottom: 0; position: sticky; top: 6.5rem; }
}

/* --- Servicios ----------------------------------------------------------- */

.services {
  display: grid;
  gap: 2.5rem 3.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .services--3 { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.service { border-top: 4px solid var(--navy); padding-top: 1.1rem; }
.service h3 { margin-bottom: 0.6rem; }
.service p { color: var(--muted); }
.service h3 a { color: inherit; text-decoration: none; }
.service h3 a:hover { color: var(--teal-ink); text-decoration: underline; }

.ticks { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.55rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.12rem;
  top: 0.5em;
  width: 0.95rem;
  height: 0.5rem;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  border-radius: 1px;
  transform: rotate(-45deg);
}

/* --- Cómo funciona (secuencia real: pasos numerados) --------------------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.steps li {
  position: relative;
  counter-increment: paso;
  padding: 0 0 2rem 4rem;
}
.steps li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 2.9rem;
  bottom: 0.35rem;
  width: 2px;
  background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { background: var(--teal); color: var(--navy-deep); }
.steps h3 { margin: 0.25rem 0 0.35rem; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }

/* --- Quórum y mayorías --------------------------------------------------- */

.rules { margin: 0; }
.rules__row {
  display: grid;
  gap: 0.35rem 3rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.rules__row:last-child { border-bottom: 1px solid var(--line); }
.rules dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--navy);
}
.rules dd { margin: 0; max-width: 68ch; }
.rules dd small { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.9rem; }

@media (min-width: 860px) {
  .rules__row { grid-template-columns: 4fr 8fr; }
}

.fineprint { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.95rem; max-width: 70ch; }

/* --- Preguntas frecuentes ------------------------------------------------ */

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.4rem;
  border-right: 3px solid var(--teal-ink);
  border-bottom: 3px solid var(--teal-ink);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 0.6rem; }
.faq summary:hover { color: var(--teal-ink); }

.faq__answer { padding: 0 2.2rem 1.3rem 0; max-width: 66ch; }
.faq__answer p { margin: 0; color: var(--ink); }

/* --- Contacto ------------------------------------------------------------ */

.contact { background: var(--navy); color: #d9e9f0; padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.contact h2 { color: var(--white); max-width: 18ch; }
.contact__grid { display: grid; gap: 2rem; align-items: center; }
.contact p { max-width: 52ch; margin: 1rem 0 0; font-size: 1.1rem; }
.contact__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.contact__phone { color: var(--white); font-size: 1rem; margin: 0; }
.contact__phone a { color: var(--white); font-weight: 600; }
.contact__phone a:hover { color: var(--teal); }

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1.3fr 0.7fr; gap: 4rem; }
}

/* --- Pie ----------------------------------------------------------------- */

.site-footer { background: var(--navy-deep); color: #b4cdd9; padding-block: 3rem 2rem; font-size: 0.97rem; }
.site-footer a { color: #d9e9f0; }
.site-footer a:hover { color: var(--white); }

.footer__grid { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1.2fr 0.9fr; } }

.footer__brand img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer__brand p { max-width: 38ch; margin: 0; }

.footer__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  margin: 0 0 0.7rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 0.45rem; }

.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  max-width: 80ch;
}
.footer__legal p { margin: 0 0 0.5rem; }

/* --- WhatsApp flotante --------------------------------------------------- */

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(2, 20, 32, 0.3);
}
.wa-float:hover { background: #17c4b5; color: var(--navy-deep); }
.wa-float svg { width: 1.35rem; height: 1.35rem; }
.wa-float:focus-visible { outline-color: var(--navy-deep); }

@media print {
  .wa-float, .site-nav { display: none; }
}

/* --- Precios ------------------------------------------------------------- */

.prices { display: grid; gap: 1.25rem; }
@media (min-width: 860px) {
  .prices { grid-template-columns: 1fr 1.25fr; gap: 1.5rem; max-width: 900px; }
  .price__includes { grid-column: 2; grid-row: 1 / span 2; }
}

.price,
.price__includes {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.price { border-top: 4px solid var(--teal); }
.price h3, .price__includes h3 { font-size: 1.12rem; margin: 0; }
.price__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 2.75rem);
  line-height: 1.1;
  color: var(--navy);
  margin: 0.9rem 0 0.3rem;
  font-variant-numeric: tabular-nums;
}
.price__unit { margin: 0; color: var(--muted); }
.price__includes .ticks { margin-top: 0.9rem; }
