/* =========================================================================
   EquiFiber — sitio público
   Reconstrucción del sitio Divi en HTML/CSS/JS estático para Cloudflare Pages.

   Nota de marca: el navy de ESTE sitio y del logo institucional es #091856.
   El design system de las aplicaciones internas (equifiber-ds.css) declara
   #081858. La divergencia existe en origen; aquí manda el logo.
   ========================================================================= */

:root {
  --navy: #091856;
  --navy-700: #0e2270;
  --navy-500: #1a3490;
  --navy-300: #6373b3;
  --navy-100: #d6daea;
  --amber: #ffb000;
  --amber-600: #e69e00;
  --amber-100: #fff1cc;

  --grey-50: #fafafa;
  --grey-100: #f4f4f5;
  --grey-200: #e6e6e8;
  --grey-400: #a1a1aa;
  --grey-600: #52525b;
  --grey-800: #27272a;
  --white: #fff;

  --success: #1f8a5b;
  --error: #c0392b;

  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --radius: 6px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.center { text-align: center; }

/* Regla ámbar corta, motivo recurrente del sitio */
.rule { width: 120px; height: 5px; background: var(--amber); border: 0; margin: 0 0 18px; }
.rule--center { margin-inline: auto; }
.rule--sm { width: 84px; height: 4px; }

.eyebrow { font-size: .95rem; font-weight: 600; letter-spacing: .01em; margin-bottom: .4em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .18s, color .18s, border-color .18s;
}
.btn--outline-amber { color: var(--white); border-color: var(--amber); background: transparent; }
.btn--outline-amber:hover { background: var(--amber); color: var(--navy); }
.btn--amber { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.btn--amber:hover { background: var(--amber-600); border-color: var(--amber-600); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid var(--grey-200); height: var(--header-h);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.header__logo img { width: 186px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--navy); text-decoration: none; font-size: .97rem; font-weight: 600;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--amber); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--navy); line-height: 0;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px;
    border-bottom: 1px solid var(--grey-200); display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--grey-200); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--amber); }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy) url("../img/hero-desktop.png") center/cover no-repeat;
  color: var(--white); display: flex; align-items: center; min-height: 560px;
}
.hero__box { max-width: 620px; margin-left: auto; margin-right: 0; }
.hero h1 { color: var(--white); font-size: clamp(1.7rem, 2.9vw, 2.35rem); margin-bottom: .8em; }
.hero .eyebrow { color: var(--white); }

@media (max-width: 980px) {
  .hero { background-image: url("../img/hero-mobile.png"); min-height: 520px; }
  .hero__box { margin: 0; max-width: none; }
}

/* ---------- Por qué elegirnos ---------- */
.porque {
  background: var(--navy) url("../img/porque-desktop.png") center/cover no-repeat;
  color: var(--white);
}
.porque__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.porque__body { grid-column: 2; }
.porque h2 { color: var(--white); }
.porque ul { padding-left: 20px; margin: 0 0 1em; }
.porque li { margin-bottom: .5em; }
.porque__iso { width: 54px; margin-bottom: 18px; }

@media (max-width: 980px) {
  .porque { background-image: url("../img/porque-mobile.png"); }
  .porque__grid { grid-template-columns: 1fr; gap: 0; }
  .porque__body { grid-column: 1; }
}

/* ---------- Misión / Visión / Propósito ---------- */
.mvp { position: relative; background: var(--grey-100); overflow: hidden; }
.mvp__photo {
  position: absolute; left: 0; top: 0; bottom: 0; width: 36%;
  background: url("../img/foto-patchcord.jpg") center/cover no-repeat;
}
.mvp__grid {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; margin-left: 30%; text-align: center;
}
.mvp__item h3 { font-size: 1.35rem; letter-spacing: .02em; margin-top: 14px; }
.mvp__item img { width: 62px; margin: 0 auto; }
.mvp__item p { font-size: .93rem; color: var(--grey-800); }

@media (max-width: 980px) {
  .mvp__photo { display: none; }
  .mvp__grid { grid-template-columns: 1fr; margin-left: 0; gap: 34px; }
}

/* ---------- Banda ámbar con cita ---------- */
.cita {
  background: var(--amber) url("../img/halftone-blanco.svg") right bottom/auto 92% no-repeat;
  color: var(--navy); position: relative; overflow: hidden;
}
.cita__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cita h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); max-width: 460px; }
.cita blockquote { margin: 0; font-style: italic; font-size: .95rem; }
.cita cite { display: block; font-style: normal; font-weight: 700; margin-top: .6em; }

@media (max-width: 980px) { .cita__grid { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.servicios__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 42px; }
.servicio { text-align: center; display: flex; flex-direction: column; }
.servicio img { width: 190px; margin: 0 auto 18px; }
.servicio h3 { text-transform: uppercase; font-size: 1.02rem; letter-spacing: .01em; }
.servicio p { font-size: .92rem; color: var(--grey-800); flex: 1; }
.servicio .btn { align-self: center; margin-top: 14px; }

@media (max-width: 900px) { .servicios__grid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- FAQ ---------- */
.faq { background: var(--navy); color: var(--white); }
.faq__grid { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: start; }
.faq h2 { color: var(--white); text-transform: uppercase; }
.faq__iso { width: 190px; margin: 20px auto 0; }

.acc { border: 0; }
.acc__item { border-bottom: 1px solid rgba(255,255,255,.16); }
.acc__btn {
  width: 100%; display: flex; align-items: flex-start; gap: 14px; text-align: left;
  background: none; border: 0; color: var(--white); font-family: var(--font);
  font-size: 1.05rem; font-weight: 600; padding: 18px 0; cursor: pointer;
}
.acc__btn::before {
  content: ""; flex: 0 0 auto; margin-top: .38em;
  border-left: 9px solid var(--amber); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  transition: transform .2s;
}
.acc__btn[aria-expanded="true"]::before { transform: rotate(90deg); }
.acc__btn span { flex: 1; }
.acc__panel { padding: 0 0 20px 23px; font-size: .95rem; color: var(--navy-100); }
.acc__panel[hidden] { display: none; }

@media (max-width: 980px) {
  .faq__grid { grid-template-columns: 1fr; gap: 26px; }
  .faq__iso { width: 130px; margin: 0 0 10px; }
}

/* ---------- Banda de sección ámbar ---------- */
.band { background: var(--amber); color: var(--white); text-align: center; padding: 26px 0; }
.band h2 { color: var(--white); text-transform: uppercase; letter-spacing: .04em; margin: 0; }

/* ---------- Equipo ---------- */
.equipo__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 46px; }
.persona { text-align: center; }
.persona img { width: 178px; margin: 0 auto 20px; }
.persona h3 { text-transform: uppercase; font-size: 1.02rem; margin-bottom: 10px; }
.persona p { font-size: .9rem; color: var(--grey-800); }

@media (max-width: 900px) { .equipo__grid { grid-template-columns: 1fr; gap: 46px; } }

/* ---------- Formulario y contacto ---------- */
.contacto__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 18px; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--grey-200); font-family: var(--font); font-size: 1rem; color: var(--navy);
}
.field input::placeholder, .field textarea::placeholder { color: var(--navy); opacity: .85; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--amber); background: var(--grey-100);
  box-shadow: 0 0 0 3px var(--amber-100);
}
.field textarea { min-height: 128px; resize: vertical; }
.field--error input, .field--error textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: .84rem; margin-top: 5px; display: none; }
.field--error .field__error { display: block; }

/* Trampa para robots: invisible para personas, atractiva para bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { display: flex; align-items: center; justify-content: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.form__msg { display: none; padding: 14px 18px; border-radius: var(--radius); margin-top: 18px; font-size: .95rem; }
.form__msg--ok { display: block; background: #e3f4ec; color: var(--success); }
.form__msg--err { display: block; background: #f9e3e0; color: var(--error); }

.contacto__card { background: var(--navy-300); color: var(--white); border-radius: var(--radius); padding: 30px 28px; }
.contacto__card h2 { color: var(--white); font-size: 1.3rem; }
.contacto__list { list-style: none; margin: 22px 0 0; padding: 0; }
.contacto__list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; font-size: .97rem; }
.contacto__list svg { flex: 0 0 auto; width: 22px; height: 22px; opacity: .9; }
.contacto__list a { color: var(--white); }

@media (max-width: 900px) { .contacto__grid { grid-template-columns: 1fr; } }

/* ---------- Página interior ---------- */
.page-hero { background: var(--navy); color: var(--white); padding: 58px 0; }
.page-hero h1 { color: var(--white); margin: 0; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: .55em; }

/* ---------- Widget de métricas (se conecta más adelante) ---------- */
.widget { background: var(--grey-100); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 26px; }
.widget__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.widget__head h3 { margin: 0; }
.widget__state { font-size: .88rem; color: var(--grey-600); }
.widget__body { min-height: 260px; display: grid; place-items: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--white); padding: 56px 0 44px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 36px; }
.footer img { width: 190px; }
.footer h2 { color: var(--white); font-size: 1.25rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--white); text-decoration: none; font-size: .95rem; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--amber); }

.copyright { background: var(--amber); color: var(--navy); text-align: center; padding: 14px 0; font-size: .92rem; }
.copyright a { color: var(--navy); }

@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Utilidades ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--amber); color: var(--navy);
  padding: 10px 18px; z-index: 200; font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.prose__cta { margin-top: 26px; }
