/* ==========================================================================
   Integrha Patagonia — hoja de estilos principal
   Paleta derivada directamente del logo: navy #14334F / acero #445C73 /
   hielo #AFC6D9 / grises frios. Sin colores de acento ajenos a la marca.
   Sin dependencias externas: funciona sin conexion a internet.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marca */
  --navy-950: #061524;
  --navy-900: #0C2136;
  --navy-800: #14334F;   /* color principal del logo */
  --navy-700: #1D3954;
  --navy-600: #2A4C6B;

  --slate-700: #33485C;
  --slate-600: #445C73;  /* secundario del logo */
  --slate-550: #556C82;  /* rotulos pequenos: mantiene AA sobre gris claro */
  --slate-500: #5E768C;
  --steel-400: #708090;
  --steel-300: #8799A9;  /* texto legal sobre navy profundo */

  --ice-400: #8FAFC9;
  --ice-300: #AFC6D9;
  --ice-200: #CEDDEA;
  --ice-100: #E4EDF4;

  --mist-100: #E7ECF0;
  --paper:    #F6F8FA;
  --white:    #FFFFFF;

  /* Superficie y texto */
  --bg: var(--white);
  --text: var(--slate-700);
  --text-strong: var(--navy-800);
  --text-muted: var(--slate-500);
  --line: #DCE3E9;
  --line-soft: #E9EEF2;

  /* Tipografia */
  --font: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system,
          "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Formas: el logo es geometrico y de aristas vivas -> radios pequenos */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;

  /* Espacio */
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --sec-y: clamp(4.25rem, 8.5vw, 8rem);
  --max: 1180px;

  /* Sombra */
  --shadow-sm: 0 1px 2px rgba(12, 33, 54, .05);
  --shadow-md: 0 12px 30px -18px rgba(12, 33, 54, .28);
  --shadow-lg: 0 26px 60px -30px rgba(12, 33, 54, .38);

  /* El lockup del logo es ancho y de dos lineas: a 168 px de ancho mide ~87 px
     de alto, por eso el encabezado se declara de 88 px para que el anclaje de
     las secciones quede siempre por debajo del encabezado fijo. */
  --header-h: 88px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.35vw + 0.94rem, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }

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

a { color: var(--navy-800); text-decoration-color: rgba(20, 51, 79, .3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

ul, ol { margin: 0; padding: 0; list-style: none; }

strong { color: var(--text-strong); font-weight: 600; }

::selection { background: var(--ice-200); color: var(--navy-900); }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--white);
  color: var(--navy-800);
  padding: .75rem 1.15rem;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   3. Tipografia de apoyo
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .9rem;
  font-family: var(--font-mono);
  font-size: .715rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate-500);
}

/* Eco del remate del logo: diagonal que se vuelve horizontal */
.eyebrow--mark::before {
  content: "";
  flex: none;
  width: 22px;
  height: 14px;
  background: currentColor;
  opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 13 12 2h10' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 13 12 2h10' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat center / contain;
}

.lead {
  font-size: clamp(1.045rem, .5vw + .95rem, 1.2rem);
  line-height: 1.7;
  color: var(--slate-600);
  max-width: 62ch;
}

.on-dark .eyebrow { color: var(--ice-300); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .lead, .on-dark p { color: var(--ice-100); }
.on-dark strong { color: var(--white); }

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn {
  --btn-pad: .78rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: var(--btn-pad);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--navy-800);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn:hover { background: var(--navy-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--sm { --btn-pad: .6rem 1.05rem; font-size: .89rem; }
.btn--lg { --btn-pad: .95rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--paper); border-color: var(--steel-400); box-shadow: none; }

/* Variantes sobre fondo oscuro */
.on-dark .btn--primary { background: var(--white); color: var(--navy-900); }
.on-dark .btn--primary:hover { background: var(--ice-200); }
.on-dark .btn--ghost {
  color: var(--ice-100);
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .04);
}
.on-dark .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }

/* --------------------------------------------------------------------------
   5. Encabezado
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(12, 33, 54, .94);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom-color: rgba(255, 255, 255, .1);
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .8);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; }
.brand img {
  width: clamp(132px, 15vw, 168px);
  height: auto;
}

.nav { display: flex; align-items: center; gap: 2rem; }

.nav__list { display: flex; align-items: center; gap: 1.75rem; }

.nav__list a {
  position: relative;
  padding: .35rem 0;
  color: var(--ice-100);
  font-size: .94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .18s ease;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ice-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav__list a:hover { color: var(--white); }
.nav__list a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(3rem, 6vw, 5rem);
  background: var(--navy-900);
  color: var(--ice-100);
}

.hero__bg { position: absolute; inset: 0; z-index: -1; }

.hero__contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__ridge { fill: var(--navy-800); opacity: .55; }

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 62% at 12% 8%, rgba(143, 175, 201, .26), transparent 68%),
    radial-gradient(50% 55% at 88% 0%, rgba(78, 116, 150, .3), transparent 70%),
    linear-gradient(180deg, rgba(6, 21, 36, .55) 0%, rgba(6, 21, 36, 0) 45%, rgba(6, 21, 36, .72) 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(175, 198, 217, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(175, 198, 217, .07) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(90% 70% at 20% 20%, #000 0%, transparent 78%);
  mask-image: radial-gradient(90% 70% at 20% 20%, #000 0%, transparent 78%);
}

.hero__inner { position: relative; }

.hero__title {
  font-size: clamp(2.35rem, 6.4vw, 4.15rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 1.35rem;
  max-width: 22ch;
}

.hero__lead { max-width: 56ch; color: var(--ice-100); }

/* Mencion del producto en el hero (Preven360). Hoy esta comentada en el HTML:
   se conserva el estilo para cuando se decida publicarla. */
.hero__producto {
  max-width: 44ch;
  margin: 1.5rem 0 0;
  padding: .7rem 1rem;
  border-left: 2px solid var(--ice-300);
  background: rgba(255, 255, 255, .05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .955rem;
  line-height: 1.55;
  color: var(--ice-200);
}
.hero__producto strong { color: var(--white); letter-spacing: .01em; }
.hero__producto a { color: var(--white); font-weight: 600; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 2.25rem 0 0;
}

.hero__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.15rem, 3vw, 2.5rem);
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  max-width: 62rem;
}

.hero__pillars li { display: flex; flex-direction: column; gap: .35rem; }
.hero__pillars strong {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero__pillars span { font-size: .92rem; line-height: 1.55; color: var(--ice-300); }

/* --------------------------------------------------------------------------
   7. Secciones
   -------------------------------------------------------------------------- */
.section { padding: var(--sec-y) 0; background: var(--bg); }
.section--tint {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.sec-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.sec-head h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); margin-bottom: 1rem; }
.sec-head__lead { margin-top: .25rem; }

.closing-line {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.55;
  color: var(--navy-800);
  max-width: 44ch;
  padding-left: 1.15rem;
  border-left: 2px solid var(--ice-300);
}

.grid { display: grid; gap: 1.15rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- Dolor / diagnostico --- */
.pain {
  padding: 1.5rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease;
}
.pain:hover { border-color: var(--ice-400); transform: translateY(-2px); }
.pain h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.pain p { font-size: .935rem; line-height: 1.6; color: var(--slate-600); }

/* --- Servicios --- */
.flagship {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  padding: clamp(1.85rem, 4vw, 3rem);
  margin-bottom: 1.15rem;
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(143, 175, 201, .2), transparent 62%),
    var(--navy-800);
  box-shadow: var(--shadow-lg);
}
.flagship h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin-bottom: .85rem; }
.flagship__text p { font-size: 1rem; line-height: 1.7; color: var(--ice-100); }

.flagship__list {
  display: grid;
  gap: .7rem;
  align-content: start;
  padding-top: .5rem;
}
.flagship__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .94rem;
  line-height: 1.5;
  color: var(--ice-200);
}
.flagship__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 11px;
  height: 7px;
  background: var(--ice-300);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 4.2 4.2 7 11 1' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 4.2 4.2 7 11 1' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
}

.svc {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .22s ease, box-shadow .22s ease;
}
.svc:hover {
  border-color: var(--ice-400);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.svc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.15rem;
  border-radius: var(--r-sm);
  background: var(--ice-100);
  color: var(--navy-800);
}
.svc__icon svg { width: 24px; height: 24px; }

.svc h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.svc > p { font-size: .94rem; line-height: 1.62; color: var(--slate-600); }

/* Etiqueta "Capacidad 0X": refuerza que son capacidades, no servicios sueltos.
   Se usa .svc > .svc__label para ganarle en especificidad a la regla .svc > p. */
.svc > .svc__label {
  margin: 0 0 .45rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-550);
}

/* Sub-capacidad destacada dentro de una tarjeta (por ejemplo, emergencias) */
.svc__sub {
  margin-top: 1.05rem;
  padding: .8rem 1rem;
  background: var(--paper);
  border-left: 2px solid var(--ice-300);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.svc__sub h4 {
  margin: 0 0 .15rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-800);
}
.svc__sub p {
  margin: 0;
  font-size: .87rem;
  line-height: 1.45;
  color: var(--slate-600);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
  padding-top: 1.15rem;
}
.tags li {
  padding: .26rem .6rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .005em;
  color: var(--slate-600);
}
.tags--solid li {
  background: var(--ice-100);
  border-color: transparent;
  color: var(--navy-800);
}

/* Enlace al detalle de una capacidad (pagina interna) */
.svc__link {
  margin-top: 1.1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
}
.svc__link::after { content: " \2192"; }
.svc__link:hover { text-decoration: underline; }

/* --- Metodo --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ice-300), var(--line) 70%, transparent);
}
.step { position: relative; padding-top: 2.6rem; }
.step__num {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 .55rem;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--ice-300);
  color: var(--navy-800);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.step h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.step p { font-size: .93rem; line-height: 1.6; color: var(--slate-600); }

/* --- Equipo --- */
.member {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .22s ease;
}
.member:hover { border-color: var(--ice-400); box-shadow: var(--shadow-md); }

.member__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.member__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  background: var(--navy-800);
  color: var(--ice-300);
}
.member__mark svg { width: 30px; height: 30px; }

.member__role {
  margin: 0 0 .2rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-550);
}
.member h3 { font-size: 1.16rem; }

/* Nombre y foco ejecutivo: manda el rol, la profesion no es el titulo */
.member__name { font-size: 1.22rem; letter-spacing: -0.02em; }
.member__focus {
  margin: .3rem 0 0;
  font-size: .885rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--slate-600);
}
.member > p { font-size: .955rem; line-height: 1.65; color: var(--slate-600); }

/* --- Razones --- */
.reason {
  padding: 1.5rem 1.5rem 1.5rem 1.65rem;
  border-left: 2px solid var(--ice-300);
  background: linear-gradient(90deg, rgba(228, 237, 244, .5), transparent 60%);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.reason h3 { font-size: 1.06rem; margin-bottom: .45rem; }
.reason p { font-size: .94rem; line-height: 1.62; color: var(--slate-600); }

.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 130% at 0% 0%, rgba(143, 175, 201, .22), transparent 60%),
    var(--navy-900);
  box-shadow: var(--shadow-lg);
}
.band h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: .6rem; }
.band p { font-size: .96rem; line-height: 1.65; color: var(--ice-100); max-width: 52ch; }
.band__tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ice-300);
  padding: .5rem .85rem;
  border: 1px solid rgba(175, 198, 217, .35);
  border-radius: 100px;
}

/* --------------------------------------------------------------------------
   8. Preguntas frecuentes
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: .7rem;
  max-width: 54rem;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease;
}
.faq__item[open] { border-color: var(--ice-400); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
  list-style: none;
  transition: color .18s ease;
}
.faq__item summary:hover { color: var(--navy-700); }
.faq__item summary::-webkit-details-marker { display: none; }

/* Flecha dibujada con bordes: sin imagenes ni iconos externos */
.faq__item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 2px solid var(--slate-500);
  border-bottom: 2px solid var(--slate-500);
  transform: rotate(45deg);
  transition: transform .2s ease, margin-top .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }

.faq__item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  max-width: 64ch;
  font-size: .95rem;
  line-height: 1.68;
  color: var(--slate-600);
}
.faq__item summary:focus-visible { outline: 2px solid var(--ice-400); outline-offset: -2px; }

/* --------------------------------------------------------------------------
   9. Contacto
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__intro h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); margin-bottom: 1rem; }

.contact__data {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.contact__data li { display: flex; flex-direction: column; gap: .15rem; }
.contact__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-550);
}
.contact__data a, .contact__data span:not(.contact__label) {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--navy-800);
  text-decoration: none;
}
.contact__data a:hover { text-decoration: underline; }

/* Enlace secundario de WhatsApp: mas pequeno que el numero para no competir
   con el. Se usa .contact__data .contact__wa para ganarle a la regla de
   arriba, que es mas especifica. */
.contact__data .contact__wa {
  margin-top: .15rem;
  font-size: .855rem;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
}
.contact__data .contact__wa::after { content: " \2192"; }
.contact__data .contact__wa:hover { color: var(--navy-800); text-decoration: underline; }

.form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.field { display: grid; gap: .4rem; }
.field label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy-800);
}
.field .opt { font-weight: 400; color: var(--slate-500); }

.field input, .field textarea {
  width: 100%;
  padding: .72rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: .965rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder, .field textarea::placeholder { color: #9AAABA; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ice-400);
  box-shadow: 0 0 0 3px rgba(143, 175, 201, .25);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #C0705F; }

/* Casilla de consentimiento: el texto va al lado, no encima */
.field--check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}
.field--check input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: .18rem 0 0;
  accent-color: var(--navy-800);
  cursor: pointer;
}
.field--check label {
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--slate-600);
  cursor: pointer;
}
.field--check label a { font-weight: 500; }

/* Fecha de ultima actualizacion en paginas legales */
.prose__fecha {
  margin: 0 0 2.2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: .85rem;
  color: var(--slate-550);
}

.form__note {
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--slate-500);
  text-align: center;
}
.form__note.is-error { color: #A9503C; }

/* Trampa antispam: invisible en pantalla, pero presente para los robots.
   No se usa display:none porque algunos robots lo detectan. */
.field--trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Cloudflare Turnstile */
.form .cf-turnstile { margin: .15rem 0; min-height: 65px; }

/* Enlace de respaldo al correo de siempre */
.form__alt {
  margin: 0;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--slate-550);
  text-align: center;
}
.form__alt a { font-weight: 500; }

/* Estado de enviado: se ocultan los campos y aparece la confirmacion */
.form__exito {
  padding: 1.1rem 1.2rem;
  background: var(--ice-100);
  border-left: 2px solid var(--navy-600);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.form__exito-titulo {
  margin: 0 0 .3rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-800);
}
.form__exito p {
  margin: 0 0 .9rem;
  font-size: .93rem;
  line-height: 1.55;
  color: var(--slate-600);
}
.form.is-enviado .field,
.form.is-enviado .cf-turnstile,
.form.is-enviado #formBoton,
.form.is-enviado .form__note,
.form.is-enviado .form__alt { display: none; }

/* --------------------------------------------------------------------------
   9. Pie
   -------------------------------------------------------------------------- */
.footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem;
  background: var(--navy-950);
  color: var(--ice-200);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__brand img { width: clamp(140px, 16vw, 178px); margin-bottom: 1.15rem; }
.footer__brand p { font-size: .92rem; line-height: 1.65; color: var(--ice-300); max-width: 34ch; }

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.footer__nav h3 {
  margin-bottom: .9rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}
.footer__nav ul { display: grid; gap: .5rem; }
.footer__nav a, .footer__nav span { font-size: .9rem; color: var(--ice-300); text-decoration: none; }
.footer__nav a:hover { color: var(--white); text-decoration: underline; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
}
.footer__bottom p { font-size: .82rem; color: var(--steel-300); }

/* Credito del desarrollador. Es un sello, no un banner: se mantiene sobrio
   para no competir con el contenido. La barra de acento retoma el remate
   diagonal del logo, en version minima.
   NO lleva estado :hover a proposito, porque hoy no es un enlace: si lo fuera,
   insinuar que se puede hacer clic seria enganoso. Si algun dia enlazan a
   OcaSoft, agregar aqui el hover. */
.footer__meta {
  display: flex;
  align-items: center;
  gap: .8rem 1.15rem;
  flex-wrap: wrap;
}
.footer__powered {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .8rem .4rem .7rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05);
}
.footer__powered-label {
  font-size: .64rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--steel-300);
  white-space: nowrap;
}
.footer__powered-brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--white);
  white-space: nowrap;
}
.footer__powered-brand::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--ice-200), var(--ice-400));
}

/* --------------------------------------------------------------------------
   10. Animacion de entrada
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.2, .6, .3, 1), transform .6s cubic-bezier(.2, .6, .3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   11. Adaptacion a pantallas
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .step { padding-top: 2.3rem; }
  .nav { gap: 1.25rem; }
  .nav__list { gap: 1.2rem; }
}

@media (max-width: 900px) {
  .flagship { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .hero__pillars { grid-template-columns: 1fr; gap: 1.15rem; }
  .hero__pillars li { gap: .15rem; }
  /* Tres columnas de texto se leen mal antes que dos: se apilan completas. */
  .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: rgba(9, 26, 43, .985);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .9);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, transform .24s ease, visibility .24s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav__list a { display: block; padding: .95rem 0; font-size: 1.02rem; }
  .nav__list a::after { display: none; }

  .grid--2 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer__nav { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .hero__actions .btn { width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   12. Accesibilidad: menos movimiento
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   13. Impresion
   -------------------------------------------------------------------------- */
@media print {
  .header, .nav-toggle, .hero__bg, .form { display: none; }
  body { color: #000; }
  .section { padding: 1.5rem 0; break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   16. Páginas internas (por servicio)
   -------------------------------------------------------------------------- */

/* Encabezado de una página interna: versión compacta del hero */
.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(2.2rem, 4.5vw, 3.5rem)) 0 clamp(2.5rem, 5vw, 3.75rem);
  background: var(--navy-900);
}
.page-head__inner { position: relative; max-width: 50rem; }
.page-head h1 {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.page-head .lead { color: var(--ice-100); }
.page-head .lead strong { color: var(--white); }
.page-head .hero__actions { margin-top: 2rem; }

/* Migas de pan */
.breadcrumb { margin: 0 0 1.4rem; font-size: .82rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; color: var(--ice-300); }
.breadcrumb li + li::before { content: "/"; color: var(--steel-400); }
.breadcrumb a { color: var(--ice-200); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }

/* Cuerpo de texto de una página interna */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 0 0 1rem; }
.prose h3 { font-size: 1.08rem; margin: 0 0 .35rem; }
.prose p { margin: 0 0 1.1rem; color: var(--slate-600); line-height: 1.7; }
.prose ul { display: grid; gap: .6rem; margin: 0 0 1.4rem; }
.prose ul li { position: relative; padding-left: 1.65rem; color: var(--slate-600); line-height: 1.65; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 11px;
  height: 7px;
  background: var(--navy-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 4.2 4.2 7 11 1' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 4.2 4.2 7 11 1' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
}
.prose a { color: var(--navy-800); font-weight: 500; }
.prose > section + section {
  margin-top: 3rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line-soft);
}
.prose__acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Los pasos, dentro de una página interna, van en 2 columnas (no en 4) */
.prose .steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2rem;
  margin: 0 0 1.6rem;
}
.prose .steps::before { display: none; }
.prose .step { padding-top: 2.3rem; }

/* Las respuestas del acordeon conservan su propio espaciado */
.prose .faq__item p { margin: 0; padding: 0 1.25rem 1.25rem; }

@media (max-width: 640px) {
  .prose .steps { grid-template-columns: 1fr; }
}
