/* ==========================================================================
   DTI PROS · Contacto (contacto.php)
   Secuencia del master: hero, datos + formulario en 3 pasos, muestras y servicios.
   Hero, sellos, foco y botones son componentes de header.css
   ========================================================================== */

/* Hero */
.chero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; }
.quick a { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--white); font: 700 15px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; transition: border-color .25s, background .25s; }
.quick a:hover { color: var(--white); border-color: var(--blue-2); background: rgba(31, 91, 255, .12); }
.quick a.quick__main { background: linear-gradient(135deg, var(--blue), var(--blue-2)); border-color: transparent; box-shadow: 0 10px 30px -10px var(--glow); }
.quick svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promise { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.promise li { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.promise b { min-width: 3.2ch; font-size: clamp(32px, 3.4vw, 46px); color: var(--blue-3); }
.promise span { color: var(--muted); font-size: 15px; }

/* Datos + formulario */
.cbody { padding: clamp(56px, 7vw, 100px) 0; }
.cbody__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
#datos, #formulario, #visita { scroll-margin-top: calc(var(--header-h) + 16px); }
.data { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.data__title { font-size: clamp(34px, 3.6vw, 52px); margin-bottom: 6px; }
.dcard { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 14px 14px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); transition: border-color .3s; }
.dcard:hover { border-color: var(--line); }
.dcard .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(31, 91, 255, .1); }
.dcard .ic svg { width: 22px; height: 22px; fill: none; stroke: var(--blue-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dcard small { display: block; font: 700 12px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.dcard b { display: block; margin: 4px 0 2px; font-size: 16px; word-break: break-word; }
.dcard .sub { display: block; font-size: 13px; color: var(--muted); }
.copy { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--white); font: 700 12px/1 var(--label); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .2s, border-color .2s; }
.copy:hover { border-color: var(--blue-2); }
.copy.ok { background: var(--blue); border-color: var(--blue); }
.track { padding: 18px 20px; border-radius: 14px; border: 1.5px dashed var(--line); }
.track b { display: block; font: 700 17px/1.2 var(--label); letter-spacing: .08em; text-transform: uppercase; }
.track p { margin: 4px 0 14px; font-size: 14px; color: var(--muted); }
.track .btn { min-height: 42px; font-size: 13px; padding: 0 18px; }
.seals { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 6px; }
.seals .tmark { font-size: 18px; }
.seals .tmark__p { font-size: 36px; }
.seals__innuro { display: grid; font: 600 12px/1.2 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.seals__innuro b { font: 700 16px/1.1 var(--label); color: var(--gold-2); }

/* Caja del formulario con barra de progreso (contacto.js fija --fp) */
.formbox { position: relative; padding: clamp(24px, 3.4vw, 44px); border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(90% 50% at 100% 0%, rgba(31, 91, 255, .16), transparent 60%), var(--bg-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.formbox__title { font-size: clamp(34px, 3.8vw, 56px); }
.formbox__top p { margin: 12px 0 0; color: var(--muted); }
.cf-progress { --fp: 0; position: relative; height: 4px; margin-top: 20px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.cf-progress span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--blue-3), var(--gold)); box-shadow: 0 0 12px var(--glow); transform: scaleX(var(--fp)); transform-origin: left; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.cf fieldset { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
.cf legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px; font: 700 18px/1.2 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.cf legend .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--blue-3); font: 400 17px/1 var(--display); transition: background .3s, color .3s, box-shadow .3s; }
.cf fieldset.is-done legend, .cf fieldset:focus-within legend { color: var(--white); }
.cf fieldset.is-done legend .n { background: var(--blue); color: #fff; box-shadow: 0 0 16px var(--glow); }

.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); text-align: center; font: 700 13px/1.15 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: border-color .2s, background .2s, color .2s, transform .2s; }
.chips span:hover { border-color: var(--line); color: var(--white); }
.chips svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chips input:checked + span { border-color: var(--blue-2); background: rgba(31, 91, 255, .16); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px -12px var(--glow); }
.chips input:checked + span svg { stroke: var(--blue-3); }
.chips input:focus-visible + span { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.hint { margin: 10px 0 0; font-size: 14px; color: var(--muted-2); min-height: 1.4em; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: grid; gap: 6px; margin-bottom: 12px; }
.fld[hidden] { display: none; }
.fld > span:first-child { font: 700 13px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fld i { font-style: normal; color: var(--blue-2); }
.fld input, .fld select, .fld textarea { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--white); font: 16px var(--body); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.fld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FB0FF' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.fld select option { background: var(--bg-2); color: var(--white); }
.fld textarea { min-height: 130px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--blue-2); background: rgba(31, 91, 255, .06); box-shadow: 0 0 0 3px rgba(31, 91, 255, .22); }
.fld .err { display: none; font-size: 13px; color: #ff9b9b; }
.fld.bad input, .fld.bad textarea { border-color: #ff6e6e; }
.fld.bad .err { display: block; }

.drop { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 12px; border: 1.5px dashed var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.has { border-color: var(--blue-2); background: rgba(31, 91, 255, .08); }
.drop svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--blue-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop b { display: block; font: 700 15px/1.2 var(--label); letter-spacing: .08em; text-transform: uppercase; }
.drop small { color: var(--muted-2); font-size: 13px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.check a { color: var(--blue-3); text-decoration: underline; }
.check .err { color: #ff9b9b; }
.cf-alert { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.cf-alert.err { background: rgba(255, 80, 80, .12); border: 1px solid rgba(255, 110, 110, .5); color: #ffb0b0; }
.cf-alert.ok { background: rgba(62, 208, 127, .12); border: 1px solid rgba(62, 208, 127, .5); color: #9DF0C2; }
.submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.submit .hint { margin: 0; }
.cf-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: cfSpin .7s linear infinite; }
@keyframes cfSpin { to { transform: rotate(360deg); } }

/* Confirmación con check animado */
.done { padding: 20px 0 0; text-align: center; }
.done[hidden] { display: none; }
.done .ok { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--blue-2), var(--blue)); box-shadow: 0 0 0 10px rgba(31, 91, 255, .15), 0 0 50px var(--glow); animation: okPop .6s cubic-bezier(.175, .885, .32, 1.275) both; }
.done .ok svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; animation: okDraw .5s ease .35s forwards; }
@keyframes okPop { from { transform: scale(.4); opacity: 0; } }
@keyframes okDraw { to { stroke-dashoffset: 0; } }
.done h3 { margin-top: 20px; font-size: clamp(34px, 3.6vw, 50px); }
.done p { max-width: 480px; margin: 12px auto 22px; color: var(--muted); }
.sum { display: grid; gap: 6px; max-width: 460px; margin: 0 auto 22px; text-align: left; }
.sum div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 14px; border-radius: 8px; background: rgba(255, 255, 255, .03); font-size: 14px; }
.sum div span:first-child { color: var(--muted-2); }

/* Muestras */
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.visit__pic { aspect-ratio: 3 / 2; border: 1px solid var(--line); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .9); }
.visit__lead { margin: 18px 0 22px; max-width: 540px; color: var(--muted); }

@media (max-width: 1000px) {
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .chero__grid, .cbody__grid, .visit__grid { grid-template-columns: 1fr; }
  .data { position: static; }
}
@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .submit .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .done .ok, .done .ok svg { animation: none; stroke-dashoffset: 0; }
}
