/* Contacto (Pablo, 18 Nov 2026): one white card on the purple of the product pages (Confitex's hero sweep, css/producto.css);
   the purple ends three quarters down the card in the Confitex wrapper's zigzag, so the card's last quarter sits on the
   cream below. The nav is the product pages' transparent one over the purple. One step at a time: the answers so far read
   as one sentence above the step (.frase); on the last step that sentence is the card's heading. Sizes are the inner pages': the step = the brands heading (.encabezado-corrido h2.titulo), the
   finished sentence = Nosotros' lead line, the running sentence = body text, choices = the grid captions. No red button outside the nav (CTA rule): the buttons are ink. */

body.pagina-contacto { background: #6744a9; }   /* the purple behind an overscroll at the top */
.pagina-contacto .pagina { min-height: 100svh; display: flex; flex-direction: column; }   /* a short page: the footer still sits at the bottom */
.pagina-contacto .pie { margin-top: auto; }
.contacto-form { --arriba: calc(var(--nav-height) + clamp(40px, 7vh, 96px)); padding: var(--arriba) 0 0; }   /* the brands grid below opens with the shared spacer */
.lienzo { position: relative; isolation: isolate; padding: 0 20px; }
/* the purple: from the top of the page to three quarters down the card (bottom: 25% of the card's own height) */
.lienzo::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: calc(-1 * var(--arriba)); bottom: 25%;
  background: radial-gradient(circle min(640px, 52vw) at 50% 42%, rgba(176,124,240,.69) 0%, rgba(176,124,240,.646) 12%, rgba(176,124,240,.517) 25%, rgba(176,124,240,.355) 38%, rgba(176,124,240,.218) 50%, rgba(176,124,240,.117) 62%, rgba(176,124,240,.052) 75%, rgba(176,124,240,.019) 88%, transparent 100%),   /* the glow, behind the card */
              radial-gradient(ellipse at 48% 40%, transparent 28%, rgba(36,9,63,.078) 45%, rgba(36,9,63,.26) 62%, rgba(36,9,63,.52) 80%, rgba(36,9,63,.819) 100%),   /* darker edges */
              linear-gradient(125deg, #8442c4, #6a2d9a 50%, #4c1c7c); }   /* the homepage's final purple, glow and edges (Pablo, 27 Nov 2026; was #774fc2 / #8255d0 / #6744a9) */
/* the Confitex wrapper's zigzag: cream teeth into the purple, as under every purple hero */
.lienzo::after { content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 25%; height: 9px; background: var(--crema); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 9'%3E%3Cpath d='M0 9 9 0l9 9z'/%3E%3C/svg%3E") repeat-x left bottom/18px 9px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 9'%3E%3Cpath d='M0 9 9 0l9 9z'/%3E%3C/svg%3E") repeat-x left bottom/18px 9px; }
.tarjeta { box-sizing: border-box; width: min(760px, 100%); margin: 0 auto; background: #fff; border-radius: var(--radio); padding: clamp(32px, 4.4vw, 56px); text-align: left;
  box-shadow: 0 30px 60px -30px #1e0b3e66; }   /* a short, tinted shadow where it leaves the purple */
.pasos { margin: 0; }
.paso { border: 0; margin: 0; padding: 0; min-width: 0; }
.paso legend { padding: 0; margin: 0; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pasos [hidden], .tarjeta [hidden] { display: none !important; }   /* .campo and friends set display; hidden must still win */

/* the running sentence: the answers so far, each one a link back to its step */
.frase { margin: 0 0 clamp(14px, 1.8vw, 20px); max-width: 36ch; font-size: clamp(17px, 1.4vw, 21px); font-weight: 400; line-height: 1.5; color: var(--gris); text-wrap: pretty; }
.frase:empty { display: none; }
.frase .parte { color: var(--tinta); cursor: pointer; border-radius: 4px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em; text-decoration-color: #d9d1c7; }
.frase .parte:hover, .frase .parte:focus-visible { text-decoration-color: var(--rojo); }
/* on the last step the sentence is the heading */
.pasos.en-final .frase { max-width: 26ch; font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.14; letter-spacing: -.028em; color: #a39a90; margin-bottom: 14px; }   /* the brands heading's two tones: the visitor's answers (the tappable parts) in ink, the words around them in its grey (Pablo, 18 Nov 2026) */
.pasos.en-final .frase .parte { text-decoration-thickness: 2.5px; text-underline-offset: .14em; }

.pregunta { margin: 0 0 clamp(20px, 2.4vw, 28px); font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; line-height: 1.12; letter-spacing: -.028em; color: var(--tinta); text-wrap: balance; }
/* a blinking cursor ends each step's heading, as if the visitor were typing the sentence (Pablo, 18 Nov 2026: option D, in
   place of the colon). A word joiner holds it to the last word; its width is the padding, its height a painted bar. */
.paso .pregunta::after, .donde .pregunta::after { content: '\2060'; margin-left: .06em; padding-left: .09em;
  background: linear-gradient(var(--rojo), var(--rojo)) 0 55% / 100% .9em no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .paso .pregunta::after, .donde .pregunta::after { animation: cursor 1.06s steps(1) infinite; }
  @keyframes cursor { 50% { opacity: 0; } }
}

/* the first step's choices: full-width rows with an arrow */
.opciones { display: grid; gap: 10px; text-align: left; }
.opciones > * { display: flex; justify-content: space-between; align-items: center; gap: 16px; font: inherit; font-size: clamp(17px, 1.3vw, 19px); font-weight: 700; color: var(--tinta); text-decoration: none;
  background: #fff; border: 1.5px solid #e6ddd2; border-radius: 14px; padding: 16px 20px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.opciones > * { text-align: left; }   /* a button centres its text: a choice that wraps on a phone stays left (Pablo, 18 Nov 2026) */
.opciones > * span { flex: none; color: var(--gris); transition: transform .2s, color .2s; }
.opciones > *:hover, .opciones > *:focus-visible { border-color: var(--tinta); background: var(--crema); }
.opciones > *:hover span, .opciones > *:focus-visible span { transform: translateX(3px); color: var(--tinta); }
.opciones > [aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.opciones > [aria-pressed="true"] span { color: #fff; }

/* chips: products, amounts, kinds of business */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips button { font: inherit; font-size: clamp(15px, 1.2vw, 17px); font-weight: 700; color: var(--tinta); background: #fff; border: 1.5px solid #e6ddd2; border-radius: 999px; padding: 11px 20px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.chips button:hover, .chips button:focus-visible { border-color: var(--tinta); }
.chips button[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
/* product pills: a small round photo before the name */
.chips button:has(img) { display: inline-flex; align-items: center; gap: 10px; padding: 6px 20px 6px 6px; }
.chips button img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }

/* text fields: the visitor's own words after a first-person label */
.etiqueta { display: block; margin: 22px 0 8px; font-size: clamp(17px, 1.4vw, 21px); font-weight: 500; color: var(--tinta); }
.paso[data-paso="quien"] .etiqueta:first-of-type { margin-top: 0; }
.campo { display: block; box-sizing: border-box; width: 100%; font: inherit; font-size: 17px; font-weight: 500; color: var(--tinta); text-align: left; background: var(--crema); border: 1.5px solid transparent; border-radius: 12px; padding: 15px 18px; outline: none; transition: border-color .15s, background .15s; }
.campo:focus { border-color: var(--tinta); background: #fff; }
.campo::placeholder { color: #a39c94; }
textarea.campo { resize: vertical; min-height: 120px; line-height: 1.45; }
.campo[aria-invalid="true"] { border-color: var(--rojo); }
.chips + .etiqueta { margin-top: 26px; }

/* Listo / Enviar: red pills on the right, they are calls to action, not choices (Pablo, 18 Nov 2026) */
.listo, .enviar { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font: inherit; font-size: clamp(15px, 1.15vw, 17px); font-weight: 700; color: #fff; background: var(--rojo-boton); border: 0; border-radius: 999px; padding: 15px 32px; cursor: pointer; text-decoration: none; transition: transform .2s; }
.listo:hover, .listo:focus-visible, .enviar:hover, .enviar:focus-visible { transform: translateY(-2px); background: linear-gradient(rgba(0,0,0,.14), rgba(0,0,0,.14)), var(--rojo-boton); }
.paso .listo, .paso .enviar { display: flex; width: max-content; margin-left: auto; }
.enviar { font-size: clamp(16px, 1.25vw, 19px); padding: 16px 40px; }
.captcha { margin-top: 40px; min-height: 78px; }   /* the hCaptcha box keeps its room while it loads; on the left, above Enviar (Pablo, 18 Nov 2026) */
.enviar[aria-busy="true"] { opacity: .6; cursor: progress; }
.paso .error { text-align: right; }
.error { margin: 14px 0 0; font-size: 15px; font-weight: 700; color: var(--rojo); }
.error a { color: inherit; }

.ayuda { margin: 0 0 4px; font-size: 15px; font-weight: 500; color: var(--gris); }
/* back one step: a quiet text button at the card's top left */
.atras { display: inline-flex; gap: 6px; margin: calc(-1 * clamp(12px, 2vw, 24px)) 0 clamp(14px, 2vw, 22px); padding: 4px 0; font: inherit; font-size: 15px; font-weight: 500; color: var(--gris); background: none; border: 0; cursor: pointer; transition: color .2s; }
.atras:hover, .atras:focus-visible { color: var(--tinta); }
.agregar { display: block; margin: 16px 0 0; padding: 0; font: inherit; font-size: 16px; font-weight: 700; color: var(--tinta); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: #d9d1c7; }
.agregar + .campo { margin-top: 12px; }
.agregar[aria-expanded="true"] { display: none; }
.trampa { position: absolute; left: -9999px; }

.gracias .nota { margin: 0; font-size: clamp(18px, 1.5vw, 21px); color: var(--gris); }
.gracias:focus { outline: none; }
.tarjeta a.listo { color: #fff; }   /* the site's link colour would turn the text ink on ink */

/* a new step fades up into place; reduced motion just shows it */
@media (prefers-reduced-motion: no-preference) {
  .paso.entra, .donde.entra, .gracias.entra { animation: paso-entra .38s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes paso-entra { from { opacity: 0; transform: translateY(14px); } }
}

/* under the card: the brands grid, as on the product pages (Pablo, 18 Nov 2026: in place of the WhatsApp line) */

@media (max-width: 760px) {
  .contacto-form { --arriba: calc(var(--nav-height) + 28px); }
  .lienzo { padding: 0 14px; }
  .tarjeta { padding: 32px 20px 28px; }
  .pregunta { font-size: 30px; }
  .chips { flex-direction: column; }   /* phones: one pill per row, full width (Pablo, 18 Nov 2026) */
  .chips button { width: 100%; text-align: left; }
  .listo, .enviar, .paso .listo, .paso .enviar { width: 100%; justify-content: center; box-sizing: border-box; }
  .pasos.en-final .frase { font-size: 26px; }
}
