/* Frozentech — landing demo (tema oscuro)
   Sistema visual según skill landing-page-design (B1–B11).
   Fondos planos de la lista permitida; cian y naranja de la marca como acento. */

:root {
  /* superficies (B4, tema oscuro) */
  --bg: #000000;
  --surface-1: #181818;
  --surface-2: #1f1f1f;
  --surface-3: #272727;
  --linea: #272727;

  /* texto */
  --texto: #ffffff;
  --texto-2: #9b9b9b;

  /* acentos de marca */
  --cian: #00ccff;
  --naranja: #ff8100;

  /* tipografía (B1) */
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* espaciado (B2) */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px;
  --s-200: 16px; --s-300: 24px; --s-400: 32px; --s-500: 40px;
  --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  /* radios (B3) */
  --r-sm: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 24px; --r-full: 9999px;

  /* movimiento (B7) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --d: 500ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--texto);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--cian); }

/* ---------- estilos de texto nombrados (B1) ---------- */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--texto); text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- layout ---------- */
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding-block: var(--s-900); }
.section--alt { background: var(--surface-1); }
.section p { color: var(--texto-2); }

.eyebrow {
  display: inline-block;
  margin-block-end: var(--s-200);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cian);
}

.skip {
  position: fixed;
  top: -100%;
  left: var(--s-200);
  z-index: 100;
  padding: var(--s-100) var(--s-200);
  border-radius: var(--r-sm);
  background: var(--cian);
  color: #000000;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--d) var(--ease);
}
.skip:focus { top: var(--s-200); }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--cian);
  outline-offset: 2px;
}

/* ---------- navegación flotante (B7) ---------- */
.nav-wrap {
  position: fixed;
  inset: var(--s-200) 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-300);
  max-width: min(1160px, 100% - 32px);
  padding: var(--s-75) var(--s-200) var(--s-75) var(--s-300);
  border: 1px solid var(--linea);
  border-radius: var(--r-full);
  background: rgba(24, 24, 24, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav__brand img { width: 132px; height: auto; }
.nav__links { display: flex; align-items: center; gap: var(--s-300); }
.nav__links a {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--texto-2);
  text-decoration: none;
  transition: color var(--d) var(--ease);
}
.nav__links a:hover { color: var(--texto); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: #ffffff;
  color: #000000;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--d) var(--ease), opacity var(--d) var(--ease);
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; border-color: var(--surface-3); color: var(--texto); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { padding: var(--s-50) var(--s-100); font-size: 14px; line-height: 20px; }

.link-arrow {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--texto);
  text-decoration: none;
  transition: transform var(--d) var(--ease);
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { transform: translateX(4px); }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--surface-3);
  border-radius: var(--r-full);
  background: var(--surface-2);
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--texto);
  transition: transform var(--d) var(--ease), opacity var(--d) var(--ease);
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-content: center;
  gap: var(--s-300);
  padding: var(--s-400);
  background: rgba(24, 24, 24, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d) var(--ease), visibility var(--d) var(--ease);
}
.menu[data-open="true"] { opacity: 1; visibility: visible; }
.menu a {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--texto);
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--d) var(--ease), transform var(--d) var(--ease);
}
.menu[data-open="true"] a { opacity: 1; transform: translateY(0); }

/* ---------- hero ---------- */
.hero { padding-block: 96px var(--s-700); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-600);
  align-items: center;
}
.hero__title {
  max-width: 680px;
  font-size: 60px;
  line-height: 60px;
  font-weight: 600;
  background-image: linear-gradient(90deg, #ffffff 0%, #9b9b9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 680px;
  margin-block-start: var(--s-300);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: #b3b3b3;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--s-300);
  flex-wrap: wrap;
  margin-block-start: var(--s-400);
}
.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--linea);
  border-radius: var(--r-2xl);
}
.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  margin-block-start: var(--s-300);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--texto-2);
}
.hero__proof::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--cian);
}

/* ---------- marcas ---------- */
.brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-200);
  margin-block-start: var(--s-500);
}
.brands div {
  display: grid;
  place-items: center;
  height: 96px;
  padding: var(--s-200);
  border-radius: var(--r-lg);
  background: #ffffff;
}
.brands img { max-height: 48px; width: auto; object-fit: contain; }

/* ---------- servicios ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-300);
  margin-block-start: var(--s-500);
}
.card {
  display: grid;
  gap: var(--s-200);
  padding: var(--s-300);
  border: 1px solid var(--linea);
  border-radius: var(--r-xl);
  background: var(--surface-2);
}
.card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.card__body { display: grid; gap: var(--s-100); }
.card__body p { font-size: 14px; line-height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-75); margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: var(--s-50) var(--s-100);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-full);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--texto-2);
}

/* ---------- tagline reveal (B11) ---------- */
.tagline { padding-block: var(--s-800); }
.tagline__text {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  font-size: 48px;
  line-height: 48px;
  font-weight: 600;
  color: var(--texto);
}
.tagline__text .w { opacity: 0.3; transition: opacity 600ms var(--ease); }
.tagline__text .w[data-on="true"] { opacity: 1; }

/* ---------- proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-300);
  margin-block-start: var(--s-500);
  padding: 0;
  list-style: none;
}
.steps li {
  padding: var(--s-300);
  border: 1px solid var(--linea);
  border-radius: var(--r-xl);
  background: var(--surface-2);
}
.steps__n {
  display: block;
  margin-block-end: var(--s-200);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cian);
}
.steps p { margin-block-start: var(--s-100); font-size: 14px; line-height: 20px; }

/* ---------- sectores ---------- */
.sectors {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s-600);
  align-items: center;
  margin-block-start: var(--s-500);
}
.sectors__figure { margin: 0; }
.sectors__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-xl);
}
.sector-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-100); margin: 0; padding: 0; list-style: none; }
.sector-list li {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--texto);
}
.sector-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--naranja);
}

/* ---------- clientes ---------- */
.clients { margin-block-start: var(--s-700); }
.clients__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-100);
  margin-block-start: var(--s-300);
}
.clients__grid div {
  display: grid;
  place-items: center;
  height: 80px;
  padding: var(--s-100);
  border-radius: var(--r-sm);
  background: #ffffff;
}
.clients__grid img { width: 100%; height: 40px; object-fit: contain; }

/* ---------- cobertura ---------- */
.places {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-300);
  margin-block-start: var(--s-500);
}
.place {
  display: grid;
  gap: var(--s-100);
  padding: var(--s-400);
  border: 1px solid var(--linea);
  border-radius: var(--r-xl);
  background: var(--surface-2);
}
.place__state { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cian); }
.place h3 { margin: 0; }
.place address { font-style: normal; color: var(--texto-2); font-size: 14px; line-height: 20px; }
.place a { font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; }
.place a:hover { text-decoration: underline; }

/* ---------- garantía / pagos ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-300);
  margin-block-start: var(--s-500);
}
.tile {
  padding: var(--s-400);
  border: 1px solid var(--linea);
  border-radius: var(--r-xl);
  background: var(--surface-2);
}
.tile h3 { margin-block-end: var(--s-100); }
.tile p { font-size: 14px; line-height: 20px; }
.tile__quote { margin-block-start: var(--s-300); border-radius: var(--r-lg); background: var(--surface-3); padding: var(--s-300); font-size: 14px; line-height: 20px; color: var(--texto-2); }

/* ---------- empresa ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-600); align-items: start; margin-block-start: var(--s-500); }
.about p { margin-block-end: var(--s-200); }
.about dl { display: grid; gap: var(--s-300); margin: 0; }
.about dt { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cian); margin-block-end: var(--s-50); }
.about dd { margin: 0; color: var(--texto-2); font-size: 14px; line-height: 20px; }
.cv {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  margin-block-start: var(--s-300);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--texto);
  text-decoration: none;
  transition: transform var(--d) var(--ease);
}
.cv::after { content: " ↓"; color: var(--cian); }
.cv:hover { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-200); margin-block-start: var(--s-500); }
.faq details {
  padding: var(--s-300) var(--s-400);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.faq summary {
  cursor: pointer;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--texto);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--cian); transition: transform var(--d) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-block-start: var(--s-200); font-size: 14px; line-height: 20px; }

/* ---------- contacto ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-600); align-items: start; }
.contact__intro { margin-block-start: var(--s-200); font-size: 18px; line-height: 28px; }
.form { display: grid; gap: var(--s-200); margin-block-start: var(--s-400); max-width: 520px; }
.field { display: grid; gap: var(--s-75); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--texto); }
.field input, .field textarea {
  font: inherit;
  padding: var(--s-100) var(--s-200);
  border: 1px solid #555555;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--texto);
  transition: border-color var(--d) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #666666; }
.field textarea { resize: vertical; }
.field__error { min-height: 16px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--naranja); }
.form__ok {
  padding: var(--s-200);
  border: 1px solid var(--surface-3);
  border-radius: var(--r-sm);
  background: var(--surface-3);
  font-size: 14px;
  line-height: 20px;
  color: var(--texto);
}
.form__note { font-size: 12px; line-height: 16px; color: var(--texto-2); }

.aside { display: grid; gap: var(--s-300); }
.aside dl { display: grid; gap: var(--s-300); margin: 0; }
.aside dt { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--texto); margin-block-end: var(--s-50); }
.aside dd { margin: 0; color: var(--texto-2); font-size: 14px; line-height: 20px; }
.aside a { color: var(--cian); text-decoration: none; }
.aside a:hover { text-decoration: underline; }

/* ---------- pie ---------- */
.footer { padding-block: var(--s-600); background: var(--surface-1); }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-300); }
.footer img { width: 120px; height: auto; }
.footer p, .footer a { color: var(--texto-2); font-size: 14px; line-height: 20px; }
.footer__legal { display: flex; gap: var(--s-300); flex-wrap: wrap; }
.footer a { text-decoration: none; transition: color var(--d) var(--ease); }
.footer a:hover { color: var(--texto); }

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed;
  right: var(--s-300);
  bottom: var(--s-300);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  background: #ffffff;
  color: #000000;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.9);
  transition: transform var(--d) var(--ease);
}
.wa:hover { transform: scale(1.06); }
.wa:active { transform: scale(0.98); }
.wa svg { width: 28px; height: 28px; }

/* ---------- revelado al hacer scroll (B7) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-reveal][data-visible="true"] { opacity: 1; transform: translateY(0); }

/* ---------- 404 y páginas legales ---------- */
.page-simple { min-height: 100vh; display: grid; place-items: center; padding-block: var(--s-900); }
.page-simple .container { display: grid; gap: var(--s-300); justify-items: start; max-width: 680px; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav { padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200); gap: var(--s-200); }
  .hero__title { font-size: 36px; line-height: 40px; }
  .hero__grid, .sectors, .about, .contact { grid-template-columns: 1fr; gap: var(--s-400); }
  .cards, .steps, .places, .grid-4 { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .clients__grid { grid-template-columns: repeat(3, 1fr); }
  .heading-2 { font-size: 36px; line-height: 40px; }
  .tagline__text { font-size: 36px; line-height: 40px; }
  .section { padding-block: var(--s-700); }
}

@media (max-width: 560px) {
  .nav .btn { display: none; }
  .eyebrow { letter-spacing: 0.08em; }
  .hero__title { font-size: 30px; line-height: 36px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .tagline__text { font-size: 30px; line-height: 36px; }
  .nav__brand img { width: 108px; }
  .sector-list { grid-template-columns: 1fr; }
  .hero__proof { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .tagline__text .w { opacity: 1; }
}
