/* ============================================================
   TOKENS
   Paleta derivada del logo: monocromo + acento frío mínimo.
   ============================================================ */
:root {
  --ink:        #0c0c0d;   /* negro del logo */
  --ink-soft:   #4a4a4d;
  --line:       #e4e4e6;
  --paper:      #ffffff;
  --paper-alt:  #f6f6f7;
  --ice:        #3aa6d0;   /* acento "frío" — usar con moderación */
  --dark:       #101012;   /* fondo sección respaldo */

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--pad);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand__logo { height: 34px; width: auto; }

.nav__list { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); }
.nav__list a {
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink-soft); transition: color 0.2s;
}
.nav__list a:hover { color: var(--ink); }
.nav__phone {
  color: var(--ink) !important; font-weight: 600 !important;
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 0.45rem 1rem; transition: background 0.2s, color 0.2s;
}
.nav__phone:hover { background: var(--ink); color: var(--paper) !important; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.25s; }

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease;
  transform: scale(1.04);
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.35) 0%, rgba(10,10,12,0.55) 55%, rgba(10,10,12,0.82) 100%);
}
.hero__content {
  position: relative;
  max-width: var(--maxw); width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(3rem, 8vw, 6rem);
}
.hero__eyebrow {
  font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 600; color: #cfe9f4; margin-bottom: 1.1rem;
}
.hero__title {
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero__lead {
  margin-top: 1.4rem; max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 300;
  color: rgba(255,255,255,0.9);
}
.hero__actions { margin-top: 2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero__dots {
  position: absolute; bottom: 1.5rem; right: var(--pad);
  display: flex; gap: 0.5rem; z-index: 2;
}
.hero__dots button {
  width: 30px; height: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.35); transition: background 0.2s;
}
.hero__dots button.is-active { background: #fff; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s;
}
.btn--solid { background: #fff; color: var(--ink); border-color: #fff; }
.btn--solid:hover { background: var(--ice); border-color: var(--ice); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn--block { width: 100%; }

/* ============================================================
   FOCO POR TECLADO — accesibilidad (K7)
   Solo aparece en navegación con teclado, no al hacer clic.
   ============================================================ */
a:focus-visible,
button:focus-visible,
.nav__toggle:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 4px;
}
.form input:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 1px;
}

/* Botón sólido cuando va sobre fondo claro (contacto) */
.section .btn--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.section .btn--solid:hover { background: var(--ice); border-color: var(--ice); }

/* ============================================================
   SECCIONES (base)
   ============================================================ */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
}
.section--dark {
  max-width: none; margin: 0;
  background: var(--dark); color: #fff;
}
.section--dark > * { max-width: var(--maxw); margin-inline: auto; }

.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 600; color: var(--ice); margin-bottom: 0.9rem;
}
.eyebrow--light { color: #7ec8e3; }
.section__head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section__title {
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.02em;
  max-width: 20ch;
}
.section__intro, .section__introl {
  margin-top: 1.1rem; max-width: 58ch;
  font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,0.78);
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--paper); padding: clamp(1.6rem, 3vw, 2.4rem);
  transition: background 0.25s;
}
.service:hover { background: var(--paper-alt); }
.service__num {
  display: block; font-size: 0.85rem; font-weight: 700;
  color: var(--ice); letter-spacing: 0.1em; margin-bottom: 1.4rem;
}
.service__title {
  font-size: 1.4rem; font-weight: 600; margin-bottom: 0.7rem; letter-spacing: -0.01em;
}
.service p { color: var(--ink-soft); font-size: 0.98rem; }

.plans {
  margin-top: 2.5rem; padding-top: 2.2rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
}
.plans__label {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft);
}
.plans__list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.plans__list li {
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 0.4rem 1rem; font-size: 0.88rem; font-weight: 500;
}
.plans__note {
  flex-basis: 100%; font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.4rem;
}
.plans__note span { display: block; font-size: 0.8rem; color: #8a8a8d; margin-top: 0.2rem; }

/* ============================================================
   RESPALDO — pilares
   ============================================================ */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.pillar { border-top: 2px solid var(--ice); padding-top: 1.4rem; }
.pillar__title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.6rem; }
.pillar p { color: rgba(255,255,255,0.72); font-size: 0.98rem; font-weight: 300; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.contact__lead { margin-top: 1rem; max-width: 42ch; color: var(--ink-soft); }
.contact__data { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact__data li { display: grid; gap: 0.15rem; }
.contact__k {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}
.contact__v { font-size: 1.1rem; font-weight: 500; }
a.contact__v:hover { color: var(--ice); }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 0.4rem; }
.form label {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft);
}
.form input, .form textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.8rem 0.9rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper-alt); transition: border-color 0.2s, background 0.2s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--ice); background: #fff;
}
.form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.2rem, 5vw, 3rem) var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem;
}
.footer__logo { height: 30px; opacity: 0.85; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.92rem; font-weight: 500; }
.footer__meta a:hover { color: var(--ice); }
.footer__copy { flex-basis: 100%; font-size: 0.8rem; color: #9a9a9d; }

/* ============================================================
   BANNER SUCCESS (retorno del PHP)
   ============================================================ */
.flash {
  max-width: var(--maxw); margin: 1rem auto 0;
  padding: 0.9rem 1.2rem var(--pad);
}
.flash__inner {
  background: #eaf6fb; border: 1px solid var(--ice); color: #0c4a5e;
  border-radius: 8px; padding: 0.9rem 1.2rem; font-size: 0.95rem; font-weight: 500;
}
.flash__inner--err {
  background: #fbeeea; border-color: #d0603a; color: #6b2410;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .services, .pillars { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }

  .nav__toggle { display: flex; }
  .nav__list {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.2rem;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav__list.is-open { max-height: 400px; }
  .nav__list li { width: 100%; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .nav__phone { display: inline-block; margin-top: 0.6rem; }
}
