/* =========================================================
   Cyslab — estilos
   Tokens según el Brand Book v1.0 (brand/CYSLAB-Brand-Book.pdf).
   Ver .claude/skills/brand-guidelines/SKILL.md
   ========================================================= */

/* Poppins (subconjunto latino: incluye á é í ó ú ñ ¿ ¡ ª). Archivos en assets/fonts. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/poppins-600.woff2") format("woff2"); }

:root {
  /* Primarios (bloque del logo) */
  --magenta: #891C75;
  --magenta-dark: #6E165E;
  --green: #ADBD41;
  --green-dark: #9AAA33;
  --blue: #367CB7;
  /* Neutros */
  --ink: #1D140F;
  --muted: #6E6873;
  --bone: #F7F6F4;
  --line: #E6E3E0;
  --bg: #FFFFFF;
  --wa: #25D366;

  /* Una sola familia tipográfica. Respaldo: Montserrat, luego Arial. Nunca serif. */
  --font: "Poppins", "Montserrat", Arial, sans-serif;

  --radius: 16px;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.muted { color: var(--muted); }

/* ---------- Tipografía ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 18px;
}

.headline {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  margin: 0 0 20px;
}
.headline .accent { display: block; }
.headline-md { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.accent { color: var(--magenta); }

.lead { font-size: 1.1rem; font-weight: 300; color: var(--muted); max-width: 40ch; margin: 0 0 28px; }

/* Franja tricolor: la firma alternativa de la marca */
.rule {
  display: block;
  width: 96px;
  height: 4px;
  margin-bottom: 22px;
  background: linear-gradient(90deg,
    var(--magenta) 0 33.33%, var(--green) 33.33% 66.66%, var(--blue) 66.66% 100%);
}

/* ---------- Botones ----------
   Texto sobre color: blanco sobre magenta/azul, tinta sobre verde (brand book). */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-magenta { background: var(--magenta); color: #fff; }
.btn-magenta:hover { background: var(--magenta-dark); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--magenta); color: var(--magenta); }
.btn-sm { padding: 8px 18px; font-size: .88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand-name { font-weight: 500; font-size: .92rem; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 400;
  color: var(--muted);
}
.nav a:not(.btn):hover { color: var(--magenta); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 400px) {
  .brand-name { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 48px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Área de resguardo del logo: lo deja sobre blanco, sin nada alrededor. */
.hero-logo { padding: 24px; }
.hero-logo img { width: 100%; max-width: 460px; height: auto; margin: 0 auto; }

@media (max-width: 820px) {
  .hero { padding: 32px 0 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-logo { order: -1; padding: 8px 0; }
  .hero-logo img { max-width: 280px; }
}

/* Indicador abierto/cerrado */
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  margin: 22px 0 0;
  color: var(--muted);
}
.open-status:empty { display: none; }
.open-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--muted);
}
.open-status.is-open::before { background: var(--green); box-shadow: 0 0 0 4px rgba(173, 189, 65, .25); }
.open-status.is-closed::before { background: #CFCAC6; }

/* ---------- Highlights ---------- */
.highlights {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}
.highlights::-webkit-scrollbar { display: none; }
.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: .85rem;
  flex-shrink: 0;
}
.hl-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--line);
  transition: transform .15s ease;
}
.highlight:hover .hl-circle { transform: scale(1.05); }
.hl-circle svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hl-circle.small { width: 52px; height: 52px; box-shadow: none; flex-shrink: 0; }
.hl-circle.small svg { width: 26px; height: 26px; }
.hl-blue { background: var(--blue); }
.hl-magenta { background: var(--magenta); }
.hl-green { background: var(--green); }
.hl-green svg { stroke: var(--ink); }

@media (max-width: 560px) {
  .highlights { justify-content: flex-start; gap: 20px; }
  .hl-circle { width: 64px; height: 64px; }
  .hl-circle svg { width: 30px; height: 30px; }
}

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--bone); }
.section-head { margin-bottom: 44px; max-width: 720px; }
.section-sub { color: var(--muted); font-weight: 300; max-width: 56ch; margin: 0; }

@media (max-width: 560px) {
  .section { padding: 60px 0; }
}

/* Cómo funciona */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
}
.step h3, .tip h3 { font-size: 1.12rem; font-weight: 600; margin: 8px 0 6px; line-height: 1.35; }
.step p, .tip p { margin: 0; color: var(--muted); font-weight: 300; }
.step-num, .tip-num { font-weight: 600; color: var(--magenta); letter-spacing: .1em; font-size: .85rem; }
.closing { text-align: center; font-weight: 600; font-size: 1.15rem; margin: 40px 0 0; }

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.service {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  transition: border-color .15s ease;
}
.service:hover { border-color: var(--magenta); }
.service h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; }
.service p { margin: 0; color: var(--muted); font-weight: 300; font-size: .93rem; }

.callout {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: var(--bone);
}
.callout p { margin: 0; max-width: 60ch; font-size: 1.02rem; font-weight: 500; }

/* Preparación */
.tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

/* Horario + Ubicación */
.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 64px; }
}
.hours { margin: 0; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--muted); }

.address { font-style: normal; font-size: 1.05rem; margin: 0 0 8px; }
.nearby { color: var(--muted); font-weight: 300; margin: 0 0 18px; }

/* Preguntas frecuentes */
.narrow { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--magenta);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.faq details p { margin: 0 0 20px; color: var(--muted); font-weight: 300; max-width: 65ch; }
.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 20px;
  aspect-ratio: 16 / 10;
}
.map { position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -36px 0 0 -15px; /* rotado, la punta queda ~21px bajo el centro de la caja: así cae en el centro del mapa */
  background: var(--magenta);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  pointer-events: none;
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s ease;
}
.contact-card:hover { border-color: var(--magenta); }
.contact-card strong { display: block; font-weight: 600; }
.contact-card .muted { font-size: .93rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 48px; }
.footer-inner { text-align: center; padding-bottom: 88px; }
.footer-inner p { margin: 4px 0; font-size: .9rem; }
/* 200px: por encima del mínimo digital de 180px del brand book */
.footer-logo { width: 200px; height: auto; margin: 0 auto 20px; }
.tricolor { display: flex; height: 8px; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--magenta); }
.tricolor span:nth-child(2) { background: var(--green); }
.tricolor span:nth-child(3) { background: var(--blue); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  z-index: 60;
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
