/* ==========================================================================
   Ideas Multimedia — Sistema de diseño
   Videovigilancia y alarmas inalámbricas
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Negros y grises neutros (sin tinte azul, para no pelear con el rojo) */
  --bg:          #0A0A0B;
  --bg-soft:     #101013;
  --surface:     #16161A;
  --surface-2:   #1E1E23;
  --border:      #2B2B33;
  --border-soft: #232329;

  /* Blancos */
  --text:        #F5F5F7;
  --text-muted:  #A9A9B3;
  --text-dim:    #7C7C87;

  /* Rojo de marca: medido de la foto de perfil de @ideasmultimedia */
  --brand:       #DF1E31;   /* rellenos: botones, insignias, logo */
  --brand-text:  #FF5F6E;   /* texto e iconos finos: aclarado para leerse sobre negro */
  --brand-strong:#B31627;
  --brand-soft:  rgba(223, 30, 49, 0.13);
  --brand-line:  rgba(223, 30, 49, 0.34);

  /* Verde de WhatsApp. Se usa en un solo lugar: el boton flotante de abajo
     a la derecha. Los botones dentro de la pagina van en rojo de marca.
     Texto oscuro sobre el verde: el blanco da 1,98:1 y es ilegible;
     este negro da 9,9:1. */
  --wa:          #25D366;
  --wa-dark:     #1EA952;
  --wa-fg:       #0A0A0B;

  /* Amarillo de aviso: los errores no pueden ir en rojo porque el rojo
     ahora es el color de marca y no se distinguirian. */
  --alerta:      #FFB020;

  /* Tipografía */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Escala tipográfica fluida */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.09rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.30rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.80rem, 1.52rem + 1.40vw, 2.75rem);
  --step-4:  clamp(2.20rem, 1.70rem + 2.50vw, 4.00rem);

  /* Espaciado y formas */
  --radius:    14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --shadow:    0 18px 40px -18px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 34px 70px -28px rgba(0, 0, 0, 0.95);
  --container: 1180px;
  --gutter:    clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- 2. Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 700;
}

h1 { font-size: var(--step-4); letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-text); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #FF8A96; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

strong { color: #FFFFFF; font-weight: 650; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

::selection { background: var(--brand); color: #FFFFFF; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand);
  color: #FFFFFF;
  padding: 0.7rem 1.2rem;
  font-weight: 650;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* --- 3. Layout ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--soft { background: var(--bg-soft); }
.section--line { border-top: 1px solid var(--border-soft); }

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
/* :not(.eyebrow) es necesario: ".section-head p" tiene más especificidad que
   ".eyebrow" y le pisaba el color, el tamaño y el margen al rótulo. */
.section-head p:not(.eyebrow) { color: var(--text-muted); font-size: var(--step-1); line-height: 1.55; margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.section-head--center .eyebrow::before { display: none; }

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.lede { font-size: var(--step-1); color: var(--text-muted); line-height: 1.6; }

/* --- 4. Botones ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step-0);
  font-weight: 650;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px var(--btn-bg);
}
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }

/* Mismo rojo que el resto de los botones: el verde queda solo para .wa-float */
.btn--wa { --btn-bg: var(--brand); --btn-fg: #FFFFFF; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  box-shadow: none;
  color: #FFFFFF;
}
.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--step-1); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --- 5. Header / navegación --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 11, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: none;
}
.brand:hover { color: var(--text); }
.brand__mark { width: 38px; height: 38px; flex: none; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-size: 1.02rem; }
.brand__tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links li { margin: 0; }
.nav__links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 550;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.nav__links a[aria-current="page"] { color: var(--brand-text); background: var(--brand-soft); }

.nav__cta { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.nav__cta .btn { padding: 0.68rem 1.25rem; font-size: 0.94rem; }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 650;
  font-size: 0.94rem;
  white-space: nowrap;
}
.nav__phone svg { width: 17px; height: 17px; color: var(--brand-text); }
.nav__phone:hover { color: var(--brand-text); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  position: relative;
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.2s var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.28s var(--ease), top 0.2s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Entre 1021px y 1200px el menú completo no entra a lo ancho:
   ocultamos el teléfono y compactamos los enlaces. Va antes del bloque
   de 1020px para que en móvil ganen las reglas de abajo. */
@media (max-width: 1200px) {
  .nav { gap: 1rem; }
  .nav__phone { display: none; }
  .nav__links a { padding-inline: 0.6rem; font-size: 0.9rem; }
  .nav__cta .btn { padding: 0.62rem 1.05rem; }
}

@media (max-width: 1020px) {
  .nav { flex-wrap: wrap; }
  .js .nav__toggle { display: inline-flex; }
  .nav__phone { display: none; }
  .nav__cta .btn--ghost { display: none; }

  /* Sin JavaScript el menú queda desplegado en el flujo normal de la página. */
  .nav__panel {
    order: 3;
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
  }
  /* Con JavaScript se convierte en un panel desplegable a pantalla completa. */
  .js .nav__panel {
    position: fixed;
    inset: 72px 0 0;
    order: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 1.5rem var(--gutter) 2.5rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .js .nav__panel.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__links { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav__links a { padding: 0.85rem 1rem; font-size: 1.08rem; border-radius: var(--radius-sm); }
  .nav__panel-cta { display: grid; gap: 0.7rem; padding-top: 0.5rem; border-top: 1px solid var(--border-soft); }
}

@media (min-width: 1021px) {
  .nav__panel { display: contents; }
  .nav__panel-cta { display: none; }
}

/* --- 6. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 720px;
  background:
    radial-gradient(58% 62% at 22% 32%, rgba(223, 30, 49, 0.22), transparent 70%),
    radial-gradient(45% 55% at 82% 12%, rgba(223, 30, 49, 0.12), transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(223, 30, 49, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 30, 49, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(72% 68% at 50% 26%, #000 20%, transparent 82%);
  -webkit-mask-image: radial-gradient(72% 68% at 50% 26%, #000 20%, transparent 82%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem 0.42rem 0.55rem;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 100px;
  font-size: var(--step--1);
  font-weight: 600;
  color: #FFC9CF;
  margin-bottom: 1.4rem;
}
.hero__badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.20);
  flex: none;
}

.hero h1 { margin-bottom: 0.5em; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--brand), #FF8290);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-soft);
  list-style: none;
  padding-left: 0;
}
.hero__proof li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--step--1);
  color: var(--text-muted);
  font-weight: 550;
}
.hero__proof svg { width: 16px; height: 16px; color: var(--brand-text); flex: none; }

/* Mockup de monitoreo */
.hero__visual { position: relative; }
.monitor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow-lg);
}
.monitor__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.15rem 0.35rem 0.75rem;
}
.monitor__bar .led { width: 9px; height: 9px; border-radius: 50%; background: var(--border); flex: none; }
.monitor__bar .led--live { background: #FF5F57; animation: pulse 2s ease-in-out infinite; }
.monitor__bar .label {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.monitor__feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.feed {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(150deg, #1C1C21, #0D0D10);
  border: 1px solid var(--border-soft);
}
.feed::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 100% 3px;
}
.feed__tag {
  position: absolute;
  left: 0.5rem;
  bottom: 0.45rem;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D8D8DE;
  background: rgba(6, 6, 7, 0.75);
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
}
.feed__rec {
  position: absolute;
  right: 0.5rem;
  top: 0.45rem;
  z-index: 2;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #FF5F57;
  animation: pulse 2s ease-in-out infinite;
}
.feed svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__float {
  position: absolute;
  right: -8px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.3;
}
.hero__float svg { width: 30px; height: 30px; color: var(--brand-text); flex: none; }
.hero__float span { display: block; color: var(--text-dim); font-weight: 550; font-size: 0.75rem; }
@media (max-width: 560px) { .hero__float { display: none; } }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.28; }
}

/* --- 7. Tarjetas --------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-line);
  background: var(--surface-2);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 1.2rem; }
.card .link-arrow { margin-top: auto; color: var(--brand-text); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.15rem;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 13px;
  color: var(--brand-text);
  flex: none;
}
.card__icon svg { width: 24px; height: 24px; }

.card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.5rem;
}
.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}
.card__list svg { width: 17px; height: 17px; color: var(--brand-text); flex: none; margin-top: 0.2rem; }

a.card { color: inherit; }
a.card:hover { color: inherit; }
a.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* --- 8. Sectores --------------------------------------------------------- */
.sector {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.sector:hover { transform: translateY(-4px); border-color: var(--brand-line); color: inherit; }
.sector__icon {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  color: var(--brand-text);
  opacity: 0.5;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.sector__icon svg { width: 46px; height: 46px; }
.sector:hover .sector__icon { opacity: 1; transform: scale(1.06); }
.sector h3 { font-size: var(--step-0); margin-bottom: 0.3rem; }
.sector p { font-size: 0.89rem; color: var(--text-muted); margin: 0; }

/* --- 9. Métricas --------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { padding: clamp(1.3rem, 3vw, 2rem); background: var(--surface); text-align: center; }
.stat__num {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}
.stat__num .unit { color: var(--brand-text); }
.stat__label { font-size: var(--step--1); color: var(--text-muted); }

/* --- 10. Proceso --------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.step { counter-increment: step; background: var(--surface); padding: clamp(1.4rem, 2.6vw, 1.9rem); }
.step::before {
  content: "0" counter(step);
  display: block;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  color: var(--brand-text);
  margin-bottom: 0.9rem;
}
.step h3 { font-size: var(--step-0); margin-bottom: 0.4rem; }
.step p { font-size: 0.93rem; color: var(--text-muted); margin: 0; }

/* --- 11. Galería --------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(0.8rem, 2vw, 1.2rem); }
.shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(6, 6, 7, 0.94), transparent);
  font-size: 0.88rem;
  font-weight: 600;
}
.shot figcaption span { display: block; font-size: 0.76rem; color: var(--text-dim); font-weight: 500; }

/* --- 12. Acordeón FAQ ---------------------------------------------------- */
.faq { display: grid; gap: 0.7rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.faq__item.is-open { border-color: var(--brand-line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: none;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.faq__q .chev { flex: none; width: 20px; height: 20px; color: var(--brand-text); transition: transform 0.3s var(--ease); }
.faq__item.is-open .chev { transform: rotate(180deg); }
/* Sin JavaScript las respuestas se muestran siempre desplegadas. */
.faq__a { display: grid; grid-template-rows: 1fr; }
.js .faq__a { grid-template-rows: 0fr; transition: grid-template-rows 0.34s var(--ease); }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
html:not(.js) .faq__q { cursor: default; }
html:not(.js) .faq__q .chev { display: none; }
.faq__a p { padding: 0 1.3rem 1.25rem; color: var(--text-muted); font-size: 0.97rem; margin: 0; }

/* --- 13. Banda CTA ------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.2rem);
  background: linear-gradient(135deg, #2C0D12, #141416 62%);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -60% 20% auto;
  height: 380px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(223, 30, 49, 0.24), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 0.6rem; }
.cta-band p { color: var(--text-muted); font-size: var(--step-1); max-width: 55ch; margin: 0 auto 2rem; }

/* --- 14. Formulario ------------------------------------------------------ */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; min-width: 0; gap: 0.42rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--text); }
.field label .req { color: var(--brand-text); }
.field .hint { font-size: 0.79rem; color: var(--text-dim); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.82rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: var(--step-0);
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393A6B8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 17px;
  padding-right: 2.6rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-text);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--alerta); }
.field__error { font-size: 0.79rem; color: var(--alerta); display: none; }
.field.has-error .field__error { display: block; }

.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.65rem; }
.field--check input { width: 18px; height: 18px; margin-top: 0.22rem; accent-color: var(--brand-text); padding: 0; }
.field--check label { font-weight: 500; font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }
.field--check .field__error { grid-column: 1 / -1; }

.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: minmax(0, 1fr); } }

.form__note { font-size: 0.82rem; color: var(--text-dim); text-align: center; margin: 0; }

.form__ok {
  display: none;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
}
.form__ok.is-visible { display: flex; }
.form__ok svg { width: 20px; height: 20px; color: #FFFFFF; flex: none; margin-top: 0.15rem; }

/* Honeypot antispam */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* --- 15. Contacto -------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
}

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.15rem; }
.contact-list li { display: flex; gap: 0.95rem; margin: 0; }
.contact-list .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  flex: none;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 11px;
  color: var(--brand-text);
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list .k {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}
.contact-list .v { font-weight: 600; color: var(--text); font-size: 1.02rem; overflow-wrap: anywhere; }
.contact-list .v a { color: var(--text); }
.contact-list .v a:hover { color: var(--brand-text); }
.contact-list .sub { font-size: 0.85rem; color: var(--text-muted); font-weight: 450; }

/* --- 16. Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  font-size: 0.93rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__about p { color: var(--text-muted); font-size: 0.91rem; max-width: 34ch; margin: 1rem 0 1.25rem; }
.footer__col h4 {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer__col li { margin: 0; }
.footer__col a { color: var(--text-muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--brand-text); }

.socials { display: flex; gap: 0.55rem; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text-muted);
  background: var(--surface);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease), transform 0.22s var(--ease);
}
.socials a:hover { color: var(--brand-text); border-color: var(--brand-line); background: var(--brand-soft); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.83rem;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__bottom a { color: var(--text-dim); }
.footer__bottom a:hover { color: var(--brand-text); }

/* --- 17. Botón flotante WhatsApp ---------------------------------------- */
.wa-float {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.6rem);
  bottom: clamp(0.9rem, 3vw, 1.6rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  background: var(--wa);
  color: var(--wa-fg);
  font-weight: 650;
  font-size: 0.95rem;
  border-radius: 100px;
  box-shadow: 0 12px 32px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background 0.2s var(--ease);
}
/* Solo se esconde y aparece con scroll si el JavaScript está activo. */
.js .wa-float { transform: translateY(140%); opacity: 0; }
.js .wa-float.is-visible { transform: none; opacity: 1; }
.wa-float:hover { background: var(--wa-dark); color: var(--wa-fg); }
.wa-float svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 480px) {
  .wa-float span { display: none; }
  .wa-float { padding: 0.95rem; }
}

/* --- 18. Cabecera de página interna ------------------------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.8rem, 6vw, 4.5rem) clamp(2.2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--border-soft);
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -50% 30% auto -10%;
  height: 520px;
  background: radial-gradient(50% 55% at 30% 50%, rgba(223, 30, 49, 0.18), transparent 72%);
  pointer-events: none;
}
.page-head > .container { position: relative; }
.page-head h1 { max-width: 20ch; }
.page-head .lede { max-width: 62ch; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.crumbs li { margin: 0; display: flex; align-items: center; gap: 0.45rem; }
.crumbs li + li::before { content: "/"; color: var(--border); }
.crumbs a { color: var(--text-muted); }

/* --- 19. Contenido largo / legal ---------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.6rem; }
.prose h3 { margin-top: 1.9rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); }
.prose li::marker { color: var(--brand-text); }

/* --- 20. Listas con tilde y avisos --------------------------------------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.6rem; }
.ticks li {
  position: relative;
  margin: 0;
  padding-left: 1.85rem;
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-text);
  font-weight: 800;
  font-size: 0.95em;
}
.ticks strong { color: var(--text); font-weight: 650; }

.note {
  display: flex;
  gap: 0.9rem;
  padding: 1.2rem 1.35rem;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.note svg { width: 20px; height: 20px; color: var(--brand-text); flex: none; margin-top: 0.2rem; }
.note strong { color: var(--text); }

/* Bloque de texto + lista a dos columnas */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* --- 21. Utilidades y animación ----------------------------------------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.1rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* La animación de entrada solo se aplica si hay JavaScript: si el script
   no carga, el contenido igual se ve. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .wa-float, .cta-band, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
}
