/* ==========================================================================
   Cuantico — Contacto
   ========================================================================== */

/* ---------- Hero ---------- */
.chero {
  position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 64px) 0 clamp(64px, 8vw, 110px);
  background: radial-gradient(50% 60% at 85% 25%, rgba(27, 79, 156, .5), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(59, 154, 225, .16), transparent 70%), var(--navy);
}
.chero__glow { position: absolute; z-index: -1; left: 55%; top: 40%; width: 46vw; height: 46vw; max-width: 760px; max-height: 760px; transform: translate(-30%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(59, 154, 225, .22), transparent 62%); pointer-events: none; }
.chero__rings { position: absolute; z-index: -1; left: -14vw; bottom: -24vw; width: min(50vw, 720px); aspect-ratio: 1; pointer-events: none; }
.chero__rings i { position: absolute; inset: calc(var(--k) * 13%); border-radius: 50%; border: 1px solid rgba(59, 154, 225, calc(.3 - var(--k) * .07)); animation: cSpin calc(34s + var(--k) * 14s) linear infinite; }
.chero__rings i:nth-child(1) { --k: 0; } .chero__rings i:nth-child(2) { --k: 1; animation-direction: reverse; } .chero__rings i:nth-child(3) { --k: 2; }
.chero__rings i::after { content: ""; position: absolute; top: 8%; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 16px 4px rgba(59, 154, 225, .6); }
@keyframes cSpin { to { transform: rotate(360deg); } }
.chero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumbs a { transition: color .25s; } .crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--brand-bright); }
.chero__eyebrow { margin-top: 22px; color: #bfe6ff; }
.chero__title { margin: 22px 0 26px; font-size: clamp(2.5rem, 5vw, 5.2rem); line-height: .97; letter-spacing: -.05em; font-weight: 500; }
.chero__title .split-line { padding-bottom: .12em; margin-bottom: -.12em; }
.chero__title .serif-i { font-size: 1.08em; letter-spacing: -.03em; padding-right: .1em; }
.chero__lead { max-width: 54ch; color: #c3d2e5; }
.chero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chero__tags { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chero__tags button { padding: 8px 16px; border-radius: 999px; font-size: .86rem; color: #dbe8f8; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, color .3s, transform .35s var(--ease-spring), box-shadow .3s; }
.chero__tags button:hover { background: #fff; color: var(--navy); transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(255, 255, 255, .5); }
.chero__geo { margin-top: 24px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chero [data-hero-in] { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.chero.is-ready [data-hero-in] { opacity: 1; transform: none; }
.chero .split-line > span { transition-duration: 1.4s; }
.chero.is-ready .split-line > span { transform: none; }

/* canales */
.chero__channels { display: grid; gap: 12px; }
.chero__ch-h { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-glow); margin-bottom: 4px; }
.ch { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: linear-gradient(120deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .5s var(--ease-spring), box-shadow .4s, background .4s; }
.ch__i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #3B9AE1, #1B4F9C); box-shadow: 0 10px 24px -10px rgba(59, 154, 225, .8); transition: transform .5s var(--ease-spring); }
.ch__i--wa { background: linear-gradient(135deg, #2bd16a, #178a45); box-shadow: 0 10px 24px -10px rgba(31, 168, 85, .8); }
.ch__i svg { width: 24px; height: 24px; }
.ch__t { display: grid; gap: 2px; min-width: 0; }
.ch__t small { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-glow); }
.ch__t strong { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 550; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.ch__go { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .4s var(--ease-spring), background-color .3s; }
.ch:hover, .ch:focus-visible { transform: translateX(-6px); background: linear-gradient(120deg, rgba(59, 154, 225, .3), rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 1px rgba(59, 154, 225, .75); }
.ch:hover .ch__i { transform: rotate(-8deg) scale(1.08); }
.ch:hover .ch__go { transform: translateX(4px); background-color: var(--sky); }
@media (max-width: 980px) { .chero__grid { grid-template-columns: 1fr; } .ch:hover { transform: none; } }

/* ---------- Temas ---------- */
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.topic { position: relative; display: grid; align-content: start; gap: 8px; width: 100%; min-height: 230px; padding: 26px 24px; border-radius: 24px; text-align: left; color: #23364f; background: #f3f5f8; box-shadow: inset 0 0 0 1px rgba(11, 31, 58, .08); overflow: hidden; transition: transform .5s var(--ease-out), background .4s, box-shadow .4s; }
.topic strong { font-size: 1.45rem; font-weight: 500; letter-spacing: -.03em; color: var(--navy); }
.topic__k { display: inline-grid; place-items: center; width: fit-content; padding: 4px 12px; border-radius: 999px; font-size: .68rem; letter-spacing: .14em; color: #fff; background: linear-gradient(135deg, #3B9AE1, #1B4F9C); }
.topic i { position: absolute; right: 20px; bottom: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; transition: transform .4s var(--ease-spring), background-color .3s; }
.topic:hover, .topic:focus-visible { transform: translateY(-8px); background: #fff; box-shadow: 0 0 0 1px rgba(27, 79, 156, .5), 0 36px 60px -36px rgba(27, 79, 156, .6); }
.topic:hover i { transform: translateY(4px); background-color: var(--blue); }
@media (max-width: 1100px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topics { grid-template-columns: minmax(0, 1fr); } .topic { min-height: 0; } }

/* ---------- Formulario ---------- */
.cform__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cform .lead { margin-top: 20px; color: #dbe8f8; }
.cform__list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .24); }
.cform__list li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .24); }
.cform__list span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #cfe3fa; }
.cform__list a { font-size: 1.2rem; font-weight: 550; color: #fff; transition: color .25s, transform .3s var(--ease-out); width: fit-content; }
.cform__list a:hover { color: #bfe6ff; transform: translateX(4px); }
.cform .form-card { background: rgba(11, 31, 58, .6); }
@media (max-width: 900px) { .cform__grid { grid-template-columns: 1fr; } }

/* ---------- Contacto directo ---------- */
.dgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dcard { position: relative; display: grid; gap: 8px; align-content: start; height: 100%; min-height: 150px; padding: 22px 22px 24px; border-radius: 20px; background: #f3f5f8; box-shadow: inset 0 0 0 1px rgba(11, 31, 58, .08); color: var(--navy); transition: transform .5s var(--ease-out), background .4s, box-shadow .4s; }
.dcard small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.dcard strong { font-size: 1.12rem; font-weight: 550; letter-spacing: -.01em; overflow-wrap: anywhere; }
a.dcard > span { position: absolute; right: 18px; bottom: 16px; font-size: 1.3rem; color: var(--blue); transition: transform .35s var(--ease-spring); }
a.dcard:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 0 0 1px rgba(27, 79, 156, .45), 0 30px 54px -34px rgba(27, 79, 156, .6); }
a.dcard:hover > span { transform: translateX(6px); }
.dcard--soc div { display: flex; flex-wrap: wrap; gap: 8px; }
.dcard--soc a { padding: 8px 16px; border-radius: 999px; font-weight: 550; box-shadow: inset 0 0 0 1px rgba(11, 31, 58, .24); transition: background .3s, color .3s; }
.dcard--soc a:hover { background: var(--navy); color: #fff; }
.dcopy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fpill { padding: 9px 18px; border-radius: 999px; font-size: .88rem; color: #23364f; box-shadow: inset 0 0 0 1px rgba(11, 31, 58, .24); transition: background .3s, color .3s, box-shadow .3s, transform .35s var(--ease-spring); }
.fpill:hover { background: var(--blue); color: #fff; box-shadow: none; transform: translateY(-2px); }
@media (max-width: 1100px) { .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dgrid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { .chero__rings i { animation: none; } }
