/* Ultramedia page structure, laid out the way neuralframe.art lays out its home (a split hero with the tour as a
   framed card, figures as cards with an icon, every service and plan as a card with an icon), in Ultramedia's own
   look: the off-white ground, white cards with a hairline, the magenta accent, Hanken Grotesk. */
:root { --u-card: #ffffff; --u-edge: rgba(0, 0, 0, .1); --u-edge-strong: rgba(0, 0, 0, .22); --u-ease: cubic-bezier(.23, 1, .32, 1);
  --u-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 30px -24px rgba(0, 0, 0, .35); }
.ground-inverse { --u-card: color-mix(in oklab, var(--bg), #ffffff 7%); --u-edge: rgba(255, 255, 255, .12); --u-edge-strong: rgba(255, 255, 255, .3); }
.ground-surface { --u-card: #ffffff; }

/* hero: split, the words on the left, the Fuerte tour as a framed card on the right */
.hero--split h1 { font-size: clamp(34px, 1.9vw + 18px, 52px); line-height: 1.05; hyphens: manual; overflow-wrap: normal; word-break: normal; }
.hero--split .hero__lead { color: var(--muted); }
main > .hero.hero--split { height: auto; min-height: 100svh; }
@media (min-width: 1024px) {
  main > .hero.hero--split { display: flex; flex-direction: column; }
  .hero--split > .wrap { flex: 1 0 auto; display: flex; flex-direction: column; }
  .hero--split .hero__grid { flex: 1 0 auto; }
}
@media (max-width: 1023px) { .hero--split .hero__media { aspect-ratio: 16 / 10; flex: none; height: auto; } }
.hero__kicker { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); margin: 0; }
.hero__kicker + h1 { margin-top: var(--s-4); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--lift); }
.hero-card > picture, .hero-card > picture > img { display: block; width: 100%; height: 100%; }
.hero-card > picture > img { object-fit: cover; object-position: 50% 55%; animation: hero-settle 1400ms var(--u-ease) both; }
.hero-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .7)); }
.hero-card .ly-play { position: absolute; left: var(--s-5); bottom: var(--s-5); right: var(--s-5); z-index: 1; color: #fff; }
.hero-badge { position: absolute; top: var(--s-5); right: var(--s-5); z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; box-shadow: var(--u-shadow); }
.hero-badge .mark { transform: scale(1.3); }
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (max-width: 639px) {
  .hero--split h1 { font-size: 30px; line-height: 1.1; }
  .hero--split .hero__lead { font-size: 16px; }
  .hero-card .ly-play { display: none; }
}

/* cards: every service, plan and step is a white card with a hairline that lifts a little under the pointer */
.rows > li, .card.card--open, .faq .faq__item, .fig { background: var(--u-card); border: 1px solid var(--u-edge); border-radius: var(--r-lg); box-shadow: var(--u-shadow); }
.rows > li, .card, .fig { position: relative; transition: transform 200ms var(--u-ease), border-color 200ms var(--u-ease), box-shadow 200ms var(--u-ease); }
@media (hover: hover) and (pointer: fine) {
  .rows > li:hover, .card.card--open:hover, .fig:hover { transform: translateY(-2px); border-color: var(--u-edge-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 20px 40px -24px rgba(0, 0, 0, .4); }
}
.rows { display: grid; gap: 6px; border: 0; }
.rows > li:nth-child(n) { padding: var(--s-3) var(--s-4); }
.rows > li + li { border-top: 1px solid var(--u-edge); }
.rows > li::before { display: none; }
[data-peek] .rows > li:focus-visible { border-color: var(--accent); }
.rows > li:has(> .chip) { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: var(--s-4); align-items: start; }
.rows > li > .chip { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.rows > li:has(> .chip) > .rows__name, .rows > li:has(> .chip) > p { grid-column: 2; }
.rows > li:has(> .chip) > .rows__value { grid-column: 3; grid-row: 1; }
.card.card--open { padding: var(--s-4); }
.card .panel { border-radius: calc(var(--r-lg) - 6px); overflow: hidden; }
.faq .faq__item { padding: var(--s-4) var(--s-5); }
.faq .faq__item h3 { margin-top: 0; }
.faq .faq__item p { margin-bottom: 0; }
.faq__item + .faq__item { margin-top: var(--s-3); }
#servicios .lead-more { display: none; }

/* icon chips: the accent on a soft tint of itself */
.chip { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--accent); background: color-mix(in oklab, var(--accent) 9%, transparent); }
.chip svg { width: 22px; height: 22px; }
.chip--row { width: 40px; height: 40px; border-radius: 12px; }
.chip--row svg { width: 20px; height: 20px; }

/* figures: icon chip, the number with its unit in the accent, the label under it */
.figs { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.fig { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-1); align-items: center; padding: var(--s-3) var(--s-4); }
.fig .chip { grid-row: span 2; }
.fig p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.fig .fig__num { font: var(--display-weight) clamp(28px, 1.2vw + 18px, 36px)/1 var(--font-display); letter-spacing: var(--display-tracking); color: var(--ink); font-variant-numeric: tabular-nums; }
.fig .fig__num span { color: var(--accent); font: 500 15px/1 var(--font-text); letter-spacing: 0; margin-left: 4px; }
@media (max-width: 1023px) {
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-2); align-items: start; }
  .fig .chip { grid-row: auto; width: 40px; height: 40px; border-radius: 12px; }
  .fig .fig__num span { display: block; margin: 6px 0 0; font-size: 14px; }
}

/* team tools in a row */
.tools li { flex-direction: row; align-items: center; gap: var(--s-3); }

@media (prefers-reduced-motion: reduce) { .hero-card > picture > img { animation: none; } .rows > li, .card, .fig { transition: none; } }

/* phone: tighter cards, so each band keeps to its screens */
@media (max-width: 639px) {
  .rows > li:nth-child(n) { padding: var(--s-3) var(--s-4); }
  .rows { gap: var(--s-2); }
  .card.card--open { padding: 0; background: none; border: 0; box-shadow: none; }
  .faq .faq__item { padding: var(--s-3) var(--s-4); }
  .faq__item + .faq__item { margin-top: var(--s-2); }
  .figs { gap: var(--s-2); margin-bottom: var(--s-5); }
  .fig { padding: var(--s-3); row-gap: 4px; }
  .fig .chip { width: 36px; height: 36px; border-radius: 10px; }
  .fig .fig__num { font-size: 24px; }
  .fig .fig__num span { display: inline; margin-left: 4px; font-size: 13px; }
  .fig p:last-child { font-size: 13px; }
  .tools { flex-direction: row; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
  .tools__d { display: none; }
  .press-row .tile .tile__media { aspect-ratio: 16 / 9; }
  .press-row > .tile.tile--wide { grid-column: 1 / -1; }
  .quote__card { gap: var(--s-2); }
}
.closing .closing__cta .btn.btn--primary { transition: none; }
/* headings by level, body text in the ink, the tour label readable over the picture */
h2 { font-size: clamp(28px, 1.25vw + 22px, 40px); }
@media (max-width: 639px) { h2 { font-size: 26px; } .quote__total strong { font-size: 28px; } .press-row .tile .tile__media { aspect-ratio: 2 / 1; } }
.hero--split .hero__lead { color: var(--ink); }
.hero-card::after { background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .85)); }
.hero-card .ly-play small { color: rgba(255, 255, 255, .92); }

/* technical grounds: a blueprint grid, topographic contours (Hero Patterns, CC BY 4.0) and a circuit trace, drawn in
   the ink at a few percent through a mask so they take the section's colours and fade out at its edges */
.tex { position: relative; isolation: isolate; --tex-fade: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.tex::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--tex-c, var(--ink)); opacity: var(--tex-o, .07);
  -webkit-mask-image: var(--tex), var(--tex-fade, linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent));
  -webkit-mask-size: var(--tex-s, auto), 100% 100%; -webkit-mask-repeat: repeat, no-repeat; -webkit-mask-composite: source-in;
  mask-image: var(--tex), var(--tex-fade, linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent));
  mask-size: var(--tex-s, auto), 100% 100%; mask-repeat: repeat, no-repeat; mask-composite: intersect; }
.tex--grid { --tex: linear-gradient(#000 1px, transparent 1px), linear-gradient(90deg, #000 1px, transparent 1px); --tex-s: 32px 32px; --tex-o: .06; }
.tex--grid::before { -webkit-mask-image: linear-gradient(#000 1px, transparent 1px), linear-gradient(90deg, #000 1px, transparent 1px), var(--tex-fade);
  -webkit-mask-size: 32px 32px, 32px 32px, 100% 100%; -webkit-mask-composite: source-over, source-in;
  mask-image: linear-gradient(#000 1px, transparent 1px), linear-gradient(90deg, #000 1px, transparent 1px), var(--tex-fade);
  mask-size: 32px 32px, 32px 32px, 100% 100%; mask-repeat: repeat, repeat, no-repeat; mask-composite: add, intersect; }
.tex--topo { --tex: url("assets/fondos/topografia.svg"); --tex-s: 600px 600px; --tex-o: .07; }
.tex--circuit { --tex: url("assets/fondos/circuito.svg"); --tex-s: 304px 304px; --tex-o: .06; }
.tex--dots { --tex: radial-gradient(circle, #000 1.1px, transparent 1.6px); --tex-s: 22px 22px; --tex-o: .14; }

/* hero: the blueprint grid with a stronger major line every fourth, brightest behind the words, and a magenta glow
   behind the card */
.hero.tex { --tex-fade: radial-gradient(90% 80% at 20% 35%, #000 25%, transparent 75%); --tex-o: .08; }
.hero.tex::after { content: ""; position: absolute; z-index: -1; pointer-events: none; right: 0; top: 8%; width: 55%; height: 80%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 22%, transparent), transparent); filter: blur(20px); }
.hero-card { outline: 1px solid var(--u-edge); outline-offset: 10px; }
.hero-card__hud { position: absolute; inset: var(--s-4); z-index: 1; pointer-events: none;
  background:
    linear-gradient(#fff, #fff) top left / 22px 2px no-repeat, linear-gradient(#fff, #fff) top left / 2px 22px no-repeat,
    linear-gradient(#fff, #fff) top right / 22px 2px no-repeat, linear-gradient(#fff, #fff) top right / 2px 22px no-repeat,
    linear-gradient(#fff, #fff) bottom left / 22px 2px no-repeat, linear-gradient(#fff, #fff) bottom left / 2px 22px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 22px 2px no-repeat, linear-gradient(#fff, #fff) bottom right / 2px 22px no-repeat; opacity: .85; }
.hero-card__geo { position: absolute; top: calc(var(--s-4) + 12px); left: calc(var(--s-4) + 32px); z-index: 1; margin: 0; color: #fff;
  font: 500 11px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; background: rgba(0, 0, 0, .78); padding: 7px 10px; border-radius: 6px;
  display: flex; align-items: center; gap: 8px; }
.hero-card__geo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 35%, transparent); animation: geo-blink 2.4s ease-in-out infinite; }
@keyframes geo-blink { 50% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .hero-card__geo::before { animation: none; } }
@media (max-width: 639px) { .hero-card { outline: 0; } .hero-card__hud { inset: var(--s-3); } .hero-card__geo { top: calc(var(--s-3) + 10px); left: calc(var(--s-3) + 30px); } }

/* dark band: the circuit in white, a little brighter */
.ground-inverse.tex { --tex-c: #fff; --tex-o: .07; }
.hero.tex { overflow-x: clip; }

/* pointer light on the cards (efectos.js sets --mx and --my) */
@media (hover: hover) and (pointer: fine) {
  .rows > li, .card.card--open, .faq .faq__item, .fig { background-image: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), color-mix(in oklab, var(--accent) 7%, transparent), transparent 70%); }
  .ground-inverse .rows > li, .ground-inverse .card.card--open { background-image: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%); }
}

/* a magenta glow behind the right column (the chat, the closing call) */
.tex--glow::after { content: ""; position: absolute; z-index: -1; pointer-events: none; right: 0; top: 0; width: 55%; height: 70%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 16%, transparent), transparent); filter: blur(24px); }
.tex--glow { overflow-x: clip; }
#inmobiliarias { --tex-o: .05; }
.footer.tex { --tex-o: .06; --tex-fade: linear-gradient(180deg, #000, transparent 75%); }
.footer.tex--glow::after { width: 45%; height: 45%; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 26%, transparent), transparent); }

/* team: a portrait leans in under the pointer and shows a magenta rule */
.tile--portrait .tile__media { position: relative; overflow: hidden; }
.tile--portrait .tile__media img { transition: transform 500ms var(--u-ease); }
.tile--portrait .tile__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--u-ease); }
@media (hover: hover) and (pointer: fine) {
  .tile--portrait:hover .tile__media img { transform: scale(1.04); }
  .tile--portrait:hover .tile__media::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { .tile--portrait .tile__media img, .tile--portrait .tile__media::after { transition: none; } }

/* the tour card scans like a drone camera: a thin light passes down the picture every few seconds */
.hero-card__hud::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7) 20%, color-mix(in oklab, var(--accent) 80%, #fff) 50%, rgba(255, 255, 255, .7) 80%, transparent);
  box-shadow: 0 0 18px 2px color-mix(in oklab, var(--accent) 45%, transparent); opacity: 0; animation: hud-scan 7s linear 1.6s infinite; }
@keyframes hud-scan { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: .8; } 55% { opacity: .5; } 70% { transform: translateY(var(--scan-h, 60vh)); opacity: 0; } 100% { opacity: 0; } }
.hero-card__hud { container-type: size; }
.hero-card__hud::before { --scan-h: 100cqh; }
@media (prefers-reduced-motion: reduce) { .hero-card__hud::before { animation: none; display: none; } }

/* icon chips fill with the accent when their card is under the pointer */
.chip { transition: background-color 220ms var(--u-ease), color 220ms var(--u-ease), transform 220ms var(--u-ease); }
@media (hover: hover) and (pointer: fine) {
  .rows > li:hover > .chip, .fig:hover .chip { background: var(--accent); color: #fff; transform: rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) { .chip { transition: none; } }

/* drone photos framed like the camera's viewfinder: four white corners and a crosshair */
#drones .frame--photo { position: relative; }
#drones .frame--photo::after { content: ""; position: absolute; inset: 14px; pointer-events: none; z-index: 1; opacity: .9;
  background:
    linear-gradient(#fff, #fff) top left / 18px 2px no-repeat, linear-gradient(#fff, #fff) top left / 2px 18px no-repeat,
    linear-gradient(#fff, #fff) top right / 18px 2px no-repeat, linear-gradient(#fff, #fff) top right / 2px 18px no-repeat,
    linear-gradient(#fff, #fff) bottom left / 18px 2px no-repeat, linear-gradient(#fff, #fff) bottom left / 2px 18px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 18px 2px no-repeat, linear-gradient(#fff, #fff) bottom right / 2px 18px no-repeat; }
#drones .frame--photo::before { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; translate: -50% -50%; z-index: 1; pointer-events: none; opacity: .75;
  background: linear-gradient(#fff, #fff) center / 26px 1.5px no-repeat, linear-gradient(#fff, #fff) center / 1.5px 26px no-repeat; border-radius: 50%; }

/* type: Space Grotesk for the headings (a technical grotesk with drawn terminals), JetBrains Mono for the small
   labels, Hanken Grotesk stays for reading */
h1, h2, h3, .t-card, .rows__name, .fig .fig__num { font-family: var(--font-display); }
h1 { font-weight: 500; letter-spacing: -0.04em; }
h2 { font-weight: 500; letter-spacing: -0.035em; }
h3, .rows__name, .t-card { font-weight: 600; letter-spacing: -0.015em; }
.hl { color: var(--accent); }
.eyebrow, .t-label, .hero__kicker, .hero-card__geo { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--s-3); color: var(--accent); }
.ground-inverse .eyebrow { color: color-mix(in oklab, var(--accent) 70%, #fff); }
.hero__kicker { color: var(--muted); }
.fig .fig__num span { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
p.eyebrow.eyebrow { font: 500 13px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); max-width: none; margin: 0 0 var(--s-3); }
.ground-inverse p.eyebrow.eyebrow { color: color-mix(in oklab, var(--accent) 65%, #fff); }
.ground-surface p.eyebrow.eyebrow { color: color-mix(in oklab, var(--accent) 85%, #000); }
@media (max-width: 639px) { p.eyebrow.eyebrow { margin-bottom: 6px; } }
@media (max-width: 639px) { #faq p.eyebrow.eyebrow, #asistente p.eyebrow.eyebrow { display: none; } }
@media (max-width: 639px) { #estudio.tex::before { display: none; } }

/* mega menu: each line of business with a sentence under it */
.nav__menu .menu-col a span { line-height: 1.4; }
.nav__menu .t-label { color: var(--accent); }

/* home: the four lines of business as rows, each one a link to its part of the services page */
.rows.lineas > li { position: relative; }
.rows.lineas .rows__name { color: inherit; text-decoration: none; }
.rows.lineas .rows__name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rows.lineas .rows__value { align-self: center; color: var(--accent); font-size: 18px; }
@media (max-width: 1023px) { #lineas .frame--photo { aspect-ratio: 16 / 9; } }
#historia .panel { --p-h: auto; aspect-ratio: 16 / 9; }
.faq-bot { display: flex; gap: var(--s-3); align-items: flex-start; max-width: 420px; padding: var(--s-4); border: 1px solid var(--u-edge); border-radius: var(--r-lg); background: var(--u-card); box-shadow: var(--u-shadow); }
.faq-bot__av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--action); }
.faq-bot__av .mark { width: 18px; height: 18px; background: currentColor; }
.faq-bot__msg { margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border-bottom-left-radius: 4px; background: var(--surface); line-height: 1.5; font-size: 15px; }
.faq-bot__msg b { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }

/* nosotros: the figures only where the cards stack (a phone), so each screen holds one band */
@media (min-width: 640px) { #historia .figs { display: none; } }
@media (min-width: 1024px) { #skydeck .skydeck__pic { min-height: 420px; } }
.tile__head > .tile__name { font: 600 var(--t-card)/1.3 var(--font-display); letter-spacing: -0.015em; margin: 0; }

/* the company logo: the dark one in the bar, the white one in the footer, the UMC mark in the badges */
.nav__logo .nav__logo-img { height: 48px; width: auto; display: block; }
@media (max-width: 639px) { .nav__logo .nav__logo-img { height: 38px; } }
.footer__mark .footer__logo-img { width: min(340px, 100%); height: auto; display: block; }
.hero-badge .umc { width: 40px; height: 40px; display: block; }
.faq-bot__av, .chat__av { background: #fff; border: 1px solid var(--u-edge, rgba(0,0,0,.1)); }
.faq-bot__av .umc, .chat__av .umc { width: 28px; height: 28px; display: block; }

/* ===== type taken from the logo: ULTRA is drawn thin, MEDIA heavy. Headings are Outfit at 300 with the words that
   matter at 700, so every heading reads like the mark ===== */
h1, h2 { font-family: var(--font-display); font-weight: 300; }
h1 strong, h2 strong { font-weight: 700; letter-spacing: -0.045em; }
h1 { font-size: clamp(40px, 2.6vw + 14px, 64px); line-height: 1.02; letter-spacing: -0.04em; }
.hero--split h1 { font-size: clamp(40px, 2.6vw + 14px, 64px); line-height: 1.02; }
h2 { font-size: clamp(32px, 1.7vw + 20px, 50px); line-height: 1.04; letter-spacing: -0.035em; }
h3, .rows__name, .t-card, .tile__head > .tile__name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.fig .fig__num { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; }
.nav__link, .btn { font-family: var(--font-display); font-weight: 500; letter-spacing: 0; }
.hero__lead, .section-head > p { font-size: clamp(17px, .35vw + 15px, 20px); }
@media (max-width: 639px) {
  h1, .hero--split h1 { font-size: 33px; line-height: 1.05; }
  h2 { font-size: 27px; }
}

/* ===== the logo's frame: square on one diagonal, round on the other. Cards, pictures, buttons and chips take it ===== */
:root { --u-r: 3px 36px 3px 36px; --u-r-sm: 3px 18px 3px 18px; }
.rows > li, .card.card--open, .faq .faq__item, .fig, .hero-card, .frame--photo, .develop, .tile__media, .card .panel,
.quote__card, .chat, .faq-bot, .press-row .tile__media { border-radius: var(--u-r); }
.btn, .chip, .chat__send, .chat__act, .chatbar, .chat__row input, .hero-badge { border-radius: var(--u-r-sm); }
.hero-card { outline: 1px solid #c4c4c4; outline-offset: 10px; }
.hero-badge { border-radius: 3px 20px 3px 20px; width: 64px; height: 64px; }
.hero-badge .umc { width: 48px; height: 48px; }

/* ===== big outlined numbers on each band, like a sheet in a set of plans (wide screens) ===== */
main { counter-reset: band; }
@media (min-width: 1024px) {
  main > .section:not(.hero) > .wrap { position: relative; }
  main > .section:not(.hero):has(> .wrap > .section-head) > .wrap::after {
    counter-increment: band; content: counter(band, decimal-leading-zero); position: absolute; right: 0; top: -24px; pointer-events: none;
    font: 200 168px/1 var(--font-display); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklab, var(--ink) 16%, transparent); }
  .ground-inverse > .wrap::after { -webkit-text-stroke-color: rgba(255, 255, 255, .16) !important; }
}
.faq .faq__item h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 639px) {

  #skydeck .skydeck__pic { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
}
@media (max-width: 639px) {
  #faq .faq__item p { font-size: 14px; line-height: 1.45; }
  #faq .faq__item h3 { font-size: 16px; }
  #faq .faq-bot__msg { font-size: 14px; }
}
.rows.lineas .rows__name { display: inline-flex; align-items: center; min-height: 44px; }
.faq__ask { align-self: flex-start; }
.faq__intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
@media (min-width: 640px) { .faq__item + .faq__item { margin-top: 10px; } }
@media (max-width: 639px) { #faq .section-head > p, #faq .faq__ask { display: none; } }
@media (max-width: 639px) { .faq__item--wide { display: none; } }
@media (min-width: 1024px) {
  .rows.lineas > li:nth-child(n) { padding-block: 10px; }
  .rows.lineas > li p { font-size: 15px; line-height: 1.4; }
}
@media (max-width: 639px) { #faq .faq > .faq__item:nth-child(5) { display: none; } }
@media (min-width: 1024px) and (max-width: 1279px) { #faq .faq > .faq__item:nth-child(5), #faq .faq > .faq__item--wide { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) { #historia .panel { aspect-ratio: 4 / 3; } }
/* phone: one more service in Drones and in Campo, so their rows sit a little closer */
@media (max-width: 639px) {
  #drones .rows > li:nth-child(n) { padding-block: 10px; }
  #drones .rows > li p { font-size: 15px; line-height: 1.4; }
  #campo .opt { min-height: 0; padding-block: 10px; gap: var(--s-3); }
  #campo .quote__opts { gap: 6px; }
}
@media (max-width: 639px) {
  #campo .opt__txt small { font-size: 13px; line-height: 1.35; }
  #campo .quote__card { padding: var(--s-4); }
}
@media (min-width: 1024px) {
  #drones .rows > li:nth-child(n) { padding-block: 6px; }
  #drones .rows > li p { font-size: 15px; line-height: 1.4; }
  #drones .rows { gap: 5px; }
}

/* ===== allied companies, in the footer of every page: each one a button on its own brand's ground ===== */
.allies { margin: var(--s-8, 64px) 0 var(--s-7); }
.allies__label { margin: 0 0 var(--s-4); font: 500 13px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.allies__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ally { --ally: #fff; --ally-ground: #101318; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo go" "txt go"; align-items: center; column-gap: var(--s-5); row-gap: var(--s-3);
  padding: var(--s-5) var(--s-6); min-height: 132px; border-radius: var(--u-r); border: 1px solid rgba(255, 255, 255, .12); background: var(--ally-ground); color: #eef2f5; text-decoration: none;
  transition: transform 260ms var(--u-ease), border-color 260ms var(--u-ease), box-shadow 260ms var(--u-ease); }
.ally::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55; transition: opacity 260ms var(--u-ease);
  background: radial-gradient(70% 120% at 100% 0%, color-mix(in oklab, var(--ally) 30%, transparent), transparent 70%); }
.ally--svr { --ally: #f2bb1d; --ally-ground: #0d1217; }
.ally--svr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; pointer-events: none;
  background: repeating-linear-gradient(-45deg, #f2bb1d 0 10px, #0d1217 10px 20px); opacity: .85; }
.ally--nf { --ally: #2b8cf6; --ally-ground: #0a0f1c; }
.ally--nf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none; background: linear-gradient(90deg, #1e6bff, #2ec5f2); }
.ally__logo { grid-area: logo; height: 44px; width: auto; max-width: 100%; display: block; }
.ally__txt { grid-area: txt; font-size: 15px; line-height: 1.45; color: rgba(238, 242, 245, .78); max-width: 42ch; }
.ally__go { grid-area: go; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--u-r-sm); white-space: nowrap;
  font: 600 14px/1 var(--font-display); transition: transform 260ms var(--u-ease), box-shadow 260ms var(--u-ease); }
.ally--svr .ally__go { background: #f2bb1d; color: #0d1217; }
.ally--nf .ally__go { background: linear-gradient(90deg, #1247c4, #1a5ff0); color: #fff; }
.ally__go svg { transition: transform 260ms var(--u-ease); }
.ally:focus-visible { outline: 2px solid var(--ally); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .ally:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--ally) 60%, transparent); box-shadow: 0 24px 48px -28px color-mix(in oklab, var(--ally) 70%, transparent); }
  .ally:hover::before { opacity: 1; }
  .ally:hover .ally__go svg { transform: translate(2px, -2px); }
}
@media (prefers-reduced-motion: reduce) { .ally, .ally::before, .ally__go, .ally__go svg { transition: none; } }
@media (max-width: 1023px) { .ally { grid-template-columns: minmax(0, 1fr); grid-template-areas: "logo" "txt" "go"; } .ally__go { justify-self: start; } }
@media (max-width: 639px) { .allies__grid { grid-template-columns: minmax(0, 1fr); } .ally { padding: var(--s-5); } .ally__logo { height: 36px; } }
/* the footer grows with the allied companies instead of squeezing the closing picture */
footer.closing { height: auto; }
@media (min-width: 1024px) { footer.closing { height: 200vh; height: 200svh; min-height: 0; } }
@media (max-width: 1023px) { footer.closing .close__media { flex: none; height: auto; aspect-ratio: 4 / 3; } }
@media (max-width: 639px) { footer.closing:has(> .wrap > .closing__cta > .close__media) > .wrap { grid-template-rows: auto auto; } }

/* flota de drones: la foto del equipo (10:7) junto a la lista; cada fila con sus datos técnicos */
.flota__pic { --ratio: 70%; }
.flota__pic .frame__img { object-fit: cover; }
.rows.flota > li > .chip { grid-row: 1 / span 3; align-self: start; }
.rows.flota > li > .flota__specs { grid-column: 2 / -1; }
.flota__specs { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.flota__specs > li { font-family: var(--font-mono); font-size: 13px; line-height: 1.35; color: var(--muted); padding: 3px 10px; border: 1px solid var(--u-edge); border-radius: var(--u-r-sm); background: color-mix(in oklab, var(--accent) 4%, transparent); }
.flota__specs > li > b { color: var(--ink); font-weight: 600; }
@media (max-width: 639px) { .flota__pic { --ratio: 100%; } .rows.flota > li > p { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) { .flota__pic { --ratio: 75%; } }

/* el enlace de SkyDeck sobre un fondo liso, no sobre la textura */
#skydeck .link { background: var(--bg); box-shadow: 0 0 0 6px var(--bg); border-radius: 2px; }
