/* Alpyme Lab · hoja de estilos del sitio */

/* ---------- Tipografía propia (Poppins, licencia OFL) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/poppins-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }

/* ---------- Variables ---------- */
:root {
  --ink: #12161c;
  --graphite: #242a32;
  --blue: #04b6fb;
  --blue-soft: #8fe3ff;
  --amber: #fcc220;
  --white: #f8f9f8;
  --muted: #b7c0cb;
  --note: #8995a3;
  --surface: rgba(248, 249, 248, 0.06);
  --surface-strong: rgba(248, 249, 248, 0.1);
  --radius-card: 24px;
  --radius-pill: 999px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --maxw: 1120px;
  --header-h: 72px;
}

/* ---------- Base y reinicio de estilos del navegador ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    radial-gradient(760px 520px at 82% 0%, rgba(4, 182, 251, 0.22), transparent 62%),
    radial-gradient(520px 360px at 0% 100%, rgba(252, 194, 32, 0.08), transparent 65%),
    linear-gradient(160deg, var(--graphite), var(--ink) 60%);
  background-attachment: fixed;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

/* Ningún enlace usa el azul/subrayado del navegador */
a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }

/* Enlaces dentro de texto corrido */
.link { color: var(--blue-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--white); }

[hidden] { display: none !important; }

.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; }
.subhead { margin: 34px 0 12px; font-size: 17px; font-weight: 700; }
.subhead-lg { margin: 40px 0 16px; }
.page-top h1 { max-width: 16em; }
.about-summary .btn { margin-top: 6px; }
.page-top h2.subhead-lg { margin-top: 56px; }
.valores-nota { margin: -2px 0 16px; color: var(--amber); }
.steps-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.contact-grid.contact-big { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.contact-grid.contact-big .contact-card { padding: 22px 26px; min-height: 92px; }
.contact-grid.contact-big .contact-card .val { overflow-wrap: break-word; }
.contact-big .contact-card .name { font-size: 16px; }
.contact-big .contact-card .val { font-size: 14.5px; }
.contact-big + .contact-note { margin-top: 18px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 52px); }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 30;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--amber); color: #1b1f25; font-weight: 700;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 10px; }

/* ---------- Cabecera y navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 22, 28, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-header .wrap { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: 0.2px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 18px rgba(4, 182, 251, 0.9); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 16px; border-radius: var(--radius-pill); font-weight: 500; font-size: 14.5px; color: var(--muted); transition: background 0.15s ease, color 0.15s ease; }
.nav a:hover { background: var(--surface-strong); color: var(--white); }
.nav a[aria-current="page"], .nav a.is-active { background: var(--blue); color: #06212d; font-weight: 600; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--surface-strong); cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--white); content: ""; position: relative;
}
.nav-toggle .bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle .bars::after { position: absolute; top: 6px; left: 0; }

/* ---------- Botones, insignias, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border: 0; border-radius: var(--radius-pill);
  max-width: 100%; text-align: center; overflow-wrap: anywhere;
  font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #06212d; box-shadow: 0 8px 26px rgba(4, 182, 251, 0.35); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(4, 182, 251, 0.5); }
.btn-ghost { background: rgba(248, 249, 248, 0.08); color: var(--white); }
.btn-ghost:hover { background: rgba(248, 249, 248, 0.16); }

.badge { display: inline-block; margin: 0 0 16px; padding: 7px 16px; border-radius: var(--radius-pill); background: var(--amber); color: #1b1f25; font-weight: 800; font-size: 12px; letter-spacing: 1.2px; }
.eyebrow { display: inline-block; margin: 0 0 10px; color: var(--blue); font-weight: 700; font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.chip { padding: 9px 18px; border-radius: var(--radius-pill); background: rgba(4, 182, 251, 0.13); font-weight: 600; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 72px) 0 clamp(40px, 7vw, 88px); }
.hero .wrap { display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 4vw, 48px); }
.hero-copy { flex: 1 1 54%; min-width: 0; }
h1 { margin: 0 0 16px; max-width: 13em; font-weight: 800; font-size: clamp(32px, 5vw, 54px); line-height: 1.08; text-wrap: balance; }
h1 span { color: var(--blue); }
.lead { margin: 0 0 22px; max-width: 34em; font-size: clamp(15px, 1.6vw, 17.5px); color: var(--muted); }

.hero-stage { position: relative; flex: 0 0 auto; width: clamp(160px, 27vw, 300px); padding-bottom: 40px; }
.hero-stage img {
  position: relative; z-index: 1; width: 100%; height: auto;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(4, 182, 251, 0.35));
  animation: float 5s ease-in-out infinite;
}
.hero-stage .glow { position: absolute; left: 8%; right: 8%; bottom: 18px; height: 28px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(4, 182, 251, 0.55), rgba(4, 182, 251, 0) 70%); filter: blur(6px); }
.hero-stage:has(img[hidden]) { display: none; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.6deg); } 50% { transform: translateY(-14px) rotate(1.6deg); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(36px, 6vw, 76px) 0; }
h2 { margin: 0 0 10px; font-weight: 800; font-size: clamp(25px, 3.4vw, 38px); line-height: 1.15; text-wrap: balance; }
h2 span { color: var(--blue); }
.section-lead { margin: 0 0 30px; max-width: 40em; color: var(--muted); }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { padding: 24px; border-radius: var(--radius-card); background: var(--surface); }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.card p { font-size: 14.5px; color: var(--muted); }

.steps { counter-reset: paso; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.steps li { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius-card); background: var(--surface); }
.steps li::before { counter-increment: paso; content: counter(paso); flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue); color: #06212d; font-weight: 800; font-size: 14px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 14.5px; }

.giros { display: flex; flex-wrap: wrap; gap: 10px; }
.giros li { padding: 10px 20px; border-radius: var(--radius-pill); background: var(--surface-strong); font-weight: 600; font-size: 14.5px; }

/* ---------- Quiénes somos ---------- */
.about { display: grid; gap: 14px; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.about-summary { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-card); background: var(--surface); }
.about-summary p { color: var(--muted); }
.about-summary p + p { margin-top: 14px; }
.about-summary strong { color: var(--white); font-weight: 600; }
.about-pair { display: grid; gap: 14px; }
.about-pair .card { display: flex; flex-direction: column; justify-content: center; }
.tag { align-self: flex-start; margin: 0 0 10px; padding: 5px 14px; border-radius: var(--radius-pill); font-weight: 800; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; }
.tag-blue { background: rgba(4, 182, 251, 0.16); color: var(--blue-soft); }
.tag-amber { background: var(--amber); color: #1b1f25; }
.values { margin-top: 14px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.values .card h3 { color: var(--white); }
.values .card h3::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px rgba(4, 182, 251, 0.8); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius-card); background: var(--surface); transition: background 0.15s ease, transform 0.15s ease; }
a.contact-card:hover { background: var(--surface-strong); transform: translateY(-2px); }
.contact-card .ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(4, 182, 251, 0.14); color: var(--blue); }
.contact-card .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-card .txt { min-width: 0; }
.contact-card .name { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.contact-card .val { display: block; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.contact-card.is-pending { opacity: 0.85; }
.contact-card.is-pending .val { color: var(--amber); }
.contact-note { margin-top: 14px; font-size: 13px; color: var(--note); }

.cta-band { margin-top: 28px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-card); background: rgba(4, 182, 251, 0.12); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); }
.cta-band p { color: var(--muted); }

/* ---------- Pie ---------- */
.site-footer { padding: 32px 0 48px; color: var(--note); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--white); }

/* ---------- Aviso de privacidad ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 48px) 24px; }
.legal h1 { margin: 0 0 6px; max-width: none; font-size: clamp(26px, 4.6vw, 40px); }
.legal .sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.legal-card { display: flex; gap: 16px; margin: 0 0 12px; padding: 18px 22px; border-radius: var(--radius-card); background: var(--surface); }
.legal-card .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue); color: #06212d; font-weight: 800; font-size: 14px; }
.legal-card h2 { margin: 4px 0 6px; font-size: 16px; font-weight: 700; }
.legal-card > div:last-child { min-width: 0; }
.legal-card p { overflow-wrap: anywhere; margin: 0 0 8px; font-size: 14.5px; line-height: 1.65; color: #c3cbd5; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card strong { color: var(--white); font-weight: 600; }
.legal-meta { margin: 18px 4px 0; padding: 14px 20px; border-radius: 20px; background: rgba(252, 194, 32, 0.12); font-size: 13.5px; }
.legal-meta b { color: var(--amber); }

/* ---------- Página no encontrada ---------- */
.notfound { min-height: calc(100vh - var(--header-h) - 120px); display: flex; align-items: center; }
.notfound .wrap { width: 100%; text-align: center; }
.notfound h1 { margin-left: auto; margin-right: auto; }
.notfound .section-lead { margin-left: auto; margin-right: auto; }
.notfound .actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  /* Con JS el menú se pliega; sin JS los enlaces se ven en una fila que baja de línea */
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute; left: 12px; right: 12px; top: calc(var(--header-h) - 4px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border-radius: var(--radius-card); background: rgba(36, 42, 50, 0.97); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .js .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .js .nav a { padding: 13px 16px; font-size: 15.5px; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  html:not(.js) .nav { flex-wrap: wrap; }

  .hero .wrap { flex-direction: column; align-items: stretch; }
  .hero-copy { flex: 0 0 auto; width: 100%; }
  .hero-stage { align-self: center; width: clamp(130px, 40vw, 170px); }
  .actions .btn { flex: 1 1 100%; }
  .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav a, .contact-card, .js .nav { transition: none; }
  .hero-stage img { animation: none; }
}
