/* =========================================================
   MERAE · Hoja de estilos
   Paleta tomada del logo: carbón oscuro + cian neón
   ========================================================= */

:root {
  --ink:        #14191c;   /* fondo oscuro (hero) */
  --ink-2:      #1c2326;   /* carbón del logo */
  --cyan:       #17e0f2;   /* cian neón principal */
  --cyan-deep:  #0cc5d8;   /* cian para hover / detalles */
  --cyan-glow:  #6ff2ff;   /* brillo */
  --band:       #1edff0;   /* bandas de color */
  --paper:      #ffffff;
  --head:       #454c50;   /* titulares grandes sobre blanco */
  --text:       #6b7378;   /* párrafos */
  --line:       #e3e7e9;
  --input:      #d2f7fb;   /* relleno de campos */

  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --slant: clamp(28px, 5vw, 90px);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */
.display {
  margin: 0 0 56px;
  font-size: clamp(44px, 8.5vw, 108px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--head);
}
.lead { max-width: 640px; margin: -28px 0 48px; font-size: 18px; }
.lead.strong { font-weight: 600; color: var(--head); font-size: 20px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 16px 34px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--cyan); color: var(--ink-2); box-shadow: 0 0 0 0 rgba(23,224,242,.5); }
.btn-solid:hover { background: var(--cyan-glow); box-shadow: 0 10px 30px rgba(23,224,242,.35); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-outline { color: var(--head); border-color: var(--head); background: transparent; }
.btn-outline:hover { background: var(--head); color: #fff; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 22px 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(20,25,28,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 30px rgba(0,0,0,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand-badge {
  display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23,224,242,.65), 0 0 28px rgba(23,224,242,.45);
  transition: width .3s ease, height .3s ease;
}
.brand-badge img { width: 78%; height: 78%; object-fit: contain; }
.site-header.is-scrolled .brand-badge { width: 56px; height: 56px; }
.brand-name {
  font-weight: 800; font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase;
}
.brand-name::first-letter { color: var(--cyan); }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  position: relative; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .04em;
  padding: 6px 0; transition: color .2s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--cyan); transition: right .25s ease;
}
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.main-nav a.is-active { color: var(--cyan); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Navegación por puntos ---------- */
.dot-nav {
  position: fixed; right: 28px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 22px; z-index: 40;
}
.dot-nav a {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(120,128,132,.8); background: transparent;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.dot-nav a:hover { transform: scale(1.25); }
.dot-nav a.is-active { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px rgba(23,224,242,.7); }
.dot-nav.on-dark a { border-color: rgba(255,255,255,.65); }
body.on-band .dot-nav a { border-color: rgba(28,35,38,.55); }
body.on-band .dot-nav a.is-active { background: var(--ink-2); border-color: var(--ink-2); box-shadow: 0 0 12px rgba(28,35,38,.35); }

/* ---------- CTA flotante ---------- */
.floating-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 45;
  padding: 16px 26px;
  background: var(--cyan); color: var(--ink-2);
  font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(23,224,242,.35);
  transition: transform .2s ease, background .2s ease;
}
.floating-cta:hover { transform: translateY(-3px); background: var(--cyan-glow); }
body.on-band .floating-cta { background: var(--ink-2); color: var(--cyan); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
body.on-band .floating-cta:hover { background: #000; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: radial-gradient(1200px 700px at 70% 30%, #223036 0%, var(--ink) 60%);
  color: #fff; overflow: hidden;
  padding: 160px 0 120px;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; }
.hero-title {
  margin: 0 0 32px;
  font-size: clamp(54px, 11vw, 150px);
  font-weight: 900; line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--cyan); text-shadow: 0 0 30px rgba(23,224,242,.55); }
.hero-sub { max-width: 560px; margin: 0 0 40px; font-size: 18px; color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  background: rgba(255,255,255,.05); backdrop-filter: blur(4px);
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.hero-badge svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.hero-badge:hover { border-color: var(--cyan); background: rgba(23,224,242,.1); transform: translateY(-2px); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  width: 48px; color: #fff; opacity: .9; z-index: 2;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---------- Secciones ---------- */
[data-section] { scroll-margin-top: 72px; }
.section { padding: 120px 0; }
.section-light { background: var(--paper); }
.section-band { background: var(--band); color: var(--ink-2); }
.section-band .display { color: var(--ink-2); }
.section-band p { color: rgba(28,35,38,.82); }

.band-slant {
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  padding: calc(120px + var(--slant)) 0;
  margin: calc(var(--slant) * -1) 0;
}

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }

/* Servicios */
.feature h3 {
  margin: 0 0 18px; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--head);
}
.feature .num { color: var(--cyan-deep); }
.feature p { margin: 0; font-size: 15px; }

/* Monitor */
.monitor-wrap { margin: 100px auto 60px; max-width: 900px; }
.monitor {
  background: #2b3236; border-radius: 22px; padding: 26px 26px 36px;
  box-shadow: 0 40px 80px rgba(0,0,0,.18), inset 0 0 0 2px #394145;
}
.screen { background: #fff; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; display: flex; flex-direction: column; }
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; background: #f1f3f4; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d0d5d8; }
.mock-bar i:first-child { background: var(--cyan); }
.mock-body { flex: 1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; align-content: center; padding: 4% 7%; }
.mock-title {
  font-size: clamp(18px, 3.4vw, 36px); font-weight: 900; line-height: 1; letter-spacing: -.03em;
  text-transform: uppercase; color: var(--head);
}
.mock-stats { display: flex; gap: 28px; margin-top: 7%; }
.mock-stats strong { display: block; font-size: clamp(18px, 3vw, 30px); color: var(--cyan-deep); font-weight: 900; line-height: 1; }
.mock-stats span { font-size: clamp(9px, 1.3vw, 13px); text-transform: uppercase; letter-spacing: .08em; }
.mock-chart { width: 100%; height: auto; }
.monitor-neck { width: 110px; height: 90px; margin: 0 auto; background: linear-gradient(90deg, #a9b0b5, #e2e6e9 50%, #a9b0b5); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.monitor-base { width: 320px; height: 14px; margin: 0 auto; border-radius: 0 0 10px 10px; background: linear-gradient(#cfd4d8, #9ba3a8); }

/* Nosotros */
.pillar { padding-top: 24px; }
.pillar-icon { width: 76px; height: 76px; color: var(--ink-2); margin-bottom: 36px; }
.pillar h3 {
  position: relative; margin: 0 0 20px; padding-top: 26px;
  font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-2);
}
.pillar h3::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--ink-2); }
.pillar p { margin: 0; font-size: 15px; }

/* Webs */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.type {
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  padding: 44px 24px; border: 1px solid var(--line);
  color: #8d9498; font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  transition: color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.type svg { width: 72px; height: 72px; filter: grayscale(1); transition: filter .25s ease, color .25s ease; }
.type:hover {
  color: var(--ink-2); border-color: var(--cyan); transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(23,224,242,.18);
}
.type:hover svg { color: var(--cyan-deep); filter: none; }

/* Garantía */
.section-dark {
  background: radial-gradient(900px 520px at 85% 15%, #223036 0%, var(--ink) 60%);
  color: #fff;
}
.section-dark .display { color: #fff; }
.section-dark .lead { color: rgba(255,255,255,.72); }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 64px; }
.promise {
  padding: 44px 40px;
  border: 1px solid rgba(23,224,242,.35);
  background: rgba(255,255,255,.03);
  box-shadow: 0 0 50px rgba(23,224,242,.08);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.promise:hover { border-color: var(--cyan); box-shadow: 0 0 60px rgba(23,224,242,.2); transform: translateY(-4px); }
.promise-icon { width: 52px; height: 52px; color: var(--cyan); margin-bottom: 26px; }
.promise-figure {
  margin-bottom: 18px;
  font-size: clamp(56px, 7vw, 96px); font-weight: 900; line-height: .9; letter-spacing: -.05em;
  color: var(--cyan); text-shadow: 0 0 30px rgba(23,224,242,.45);
}
.promise-figure small { font-size: .3em; letter-spacing: .02em; text-transform: uppercase; }
.promise-figure.texto { font-size: clamp(36px, 3.6vw, 50px); line-height: 1.2; letter-spacing: -.03em; text-transform: uppercase; padding: .35em 0; }
.promise h3 { margin: 0 0 14px; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.promise p { margin: 0; font-size: 15px; color: rgba(255,255,255,.75); }

/* Contacto */
.contact-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: 980px; margin: 0 auto; text-align: left;
}
.contact-item { display: flex; flex-direction: column; gap: 4px; padding: 0 28px; font-size: 14px; font-weight: 700; }
.contact-item + .contact-item { border-left: 3px solid var(--ink-2); }
.contact-item a { transition: opacity .2s ease; }
.contact-item a:hover { opacity: .7; }
.contact-item span { font-weight: 500; opacity: .85; }
.contact-item span:first-child { font-weight: 700; opacity: 1; }
.contact-note { max-width: 620px; margin: 56px auto 0; text-align: center; font-size: 15px; font-weight: 500; }

/* Formulario */
.quote-form { margin-top: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; font-size: 13px; font-weight: 600; color: var(--head); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 15px; color: var(--ink-2);
  background: var(--input); border: 0; border-bottom: 3px solid transparent; outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--cyan-deep); background: #e3fbfd; }
.field.is-invalid input, .field.is-invalid select { border-bottom-color: #e0443a; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 32px; font-size: 13px; }
.check input { margin-top: 3px; accent-color: var(--cyan-deep); }
.check a { text-decoration: underline; color: var(--head); }
.form-guarantee {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px;
  margin: 28px 0 0; font-size: 13px; font-weight: 600; color: var(--head);
}
.form-guarantee span { display: inline-flex; align-items: center; gap: 8px; }
.form-guarantee svg { width: 17px; height: 17px; color: var(--cyan-deep); flex: none; }
.form-msg { text-align: center; margin: 20px 0 0; font-weight: 600; min-height: 1.5em; }
.form-msg.ok { color: #0a9aa8; }
.form-msg.err { color: #e0443a; }

/* ---------- Pie ---------- */
.site-footer {
  position: relative; margin-top: var(--slant);
  background: var(--band); color: var(--ink-2);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--slant) + 80px);
}
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px;
}
.brand-badge.big { width: 120px; height: 120px; box-shadow: 0 0 0 3px rgba(28,35,38,.15), 0 14px 30px rgba(0,0,0,.12); }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.footer-col h4 {
  margin: 0 0 14px; padding-top: 16px; border-top: 4px solid var(--ink-2);
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.footer-col a:hover { opacity: .7; }
.social { display: flex; gap: 18px; margin-top: 4px; }
.social a { width: 24px; height: 24px; display: inline-grid; place-items: center; transition: transform .2s ease; }
.social a:hover { transform: translateY(-3px); }
.social svg { width: 22px; height: 22px; }
.footer-bottom { background: rgba(255,255,255,.6); padding: 18px 0; font-size: 12px; font-weight: 500; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-bottom span { margin-left: auto; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .12s; }
.reveal:nth-child(3) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .dot-nav { display: none; }
}

@media (max-width: 1024px) {
  .cols-3, .type-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 768px) {
  .container { width: min(100% - 32px, var(--container)); }
  .section { padding: 90px 0; }
  .display { margin-bottom: 40px; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    background: rgba(20,25,28,.97);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
  }
  .main-nav.is-open { opacity: 1; pointer-events: auto; }
  .main-nav a { font-size: 22px; }
  .nav-toggle { position: relative; z-index: 70; }
  .brand-badge { width: 60px; height: 60px; }
  .brand-name { font-size: 18px; }

  .dot-nav { display: none; }
  .floating-cta { right: 16px; bottom: 16px; padding: 14px 20px; font-size: 12px; }

  .hero { padding: 130px 0 110px; }
  .hero-sub { font-size: 16px; }

  .cols-3, .type-grid, .field-row { grid-template-columns: 1fr; }
  .cols-3 { gap: 40px; }
  .monitor { padding: 14px 14px 20px; border-radius: 14px; }
  .mock-body { gap: 12px; }
  .monitor-neck { width: 70px; height: 50px; }
  .monitor-base { width: 200px; }

  .promises { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; }
  .promise { padding: 32px 24px; }

  .contact-row { grid-template-columns: 1fr; gap: 20px; }
  .contact-item { padding: 0 0 0 20px; border-left: 3px solid var(--ink-2); }
  .contact-note { margin-top: 36px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom span { margin-left: 0; }
}
