/* PONDEXA · Página en construcción
   Paleta y tipografía según Documento maestro de marca v1.1 */

:root {
  --azul-profundo: #003472;
  --azul-corporativo: #2A5187;
  --azul-digital: #328FD2;
  --turquesa: #00A9A0;
  --verde-menta: #47E6BD;
  --carbon: #17212B;
  --blanco: #FFFFFF;

  --fuente-texto: 'Inter', system-ui, -apple-system, sans-serif;
  --fuente-cifras: 'Space Mono', 'SFMono-Regular', Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 0%, var(--azul-profundo) 0%, var(--carbon) 62%),
    repeating-linear-gradient(
      0deg,
      rgba(50, 143, 210, 0.05) 0px,
      rgba(50, 143, 210, 0.05) 1px,
      transparent 1px,
      transparent 48px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(50, 143, 210, 0.05) 0px,
      rgba(50, 143, 210, 0.05) 1px,
      transparent 1px,
      transparent 48px
    );
  color: var(--blanco);
  font-family: var(--fuente-texto);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

/* Encabezado */

.encabezado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
}

.marca__icono {
  display: block;
  border-radius: 8px;
}

.marca__texto {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.encabezado__estado {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #B9C6D6;
}

.punto-vivo {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verde-menta);
  box-shadow: 0 0 0 0 rgba(71, 230, 189, 0.6);
  animation: pulso 2.2s infinite;
  flex-shrink: 0;
}

@keyframes pulso {
  0% { box-shadow: 0 0 0 0 rgba(71, 230, 189, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(71, 230, 189, 0); }
  100% { box-shadow: 0 0 0 0 rgba(71, 230, 189, 0); }
}

/* Contenido principal */

.principal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 8vh, 72px) 20px clamp(24px, 6vh, 56px);
  gap: 36px;
}

/* Lector de pesaje: motivo visual central */

.lector {
  width: 100%;
  display: flex;
  justify-content: center;
}

.lector__panel {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, #0B2A5C 0%, #071c40 100%);
  border: 1px solid rgba(50, 143, 210, 0.35);
  border-radius: 16px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow:
    inset 0 0 26px rgba(0, 0, 0, 0.35),
    0 18px 40px -18px rgba(0, 52, 114, 0.7);
}

.lector__etiqueta {
  font-size: 0.72rem;
  color: #7FA3CC;
  margin-bottom: 10px;
}

.lector__cifra {
  font-family: var(--fuente-cifras);
  font-size: clamp(2.2rem, 9vw, 3.1rem);
  font-weight: 700;
  color: var(--verde-menta);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(71, 230, 189, 0.45);
}

.lector__unidad {
  margin-top: 6px;
  font-family: var(--fuente-cifras);
  font-size: 0.85rem;
  color: #7FA3CC;
}

@media (prefers-reduced-motion: reduce) {
  .punto-vivo {
    animation: none;
  }
}

/* Hero */

.hero {
  text-align: center;
  max-width: 560px;
}

.hero__eslogan {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1.22;
  font-weight: 700;
  margin: 0 0 18px;
}

.hero__descriptor {
  font-size: 1rem;
  color: #C6D3E2;
  margin: 0 0 14px;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__aviso {
  font-size: 0.9rem;
  color: var(--turquesa);
  font-weight: 600;
  margin: 0;
}

/* Contacto */

.contacto {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.contacto__titulo {
  font-size: 1rem;
  font-weight: 600;
  color: #DCE6F0;
  margin: 0 0 16px;
}

.contacto__botones {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.boton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.boton__icono {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.boton:focus-visible {
  outline: 2px solid var(--verde-menta);
  outline-offset: 3px;
}

.boton--primario {
  background: var(--turquesa);
  color: var(--carbon);
}

.boton--secundario {
  background: transparent;
  color: var(--blanco);
  border: 1px solid var(--azul-digital);
}

.boton:hover {
  filter: brightness(1.1);
}

@media (hover: hover) {
  .boton:hover {
    transform: translateY(-1px);
  }
}

/* Pie */

.pie {
  margin-top: auto;
  text-align: center;
  padding: 24px 20px 28px;
  color: #6E86A3;
  font-size: 0.78rem;
}

.pie__firma {
  margin: 0 0 4px;
}

.pie__dominios {
  margin: 0;
}

/* Escritorio: layout más ancho, lector y texto en dos columnas */

@media (min-width: 780px) {
  .principal {
    display: grid;
    grid-template-columns: 340px 1fr;
    align-items: center;
    gap: 64px;
    padding: 64px 40px;
    max-width: 1080px;
    margin: 0 auto;
  }

  .texto {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .hero,
  .contacto {
    text-align: left;
    max-width: 460px;
  }

  .hero__descriptor,
  .hero__aviso {
    margin-left: 0;
    margin-right: 0;
  }

  .contacto__titulo {
    text-align: left;
  }

  .contacto__botones {
    flex-direction: row;
  }

  .boton {
    flex: 1;
  }
}
