.contact { padding-block: 80px 100px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }

/* Datos de contacto */
.cinfo { display: grid; gap: 14px; }
.cinfo h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 8px; }
.cblock { position: relative; display: grid; gap: 8px; padding: 22px 24px; border: 1px solid var(--c-line); background: rgba(11,20,36,.6); overflow: hidden; transition: border-color .4s, transform .5s var(--ease); }
.cblock::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--c-accent); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.cblock:hover { border-color: rgba(245,163,0,.5); transform: translateX(6px); }
.cblock:hover::before { transform: scaleY(1); }
.cblock h3 { font: 600 .75rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--c-accent); }
.cblock ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cblock a, .cblock p { color: #dfe5ef; margin: 0; }
.cblock a { width: fit-content; background: linear-gradient(var(--c-accent), var(--c-accent)) left bottom / 0 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.cblock a:hover { background-size: 100% 1px; color: var(--c-accent); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { padding: 8px 14px; border: 1px solid var(--c-line); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; background-image: none; transition: background .3s, color .3s, border-color .3s; }
.socials a:hover { background: var(--c-accent); color: #000; border-color: var(--c-accent); }

/* Formulario */
.cform { position: relative; padding: clamp(24px, 4vw, 44px); background: var(--c-surface); border: 1px solid var(--c-line); display: grid; gap: 22px; }
.cform h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cform > p { margin: -10px 0 0; color: var(--c-muted); }
.field { position: relative; display: grid; }
.field input, .field textarea { width: 100%; padding: 22px 0 8px; background: transparent; border: 0; border-bottom: 1px solid var(--c-line); color: var(--c-text); font: inherit; outline: none; resize: vertical; }
.field label { position: absolute; left: 0; top: 20px; color: var(--c-muted); pointer-events: none; transition: transform .3s var(--ease), color .3s, font-size .3s; transform-origin: left top; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-18px); font-size: .75rem; letter-spacing: .1em; color: var(--c-accent); }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field.bad input, .field.bad textarea { border-bottom-color: #ff6b6b; }
.field small { position: absolute; right: 0; bottom: -20px; font-size: .72rem; color: var(--c-muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: #cbd3e0; margin-top: 8px; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--c-accent); }
.consent a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .btn { justify-self: start; cursor: pointer; }
.cform .btn:disabled { opacity: .6; cursor: wait; }
.cerr { margin: 0; color: #ff8a8a; font-size: .9rem; }

/* Enviado */
.sent { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 40px 8px; animation: pop .6s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }
.sent svg { width: 88px; height: 88px; }
.sent circle { fill: none; stroke: var(--c-accent); stroke-width: 3; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .8s .1s var(--ease) forwards; }
.sent path { fill: none; stroke: var(--c-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .5s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sent h2 { font-size: 2.4rem; }
.sent p { margin: 0; color: var(--c-muted); max-width: 40ch; }

/* Mapa */
.map { position: relative; height: clamp(320px, 45vw, 460px); background: var(--c-surface); border-top: 1px solid var(--c-line); overflow: hidden; display: grid; place-items: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg); }
.map__cta { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: center; text-align: center; padding: 24px; }
.map__cta p { margin: 0; color: var(--c-muted); max-width: 46ch; font-size: .9rem; }
.map__bg { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.04) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.04) 39px 40px); animation: pan 30s linear infinite; }
@keyframes pan { to { background-position: 400px 400px; } }

@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .map__bg, .sent circle, .sent path { animation: none; stroke-dashoffset: 0; } }
