/* =========================================================
   Connasia — hoja de estilos
   Mobile-first: los estilos base son para celular,
   los @media agregan lo de tablet/desktop hacia arriba.
   ========================================================= */

/* ---------- 1. Variables de marca ---------- */
:root {
  --navy:        #0D1B2A;
  /* Un punto más oscuro que el navy, para separar el footer del contacto */
  --navy-deep:   #081119;
  --accent:      #C4581E;
  --accent-hover:#d9641f;
  /* Naranja algo más claro: sobre navy el tono base queda apagado */
  --accent-dark-bg: #E0752F;
  --cream:       #DCCCA3;
  --white:       #ffffff;
  --text-muted:  rgba(255, 255, 255, 0.78);

  /* Secciones sobre fondo claro */
  --surface:     #ffffff;
  --surface-alt: #F3F5F7;
  --ink:         #0D1B2A;
  --ink-muted:   #52657A;
  --line:        #DDE3E9;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Tipografía de despliegue del sistema de diseño, solo para cifras grandes */
  --font-display: "Manrope", var(--font-sans);

  --wrap:       1320px;
  --gutter:     1.25rem;
  --header-h:   4.75rem;
  --radius:     4px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 64em) {
  :root {
    --gutter:   2.5rem;
    --header-h: 6.25rem;
  }
}

/* ---------- 2. Reset básico ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

ul { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 3. Utilidades ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.975rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease),
              border-color 0.2s var(--ease),
              transform 0.15s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  padding: 0.72rem 1.4rem;
  font-size: 0.98rem;
}

/* =========================================================
   5. HEADER
   ========================================================= */
/* La barra es clara y translúcida desde el principio, no transparente:
   el logo principal es navy y necesita fondo claro debajo en todo momento. */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.58);
  /* Desenfoque alto: deja pasar la foto como una veladura, sin que el
     detalle nítido compita con el texto del menú. */
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transition: background-color 0.3s var(--ease),
              border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

/* El JS agrega .is-scrolled solo cuando el hero ya pasó: mientras la
   barra flota sobre la foto se mantiene translúcida. */
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(13, 27, 42, 0.08);
  box-shadow: 0 8px 30px rgba(13, 27, 42, 0.10);
}

/* Menú móvil abierto: fondo opaco para que se lea el panel */
.header.is-open {
  background: var(--white);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, var(--wrap));
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header__logo img {
  height: 3.1rem;
  width: auto;
}

@media (min-width: 64em) {
  .header__logo img { height: 4rem; }
}

/* ---------- 5.1 Botón hamburguesa ---------- */
.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.6rem;
  flex: none;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 7px; }
.nav-toggle__bars span:nth-child(3) { top: 14px; }

/* Estado abierto: se convierte en una X */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 5.2 Navegación (móvil = panel desplegable) ---------- */
.nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--white);
  border-top: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 20px 40px rgba(13, 27, 42, 0.18);

  /* Oculto por defecto, sin sacarlo del flujo de accesibilidad de golpe */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease),
              transform 0.25s var(--ease),
              visibility 0.25s;
}

.nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.nav__list {
  display: flex;
  flex-direction: column;
  padding: 0.5rem var(--gutter) 1.75rem;
}

.nav__link {
  display: block;
  padding: 1rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid rgba(13, 27, 42, 0.09);
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: var(--accent); }

.nav__cta-item { margin-top: 1.5rem; }
.nav__cta-item .btn { width: 100%; }

/* ---------- 5.3 Navegación en desktop ---------- */
@media (min-width: 64em) {
  .nav-toggle { display: none; }

  .nav {
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 2.25rem;
    padding: 0;
  }

  .nav__link {
    padding: 0;
    font-size: 1.06rem;
    font-weight: 500;
    color: var(--ink);
    border: 0;
    position: relative;
  }

  /* Subrayado naranja que crece al pasar el mouse */
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .nav__link:hover::after { transform: scaleX(1); }

  .nav__cta-item { margin-top: 0; }
  .nav__cta-item .btn { width: auto; }
}

/* =========================================================
   6. HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 2.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* En móvil encuadra hacia la derecha, donde está el puente */
  object-position: 68% center;
}

@media (min-width: 48em) {
  .hero__media img { object-position: center; }
}

/* Capa navy encima de la foto para que el texto siempre se lea.
   Sin z-index: al ser absoluta se pinta sobre la imagen, que va en el flujo. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(13, 27, 42, 0.96) 0%,
      rgba(13, 27, 42, 0.82) 38%,
      rgba(13, 27, 42, 0.55) 70%,
      rgba(13, 27, 42, 0.70) 100%);
}

@media (min-width: 64em) {
  /* La foto se desvanece hacia la izquierda hasta navy sólido, para que
     el texto se apoye en color plano y no sobre la imagen. */
  .hero__media::after {
    background:
      linear-gradient(to right,
        var(--navy) 0%,
        var(--navy) 26%,
        rgba(13, 27, 42, 0.94) 40%,
        rgba(13, 27, 42, 0.62) 62%,
        rgba(13, 27, 42, 0.24) 84%,
        rgba(13, 27, 42, 0.12) 100%),
      linear-gradient(to top,
        rgba(13, 27, 42, 0.70) 0%,
        rgba(13, 27, 42, 0.05) 42%);
  }
}

.hero__content {
  position: relative;
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 64em) {
  /* En pantallas grandes el bloque se centra verticalmente:
     abajo del todo deja demasiado aire vacío arriba. */
  .hero { align-items: center; padding-bottom: 5rem; }
}

/* El ancho de línea se limita en los textos, NO en el contenedor.
   Antes .hero__content llevaba max-width y margin-inline:auto, así que
   el bloque quedaba centrado en la ventana y su borde izquierdo no
   coincidía con el de las demás secciones, que usan .wrap. */

/* ---------- 6.1 Textos del hero ---------- */
.hero__eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  max-width: 22rem;
}

@media (min-width: 48em) {
  .hero__eyebrow { font-size: 0.85rem; max-width: none; }
}

/* El titular son dos frases completas, no tres palabras: pide un cuerpo
   más contenido y un ancho de línea acotado para no quedar en un bloque
   ilegible de lado a lado. */
.hero__title {
  font-size: clamp(1.9rem, 7.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
}

@media (min-width: 48em) {
  .hero__title {
    font-size: clamp(2.5rem, 4.3vw, 3.15rem);
    max-width: 60rem;
  }
}

.hero__title-accent { color: var(--accent); }

.hero__lead {
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.9rem;
}

@media (min-width: 48em) {
  .hero__lead { font-size: 1.15rem; margin-bottom: 2.25rem; }
}

/* ---------- 6.2 Botones del hero ---------- */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 30em) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Tercera opción, deliberadamente en enlace y no en botón:
   con tres botones iguales ninguno destaca. */
.hero__aside-link {
  margin-bottom: 1.75rem;
  font-size: 0.94rem;
}

.hero__aside-link a {
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero__aside-link a::after { content: " →"; }

.hero__aside-link a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ---------- 6.3 Franja de credibilidad ---------- */
/* Panel de cifras. Antes era una lista con viñetas; ahora las tres
   cifras son el elemento principal, con la etiqueta debajo. */
.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.1rem 0.9rem;
  border-radius: 6px;
  background: rgba(8, 17, 25, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
  position: relative;
  padding-inline: 0.55rem;
  text-align: center;
}

/* Separador entre columnas, salvo antes de la primera */
.hero__stat + .hero__stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 62%;
  background: rgba(255, 255, 255, 0.16);
}

.hero__stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 7vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-dark-bg);
}

.hero__stat-label {
  display: block;
  margin-top: 0.42rem;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 48em) {
  .hero__trust {
    /* Centrado horizontal: el panel abraza su contenido y se centra
       en la columna, que a su vez está centrada en la ventana. */
    width: fit-content;
    margin-inline: auto;
    padding: 1.5rem 1.75rem;
  }

  .hero__stat { padding-inline: 2rem; min-width: 11.5rem; }
  .hero__stat-num { font-size: 2.9rem; }

  .hero__stat-label {
    margin-top: 0.55rem;
    font-size: 0.85rem;
  }
}

/* =========================================================
   7. SECCIONES (estructura común reutilizable)
   ========================================================= */
.section {
  padding-block: 4rem;
}

@media (min-width: 48em) { .section { padding-block: 5.5rem; } }
@media (min-width: 64em) { .section { padding-block: 7rem; } }

.section--light {
  background: var(--surface-alt);
  color: var(--ink);
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

/* Sobre navy el naranja pierde legibilidad: el texto va en crema
   y el naranja se reserva para la barra lateral, igual que en el hero. */
.section--dark .section__eyebrow { color: var(--cream); }
.section--dark .section__lead    { color: var(--text-muted); }

.wrap {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section__head {
  max-width: 44rem;
  margin-bottom: 2.75rem;
}

@media (min-width: 64em) {
  .section__head { margin-bottom: 4rem; }
}

.section__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  font-size: clamp(1.85rem, 6.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 48em) {
  .section__title { font-size: clamp(2.35rem, 4vw, 3rem); }
}

.section__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ---------- 7.1 Iconos de marca ---------- */
/* El sprite va oculto; solo se referencia con <use>. */
.sprite { display: none; }

/* Los símbolos no heredan los atributos del sprite original al clonarse
   con <use>, así que el trazo se define aquí. */
.icon {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   8. SERVICIOS
   ========================================================= */

/* ---------- 8.1 Opción A: solución integral ---------- */
.plan {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 48em) {
  .plan { padding: 2.75rem 2.5rem; }
}

@media (min-width: 64em) {
  .plan {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3.25rem 3.5rem;
    margin-bottom: 4.5rem;
  }
}

.plan__body { max-width: 46rem; }

.plan__title {
  font-size: clamp(1.5rem, 5.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.plan__text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Icono decorativo grande, detrás del texto en móvil */
.plan__icon {
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  width: 9rem;
  height: 9rem;
  color: var(--accent);
  opacity: 0.13;
  pointer-events: none;
}

@media (min-width: 64em) {
  .plan__icon {
    position: static;
    width: 7rem;
    height: 7rem;
    margin-left: auto;
    opacity: 0.35;
  }
}

/* ---------- 8.2 Opción B: a la carta ---------- */
.alacarte__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 40em) {
  .services { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (min-width: 64em) {
  .services { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease),
              transform 0.2s var(--ease);
}

.service:hover {
  border-color: rgba(196, 88, 30, 0.5);
  box-shadow: 0 10px 28px rgba(13, 27, 42, 0.09);
  transform: translateY(-2px);
}

.service__icon {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 1.1rem;
  color: var(--accent);
}

.service__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.service__text {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ---------- 8.3 Ferias y visitas ---------- */
.fairs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}

@media (min-width: 56em) {
  .fairs {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    margin-top: 3.5rem;
    padding: 1.9rem 2.25rem;
  }
}

.fairs__icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
}

.fairs__body { flex: 1; }

.fairs__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.fairs__text {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.fairs__link {
  flex: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.fairs__link::after {
  content: " →";
}

.fairs__link:hover { border-bottom-color: var(--accent); }

/* =========================================================
   9. POR QUÉ CONNASIA
   ========================================================= */

/* Lista, no tarjetas: la sección anterior ya usa tarjetas y repetir
   el mismo patrón visual dos veces seguidas cansa la vista. */
.why {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 3.5rem;
}

@media (min-width: 48em) {
  .why { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3.5rem; }
}

/* Con ocho razones, dos columnas dan cuatro filas exactas */
@media (min-width: 64em) {
  .why { gap: 2.75rem 4rem; }
}

.why__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 48em) {
  .why__item { gap: 1.25rem; }
}

.why__icon {
  width: 2rem;
  height: 2rem;
  margin-top: 0.15rem;
  color: var(--accent-dark-bg);
}

.why__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.why__text {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- 9.1 Categorías con experiencia ---------- */
.sectors {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 64em) {
  .sectors { margin-top: 5rem; }
}

.sectors__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.sectors__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.sectors__list li {
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.sectors__note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================================
   10. PROCESO — diagrama en serpentina

   Portado del diseño "Proceso CONNASIA" (Claude Design). El original
   es un lienzo fijo de 1600×1040 px. Para que sea fluido sin perder
   proporciones, se conserva ese sistema de coordenadas y se convierte
   a unidades de contenedor:

       1 px del diseño = 100/1600 cqw = 0.0625cqw  →  var(--u)

   Así cada medida se escribe calc(<px del diseño> * var(--u)) y todo
   el diagrama escala junto, incluida la tipografía.

   Debajo de 70em el diagrama no cabe legible y se convierte en una
   lista vertical.
   ========================================================= */
#proceso {
  /* El diseño usa coral #D9502F; aquí se respeta el naranja de marca
     del sitio para que la sección no desentone con las demás.
     Cambiar esta línea a #D9502F para volver al color del diseño. */
  --flow-accent: var(--accent);
  --flow-ink: var(--ink);
}

/* El diagrama necesita más ancho que la columna de texto */
.pflow-outer {
  width: min(100% - 2 * var(--gutter), 1600px);
  margin-inline: auto;
}

.pflow { position: relative; }

/* La ruta curva solo existe en la versión serpentina */
.pflow__track { display: none; }
.pflow__track path { stroke: var(--flow-accent); }

.pflow__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

/* ---------- 10.1 Móvil: línea de tiempo vertical ---------- */
.pstep {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: start;
  gap: 1.1rem;
}

.pstep__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--c);
  color: var(--white);
}

.pstep__dot svg {
  width: 1.7rem;
  height: 1.7rem;
}

.pstep__body { display: block; }

.pstep__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--flow-ink);
  margin-top: 0.4rem;
}

.pstep__rule {
  display: block;
  width: 3.25rem;
  height: 3px;
  margin: 0.6rem 0;
  border-radius: 2px;
  background: var(--flow-accent);
}

.pstep__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--flow-ink);
}

/* Línea que une un paso con el siguiente */
.pstep:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: calc(1.75rem - 1px);
  top: 3.5rem;
  width: 2px;
  height: calc(100% - 3.5rem + 1.75rem);
  background: var(--flow-accent);
  opacity: 0.4;
}

/* ---------- 10.2 Desktop: serpentina del diseño ----------
   El corte va en 78em y no antes: por debajo, el lienzo de 1600px se
   comprime tanto que las etiquetas bajan de 12px y dejan de leerse. */
@media (min-width: 78em) {
  .pflow {
    container-type: inline-size;
    aspect-ratio: 1600 / 1040;
    --u: 0.0625cqw;   /* un píxel del lienzo original */
  }

  .pflow__track {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .pflow__list {
    position: absolute;
    inset: 0;
    display: block;
    gap: 0;
  }

  .pstep {
    position: absolute;
    display: block;
    /* El diseño usa 224px, pero "Seguimiento de producción" mide 225px y
       se partía en tres líneas rompiendo el salto que trae el diseño.
       240px lo arregla y deja 30px de aire entre columnas (separadas 270px). */
    width: calc(240 * var(--u));
    left: calc((var(--x) - 120) * var(--u));
    top: calc((var(--y) - 44) * var(--u));
    text-align: center;
    gap: 0;
  }

  .pstep:not(:last-child)::after { content: none; }

  .pstep__dot {
    width: calc(88 * var(--u));
    height: calc(88 * var(--u));
    margin-inline: auto;
  }

  .pstep__dot svg {
    width: calc(42 * var(--u));
    height: calc(42 * var(--u));
  }

  .pstep__num {
    font-size: calc(42 * var(--u));
    margin-top: calc(26 * var(--u));
  }

  .pstep__rule {
    width: calc(118 * var(--u));
    height: calc(3 * var(--u));
    margin: calc(14 * var(--u)) auto calc(12 * var(--u));
  }

  .pstep__label {
    font-size: calc(17 * var(--u));
    line-height: 1.35;
  }
}

/* ---------- 10.3 Cierre de la sección ---------- */
.process__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 40em) {
  .process__cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

@media (min-width: 64em) {
  .process__cta { margin-top: 4.5rem; }
}

.process__cta-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

/* =========================================================
   11. CONTACTO
   ========================================================= */

/* Foto de fondo del recinto ferial, en blanco y negro. Va a opacidad muy
   baja sobre el navy: aporta textura sin competir con el formulario, y al
   no tener color no ensucia la paleta. Se desvanece hacia abajo para
   entregar limpio al footer. */
#contacto {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

#contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/contacto-canton.jpg");
  background-size: cover;
  background-position: center 40%;
  opacity: 0.17;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 64em) {
  .contact {
    grid-template-columns: 20rem 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

/* ---------- 11.1 Canales directos ---------- */
.channels__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.channel {
  display: block;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.channel:hover {
  border-color: var(--accent-dark-bg);
  background: rgba(255, 255, 255, 0.09);
}

/* Tres niveles de jerarquía: agendar es la acción principal (naranja
   sólido), WhatsApp la segunda (naranja tenue), y el resto neutro. */
.channel--book {
  background: var(--accent);
  border-color: var(--accent);
}

.channel--book:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.channel--book .channel__label { color: rgba(255, 255, 255, 0.82); }
.channel--book .channel__value { color: var(--white); }

/* Botón de WhatsApp con su color de marca: se reconoce al instante
   y es el canal que más convierte en LatAm. */
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.15rem;
  margin-bottom: 0.75rem;
  background: #25D366;
  color: #06331A;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn-wa svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
}

.btn-wa:hover { background: #1fbb59; }
.btn-wa:active { transform: translateY(1px); }

.channel__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark-bg);
  margin-bottom: 0.15rem;
}

.channel__value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

/* ---------- 11.2 Formulario ---------- */
.form-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
}

@media (min-width: 40em) {
  .form-card { padding: 2rem 1.9rem; }
}

@media (min-width: 64em) {
  .form-card { padding: 2.5rem; }
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}

@media (min-width: 40em) {
  .form__row { grid-template-columns: repeat(2, 1fr); }
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.field__opt {
  font-weight: 400;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: inherit;
  /* 1rem = 16px evita que iOS haga zoom al enfocar el campo */
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field textarea { resize: vertical; min-height: 7rem; }

.field select {
  appearance: none;
  /* Flecha dibujada en el propio fondo, para no depender de una imagen */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
    linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 2px),
    calc(100% - 13px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 88, 30, 0.16);
}

/* Solo marca en rojo un campo ya tocado y con error, no al cargar */
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #C0392B;
}

.form__submit {
  width: 100%;
  margin-top: 0.4rem;
}

@media (min-width: 40em) {
  .form__submit { width: auto; min-width: 14rem; }
}

.form__status {
  margin-top: 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
}

.form__status.is-ok    { color: #1E7A46; }
.form__status.is-error { color: #C0392B; }
.form__status:empty    { display: none; }

.form__legal {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Campo trampa antispam: fuera de la vista pero sin display:none,
   que algunos robots detectan. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================================
   12. FOOTER  (claro, igual que el header, para el logo principal)
   ========================================================= */
.footer {
  background: var(--surface-alt);
  color: var(--ink);
  padding-block: 3rem 1.75rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 64em) {
  .footer { padding-block: 4rem 2rem; }
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 40em) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 64em) {
  .footer__top {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer__brand img {
  height: 4.6rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer__tagline {
  max-width: 26rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.footer__heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer__nav ul,
.footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__nav a,
.footer__contact a {
  font-size: 1.06rem;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}

.footer__nav a:hover,
.footer__contact a:hover { color: var(--accent); }

/* Una sola línea, centrada */
.footer__bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
