@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --piedra: #e4e2dd;      /* fondo: gris de la grauwaca */
  --polvo: #f3f2ef;       /* superficies claras */
  --grafito: #25282b;     /* texto, pie y carteles */
  --gris: #5d6166;        /* texto secundario */
  --ocre: #9a6b3f;        /* tierra: detalles */
  --azul: #001475;        /* el del logo */
  --azul-hover: #000f5a;
  --azul-noche: #000b45;  /* pie */
  --azul-claro: #c9d0ee;  /* texto secundario sobre azul */
  --linea: #c9c6bf;
  --ancho: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texto: "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--piedra); color: var(--grafito); font: 400 1.0625rem/1.6 var(--texto); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-underline-offset: .18em; }
a:hover { color: var(--azul-hover); }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--grafito); color: #fff; padding: .6rem 1rem; z-index: 100; }
.saltar:focus { left: 1rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 600; }
p, ul, ol { margin: 0 0 1em; }
.prosa { max-width: 40rem; }
.prosa li { margin-bottom: .4em; }
.entradilla { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; max-width: 38rem; }
.envoltorio { max-width: var(--ancho); margin-inline: auto; padding-inline: var(--gutter); }
.seccion { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.seccion--clara { background: var(--polvo); }
.seccion--oscura { background: var(--azul); color: #fff; }
.seccion--oscura a { color: #fff; }

/* Botones */
.boton { display: inline-block; font: 600 1.05rem/1 var(--texto); padding: .95rem 1.4rem; border: 2px solid var(--azul); background: var(--azul); color: #fff; text-decoration: none; border-radius: 2px; cursor: pointer; }
.boton:hover { background: var(--azul-hover); border-color: var(--azul-hover); color: #fff; }
.boton--linea { background: transparent; color: inherit; border-color: currentColor; }
.boton--linea:hover { background: rgba(255,255,255,.12); color: inherit; border-color: currentColor; }
.botones { display: flex; flex-wrap: wrap; gap: .75rem; }
.enlace { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* Cabecera */
.cabecera { position: relative; z-index: 20; background: var(--azul); color: #fff; }
.cabecera--sobre { position: absolute; inset: 0 0 auto; background: transparent; border: 0; color: #fff; }
.cabecera__fila { max-width: var(--ancho); margin: auto; padding: 1rem var(--gutter); display: flex; align-items: center; gap: 1.5rem; }
.marca { display: flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; margin-right: auto; }
.marca img { width: 3.25rem; height: auto; }
.marca__nombre { font: 700 1.2rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.marca:hover { color: inherit; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.menu { display: flex; align-items: center; gap: 2rem; }
.menu a { color: inherit; text-decoration: none; font-weight: 500; }
.menu ul a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em; }
.menu__tel { font: 700 1.35rem/1 var(--display); padding: .5rem .8rem; border: 2px solid currentColor; border-radius: 2px; }
.menu-boton { display: none; }
@media (max-width: 860px) {
  .menu-boton { display: block; background: none; color: inherit; border: 2px solid currentColor; font: 600 1rem/1 var(--texto); padding: .55rem .8rem; border-radius: 2px; }
  .menu { display: none; }
  .menu-abierto .menu { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0; background: var(--azul); color: #fff; padding: 1.25rem var(--gutter) 1.75rem; gap: 1.25rem; }
  .menu-abierto .menu ul { flex-direction: column; gap: 1rem; font-size: 1.2rem; }
  .marca__nombre { font-size: 1rem; }
  .marca img { width: 2.6rem; }
}

/* Portada y cabeceras con foto */
.foto-cabecera { position: relative; color: #fff; background: var(--azul); isolation: isolate; }
.foto-cabecera > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.foto-cabecera::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,11,69,.6) 0%, rgba(0,11,69,.15) 35%, rgba(0,11,69,.82) 100%); }
.foto-cabecera__texto { max-width: var(--ancho); margin: auto; padding: 9rem var(--gutter) clamp(2.5rem, 6vw, 4.5rem); }
.foto-cabecera h1 { max-width: 14ch; }
.foto-cabecera p { max-width: 36rem; font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.portada { min-height: min(92vh, 56rem); display: flex; align-items: flex-end; }
.portada h1 { font-size: clamp(3rem, 10vw, 7.5rem); text-transform: uppercase; line-height: .9; max-width: 11ch; }
.portada .foto-cabecera__texto { width: 100%; }
.migas { font-size: .95rem; margin-bottom: 1rem; opacity: .9; }
.migas a { color: inherit; }

/* Carteles de acopio: el elemento propio de la web */
.rotulos { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.rotulo { position: relative; font: 700 clamp(1.35rem, 2.6vw, 2rem)/1 var(--display); background: var(--azul); color: #fff; padding: .42em .7em .38em; border-radius: 2px; letter-spacing: .01em; white-space: nowrap;
  background-image: radial-gradient(circle at 6px 6px, #8091d6 1.6px, transparent 2.2px), radial-gradient(circle at calc(100% - 6px) 6px, #8091d6 1.6px, transparent 2.2px), radial-gradient(circle at 6px calc(100% - 6px), #8091d6 1.6px, transparent 2.2px), radial-gradient(circle at calc(100% - 6px) calc(100% - 6px), #8091d6 1.6px, transparent 2.2px); }
.rotulos--grandes .rotulo { font-size: clamp(1.8rem, 4.5vw, 3.2rem); }
.seccion--oscura .rotulo { background-color: #fff; color: var(--azul); }

/* Productos en portada y listado */
.productos { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.producto { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.producto:nth-child(even) .producto__foto { order: 2; }
.producto__foto img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; }
.producto h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; }
.producto h3 a { color: inherit; text-decoration: none; }
.producto h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 760px) { .producto { grid-template-columns: 1fr; } .producto:nth-child(even) .producto__foto { order: 0; } }

/* Ficha de producto */
.ficha-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--linea); }
.ficha-item:first-of-type { border-top: 0; }
.ficha-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px; }
.ficha-item--destacado { background: var(--polvo); padding-inline: clamp(1rem, 3vw, 2.5rem); border-top: 4px solid var(--azul); }
@media (max-width: 760px) { .ficha-item { grid-template-columns: 1fr; } .ficha-item img { aspect-ratio: 4/3; } }

/* Bloques de dos columnas */
.dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.dos--centro { align-items: center; }
.dos img { width: 100%; border-radius: 2px; }
@media (max-width: 760px) { .dos { grid-template-columns: 1fr; } }
.puntos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); margin-top: 2rem; }
.puntos h3 { border-top: 4px solid var(--azul); padding-top: .7rem; }
@media (max-width: 640px) { .puntos { grid-template-columns: 1fr; } }

/* Cifras de producción */
.cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 2rem 0 0; border-top: 1px solid currentColor; }
.cifras div { padding: 1.25rem 1.25rem 0 0; }
.cifras dt { order: 2; font-size: .98rem; }
.cifras dd { margin: 0 0 .35rem; font: 700 clamp(2rem, 4.2vw, 3.2rem)/1 var(--display); }
.cifras dd small { font-size: .5em; font-weight: 600; margin-left: .15em; }
.cifras div { display: flex; flex-direction: column; }
@media (max-width: 760px) { .cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; } }

/* Obras */
.obras { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); }
.obra img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; margin-bottom: 1rem; background: var(--linea); }
.obra h3 { font-size: 1.55rem; }
.obra dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; font-size: .95rem; margin: 0; color: var(--gris); }
.obra dt { font-weight: 600; color: var(--grafito); }
.obra dd { margin: 0; }
.obra p { margin-bottom: .8rem; }

/* Galería */
.galeria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.galeria img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.galeria img:first-child { grid-column: span 2; grid-row: span 2; height: 100%; }
@media (max-width: 640px) { .galeria { grid-template-columns: 1fr 1fr; } .galeria img:first-child { grid-row: auto; } }

/* Clientes */
.clientes { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 2rem; font: 600 1.35rem/1.3 var(--display); }

/* Llamada a contactar */
.llamada { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; }
.llamada__tel { font: 700 clamp(2.4rem, 6vw, 4.5rem)/1 var(--display); color: inherit; text-decoration: none; display: block; }
.llamada__tel:hover { color: inherit; text-decoration: underline; }

/* Contacto y formulario */
.contacto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 860px) { .contacto { grid-template-columns: 1fr; } }
.datos dt { font-weight: 600; margin-top: 1.1rem; }
.datos dd { margin: 0; }
.datos .grande { font: 700 1.9rem/1.15 var(--display); }
.formulario { background: var(--polvo); padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: 2px; }
.campo { margin-bottom: 1.1rem; }
.campo label { display: block; font-weight: 600; margin-bottom: .3rem; }
.campo .opcional { font-weight: 400; color: var(--gris); }
.campo input, .campo textarea { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #a9a59d; border-radius: 2px; background: #fff; color: var(--grafito); }
.campo textarea { min-height: 9rem; resize: vertical; }
.dos-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .dos-campos { grid-template-columns: 1fr; } }
.trampa { position: absolute; left: -5000px; }
.casilla { display: flex; gap: .6rem; align-items: flex-start; }
.casilla input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; accent-color: var(--azul); }
.info-datos { font-size: .9rem; color: var(--gris); border-top: 1px solid var(--linea); padding-top: 1rem; margin-top: 1.25rem; }
.info-datos p { margin-bottom: .4rem; }
.aviso-error { background: #f6e1dc; border-left: 4px solid #a2321f; padding: .8rem 1rem; margin-bottom: 1.25rem; }

/* Pie */
.pie { background: var(--azul-noche); color: var(--azul-claro); font-size: .98rem; padding-top: 3.5rem; }
.pie a { color: #fff; }
.pie ul { list-style: none; padding: 0; }
.pie__rejilla { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.pie__nombre { font: 700 1.3rem/1.2 var(--display); color: #fff; }
.pie__rejilla li { margin-bottom: .4rem; }
.pie__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.18); padding-block: 1.25rem; font-size: .9rem; }
.pie__legal ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; }
.pie__legal p { margin: 0; }

/* Aviso de cookies */
.cookies { position: fixed; inset: auto 0 0; z-index: 50; padding: var(--gutter); pointer-events: none; }
.cookies__caja { pointer-events: auto; max-width: 44rem; background: var(--azul); color: #fff; padding: 1.25rem 1.5rem; border-radius: 2px; box-shadow: 0 10px 40px rgba(0,0,0,.35); font-size: .97rem; }
.cookies__caja a { color: #fff; }
.cookies__titulo { font: 700 1.4rem/1 var(--display); margin-bottom: .5rem; }
.cookies__opciones { display: grid; gap: .5rem; margin-bottom: 1rem; }
.cookies__botones { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .5rem; }
.boton--claro { background: #fff; color: var(--azul); border-color: #fff; }
.boton--claro:hover { background: var(--azul-claro); border-color: var(--azul-claro); color: var(--azul-noche); }
.cookies[hidden], .cookies [hidden] { display: none; }

/* Textos legales */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.9rem; margin-top: 2.2rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; margin-bottom: 1.5rem; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--linea); padding: .5rem .5rem .5rem 0; vertical-align: top; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.mas-arriba { margin-top: 2rem; }
.sellos { max-width: 18rem; margin-inline: auto; background: #fff; padding: 1.5rem; }
@media (max-width: 760px) { .legal table { display: block; overflow-x: auto; } }
@media (max-width: 760px) { .pie__rejilla { grid-template-columns: 1fr; } }

/* Más azul */
h2 { color: var(--azul); }
.seccion--oscura h2, .foto-cabecera h1 { color: #fff; }
.cifras dd { color: var(--azul); }
.seccion--oscura .cifras dd { color: #fff; }
.datos .grande a { color: var(--azul); }
.obra dt { color: var(--azul); }

/* Toques modernos */
.cabecera--sobre { position: fixed; transition: background-color .25s ease, box-shadow .25s ease; }
.cabecera--sobre.fijada { background: rgba(0, 20, 117, .96); box-shadow: 0 6px 24px rgba(0, 11, 69, .25); }
.cabecera:not(.cabecera--sobre) { position: sticky; top: 0; }
.fijada .cabecera__fila { padding-block: .6rem; }
.cabecera__fila { transition: padding .25s ease; }

.portada .foto-cabecera__texto > * { animation: subir .8s cubic-bezier(.2,.7,.2,1) both; }
.portada .foto-cabecera__texto > :nth-child(2) { animation-delay: .12s; }
.portada .foto-cabecera__texto > :nth-child(3) { animation-delay: .24s; }
@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.producto__foto, .vecinos a { display: block; overflow: hidden; border-radius: 4px; }
.producto__foto img, .vecinos img { transition: transform .5s ease; }
.producto__foto:hover img, .vecinos a:hover img { transform: scale(1.04); }
.producto__foto img, .ficha-item img, .obra img, .dos img { border-radius: 4px; }

.vecinos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.vecinos a { position: relative; color: #fff; text-decoration: none; }
.vecinos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.vecinos a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,11,69,.85)); }
.vecinos span { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1; font: 700 clamp(1.3rem, 2.2vw, 1.7rem)/1.05 var(--display); }
@media (max-width: 640px) { .vecinos { grid-template-columns: 1fr; } }

.boton { border-radius: 4px; transition: background-color .2s ease, transform .2s ease; }
.boton:hover { transform: translateY(-1px); }
.formulario { border-radius: 6px; box-shadow: 0 12px 40px rgba(0, 11, 69, .08); }
.campo input:focus, .campo textarea:focus { outline: 3px solid rgba(0, 20, 117, .35); outline-offset: 0; border-color: var(--azul); }
@media (prefers-reduced-motion: reduce) { .portada .foto-cabecera__texto > * { animation: none; } .producto__foto:hover img, .vecinos a:hover img, .boton:hover { transform: none; } }

/* ===== Efectos (solo CSS/JS propios) ===== */
/* Transición suave entre páginas (navegadores modernos; los demás navegan normal) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-salir .25s ease both; }
::view-transition-new(root) { animation: vt-entrar .35s ease both; }
@keyframes vt-salir { to { opacity: 0; } }
@keyframes vt-entrar { from { opacity: 0; transform: translateY(8px); } }
.cabecera { view-transition-name: cabecera; }

/* Zoom lento en las fotos de cabecera */
.foto-cabecera > img { animation: kenburns 18s ease-out both; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Aparición al bajar: solo si hay JavaScript (clase .js en <html>) */
.js .revelar { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--retardo, 0s); }
.js .revelar.visible { opacity: 1; transform: none; }
.js .rotulos .rotulo { opacity: 0; transform: translateY(-14px) rotate(-3deg); transition: opacity .45s ease, transform .55s cubic-bezier(.3,1.6,.5,1); }
.js .rotulos.visible .rotulo { opacity: 1; transform: none; }
.js .rotulos.visible .rotulo:nth-child(2) { transition-delay: .07s; } .js .rotulos.visible .rotulo:nth-child(3) { transition-delay: .14s; }
.js .rotulos.visible .rotulo:nth-child(4) { transition-delay: .21s; } .js .rotulos.visible .rotulo:nth-child(5) { transition-delay: .28s; }
.js .rotulos.visible .rotulo:nth-child(6) { transition-delay: .35s; } .js .rotulos.visible .rotulo:nth-child(7) { transition-delay: .42s; }
.rotulo { transition: transform .2s ease; }
.rotulos.visible .rotulo:hover { transform: translateY(-2px) rotate(-1.5deg); }
.cifras dd { font-variant-numeric: tabular-nums; }
.obra { transition: transform .3s ease; }
.obra:hover { transform: translateY(-4px); }
.obra img { transition: filter .3s ease; }
.obra:hover img { filter: saturate(1.15); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .foto-cabecera > img { animation: none; }
  .js .revelar, .js .rotulos .rotulo { opacity: 1; transform: none; transition: none; }
  .obra:hover { transform: none; }
}
.foto-cabecera { overflow: hidden; }

/* Calculadora */
.calculadora { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .calculadora { grid-template-columns: 1fr; } }
.campo select { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #a9a59d; border-radius: 2px; background: #fff; color: var(--grafito); }
.calc-modo { border: 0; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .4rem; }
.calc-modo legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
.dos-campos[data-modo] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .dos-campos[data-modo] { grid-template-columns: 1fr 1fr; } }
.calc-resultado { position: sticky; top: 6rem; background: var(--azul); color: #fff; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 6px; }
.calc-etiqueta { margin: 0 0 .25rem; color: var(--azul-claro); }
.calc-toneladas { font: 700 clamp(3.5rem, 9vw, 6rem)/1 var(--display); margin: 0 0 .5rem; font-variant-numeric: tabular-nums; }
.calc-toneladas small { font-size: .35em; font-weight: 600; }
.calc-detalle { font: 600 1.35rem/1.2 var(--display); margin-bottom: 1rem; }
.calc-camiones { display: flex; flex-wrap: wrap; gap: .35rem; color: #fff; min-height: 1.6rem; margin-bottom: 1.25rem; align-items: center; }
.calc-camiones svg { width: 2.6rem; height: auto; animation: llegar .35s ease both; }
.calc-camiones span { font: 700 1.2rem var(--display); }
@keyframes llegar { from { opacity: 0; transform: translateX(-12px); } }
.calc-aviso { font-size: .9rem; color: var(--azul-claro); }
.calc-llamada { margin-top: 2.5rem; font: 700 1.6rem/1.2 var(--display); }
.boton--linea-azul { background: transparent; color: var(--azul); border-color: var(--azul); }
.boton--linea-azul:hover { background: var(--azul); color: #fff; }
@media (prefers-reduced-motion: reduce) { .calc-camiones svg { animation: none; } }

/* WhatsApp */
.whatsapp { position: fixed; z-index: 40; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: .5rem; background: #1d8f4e; color: #fff; text-decoration: none; font-weight: 600; padding: .8rem 1.1rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 11, 69, .25); transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 11, 69, .3); }
.whatsapp svg { width: 1.4rem; height: 1.4rem; }
.cookies:not([hidden]) ~ .whatsapp { display: none; }
@media (max-width: 520px) { .whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .whatsapp { padding: .95rem; } }

/* Fracciones a tamaño aproximado */
.rotulo--activo { padding: 0; }
.rotulo-boton { all: unset; display: block; cursor: pointer; padding: .42em .7em .38em; border-radius: 2px; }
.rotulo-boton:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; }
.rotulo:has(.rotulo-boton[aria-pressed="true"]) { background-color: var(--ocre); }
.tamano-pista { font-weight: 600; color: var(--azul); }
.tamano { background: var(--polvo); border-radius: 6px; padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: 0 8px 30px rgba(0, 11, 69, .08); }
.tamano-titulo { font: 700 1.5rem/1 var(--display); color: var(--azul); margin-bottom: .75rem; }
.tamano-lote { display: flex; flex-wrap: wrap; align-items: center; gap: 1mm; margin-bottom: 1rem; }
.tamano-lote svg { animation: caer .45s cubic-bezier(.3,1.5,.5,1) both; }
.tamano-lote svg:nth-child(3n) { animation-delay: .05s; } .tamano-lote svg:nth-child(3n+1) { animation-delay: .1s; }
@keyframes caer { from { opacity: 0; transform: translateY(-10px) rotate(-20deg); } }
.piedra { stroke: rgba(0,0,0,.25); stroke-width: .03; stroke-linejoin: round; }
.piedra.t0 { fill: #4a4d52; } .piedra.t1 { fill: #6b6e72; } .piedra.t2 { fill: #34373b; }
.tamano-ref { display: flex; align-items: center; gap: .8rem; font-size: .88rem; color: var(--gris); border-top: 1px solid var(--linea); padding-top: .8rem; }
.tamano-ref svg { flex: none; }
.moneda { fill: #d8b25a; stroke: #a8862f; stroke-width: .06; }
@media (prefers-reduced-motion: reduce) { .tamano-lote svg { animation: none; } .whatsapp:hover { transform: none; } }

/* Proyector de cine antiguo (fotos de 1969 en adelante).
   Sin JavaScript se ven todas las fotos en cuadrícula. */
.proyector { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: .5rem; }
.proyector__foto { margin: 0; }
.proyector__foto img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.proyector__foto figcaption { font-size: .9rem; color: var(--gris); padding-top: .3rem; }
.proyector__grano, .proyector__rayas, .proyector__pausa { display: none; }

.js .proyector { display: block; position: relative; aspect-ratio: 16/9; max-height: 80vh; overflow: hidden; background: #0d0b08; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); }
.js .proyector__foto { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.js .proyector__foto.activa { opacity: 1; }
.js .proyector__foto img { height: 100%; aspect-ratio: auto; filter: sepia(.45) contrast(1.08) brightness(.95); transform-origin: var(--ox, 50%) var(--oy, 50%); }
.js .proyector__foto--hoy img { filter: none; }
.js .proyector__foto.activa img { animation: camara 7s ease-in-out both; }
@keyframes camara { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(var(--dx, -2%), var(--dy, -1%)); } }
.js .proyector__foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; color: #f4ecd8; font: 600 clamp(1.1rem, 2.4vw, 1.7rem)/1.2 var(--display); letter-spacing: .02em; padding: 3rem 1.5rem 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.js .proyector::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); animation: parpadeo .18s steps(2) infinite; }
.js .proyector.hoy::after { animation: none; background: radial-gradient(ellipse at center, transparent 70%, rgba(0,0,0,.25) 100%); }
@keyframes parpadeo { 0% { opacity: .92; } 50% { opacity: 1; } }
.js .proyector__grano { display: block; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: .16; mix-blend-mode: overlay; pointer-events: none; transition: opacity 1.6s ease; }
.js .proyector.hoy .proyector__grano, .js .proyector.hoy .proyector__rayas { opacity: 0; }
.js .proyector__rayas { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity 1.6s ease;
  background: linear-gradient(90deg, transparent 0 22%, rgba(255,255,255,.18) 22.1%, transparent 22.3% 71%, rgba(0,0,0,.25) 71.1%, transparent 71.25%);
  animation: rayas 2.4s steps(6) infinite; }
@keyframes rayas { 0% { transform: translateX(0); } 20% { transform: translateX(-7%); } 40% { transform: translateX(4%); opacity: .4; } 60% { transform: translateX(-2%); opacity: 1; } 80% { transform: translateX(9%); opacity: .2; } }
.js .proyector__pausa { display: block; position: absolute; z-index: 4; top: .8rem; right: .8rem; font: 600 .9rem var(--texto); color: #fff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; }
.js .proyector__pausa:hover { background: rgba(0,0,0,.65); }
@media (max-width: 640px) { .js .proyector { aspect-ratio: 4/3; } }
@media (prefers-reduced-motion: reduce) {
  .js .proyector::after, .js .proyector__rayas, .js .proyector__foto.activa img { animation: none; }
  .js .proyector__grano { display: none; }
}
