/* Varyonyx · página Contacto (se carga después de /estilos.css) */

/* Página actual en la navegación */
.nav a[aria-current] { color: var(--vx-lavanda); }
@media (min-width: 1024px) {
  .nav a[aria-current] { color: var(--vx-papel); text-decoration: underline; text-decoration-color: var(--vx-lavanda); text-underline-offset: 8px; text-decoration-thickness: 2px; }
}

/* ---------- Hero de página interior: texto a la izquierda, V lavanda recortada ---------- */
.ph { padding-top: 40px; padding-bottom: 0; }
.ph .w { position: relative; z-index: 3; }
.ph .riel { margin-bottom: 40px; }
.ph h1 { font-size: var(--t-xl); line-height: 1; letter-spacing: -0.035em; }
.ph .lead { margin-top: 28px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; max-width: 30rem; }
.ph-escena { position: relative; height: 46vw; margin-top: 8px; pointer-events: none; }
.ph-v { position: absolute; right: -18vw; bottom: -24vw; width: 84vw; height: auto; max-width: none; }
@media (min-width: 1024px) {
  .ph { padding-top: 56px; }
  .ph .w { padding-bottom: 112px; }
  .ph h1 { grid-column: 1 / span 8; }
  .ph .lead { grid-column: 1 / span 5; margin-top: 40px; }
  .ph .btns { grid-column: 1 / span 6; }
  .ph-escena { position: absolute; inset: 0; height: auto; margin: 0; z-index: 1; }
  .ph-v { right: -7vw; bottom: -9vw; width: 38vw; }
}
@media (prefers-reduced-motion: no-preference) {
  .ph-txt > * { animation: sube .8s cubic-bezier(.2, .7, .2, 1) both; }
  .ph-txt > :nth-child(2) { animation-delay: .08s; }
  .ph-txt > :nth-child(3) { animation-delay: .16s; }
}

/* ---------- 02 Formulario (sobre bloque lavanda, como en la home) ---------- */
.ct h2 { max-width: 14ch; }
.ct-pasos { margin-top: 32px; }
.ct-pasos li { grid-template-columns: 56px 1fr; }
.ct-pasos li::before { font-size: 28px; }
.ct-aviso { margin-top: 28px; font-size: 15px; line-height: 1.5; }
.ct-aviso a { color: var(--vx-negro); text-underline-offset: 3px; }
.ct .ct-v { z-index: 0; }

.form .nota-req { margin-bottom: 20px; font-size: 14px; line-height: 1.5; color: var(--vx-gris); }
.form .opc { font-weight: 400; color: var(--vx-gris); }
.form .campo-chk { margin-bottom: 4px; }
.form .campo-chk .chk { margin-bottom: 12px; }
.form .campo-chk .err { margin-bottom: 16px; }
.form .err { margin-top: 6px; font-size: 14px; line-height: 1.4; font-weight: 500; color: #8A1C1C; }
.form .err:not([hidden])::before { content: "Error: "; }
.form [aria-invalid="true"] { border-color: #8A1C1C; border-width: 2px; }
.form .chk input[aria-invalid="true"] { outline: 2px solid #8A1C1C; outline-offset: 2px; }
.form .btn[disabled] { opacity: .55; cursor: not-allowed; }
.form .aviso-form { margin-top: 20px; padding: 14px 16px; background: var(--vx-hielo); border-left: 4px solid var(--vx-negro); font-size: 15px; line-height: 1.5; }
.form .nota { margin-top: 16px; }

/* Marcador visible de dato pendiente */
.pend { display: inline-block; padding: 2px 10px; border: 1.5px dashed currentColor; border-radius: 6px; font-weight: 500; font-size: .95em; line-height: 1.4; white-space: normal; }

/* ---------- 03 Datos directos ---------- */
.dt { row-gap: 40px; }
.dt h2 { font-size: var(--t-xl); letter-spacing: -0.035em; max-width: 14ch; }
.dt .datos div { align-items: center; padding: 18px 0; }
.dt-nota { margin-top: 16px; }
@media (min-width: 900px) {
  .dt { column-gap: var(--gap); align-items: start; }
  .dt h2 { grid-column: 1 / span 6; }
  .dt-cuerpo { grid-column: 7 / -1; padding-top: 12px; }
}

/* La V del bloque lavanda queda bajo el contenido, nunca debajo del texto */
@media (min-width: 900px) {
  .ct { padding-bottom: calc(112px + 14vw); }
  .ct .ct-v { left: -6vw; bottom: -10vw; width: 30vw; }
}

/* ---------- Escritorio: una sección = una pantalla ---------- */
@media (min-width: 1024px) and (min-height: 600px) {
  .ct-pasos { margin-top: clamp(12px, 2.4vh, 32px); }
  .ct-aviso { margin-top: clamp(10px, 2vh, 28px); }
  .form .nota-req { margin-bottom: clamp(6px, 1.2vh, 20px); }
  .form input[type="text"], .form input[type="email"], .form select { min-height: clamp(38px, 5.2vh, 48px); }
  .form textarea { min-height: clamp(54px, 9vh, 100px); }
  .form .campo { margin-bottom: clamp(8px, 1.5vh, 16px); }
  .form .chk { margin-bottom: clamp(8px, 1.4vh, 18px); }
  .form .aviso-form { margin-top: clamp(10px, 1.8vh, 20px); }
  .dt { row-gap: clamp(16px, 3vh, 40px); }
  .dt .datos div { padding-block: clamp(10px, 1.8vh, 18px); }
}

/* Campo trampa contra el correo basura: fuera de pantalla, nunca visible */
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
