/* Informática Chaco — estilos del sitio público.
   Tokens según la Guía de marca Horizon Mobile v1.0 (sección 07). Sin frameworks ni build. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700.woff2") format("woff2"); }

:root {
  --brand-amber-700: #8C5200;
  --brand-amber-500: #CD7A00;
  --brand-orange-400: #FB9600;
  --brand-gray: #808080;
  --neutral-900: #1E1912;
  --neutral-600: #5A5A5A;
  --neutral-100: #F2EADF;
  --neutral-50: #FAF7F2;
  --white: #FFFFFF;
  --gradient-symbol: linear-gradient(45deg, #8C5200 0%, #CD7A00 100%);
  --gradient-app: linear-gradient(45deg, #8C5200 0%, #FB9600 100%);
  --font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --line: #E4DACB;          /* borde sobre Claro/Arena (derivado de Arena, solo para líneas) */
  --line-dark: rgba(250, 247, 242, .14);
  --radius: 6px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-900);
  background: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-amber-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--neutral-900); }
:focus-visible { outline: 2px solid var(--brand-amber-700); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--neutral-900); color: var(--white); padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--sand { background: var(--neutral-100); }
.section--white { background: var(--white); }
.section--dark { background: var(--neutral-900); color: var(--neutral-50); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .875rem; font-weight: 500; color: var(--brand-amber-700);
  margin: 0 0 18px; letter-spacing: .01em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand-orange-400); }
.section--dark .eyebrow, .hero .eyebrow { color: var(--brand-orange-400); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--neutral-600); line-height: 1.65; max-width: 40em; }
.section--dark .lead { color: rgba(250, 247, 242, .78); }
.muted { color: var(--neutral-600); }
.small { font-size: .875rem; }
.prose { max-width: 42em; }
.prose p, .prose li { color: #2E2820; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand-orange-400); color: var(--neutral-600); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 500 .95rem/1 var(--font-family);
  border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--brand-orange-400); color: var(--neutral-900); }
.btn--primary:hover { background: #E88A00; color: var(--neutral-900); }
.btn--dark { background: var(--neutral-900); color: var(--neutral-50); }
.btn--dark:hover { background: #3A3228; color: var(--white); }
.btn--outline { border-color: currentColor; color: var(--neutral-900); background: transparent; }
.btn--outline:hover { background: var(--neutral-900); color: var(--neutral-50); border-color: var(--neutral-900); }
.btn--light { border-color: rgba(250, 247, 242, .6); color: var(--neutral-50); background: transparent; }
.btn--light:hover { background: var(--neutral-50); color: var(--neutral-900); border-color: var(--neutral-50); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--brand-amber-700); }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.section--dark .link-arrow { color: var(--brand-orange-400); }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--neutral-900); font-weight: 600; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-dropdown > button {
  font: 500 .95rem var(--font-family); color: var(--neutral-900); text-decoration: none;
  padding: 10px 14px; border-radius: var(--radius); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav-dropdown > button:hover { background: var(--neutral-50); }
.nav > a[aria-current="page"], .nav-dropdown.is-current > button { color: var(--brand-amber-700); }
.nav .nav-cta { margin-left: 10px; background: var(--neutral-900); color: var(--neutral-50); padding: 0 18px; }
.nav .nav-cta:hover { background: #3A3228; color: var(--white); }
.nav-dropdown { position: relative; }
.nav-dropdown > button::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 360px;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 18px 40px -18px rgba(30, 25, 18, .25);
  padding: 8px; display: none;
}
/* Puente invisible sobre el hueco entre el botón y el menú: el mouse lo cruza sin que se cierre. */
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-dropdown.is-open .nav-menu { display: block; }
.nav-menu a { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 6px; text-decoration: none; color: var(--neutral-900); }
.nav-menu a:hover { background: var(--neutral-50); }
.nav-menu img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; object-position: left center; }
.nav-menu strong { display: block; font-weight: 600; font-size: .95rem; }
.nav-menu span { display: block; overflow-wrap: anywhere; font-size: .8rem; color: var(--neutral-600); line-height: 1.4; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--neutral-900); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .site-header .container { height: 64px; }
  .brand img { height: 34px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 64px 0 0 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
    overflow-y: auto; display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a, .nav-dropdown > button { padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; width: 100%; justify-content: space-between; }
  .nav-dropdown > button::after { transform: rotate(45deg); }
  .nav-menu { position: static; min-width: 0; box-shadow: none; border: 0; padding: 4px 0 8px; display: block; }
  .nav-menu a { padding: 10px 0; }
  .nav .nav-cta { margin: 20px 0 0; justify-content: center; border: 0; border-radius: var(--radius); min-height: 52px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--neutral-50); background: var(--neutral-900); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,25,18,.92) 0%, rgba(30,25,18,.78) 38%, rgba(30,25,18,.25) 72%, rgba(30,25,18,.05) 100%);
}
.hero .container { position: relative; min-height: min(82vh, 760px); display: flex; flex-direction: column; justify-content: center; padding-top: 96px; padding-bottom: 96px; }
.hero__content { max-width: 640px; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero p.lead { color: rgba(250, 247, 242, .85); margin-bottom: 36px; }
@media (max-width: 720px) {
  .hero__media::after { background: linear-gradient(180deg, rgba(30,25,18,.55) 0%, rgba(30,25,18,.88) 55%, rgba(30,25,18,.95) 100%); }
  .hero .container { min-height: 0; padding-top: 140px; padding-bottom: 56px; }
}

/* ---------- Cifras ---------- */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 36px 28px 36px 0; display: flex; flex-direction: column; gap: 6px; }
.facts li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.facts strong { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--brand-amber-700); }
.facts span { color: var(--neutral-600); font-size: .9rem; line-height: 1.45; }
@media (max-width: 860px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li, .facts li + li { padding: 24px 16px 24px 0; border-left: 0; }
  .facts li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Encabezado de sección ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--neutral-600); }
.section--dark .section-head p { color: rgba(250,247,242,.75); }
.section-head--stack { grid-template-columns: 1fr; max-width: 760px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Productos (inicio) ---------- */
.product-lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(40px, 5vw, 64px); }
.product-lead__logo { height: 56px; width: auto; margin-bottom: 24px; }
.product-lead p { color: var(--neutral-600); }
/* Captura de pantalla: solo un borde fino y una sombra suave (sin barra de ventana). */
.screen { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 40px -28px rgba(30,25,18,.35); overflow: hidden; line-height: 0; }
.screen img { width: 100%; height: auto; display: block; }
.product-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.product-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.product-row:hover { background: linear-gradient(90deg, transparent, rgba(242,234,223,.6), transparent); }
.product-row img { height: 44px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; }
.product-row p { margin: 0; color: var(--neutral-600); }
.product-row h3 { font-size: 1.1rem; margin: 0 0 4px; }
@media (max-width: 760px) {
  .product-lead { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Rubros (mosaico) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.tile { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--neutral-900); color: var(--white); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.03); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(30,25,18,.85) 100%); }
.tile figcaption { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.mosaic .tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic .tile:nth-child(1) figcaption { font-size: 1.35rem; bottom: 22px; left: 24px; }
.mosaic .tile:nth-child(4), .mosaic .tile:nth-child(5), .mosaic .tile:nth-child(6) { grid-column: span 2; }
.mosaic .tile:nth-child(4) { grid-column: 3 / span 2; }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .mosaic .tile:nth-child(n+2) { grid-column: span 1; }
  .mosaic .tile:nth-child(6) { grid-column: span 2; }
}

/* ---------- Lista numerada (servicios en el inicio) ---------- */
.numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.numbered li::before { content: counter(n, decimal-leading-zero); font-weight: 500; color: var(--brand-amber-700); font-size: .95rem; padding-top: 3px; }
.numbered h3 { margin: 0 0 6px; }
.numbered p { margin: 0; color: var(--neutral-600); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
.split__sticky { position: sticky; top: 120px; }
@media (max-width: 860px) {
  .split, .split--even { grid-template-columns: 1fr; }
  .split__sticky { position: static; }
}
.figure-photo { border-radius: 8px; overflow: hidden; background: var(--neutral-100); }
.figure-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Novedades ---------- */
.news-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); }
.post-feature { text-decoration: none; color: inherit; display: block; }
.post-feature .figure-photo { aspect-ratio: 16 / 10; margin-bottom: 22px; }
.post-feature h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.post-feature:hover h3, .post-item:hover h3 { color: var(--brand-amber-700); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { display: block; padding: 24px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.post-item:last-child { border-bottom: 1px solid var(--line); }
.post-item h3 { font-size: 1.1rem; margin: 6px 0 8px; }
.post-item p { margin: 0; color: var(--neutral-600); font-size: .95rem; }
.date { font-size: .85rem; color: var(--neutral-600); }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 32px; }
.post-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.post-card .figure-photo { aspect-ratio: 16/10; margin-bottom: 18px; }
.post-card h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.post-card:hover h3 { color: var(--brand-amber-700); }
.post-card p { color: var(--neutral-600); font-size: .95rem; margin: 0; }

/* ---------- Llamado final ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta h2 { color: var(--white); }
.contact-lines { list-style: none; margin: 0; padding: 0; }
.contact-lines li { padding: 16px 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
.contact-lines li:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-lines span { color: rgba(250,247,242,.6); font-size: .875rem; }
.contact-lines a { color: var(--neutral-50); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--brand-orange-400); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Encabezado de página interior ---------- */
.page-head { background: var(--neutral-100); padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 18em; }
.page-head .lead { margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--neutral-600); margin-bottom: 28px; list-style: none; padding: 0; }
.breadcrumb a { color: var(--neutral-600); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--brand-gray); }

/* ---------- Página de producto ---------- */
.product-hero { background: var(--neutral-100); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 80px) 0; overflow: hidden; }
.product-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.product-hero h1 { margin-bottom: 20px; }
.product-hero h1 img { height: clamp(56px, 7vw, 84px); width: auto; }
.product-hero h1 img.is-icon { height: 72px; border-radius: 16px; }
.product-hero__media img { width: 100%; height: auto; }
.product-hero__media .figure-photo { aspect-ratio: 4/3; }
.cta-note { font-size: .875rem; color: var(--neutral-600); margin-top: 20px; max-width: 36em; }
@media (max-width: 860px) { .product-hero__grid { grid-template-columns: 1fr; } }

.feature-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.feature-tile .figure-photo { aspect-ratio: 3/2; margin-bottom: 18px; }
.feature-tile h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature-tile p { color: var(--neutral-600); margin: 0; font-size: .95rem; }
.feature-tile:first-child { grid-column: span 2; grid-row: span 2; }
.feature-tile:first-child .figure-photo { aspect-ratio: 16/10.4; }
.feature-tile:first-child h3 { font-size: 1.35rem; }
@media (max-width: 860px) {
  .feature-tiles { grid-template-columns: 1fr 1fr; }
  .feature-tile:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 520px) {
  .feature-tiles { grid-template-columns: 1fr; }
  .feature-tile:first-child { grid-column: auto; }
}
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .875rem; color: var(--neutral-600); margin-top: 10px; }

.other-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.other-products a { padding: 28px 24px 28px 0; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 14px; }
.other-products img { height: 40px; width: auto; max-width: 180px; object-fit: contain; object-position: left; }
.other-products p { margin: 0; color: var(--neutral-600); font-size: .9rem; }

/* ---------- Descargas ---------- */
.dl-group + .dl-group { margin-top: clamp(48px, 6vw, 72px); }
.dl-group h2 { font-size: 1.4rem; margin-bottom: 6px; }
.dl-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.dl-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.dl-item h3 { font-size: 1.05rem; margin: 0 0 4px; }
.dl-item p { margin: 0; color: var(--neutral-600); font-size: .95rem; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: .85rem; color: var(--neutral-600); }
.dl-meta b { font-weight: 500; color: var(--neutral-900); }
@media (max-width: 640px) { .dl-item { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.service-rows { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 80px minmax(0, 5fr) minmax(0, 6fr); gap: 24px 48px; padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.service-row__n { color: var(--brand-amber-700); font-weight: 500; padding-top: 6px; }
.service-row h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.service-row .figure-photo { aspect-ratio: 3/2; margin-top: 8px; max-width: 420px; }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; } }

/* ---------- Historia ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 160px minmax(0, 1fr) 320px; gap: 24px 48px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: start; }
.timeline__year { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 600; letter-spacing: -0.03em; color: var(--brand-amber-700); line-height: 1; }
.timeline h3 { font-size: 1.3rem; }
.timeline p { color: var(--neutral-600); margin: 0; }
.timeline .figure-photo { aspect-ratio: 4/3; }
.timeline .figure-photo img { object-fit: contain; background: var(--white); }
@media (max-width: 860px) { .timeline li { grid-template-columns: 1fr; gap: 12px; } .timeline .figure-photo { max-width: 360px; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1rem var(--font-family); color: var(--neutral-900);
  padding: 13px 14px; border: 1px solid #CFC3B2; border-radius: var(--radius); background: var(--white);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand-orange-400); outline-offset: 0; border-color: var(--brand-amber-700); }
.field-error, .validation-summary-errors { color: #A12A12; font-size: .85rem; margin-top: 6px; }
.validation-summary-errors ul { margin: 0; padding-left: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 18px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--brand-orange-400); margin-bottom: 28px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: .85rem; color: var(--neutral-600); margin-top: 22px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 500; }
.contact-card dd a { color: var(--neutral-900); text-decoration: none; }
.contact-card dd a:hover { color: var(--brand-amber-700); text-decoration: underline; }
.social { display: flex; gap: 10px; margin-top: 8px; }
.social a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--neutral-900); background: var(--white); }
.social a:hover { border-color: var(--neutral-900); }
.social svg { width: 18px; height: 18px; }
.map { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.2); }
@media (max-width: 860px) { .contact-grid, .form-grid { grid-template-columns: 1fr; } .map { height: 320px; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--neutral-900); color: rgba(250,247,242,.75); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.site-footer h2 { font-size: .85rem; font-weight: 500; color: rgba(250,247,242,.5); margin-bottom: 16px; letter-spacing: .02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--neutral-50); text-decoration: none; }
.site-footer a:hover { color: var(--brand-orange-400); }
.footer-brand { color: var(--white); font-weight: 600; font-size: 1.15rem; margin-bottom: 12px; display: block; }
.footer-brand img { height: 40px; width: auto; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(250,247,242,.5); }
.site-footer .social a { background: transparent; border-color: var(--line-dark); color: var(--neutral-50); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 20px 0 16px; border-radius: 27px;
  background: #1E1912; color: #FAF7F2; text-decoration: none; font-weight: 500; font-size: .95rem;
  box-shadow: 0 10px 30px -10px rgba(30,25,18,.5);
}
.wa-float svg { width: 26px; height: 26px; color: #25D366; }
.wa-float:hover { background: #3A3228; color: var(--white); }
@media (max-width: 640px) { .wa-float { padding: 0; width: 56px; height: 56px; justify-content: center; } .wa-float span { display: none; } }

.empty { padding: 40px 0; color: var(--neutral-600); }
.pager { display: flex; gap: 12px; justify-content: space-between; margin-top: 56px; }
.figure-photo img[src$=".png"] { object-fit: contain; background: var(--white); }

/* Imágenes ampliables (visor) */
.zoomable { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; cursor: zoom-in; }
.zoomable.screen { border: 1px solid var(--line); }
.zoomable:focus-visible { outline: 3px solid var(--brand-orange-400); outline-offset: 3px; }
.gallery .zoomable { aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.gallery .zoomable img { transition: transform .25s ease; }
.gallery .zoomable:hover img { transform: scale(1.02); }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 16, 11, .94); color: var(--neutral-50); overflow: hidden; }
.lightbox::backdrop { background: rgba(20, 16, 11, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px clamp(12px, 7vw, 96px) 48px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 4px; background: var(--white); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__caption { font-size: .95rem; color: rgba(250, 247, 242, .85); text-align: center; max-width: 60em; }
.lightbox__count { position: absolute; top: 20px; left: 24px; font-size: .9rem; color: rgba(250, 247, 242, .75); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(250, 247, 242, .25); background: rgba(30, 25, 18, .6); color: var(--neutral-50); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lightbox__btn:hover { background: rgba(30, 25, 18, .9); border-color: rgba(250, 247, 242, .6); }
.lightbox__btn:focus-visible { outline: 3px solid var(--brand-orange-400); outline-offset: 2px; }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 12px; right: 16px; font-size: 1.2rem; }
.lightbox__prev { left: 16px; top: calc(50% - 24px); }
.lightbox__next { right: 16px; top: calc(50% - 24px); }
html.lightbox-open { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox__figure { padding: 60px 8px 40px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

/* Carrusel de capturas */
.carousel { position: relative; }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 3px solid var(--brand-orange-400); outline-offset: 4px; border-radius: 8px; }
.carousel__slide { flex: 0 0 100%; margin: 0; padding: 0 2px; scroll-snap-align: start; text-align: center; }
.carousel__slide .zoomable { display: inline-block; width: auto; max-width: 100%; }
.carousel__slide img { display: block; max-width: 100%; max-height: min(68vh, 640px); width: auto; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.carousel__slide figcaption { font-size: .875rem; color: var(--neutral-600); margin-top: 12px; }
.carousel__btn { position: absolute; top: calc(50% - 40px); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .94); color: var(--neutral-900); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(30, 25, 18, .15); transition: opacity .2s; }
.carousel__btn:hover { border-color: var(--neutral-900); }
.carousel__btn:focus-visible { outline: 3px solid var(--brand-orange-400); outline-offset: 2px; }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }
.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }
.carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.carousel__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; }
.carousel__dots button[aria-current="true"] { background: var(--brand-amber-500); }
.carousel__dots button:focus-visible { outline: 2px solid var(--brand-orange-400); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .gallery .zoomable img { transition: none; } .carousel__track { scroll-behavior: auto; } }

/* Imágenes de contenido ampliables automáticamente (site.js) */
.zoomable-auto { cursor: zoom-in; }
.zoomable-auto:focus-visible { outline: 3px solid var(--brand-orange-400); outline-offset: 3px; }

/* Carrusel de tarjetas (Rubros y características con imagen): varias a la vista */
.carousel--cards .carousel__track { gap: 20px; scroll-padding-left: 0; }
.carousel--cards .carousel__slide { flex: 0 0 calc((100% - 40px) / 3); padding: 0; text-align: left; }
.carousel--cards .tile { display: block; width: 100%; height: 340px; padding: 0; border: 0; cursor: zoom-in; font: inherit; text-align: left; }
.carousel--cards .tile__caption { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: var(--white); }
.carousel--cards .feature-tile .figure-photo { width: 100%; padding: 0; border: 0; aspect-ratio: 3 / 2; margin-bottom: 16px; }
.carousel--cards .carousel__btn { top: 147px; }
.carousel--cards .carousel__dots { margin-top: 22px; }
@media (max-width: 980px) { .carousel--cards .carousel__slide { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) {
  .carousel--cards .carousel__slide { flex-basis: 84%; }
  .carousel--cards .tile { height: 280px; }
  .carousel--cards .carousel__btn { top: 117px; }
}
/* Flechas centradas sobre la foto (3:2) de las tarjetas con texto. */
.carousel--features { container-type: inline-size; }
.carousel--features .carousel__btn { top: calc((100cqw - 40px) / 9 - 23px); }
@media (max-width: 980px) { .carousel--features .carousel__btn { top: calc((100cqw - 20px) / 6 - 23px); } }
@media (max-width: 640px) { .carousel--features .carousel__btn { top: calc(28cqw - 23px); } }
