/* =========================================================
   Elixir Comunicació — hoja de estilos
   Design tokens del handoff. Sin sombras, radios casi rectos.
   ========================================================= */

:root {
  --bg:      #F1F0EC;  /* fondo */
  --ink:     #17161A;  /* texto y bloques a sangre */
  --accent:  #0F6B6B;  /* botones, subrayados, cifras */
  --line:    #DAD6CD;  /* líneas y superficies */
  --muted:   #6C6A6E;  /* texto secundario */
  --error:   #b3261e;  /* mensaje de error de formulario */

  --sans: 'Instrument Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --head: 'Archivo Expanded', 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 2px;
  --pad-x: clamp(20px, 5vw, 64px);   /* padding horizontal de página */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
}

a { color: var(--accent); }
a:hover { color: var(--ink); }

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

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

/* Accesibilidad: respeta reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Utilidad de eyebrow (etiqueta mono) */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Botón CTA */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { color: var(--bg); opacity: 0.92; }
.btn--sm { font-size: 14px; padding: 10px 20px; }
.btn--lg { font-size: 16px; padding: 16px 32px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  font-family: var(--head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav__menu { display: flex; gap: 32px; align-items: center; }
.nav__link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
}
.nav__link:hover { color: var(--accent); }
.nav__link.is-active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

/* Botón hamburguesa (oculto en desktop) */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__bar {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: transform .2s, opacity .2s;
}

/* Overlay móvil */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 100px 32px 40px;
  gap: 28px;
}
.nav-overlay.is-open { display: flex; }
.nav-overlay__link {
  font-family: var(--head);
  font-weight: 700;
  font-size: 28px;
  text-decoration: none;
  color: var(--ink);
}
.nav-overlay__link.is-active { color: var(--accent); }
.nav-overlay .btn { font-size: 18px; padding: 16px 24px; text-align: center; margin-top: 16px; }

/* Cuando el menú está abierto: hamburguesa -> X */
.nav.is-open .nav__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Breakpoint 860px */
@media (max-width: 859px) {
  .nav__menu { display: none; }
  .nav__toggle { display: flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 420px;
  max-height: 88vh;
}
.hero--secondary {
  aspect-ratio: 16 / 9;
  min-height: 320px;
  max-height: 70vh;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,22,26,0.05) 0%, rgba(23,22,26,0.55) 100%);
  pointer-events: none;
}
.hero--secondary .hero__overlay {
  background: linear-gradient(180deg, rgba(23,22,26,0.05) 0%, rgba(23,22,26,0.5) 100%);
}
/* El slot de imagen del hero debe llenar toda la cabecera (detrás del overlay) */
.hero > .slot {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__overlay { z-index: 1; }
.hero__content {
  z-index: 2;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
}
.hero__title {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.05;
  color: var(--bg);
}
.hero--secondary .hero__title { font-size: clamp(30px, 5.5vw, 56px); }
.hero__text {
  margin: 0;
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: var(--bg);
  max-width: 640px;
}
.hero__content .btn { align-self: flex-start; pointer-events: auto; }

/* Línea de crédito bajo el hero */
.credit-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px var(--pad-x);
  border-bottom: 1px solid var(--line);
}

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding: 64px var(--pad-x); display: flex; flex-direction: column; gap: 40px; }
.section--top-line { border-top: 1px solid var(--line); }
.section--gallery { padding-top: 96px; }
.section--cases { padding-bottom: 96px; }

.section__head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.section__title {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--ink);
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  grid-auto-flow: dense;
}
.gallery .slot { grid-column: span 1; aspect-ratio: 3/4; }
.gallery .slot--wide { grid-column: span 2; aspect-ratio: 4/3; }

/* Pasos 01 / 02 / 03 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__num { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--accent); }
.step p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }

/* Bloque intro de niveles */
.levels-intro { display: flex; flex-direction: column; gap: 8px; max-width: 640px; margin-top: 16px; }
.levels-intro h3 { margin: 0; font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--ink); }
.levels-intro p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Tarjetas de nivel */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.level { border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.level__tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
}
.level h4 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ink); }
.level p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Casos */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.case { display: flex; flex-direction: column; gap: 16px; }
.case .slot { aspect-ratio: 4/5; }
.case__client {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
}
.case p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); }

/* CTA oscuro */
.cta {
  background: var(--ink);
  padding: 96px var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.cta h2 {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 42px);
  color: var(--bg);
  max-width: 640px;
}

/* =========================================================
   PLACEHOLDER DE IMAGEN (slot)
   Sustituir por <img loading="lazy" alt="…"> cuando haya fotos.
   ========================================================= */
.slot {
  position: relative;
  background: var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slot__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px;
  text-align: center;
}

/* =========================================================
   PÁGINA: QUIÉNES SOMOS
   ========================================================= */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 32px; }
.prose .lead { margin: 0; font-size: 19px; line-height: 1.7; color: var(--ink); }
.prose p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose .muted { font-size: 16px; color: var(--muted); }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.team__member { display: flex; flex-direction: column; gap: 14px; }
.team__member .slot { aspect-ratio: 1/1; }
.team__name { font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--ink); }
.team__role {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
}

/* =========================================================
   PÁGINA: CONTACTO
   ========================================================= */
.page-head { padding: 80px var(--pad-x) 24px; }
.page-head h1 {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(30px, 5.5vw, 52px);
  color: var(--ink);
}
.page-head p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 600px; }

.contact-grid {
  padding: 24px var(--pad-x) 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
}

.form { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.form__hp { position: absolute; left: -9999px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field textarea {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  border-radius: var(--radius);
}
.field textarea { resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.checkbox input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.checkbox span { font-size: 14px; line-height: 1.5; color: var(--ink); }
.form button[type="submit"] { align-self: flex-start; }
.form button[disabled] { opacity: 0.6; cursor: default; }
.form__status { margin: 0; font-size: 15px; }
.form__status--ok { color: var(--accent); }
.form__status--err { color: var(--error); }
.is-hidden { display: none; }

.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info__block { display: flex; flex-direction: column; gap: 8px; }
.contact-info a, .contact-info span { font-size: 16px; text-decoration: none; }
.contact-info span { color: var(--ink); }

/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */
.legal { padding: 0 var(--pad-x) 96px; display: flex; flex-direction: column; gap: 36px; max-width: 760px; }
.legal__block { display: flex; flex-direction: column; gap: 10px; }
.legal__block h2 { margin: 0; font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--ink); }
.legal__block p, .legal__block li { font-size: 15px; line-height: 1.7; color: var(--ink); }
.legal__block ul { margin: 0; padding-left: 20px; line-height: 1.8; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 64px var(--pad-x) 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__brand { font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; }
.footer__desc { font-size: 14px; line-height: 1.6; color: var(--line); max-width: 280px; margin: 0; }
.footer__title {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.footer__col a { font-size: 14px; text-decoration: none; color: var(--bg); }
.footer__col a:hover { color: var(--line); }
.footer__col span { font-size: 14px; color: var(--line); }
.footer__bottom {
  border-top: 1px solid #3a393e;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* =========================================================
   COMPONENTES DE CONTENIDO (reposicionamiento retrato íntimo)
   ========================================================= */

/* Nota comercial destacada bajo la portada */
.highlight-note {
  padding: 28px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.highlight-note p {
  margin: 0;
  max-width: 760px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

/* Rejilla de características (3 cosas / dónde) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature h3 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--ink); }
.feature p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Lista de discreción */
.disc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.disc-list li { font-size: 16px; line-height: 1.6; color: var(--ink); padding-left: 22px; position: relative; }
.disc-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--accent); }
.disc-list strong { font-weight: 600; }

/* Testimonios */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.testimonial { border-top: 2px solid var(--accent); padding-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.testimonial p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink); }
.testimonial cite {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted); font-style: normal;
}

/* FAQ (details/summary, sin JS) */
.faq { display: flex; flex-direction: column; max-width: 760px; }
.faq__item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq__item summary {
  font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--ink);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-family: var(--mono); }
.faq__item[open] summary::after { content: "\2013"; }
.faq__item p { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted); }

/* Lugares (La sesión: Dónde) */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.place { display: flex; flex-direction: column; gap: 10px; }
.place h3 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--ink); }
.place p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Enlace-CTA de sección (texto) */
.cta-link { align-self: flex-start; font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--accent); text-decoration: none; }
.cta-link:hover { text-decoration: underline; color: var(--accent); }

/* Extras de formulario */
.field select {
  border: 1px solid var(--line); background: #fff; padding: 12px 14px;
  font-family: var(--sans); font-size: 16px; color: var(--ink); border-radius: var(--radius);
}
.form__note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
