@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-024F;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-ext-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-024F;
}

:root {
  --ink: #13285c;
  --ink-soft: #4a5a7e;
  --blue: #1e7fd8;
  --deep: #1b4797;
  --teal: #45c4b6;
  --teal-text: #1f8f84;
  --paper: #ffffff;
  --mist: #eef5f8;
  color-scheme: light;
}

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

html { height: 100%; }

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--blue); }
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Formas de esquina, iguales al membrete */
.corner {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.corner--tr { top: 0; right: 0; width: min(34vw, 300px); }
.corner--bl { bottom: 0; left: 0; width: min(26vw, 220px); }
.corner--ring { top: 0; left: 0; width: min(14vw, 110px); }
.dots {
  position: absolute;
  top: clamp(18px, 3vw, 32px);
  left: clamp(90px, 16vw, 190px);
  width: 260px;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(96px, 14vh, 160px) clamp(24px, 8vw, 120px) calc(min(26vw, 220px) + 24px);
  max-width: 1100px;
}

/* Logotipo contorneado */
.wordmark {
  margin: 0;
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(3.25rem, 13vw, 8.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--blue);
  white-space: nowrap;
}
/* Trazo doble con relleno blanco encima: deja solo el contorno exterior,
   sin las líneas internas donde se cruzan los trazos de la M y la N */
@supports (paint-order: stroke fill) and (-webkit-text-stroke: 1px black) {
  .wordmark {
    color: var(--paper);
    -webkit-text-stroke: clamp(2.4px, 0.44vw, 4.8px) var(--blue);
    paint-order: stroke fill;
  }
}
.wordmark .eye {
  position: relative;
  display: inline-block;
}
.wordmark .eye-o {
  display: inline-block;
  transform-origin: 50% 62%;
  animation: blink 2.6s ease-in-out 0.9s 1 both;
}
.wordmark .lid {
  position: absolute;
  left: 22%;
  right: 22%;
  top: -0.085em;
  height: 0.075em;
  border: clamp(1.2px, 0.22vw, 2.4px) solid var(--blue);
  border-radius: 1px;
}

@keyframes blink {
  0%, 30%, 42%, 100% { transform: scaleY(1); }
  36% { transform: scaleY(0.08); }
}

.tagline {
  margin: 0.9rem 0 0 0.35rem;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-text);
}

.lead {
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  max-width: 34ch;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  color: var(--ink);
}

.status {
  margin: 1rem 0 0;
  max-width: 52ch;
  color: var(--ink-soft);
}

.product {
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  padding: 1.25rem 1.5rem;
  max-width: 34rem;
  background: var(--mist);
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
}
.product h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.product p { margin: 0.35rem 0 0; color: var(--ink-soft); }
.product a { font-weight: 600; }

.contact {
  margin-top: auto;
  padding-top: 3.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.contact p { margin: 0.2rem 0; }

/* Página de error */
.notfound .lead { max-width: 28ch; }

@media (max-width: 640px) {
  .corner--tr { width: 42vw; }
  .corner--bl { width: 36vw; }
  .dots { display: none; }
  .page { padding-top: 120px; padding-bottom: calc(36vw + 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark .eye-o { animation: none; }
}
