/* Artiko — estilos compartidos. Mobile-first: lo base es celular, lo de escritorio va en min-width. */

:root {
  /* Colores medidos sobre los logos de la marca */
  --bg: #091b27;
  --navy: #0e2a3b;
  --navy-2: #143549;
  --mint: #4cc9a0;
  --mint-hover: #72d9b8;
  --green: #0f7a5a;
  --green-dark: #0b5f46;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.14);
  --danger: #ff9a8b;
  --focus: #fff;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;

  --font: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --dock-w: 72px;

  /* Líneas suaves de flujo de aire, de fondo */
  --flow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='rgb(76,201,160)' stroke-opacity='.08' stroke-width='1.5'%3E%3Cpath d='M-50 600C150 480 300 700 520 560S860 380 1250 520'/%3E%3Cpath d='M-50 640C160 520 310 740 530 600S870 420 1250 560'/%3E%3Cpath d='M-50 680C170 560 320 780 540 640S880 460 1250 600'/%3E%3Cpath d='M-50 200C200 80 380 300 640 180S1000 60 1250 220'/%3E%3Cpath d='M-50 240C210 120 390 340 650 220S1010 100 1250 260'/%3E%3Cpath d='M-50 280C220 160 400 380 660 260S1020 140 1250 300'/%3E%3C/g%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--white);
  background-color: var(--bg);
  background-image: var(--flow);
  background-size: cover;
  background-attachment: fixed;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure,
address {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

address {
  font-style: normal;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-weight: 500;
}

.skip:focus {
  top: 12px;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 1rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--mint);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--mint-hover);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--green {
  background: var(--green);
  color: var(--white);
}

.btn--green:hover {
  background: var(--green-dark);
}

.btn--outline-dark {
  border-color: rgba(14, 42, 59, 0.45);
  color: var(--navy);
}

.btn--outline-dark:hover {
  background: rgba(14, 42, 59, 0.07);
}

.btn--sm {
  min-height: 44px;
  padding: 0 1.1rem;
  font-size: 0.9375rem;
}

.btn--lg {
  min-height: 56px;
  padding: 0 1.8rem;
  font-size: 1.0625rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions--lead {
  margin-top: 24px;
}

/* ---------- Barra superior (celular) ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(9, 27, 39, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.topbar__brand img {
  border-radius: 50%;
}

.topbar__name {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ---------- Tarjeta de identidad (escritorio) ---------- */

.card-id {
  display: none;
}

/* ---------- Dock de navegación ---------- */

.dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  gap: 4px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(14, 42, 59, 0.97);
  border-top: 1px solid var(--line);
}

.dock__link {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 64px;
  max-width: 140px;
  min-height: 56px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.dock__link[aria-current="page"] {
  color: var(--mint);
}

.dock__link--wa {
  background: var(--mint);
  color: var(--navy);
}

.dock__label {
  line-height: 1.1;
}

/* ---------- Contenido ---------- */

.main {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 16px calc(112px + env(safe-area-inset-bottom));
}

.section {
  margin-top: clamp(64px, 10vw, 112px);
}

.lead {
  max-width: 34em;
  margin-top: 20px;
  text-wrap: pretty; /* evita que el último renglón sea una palabra suelta */
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
}

.prose {
  max-width: 38em;
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--muted);
}

/* Introducción de Servicios, Contacto y Privacidad: también justificada y a lo ancho, igual que "Quiénes somos".
   La de la portada (.hero) queda centrada. */
@media (min-width: 700px) {
  section:not(.hero) > .lead {
    max-width: 52rem;
    text-align: justify;
    hyphens: auto;
  }
}

/* "Quiénes somos": el texto se justifica y ocupa el mismo ancho que las fotos (52rem), sin hueco a la derecha.
   Solo desde 700 px: en celular las líneas son cortas y el justificado deja huecos entre palabras. */
@media (min-width: 700px) {
  .section[aria-labelledby="quienes"] .prose {
    max-width: 52rem;
    text-align: justify;
    hyphens: auto;
  }

  .section[aria-labelledby="quienes"] .rail {
    max-width: 52rem;
  }

  .section[aria-labelledby="quienes"] .rail p {
    max-width: none;
    text-align: justify;
    hyphens: auto;
  }
}

.pill {
  display: inline-block;
  padding: 0 0.22em 0.08em;
  border-radius: 0.45em;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
}

/* Hero */

.hero__logo {
  width: min(260px, 72vw);
  height: auto;
  margin-bottom: 32px;
}

.hero .actions {
  margin-top: 28px;
}

/* En el teléfono el logo grande de arriba se oculta: el nombre ya está en la barra superior y así la foto del equipo se ve al abrir la web */
@media (max-width: 699px) {
  .hero__logo {
    display: none;
  }
}

/* El título entra siempre en una sola línea (desde 700 px): la letra se ajusta al ancho de la portada.
   12,6 es lo que mide "Refrigeración y climatización" en múltiplos del tamaño de letra (medido: 12,4). */
.hero {
  position: relative;
  isolation: isolate; /* el sello de fondo queda detrás del texto de la portada, no del fondo de la página */
  container-type: inline-size;
}

/* Desde 700 px la portada va centrada: título, párrafo, botones y foto comparten el mismo eje */
@media (min-width: 700px) {
  .hero h1 {
    font-size: min(4.5rem, calc(100cqw / 12.6));
    text-align: center;
  }

  /* El párrafo ocupa todo el ancho de la portada y la letra se ajusta para que entre en 2 renglones parejos.
     El texto mide 72,6 veces el tamaño de letra en una sola línea; 39 deja margen para los cortes de palabra. */
  .hero .lead {
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(1.0625rem, calc(100cqw / 39), 1.375rem);
    text-align: center;
    text-wrap: balance;
  }

  .hero .actions {
    justify-content: center;
  }

  .hero__logo {
    margin-right: auto;
    margin-left: auto;
  }
}

/* Foto del equipo arriba de todo, con el logo giratorio como sello en su esquina */
.hero__media {
  position: relative;
  max-width: 52rem;
  margin: 56px auto 0;
}

.hero__media .photo {
  margin: 0;
}

/* Banda que se desplaza entre la foto de portada y "Quiénes somos".
   Es decorativa (aria-hidden): las cinco palabras ya están escritas en la lista de ámbitos. */
.ticker {
  margin-top: 56px;
  padding: 18px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker + .section {
  margin-top: 56px;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 45s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  flex: none;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker__group li {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: 28px;
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Separador: la hélice del logo, girando despacio */
.ticker__group li::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background: url("../img/artiko-isotipo-oscuro.png") center / contain no-repeat;
  animation: spin 14s linear infinite;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Si la persona pidió reducir el movimiento: la banda queda quieta, una sola lista centrada */
@media (prefers-reduced-motion: reduce) {
  .ticker {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ticker__track {
    width: auto;
    justify-content: center;
  }

  .ticker__group {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }

  .ticker__group + .ticker__group {
    display: none;
  }
}

/* Sello giratorio de fondo: grande, casi transparente, al costado derecho y detrás del texto. */
.badge {
  position: absolute;
  top: 24px;
  right: -8px;
  z-index: -1;
  width: clamp(200px, 44vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden; /* al girar, las esquinas del cuadrado sobresalían y ensanchaban la página en celular */
  opacity: 0.14;
  pointer-events: none;
}

@media (min-width: 1200px) {
  .badge {
    right: -64px;
    width: 360px;
    opacity: 0.16;
  }
}

/* En celular queda detrás del párrafo: más tenue para que el texto se lea sin ruido */
@media (max-width: 699px) {
  .badge {
    opacity: 0.09;
  }
}

.badge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 30s linear infinite;
}

.badge__ring text {
  fill: var(--white);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
}

.badge__fan {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  margin: -25% 0 0 -25%;
  animation: spin 14s linear infinite reverse;
}

/* Aparición de la portada: un solo momento, al cargar */

.hero > * {
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero > :nth-child(2) { animation-delay: 0.06s; }
.hero > :nth-child(3) { animation-delay: 0.12s; }
.hero > :nth-child(4) { animation-delay: 0.18s; }
.hero > :nth-child(5) { animation-delay: 0.24s; }
.hero > :nth-child(6) { animation-delay: 0.3s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Lista con riel (ámbitos) */

.rail {
  position: relative;
  margin-top: 36px;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--green);
  list-style: none;
}

.rail li {
  position: relative;
  padding-bottom: 28px;
}

.rail li:last-child {
  padding-bottom: 0;
}

.rail li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: -36px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--bg);
}

.rail p {
  max-width: 36em;
  margin-top: 6px;
  color: var(--muted);
}

/* Lista de servicios (home) */

.svc-list {
  margin-top: 28px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.svc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.1875rem;
  text-decoration: none;
  transition: background-color 0.15s;
}

.svc-list a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.svc-list .icon {
  color: var(--mint);
}

.more {
  margin-top: 24px;
}

/* Fotos de la portada */

.photo {
  margin: 36px 0 0;
  max-width: 52rem;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--navy-2);
}

.photo--wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Qué parte de cada foto queda a la vista al recortarla (antes era un atributo style en el HTML) */
.photo--wide .pos-aislacion {
  object-position: 62% 50%;
}

.photo--wide .pos-aire {
  object-position: 30% 50%;
}

/* Panel blanco */

.panel {
  padding: clamp(24px, 5vw, 48px);
  border-radius: var(--radius-xl);
}

.panel--light {
  --focus: var(--navy);
  background: var(--white);
  color: var(--navy);
}

.panel--light .prose,
.panel--light .muted {
  color: rgba(14, 42, 59, 0.82);
}

.where {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem);
  line-height: 1.3;
}

.where .icon {
  margin-top: 0.1em;
  color: var(--green);
}

.panel .actions {
  margin-top: 28px;
}

.contact-grid h2 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

.contact-grid .panel {
  padding: clamp(22px, 3.2vw, 36px);
}

.contact-grid .actions .btn {
  flex: 1 1 auto;
}

/* ---------- Servicios ---------- */

.services {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(14, 42, 59, 0.72);
  overflow: hidden;
}

.service {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 36px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.service:first-child {
  border-top: 0;
}

.service h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.service__desc {
  margin-top: 10px;
  max-width: 38em;
  color: var(--muted);
}

.service__desc + .service__desc {
  margin-top: 14px;
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  min-height: 44px;
  color: var(--mint);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 0.15s;
}

.service__link:hover {
  color: var(--mint-hover);
}

.service__link .icon {
  width: 20px;
  height: 20px;
}

.service__link .icon--fill {
  width: 18px;
  height: 18px;
}

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.panel--form {
  border: 1px solid var(--line);
  background: rgba(14, 42, 59, 0.72);
}

.form {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  color-scheme: dark;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

/* Lista desplegable: fondo oscuro y letra blanca en cada opción (si no, en algunos navegadores queda blanco sobre blanco) */
.field select option {
  background-color: var(--navy);
  color: var(--white);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 2px;
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field__error {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--danger);
}

.field__error:empty {
  display: none;
}

.field__hint {
  font-weight: 400;
  color: var(--muted);
}

/* Casilla "Acepto compartir mis datos": toda la fila es clicable (alto mínimo 44 px) */
.consent__label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 44px;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--mint);
  color-scheme: dark;
  cursor: pointer;
}

.consent a {
  color: var(--mint);
  text-underline-offset: 3px;
}

.consent [aria-invalid="true"] {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
}

.notice {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--mint);
  border-radius: var(--radius-md);
  background: rgba(76, 201, 160, 0.14);
}

.notice--error {
  border-color: var(--danger);
  background: rgba(255, 154, 139, 0.14);
}

.info {
  display: grid;
  gap: 22px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.info > div {
  display: flex;
  gap: 14px;
}

.info__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 122, 90, 0.12);
  color: var(--green);
}

.info dt {
  font-size: 0.9375rem;
  color: rgba(14, 42, 59, 0.78);
}

.info dd {
  margin-top: 2px;
  font-size: 1.1875rem;
  font-weight: 500;
}

/* El teléfono es un enlace: área de toque de 44 px de alto, para el dedo */
.info dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: clamp(64px, 10vw, 112px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  gap: 32px;
}

.footer__brand img {
  width: 48px;
  height: 48px;
}

.footer__brand p {
  max-width: 18em;
  margin-top: 14px;
  color: var(--muted);
}

.footer h2 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.footer address {
  margin-top: 10px;
  color: var(--muted);
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  color: var(--mint);
}

.footer__nav {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
  color: var(--muted);
}

.footer__nav a:hover,
.footer__nav a[aria-current="page"] {
  color: var(--white);
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  transition: background-color 0.15s, color 0.15s;
}

.social a:hover {
  background: var(--mint);
  color: var(--navy);
}

.footer__legal {
  margin-top: 36px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Escritorio (tarjeta fija + dock vertical desde 1200px) ---------- */

@media (min-width: 820px) {
  .service {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
  }

  /* En pantallas anchas la foto se recorta más baja, para que entre entera al abrir la web */
  .photo--hero img {
    aspect-ratio: 2.2 / 1;
    object-fit: cover;
    object-position: 50% 40%;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }

  .footer__grid {
    grid-template-columns: 1.2fr 1.1fr 0.7fr 1fr;
    column-gap: 32px;
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .topbar,
  .hero__logo {
    display: none;
  }

  .shell {
    display: grid;
    grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
    gap: 28px;
    padding: 20px;
  }

  .main {
    margin: 0;
    padding: 28px calc(var(--dock-w) + 32px) 48px 8px;
  }

  .card-id {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    min-height: 560px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
      radial-gradient(120% 70% at 50% 0%, rgba(76, 201, 160, 0.18), transparent 62%),
      linear-gradient(180deg, var(--navy-2), var(--navy) 62%);
  }

  .card-id__top {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    padding: 92px 28px 8px;
  }

  /* El enlace tiene el ancho del logo, así el logo queda justo en el centro de la tarjeta */
  .card-id__logo-link {
    display: block;
    width: min(100%, 290px);
  }

  .card-id__logo {
    width: 100%;
    height: auto;
  }

  /* Espacio entre el logo y el saludo: un emblema tranquilo (anillos, órbitas y la hélice) */
  .card-id__art {
    position: relative;
    flex: 1;
    min-height: 0;
  }

  .emblem {
    position: absolute;
    top: 50%;
    left: 50%;
    height: min(100%, 300px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
  }

  .emblem svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .emblem__orbit {
    transform-box: view-box;
    transform-origin: 50% 50%;
    animation: spin 40s linear infinite;
  }

  .emblem__orbit--lenta {
    animation-duration: 70s;
    animation-direction: reverse;
  }

  .emblem__fan {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 30%;
    margin: -15% 0 0 -15%;
    animation: spin 30s linear infinite reverse;
  }

  .card-id__status {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 16px 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(9, 27, 39, 0.6);
    font-size: 0.9375rem;
  }

  .card-id__status::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(76, 201, 160, 0.25);
  }

  .card-id__ig {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: background-color 0.15s, color 0.15s;
  }

  .card-id__ig:hover {
    background: var(--mint);
    color: var(--navy);
  }

  /* Todo el texto de la tarjeta va centrado, igual que el logo y el emblema */
  .card-id__body {
    padding: 0 28px 28px;
    text-align: center;
  }

  .card-id__hello {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .card-id__typed {
    min-height: 1.6em;
    margin-top: 6px;
    color: var(--mint);
    font-size: 1.125rem;
  }

  .card-id__text {
    margin-top: 10px;
    color: var(--muted);
  }

  .card-id__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .dock {
    top: 50%;
    right: 20px;
    bottom: auto;
    left: auto;
    flex-direction: column;
    width: var(--dock-w);
    padding: 10px;
    gap: 6px;
    transform: translateY(-50%);
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .dock__link {
    flex: none;
    width: 52px;
    min-width: 0;
    height: 52px;
    min-height: 0;
    border-radius: 50%;
  }

  .dock__link:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .dock__link--wa:hover {
    background: var(--mint-hover);
  }

  .dock__label {
    position: absolute;
    top: 50%;
    right: calc(100% + 14px);
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.9375rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 0.15s;
  }

  .dock__link:hover .dock__label,
  .dock__link:focus-visible .dock__label {
    opacity: 1;
  }
}

@media (min-width: 1200px) and (max-height: 700px) {
  .card-id__text {
    display: none;
  }

  /* En pantallas bajas no hay lugar para el emblema: el logo vuelve a centrarse en el espacio libre */
  .card-id__art {
    display: none;
  }

  .card-id__top {
    flex: 1;
    padding: 64px 28px 16px;
  }
}

.caret::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--mint);
  animation: blink 1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
