:root {
  --ink: #11161c;
  --muted: #5d6876;
  --line: #dfe7ee;
  --paper: #f6f8fb;
  --white: #ffffff;
  --night: #0d1218;
  --coal: #18212a;
  --blue: #0284c7;
  /* --blue queda para bordes, iconos y degradados (decorativo). Para TEXTO sobre fondo
     claro usar --blue-text: #0284c7 solo alcanza 4.1:1 sobre blanco y 3.85:1 sobre
     --paper, por debajo del minimo AA de 4.5:1. Sobre fondo oscuro, --blue-light. */
  --blue-text: #0369a1;
  --blue-light: #7fe3ff;
  --cyan: #0ea5e9;
  --teal: #10b981;
  --amber: #ffb020;
  /* Antes #ef5d50. Ese tono dejaba el texto blanco de la seccion CTA en 3.31:1 y el
     enlace de privacidad en 3.31:1 sobre blanco, ambos por debajo de AA. Este rojo
     mantiene el acento de marca y sube ambos a ~5.2:1. */
  --red: #c9372c;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Outfit, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

section[id] {
  scroll-margin-top: 92px;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: clamp(72px, 9vw, 118px) 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 14px clamp(18px, 4vw, 52px);
  color: var(--white);
  background: rgba(13, 18, 24, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  color: #05212a;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 950;
}

.brand-logo {
  height: 30px;
  width: auto;
  /* logo oficial es negro sobre transparente; lo pasamos a blanco para la cabecera oscura */
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
}

.nav a:hover,
.header-cta:hover {
  color: var(--white);
}

.nav .nav-index {
  padding: 7px 11px;
  border-radius: 4px;
  color: #05212a;
  background: var(--teal);
  font-weight: 850;
}

.nav .nav-index:hover {
  color: #05212a;
  background: #46d8bc;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  color: #071b22;
  background: var(--amber);
  font-weight: 900;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 40px;
  margin-left: auto;
  cursor: pointer;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 96px 0 50px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 15, 20, 0.98) 0%, rgba(10, 15, 20, 0.9) 30%, rgba(10, 15, 20, 0.42) 58%, rgba(10, 15, 20, 0.18) 100%),
    radial-gradient(720px 440px at 23% 24%, rgba(0, 201, 154, 0.12), transparent 64%),
    url("assets/hero-cloud-pbx-restaurant.webp") center right / cover no-repeat,
    #10151b;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to top, var(--paper), rgba(246, 248, 251, 0));
  pointer-events: none;
}

.hero.hair-hero {
  background:
    linear-gradient(90deg, rgba(10, 15, 20, 0.98) 0%, rgba(10, 15, 20, 0.9) 30%, rgba(10, 15, 20, 0.42) 58%, rgba(10, 15, 20, 0.18) 100%),
    radial-gradient(720px 440px at 23% 24%, rgba(0, 201, 154, 0.12), transparent 64%),
    url("assets/hero-peluqueria-mujer.webp") center right / cover no-repeat,
    #10151b;
}

.hero.restaurant-hero {
  background:
    linear-gradient(90deg, rgba(10, 15, 20, 0.98) 0%, rgba(10, 15, 20, 0.9) 30%, rgba(10, 15, 20, 0.42) 58%, rgba(10, 15, 20, 0.18) 100%),
    radial-gradient(720px 440px at 23% 24%, rgba(0, 201, 154, 0.12), transparent 64%),
    url("assets/hero-restaurante-persona.webp") center right / cover no-repeat,
    #10151b;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
}

.hero-grid > *,
.problem-grid > *,
.solution-grid > *,
.ai-grid > *,
.script-grid > *,
.referral-grid > *,
.install-grid > * {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--blue-text);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Secciones de fondo oscuro: el azul de texto se volveria ilegible. */
.hero .eyebrow,
.hero .section-kicker {
  color: var(--blue-light);
}

.hero h1,
.problem h2,
.solution h2,
.section-heading h2,
.ai-band h2,
.script h2,
.referral h2,
.install h2,
.cta h2 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(2.85rem, 4.7vw, 5.2rem);
}

.hero-lead {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.06rem, 1.45vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 950;
}

.button.primary {
  color: #191204;
  background: var(--amber);
  box-shadow: 0 16px 38px rgba(255, 176, 32, 0.28);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
}

.button.large {
  min-height: 58px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-row span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.problem {
  background:
    radial-gradient(620px 360px at 8% 14%, rgba(0, 167, 232, 0.09), transparent 62%),
    var(--paper);
}

.problem-grid,
.solution-grid,
.ai-grid,
.script-grid,
.referral-grid,
.install-grid {
  display: grid;
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.problem-grid {
  grid-template-columns: 0.82fr 1.18fr;
}

.problem h2,
.solution h2,
.section-heading h2,
.ai-band h2,
.script h2,
.referral h2,
.install h2,
.cta h2 {
  font-size: clamp(2rem, 4.1vw, 4.1rem);
}

.problem-copy p:not(.section-kicker),
.solution-copy > p,
.section-heading p,
.ai-band p,
.referral p,
.install p,
.cta p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.problem-cards {
  display: grid;
  gap: 14px;
}

.problem-cards article {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 18px;
  row-gap: 8px;
  align-items: start;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
}

.problem-cards article.accent {
  background: #fffaf0;
  border-color: rgba(255, 176, 32, 0.55);
}

.problem-cards span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #06222b;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 950;
}

.problem-cards .accent span {
  background: var(--amber);
}

.problem-cards h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.problem-cards p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
}

.solution {
  background: var(--white);
}

.solution-grid {
  max-width: 1040px;
  grid-template-columns: 1fr;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.module-grid article,
.ai-list article {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.module-grid strong,
.module-grid span,
.ai-list b,
.ai-list span {
  display: block;
}

.module-grid strong,
.ai-list b {
  margin-bottom: 6px;
}

.module-grid span,
.ai-list span {
  color: var(--muted);
}

.journey {
  color: var(--white);
  background: #20272e;
}

.journey-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: stretch;
}

.journey-visual {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.28);
}

.journey-visual img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.journey .section-heading p {
  color: rgba(255, 255, 255, 0.74);
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.journey-steps article {
  min-height: 205px;
  padding: 22px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}

.journey-steps span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #191204;
  background: var(--amber);
  font-weight: 950;
}

.journey-steps h3 {
  margin: 18px 0 7px;
}

.journey-steps p {
  margin: 0;
  color: var(--muted);
}

.ai-band {
  color: var(--white);
  background:
    radial-gradient(760px 420px at 84% 12%, rgba(0, 167, 232, 0.2), transparent 60%),
    linear-gradient(135deg, #10151b, #1a242d);
}

.ai-grid {
  grid-template-columns: 0.95fr 1.05fr;
}

.ai-band .section-kicker {
  color: #7fe3ff;
}

.ai-band p {
  color: rgba(255, 255, 255, 0.76);
}

.ai-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ai-list article {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.ai-list span {
  color: rgba(255, 255, 255, 0.72);
}

.script {
  background: var(--white);
}

.script-grid {
  grid-template-columns: 0.82fr 1.18fr;
}

blockquote {
  margin: 0;
  padding: clamp(28px, 4vw, 46px);
  border-left: 8px solid var(--amber);
  border-radius: var(--radius);
  color: #2d2312;
  background: #fff7e8;
  font-size: clamp(1.35rem, 2.35vw, 2rem);
  font-weight: 850;
  line-height: 1.25;
}

.flow-summary {
  background:
    radial-gradient(720px 380px at 20% 15%, rgba(0, 201, 154, 0.1), transparent 62%),
    var(--paper);
}

.flow-summary-visual {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--night);
  box-shadow: var(--shadow);
}

.flow-summary-visual img {
  width: 100%;
}

.flow-summary-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.flow-summary-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 850;
}

.flow-summary-points span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.product-path {
  color: var(--white);
  background: #0d1218;
}

.product-path-heading {
  max-width: 850px;
}

.product-path-heading h2 {
  color: var(--white);
}

.product-path-heading > p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.product-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-path-step {
  position: relative;
  min-height: 310px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #17212a;
}

.product-path-step.marketing-step {
  color: var(--ink);
  background: #fffbeb;
  border-color: rgba(255, 176, 32, 0.55);
}

.product-path-step.switchboard-step {
  background: #123444;
  border-color: rgba(0, 167, 232, 0.45);
}

.path-step-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.path-number {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #061923;
  background: var(--cyan);
  font-weight: 950;
}

.marketing-step .path-number {
  color: #4c3200;
  background: var(--amber);
}

.switchboard-step .path-number {
  color: #061923;
  background: #7fe3ff;
}

.path-plan {
  margin: 0;
  color: #7fe3ff;
  font-size: 0.83rem;
  font-weight: 950;
  text-transform: uppercase;
}

.marketing-step .path-plan {
  color: #7a5000;
}

.switchboard-step .path-plan {
  color: #bcefff;
}

.product-path-step h3 {
  margin: 24px 0 20px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.path-actions span {
  position: relative;
  padding: 9px 27px 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 850;
}

.marketing-step .path-actions span {
  color: #60440b;
  background: #ffffff;
  border-color: #f1dca9;
}

.path-actions span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: 8px;
  color: var(--cyan);
}

.marketing-step .path-actions span:not(:last-child)::after {
  color: #c77b00;
}

.path-button {
  width: fit-content;
  margin-top: 24px;
  color: #ffffff;
  background: #11161c;
  border-color: #11161c;
}

.plan-includes {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 10px;
  border-radius: 4px;
  color: #2f2100;
  background: var(--amber);
  font-size: 0.75rem;
  font-weight: 950;
}

.pricing {
  background: #eef3f7;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.price-card.featured {
  border-color: rgba(0, 167, 232, 0.55);
  border-top-color: var(--blue);
  box-shadow: 0 24px 65px rgba(0, 167, 232, 0.14);
}

.price-card.is-selected-plan {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 201, 154, 0.18), 0 24px 65px rgba(0, 201, 154, 0.16);
}

.selected-plan-label {
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 9px;
  border-radius: 4px;
  color: #052e25;
  background: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-card.ai-card {
  color: var(--white);
  background: linear-gradient(145deg, #11161c, #23303b);
  border-color: rgba(255, 255, 255, 0.08);
  border-top-color: var(--gold);
}

.plan-name {
  margin: 0 0 12px;
  color: var(--blue-text);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-card .plan-name {
  color: #7fe3ff;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 950;
}

.price span {
  font-size: clamp(2.7rem, 4.5vw, 4.1rem);
  line-height: 0.95;
}

.price-card p:not(.plan-name) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ai-card p:not(.plan-name) {
  color: rgba(255, 255, 255, 0.72);
}

.price-card ul {
  display: grid;
  gap: 12px;
  padding: 20px 0 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.ai-card li {
  color: rgba(255, 255, 255, 0.74);
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.referral {
  background: linear-gradient(135deg, #fff9e8 0%, #f4fbf8 52%, #eef8ff 100%);
}

.referral-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.referral .button {
  margin-top: 28px;
}

.whatsapp-preview {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(17, 22, 28, 0.96), rgba(25, 43, 45, 0.96)),
    radial-gradient(380px 260px at 100% 0%, rgba(0, 201, 154, 0.28), transparent 62%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.whatsapp-preview::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(0, 201, 154, 0.2);
  border: 1px solid rgba(127, 227, 255, 0.24);
}

.preview-header,
.preview-list,
.whatsapp-preview p {
  position: relative;
  z-index: 1;
}

.preview-header span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: var(--radius);
  color: #09241e;
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-header b {
  display: block;
  max-width: 480px;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.06;
}

.preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.preview-list span {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-weight: 850;
  text-align: center;
}

.whatsapp-preview p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.install {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 21, 27, 0.94), rgba(16, 21, 27, 0.84)),
    url("assets/grandstream-ht813-front.webp") right 3vw center / min(44vw, 620px) auto no-repeat,
    #10151b;
}

.install-grid {
  grid-template-columns: 1fr 0.9fr;
}

.install .section-kicker {
  color: #7fe3ff;
}

.install p {
  color: rgba(255, 255, 255, 0.76);
}

.install .install-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--mint);
  background: rgba(255, 255, 255, 0.07);
}

.install .install-note strong {
  color: #fff;
}

.install-stats {
  display: grid;
  gap: 12px;
}

.install-stats div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.install-stats b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--amber);
  background: rgba(255, 176, 32, 0.12);
  font-size: 1.25rem;
}

.faq {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.faq-heading h2 {
  max-width: 560px;
}

.faq-heading > p:last-child {
  max-width: 540px;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 18px 54px 18px 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:focus-visible {
  outline: 3px solid rgba(18, 185, 133, 0.45);
  outline-offset: -3px;
  border-radius: 4px;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink);
  background: #e8f8f3;
  font-size: 1.45rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
  color: var(--white);
  background: var(--mint);
}

.faq-list details p {
  max-width: 720px;
  margin: -2px 54px 22px 0;
  color: var(--muted);
  font-size: 1rem;
}

.cta {
  color: var(--white);
  background: var(--red);
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.cta .section-kicker {
  color: var(--white);
}

.cta p {
  color: rgba(255, 255, 255, 0.78);
}

.cta-note {
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

.cta-box > div {
  max-width: 760px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(16, 21, 27, 0.22);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.contact-form label span {
  color: #364254;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f7fafc;
  border: 1px solid rgba(54, 66, 84, 0.18);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.contact-form textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.honey-field {
  position: absolute;
  left: -9999px;
}

.form-privacy {
  margin: 0;
  color: var(--muted) !important;
  font-size: 0.88rem !important;
}

.form-privacy a {
  color: var(--red);
  font-weight: 800;
}

.contact-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.contact-technical {
  padding: 0;
  border: 1px solid rgba(54, 66, 84, 0.16);
  border-radius: 8px;
  background: #f7fafc;
}

.contact-technical summary {
  min-height: 50px;
  padding: 13px 14px;
  color: #364254;
  font-weight: 850;
  cursor: pointer;
}

.contact-technical[open] summary {
  border-bottom: 1px solid rgba(54, 66, 84, 0.12);
}

.contact-technical-fields {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 21, 27, 0.58);
  backdrop-filter: blur(8px);
}

.success-modal.is-visible {
  display: flex;
}

.success-modal-card {
  width: min(100%, 440px);
  padding: clamp(26px, 4vw, 38px);
  text-align: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(16, 21, 27, 0.28);
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from {
    transform: translateY(10px) scale(0.97);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.success-modal-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  color: #062f28;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(0, 184, 148, 0.28);
}

.success-modal-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.success-modal-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
}

.success-modal-btn {
  width: min(100%, 220px);
  border: 0;
  cursor: pointer;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 4vw, 52px);
  color: rgba(255, 255, 255, 0.68);
  background: #10151b;
}

.site-footer span:first-child {
  color: var(--white);
  font-weight: 950;
}

@media (max-width: 1120px) {
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav-burger {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    padding: 0 clamp(18px, 4vw, 52px);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(13, 18, 24, 0.98);
    transition: max-height 0.24s ease, opacity 0.2s ease, padding 0.24s ease;
  }

  .nav a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav .nav-index {
    margin-top: 8px;
    padding: 11px 13px;
    border-bottom: 0;
  }

  .nav-toggle:checked ~ .nav {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    padding-top: 8px;
    padding-bottom: 16px;
  }

  .hero-grid,
  .problem-grid,
  .solution-grid,
  .ai-grid,
  .script-grid,
  .referral-grid,
  .install-grid,
  .journey-showcase,
  .product-path-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(10, 15, 20, 0.58) 0%, rgba(10, 15, 20, 0.9) 42%, rgba(10, 15, 20, 0.98) 100%),
      url("assets/hero-cloud-pbx-restaurant.webp") 62% top / auto 42vh no-repeat,
      #10151b;
  }

  .hero.hair-hero {
    background:
      linear-gradient(180deg, rgba(10, 15, 20, 0.58) 0%, rgba(10, 15, 20, 0.9) 42%, rgba(10, 15, 20, 0.98) 100%),
      url("assets/hero-peluqueria-mujer.webp") 62% top / auto 42vh no-repeat,
      #10151b;
  }

  .hero.restaurant-hero {
    background:
      linear-gradient(180deg, rgba(10, 15, 20, 0.58) 0%, rgba(10, 15, 20, 0.9) 42%, rgba(10, 15, 20, 0.98) 100%),
      url("assets/hero-restaurante-persona.webp") 62% top / auto 42vh no-repeat,
      #10151b;
  }

  .journey-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .install {
    background:
      linear-gradient(90deg, rgba(16, 21, 27, 0.96), rgba(16, 21, 27, 0.9)),
      url("assets/grandstream-ht813-front.webp") right -150px bottom 20px / 560px auto no-repeat,
      #10151b;
  }

  .cta-box {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 1.0625rem;
  }
  .section-inner {
    width: min(100% - 40px, 1180px);
  }

  .site-header {
    min-height: 64px;
    padding: 12px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav {
    top: 64px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-cta {
    max-width: 132px;
    min-height: 38px;
    padding: 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
  }

  .hero {
    padding: 140px 0 34px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.65rem);
  }

  .journey-visual {
    aspect-ratio: 4 / 5;
  }

  .hero-lead,
  .problem-copy p:not(.section-kicker),
  .solution-copy > p,
  .section-heading p,
  .ai-band p,
  .referral p,
  .install p,
  .cta p {
    font-size: 1.0625rem;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .eyebrow,
  .section-kicker,
  .plan-name,
  .plan-includes,
  .selected-plan-label,
  .pack-tiers-label,
  .contact-form label span {
    font-size: .9rem;
  }

  .pricing-note,
  .pack-tiers > p,
  .form-privacy,
  .credit-tags span {
    font-size: 1rem !important;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .contact-technical summary {
    font-size: 1rem;
  }

  .problem-cards article {
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    row-gap: 8px;
    padding: 18px;
  }

  .problem-cards span {
    width: 44px;
    height: 44px;
    font-size: 0.86rem;
  }

  .module-grid,
  .ai-list,
  .journey-steps,
  .price-grid,
  .preview-list {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: auto;
  }

  .product-path-step {
    min-height: auto;
  }

  .path-actions {
    display: grid;
  }

  .path-actions span {
    width: 100%;
  }

  .install-stats div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Créditos extra al pie de los planes con WhatsApp */
.price-card.featured ul,
.price-card.ai-card ul {
  margin: 20px 0 0;
}

.pack-tiers {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.pack-tiers-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.pack-tiers > p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.pack-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pack-tier {
  padding: 12px 6px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.24);
}

.pack-tier b {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink);
}

.pack-tier span {
  display: block;
  margin-top: 4px;
  font-weight: 900;
  color: #047857;
}

.pack-tier small {
  display: block;
  margin-top: 4px;
  font-size: 0.66rem;
  color: var(--muted);
}

/* Variante oscura del plan completo */
.ai-card .pack-tiers {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.ai-card ul {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.ai-card .pack-tiers-label {
  color: rgba(255, 255, 255, 0.6);
}

.ai-card .pack-tiers > p {
  color: rgba(255, 255, 255, 0.72);
}

.ai-card .pack-tier {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.4);
}

.ai-card .pack-tier b {
  color: var(--white);
}

.ai-card .pack-tier span {
  color: #34d399;
}

.ai-card .pack-tier small {
  color: rgba(255, 255, 255, 0.6);
}

/* Parrilla de 3 planes */
.price-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .price-grid-3 {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

/* Bloque explicativo de créditos */
.credits {
  background: var(--white);
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.credits-grid article {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}

.credits-grid b {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--blue-text);
}

.credits-grid span {
  display: block;
  color: var(--muted);
}

.credit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.credit-tags span {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .faq-list summary {
    min-height: 68px;
    padding-right: 48px;
    font-size: 1.05rem;
  }

  .faq-list details p {
    margin-right: 0;
  }

  .credits-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-note {
  margin: 26px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.pricing-note + .pricing-note {
  margin-top: 8px;
}
