/* ==========================================================================
   IRINDEL — Hoja de estilos principal
   Diseño moderno, responsivo, sin dependencias externas (solo Google Fonts).
   ========================================================================== */

/* ---------- Tokens de diseño ---------- */
:root {
  /* Marca (azul original de IRINDEL #2d5aae) */
  --brand-50:  #eef3fb;
  --brand-100: #d9e4f6;
  --brand-200: #b3c8ec;
  --brand-500: #2d5aae;
  --brand-600: #25498e;
  --brand-700: #1d3a72;
  --brand-900: #0d1b36;

  /* Acento eléctrico */
  --accent:     #f5b301;
  --accent-600: #d99c00;

  /* Neutros */
  --ink:      #0f172a;
  --ink-2:    #334155;
  --muted:    #64748b;
  --line:     #e2e8f0;
  --surface:  #ffffff;
  --surface-2:#f6f8fb;

  --success: #15803d;
  --danger:  #b91c1c;

  /* Tipografía */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", var(--font-sans);

  /* Espaciado y forma */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow:    0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(13, 27, 54, .35);

  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Iconos (Lucide, servidos por CDN) */
  --icon-cdn: "https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/";
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-500); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4, .h4 { font-size: 1.1rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--accent); color: var(--ink); padding: .6rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--surface-2); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }

.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-500); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.grid { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Iconos ---------- */
.i {
  --size: 20px;
  display: inline-block; flex: none;
  width: var(--size); height: var(--size);
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.i-phone    { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/phone.svg"); }
.i-mail     { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/mail.svg"); }
.i-pin      { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/map-pin.svg"); }
.i-building { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/building-2.svg"); }
.i-menu     { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/menu.svg"); }
.i-close    { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/x.svg"); }
.i-arrow    { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/arrow-right.svg"); }
.i-up       { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/arrow-up.svg"); }
.i-left     { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/chevron-left.svg"); }
.i-right    { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/chevron-right.svg"); }
.i-shield   { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/shield-check.svg"); }
.i-award    { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/award.svg"); }
.i-headset  { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/headset.svg"); }
.i-truck    { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/truck.svg"); }
.i-send     { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/send.svg"); }
.i-check    { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/circle-check.svg"); }
.i-alert    { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/circle-alert.svg"); }
.i-cable    { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/cable.svg"); }
.i-toggle   { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/toggle-right.svg"); }
.i-zap      { --icon: url("https://cdn.jsdelivr.net/npm/lucide-static@0.460.0/icons/zap.svg"); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--brand-500); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; min-height: 48px;
  border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .98rem; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), color .2s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow); background: var(--brand-600); }
.btn:active { transform: translateY(0); }
.btn .i { --size: 18px; transition: transform .2s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn--accent { --bg: var(--accent); --fg: var(--ink); }
.btn--accent:hover { background: var(--accent-600); }
.btn--ghost { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { --bg: transparent; --fg: var(--brand-500); --bd: var(--brand-200); }
.btn--outline:hover { background: var(--brand-50); }
.btn[disabled] { opacity: .65; pointer-events: none; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--brand-900); color: #c7d3ea; font-size: .86rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar a { color: #c7d3ea; }
.topbar a:hover { color: #fff; }
.topbar__group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item .i { --size: 15px; color: var(--accent); }
@media (max-width: 860px) { .topbar__address { display: none; } }
@media (max-width: 520px) { .topbar .topbar__mail { display: none; } }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: var(--accent); box-shadow: 0 6px 16px -6px rgba(45, 90, 174, .7);
}
.logo__mark .i { --size: 22px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: .04em; }
.logo__tag { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.logo--light { color: #fff; }
.logo--light:hover { color: #fff; }
.logo--light .logo__tag { color: #9fb2d6; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative; padding: .6rem 1rem; border-radius: 999px;
  color: var(--ink-2); font-weight: 600; font-size: .96rem;
}
.nav__link:hover { color: var(--brand-500); background: var(--brand-50); }
.nav__link[aria-current="page"] { color: var(--brand-500); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; translate: -50% 0;
  width: 18px; height: 3px; border-radius: 3px; background: var(--accent);
}
.nav__cta { margin-left: 10px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .i { --size: 22px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-menu { display: none; }
.nav-open .nav-toggle .i-close { display: inline-block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 24px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: .9rem 1rem; border-radius: var(--radius-sm); }
  .nav__link[aria-current="page"] { background: var(--brand-50); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__cta { margin: 8px 0 0; }
}

/* ---------- Hero / slider ---------- */
.hero { position: relative; min-height: min(88vh, 760px); color: #fff; overflow: hidden; background: var(--brand-900); }
.hero__slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.hero__slide.is-active .hero__bg img { transform: scale(1); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 27, 54, .92) 0%, rgba(13, 27, 54, .72) 45%, rgba(13, 27, 54, .25) 100%),
    linear-gradient(0deg, rgba(13, 27, 54, .6), transparent 40%);
}
.hero__content { position: relative; z-index: 2; max-width: 680px; padding-block: 96px 120px; }
.hero__content > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: .12s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: .24s; }
.hero__slide.is-active .hero__content > :nth-child(4) { transition-delay: .36s; }
.hero .eyebrow { color: var(--accent); }
.hero h1, .hero h2.hero__title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; margin-bottom: 1rem; }
.hero__title strong { color: var(--accent); font-weight: 800; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #d6e0f2; max-width: 560px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__controls {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 36px;
}
.hero__controls .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot {
  width: 34px; height: 4px; border-radius: 4px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .35); transition: background .3s, width .3s var(--ease);
}
.hero__dot[aria-current="true"] { background: var(--accent); width: 56px; }
.hero__arrows { display: flex; gap: 10px; }
.hero__arrow {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3);
  transition: background .2s;
}
.hero__arrow:hover { background: rgba(255, 255, 255, .22); }
@media (max-width: 640px) { .hero__arrows { display: none; } .hero__controls .container { justify-content: center; } }

/* ---------- Encabezado de página interna ---------- */
.page-hero { position: relative; color: #fff; background: var(--brand-900); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13, 27, 54, .94), rgba(29, 58, 114, .78) 60%, rgba(29, 58, 114, .45)); }
.page-hero .container { position: relative; padding-block: clamp(72px, 10vw, 128px) clamp(56px, 7vw, 88px); }
.page-hero h1 { color: #fff; margin-bottom: .6rem; }
.page-hero p { color: #d6e0f2; font-size: 1.12rem; max-width: 620px; margin: 0; }
.breadcrumb { display: flex; gap: .5rem; font-size: .88rem; color: #9fb2d6; margin-bottom: 1rem; }
.breadcrumb a { color: #c7d3ea; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Tarjetas de beneficios ---------- */
.feature {
  position: relative; padding: 32px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.feature__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px;
  border-radius: 16px; background: var(--brand-50); color: var(--brand-500);
  transition: background .3s, color .3s;
}
.feature:hover .feature__icon { background: var(--brand-500); color: var(--accent); }
.feature__icon .i { --size: 26px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Tarjetas de producto ---------- */
.card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-50); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__badge {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--brand-600);
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.card__badge .i { --size: 14px; }
.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }
.card__link { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.card__link .i { --size: 16px; transition: transform .2s var(--ease); }
.card__link:hover .i { transform: translateX(3px); }

.center { text-align: center; }
.mt-lg { margin-top: clamp(36px, 5vw, 56px); }

/* ---------- Marcas ---------- */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.brands--full { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.brand {
  display: grid; place-items: center; aspect-ratio: 2 / 1; padding: 14px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.brand img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; border-radius: 6px; }
.brand:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.brand:hover img { filter: none; opacity: 1; }
@media (max-width: 980px) { .brands { grid-template-columns: repeat(3, 1fr); } .brands--full { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .brands, .brands--full { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- Banda CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(120deg, var(--brand-700), var(--brand-500));
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 179, 1, .35), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: .4rem; }
.cta p { color: #d6e0f2; margin: 0; max-width: 560px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Productos: índice de categorías ---------- */
.cat-index {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cat-group {
  padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
}
.cat-group__title { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; margin-bottom: 14px; }
.cat-group__title .i { --size: 20px; color: var(--brand-500); }
.cat-group li + li { border-top: 1px dashed var(--line); }
.cat-group a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: .7rem .2rem; color: var(--ink-2); font-weight: 600; font-size: 1rem;
}
.cat-group a .i { --size: 16px; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.cat-group a:hover { color: var(--brand-500); }
.cat-group a:hover .i { transform: translateX(4px); color: var(--brand-500); }
@media (max-width: 900px) { .cat-index { grid-template-columns: 1fr; } }

/* Ficha de categoría */
.product {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.product:first-child { border-top: 0; }
.product:nth-child(even) .product__media { order: 2; }
.product__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); background: var(--brand-50); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product__media img { transform: scale(1.04); }
.product__num { font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--accent-600); letter-spacing: .1em; margin-bottom: .4rem; display: block; }
.product h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.product p { color: var(--muted); font-size: 1.04rem; }
.product__group { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-500); background: var(--brand-50); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; }
  .product:nth-child(even) .product__media { order: 0; }
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--brand-900); color: #c7d3ea;
  box-shadow: var(--shadow-lg);
}
.info-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.info-card__media img { width: 100%; height: 100%; object-fit: cover; }
.info-card__body { padding: 32px; }
.info-card h2 { color: #fff; font-size: 1.5rem; }
.info-list { display: grid; gap: 18px; margin-top: 22px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .i-wrap { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--accent); flex: none; }
.info-list .i { --size: 19px; }
.info-list strong { display: block; color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: 2px; }
.info-list a { color: #c7d3ea; }
.info-list a:hover { color: #fff; }

.form-card {
  padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.7rem; }
.form-card > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface-2);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 4px rgba(45, 90, 174, .12); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
.is-loading .i-send { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { display: none; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); margin-top: 20px; font-size: .97rem; }
.alert.is-visible { display: flex; }
.alert .i { --size: 22px; margin-top: 1px; }
.alert--success { background: #ecfdf3; color: var(--success); border: 1px solid #bbf7d0; }
.alert--error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert strong { display: block; }

.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); line-height: 0; }
.map iframe { width: 100%; height: 420px; border: 0; filter: saturate(.9); }

/* ---------- Pie de página ---------- */
.footer { background: var(--brand-900); color: #9fb2d6; font-size: .95rem; }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 72px 48px; }
@media (max-width: 980px) { .footer__main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__main { grid-template-columns: 1fr; gap: 32px; } }
.footer h3 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer p { margin: 1rem 0 0; max-width: 320px; }
.footer a { color: #c7d3ea; }
.footer a:hover { color: var(--accent); }
.footer__links li + li { margin-top: .6rem; }
.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer__contact li + li { margin-top: .85rem; }
.footer__contact .i { --size: 17px; color: var(--accent); margin-top: 4px; }
.footer__contact small { display: block; color: #7f93ba; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 22px; font-size: .86rem; }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--ink);
  background: var(--accent); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-600); }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound__code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--brand-500); margin-bottom: .5rem; }

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