/* ---------- Base común (se usa igual en todas las páginas) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -9999px; top: 0; padding: 10px 14px; z-index: 100; background: #000; color: #fff; }
.saltar:focus { left: 8px; top: 8px; }
.form__error:empty { display: none; }
[hidden] { display: none !important; }

/* Botón flotante de WhatsApp con menú */
.wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: end; gap: 10px; transition: transform .3s ease, opacity .3s ease; }
.wa.oculto { transform: translateY(110px); opacity: 0; pointer-events: none; }
.wa__boton { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: #1F8A4C; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .2s ease; }
.wa__boton:hover { transform: scale(1.06); }
.wa__boton:active { transform: scale(.95); }
.wa__boton .ico { width: 30px; height: 30px; }
.wa__menu { display: grid; gap: 6px; min-width: 230px; padding: 8px; border-radius: 16px; background: #fff; color: #1d1d1f; box-shadow: 0 14px 40px rgba(0,0,0,.25);
  transform-origin: bottom right; transform: scale(.85) translateY(10px); opacity: 0; visibility: hidden; transition: transform .22s ease, opacity .22s ease, visibility 0s .22s; }
.wa.abierto .wa__menu { transform: none; opacity: 1; visibility: visible; transition: transform .22s ease, opacity .22s ease; }
.wa__menu p { font-size: .8125rem; color: #555; padding: 6px 10px 2px; }
.wa__menu a { display: flex; align-items: center; min-height: 46px; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; background: #F1F4F2; }
.wa__menu a:hover, .wa__menu a:focus-visible { background: #DCF1E3; }

/* Movimiento al hacer scroll: solo si la persona no pidió reducirlo */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js [data-reveal].visto { opacity: 1; transform: none; }
  .js [data-cascada] > * { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-cascada].visto > * { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* ---------- SD Maipú ---------- */
:root { --negro: #0E0E10; --blanco: #FAFAF7; --azul: #2347FF; --azul-osc: #1430C9; --lima: #C8FF2E; --gris: #5D5D66; --linea: #E3E3DE;
  --display: "Anton", Impact, sans-serif; --texto: "Archivo", system-ui, sans-serif; --max: 1160px; --g: 18px; }
body { background: var(--blanco); color: var(--negro); font: 400 1.0625rem/1.6 var(--texto); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .95; text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.titulo { font-size: clamp(2.6rem, 12vw, 5rem); letter-spacing: .005em; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 13px 24px; border: 2px solid transparent; border-radius: 0; font: 800 1rem/1.2 var(--texto); text-decoration: none; text-transform: uppercase; letter-spacing: .02em; transition: transform .15s ease, box-shadow .15s ease, background-color .2s; cursor: pointer; }
.boton:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--negro); }
.boton:active { transform: none; box-shadow: none; }
.boton--azul { background: var(--azul); color: #fff; }
.boton--linea { border-color: currentColor; color: var(--blanco); }
.boton--linea:hover { box-shadow: 3px 3px 0 var(--lima); }
.boton--negro { background: var(--negro); color: #fff; }
.boton--negro:hover { box-shadow: 3px 3px 0 var(--azul); }
.boton--borde { border-color: var(--negro); color: var(--negro); }
.enlace { color: var(--azul); font-weight: 800; text-underline-offset: 5px; }

.cabecera { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--g); color: #fff; }
.marca, .pie__marca { font: 400 1.6rem/1 var(--display); color: inherit; text-decoration: none; }
.marca span, .pie__marca span { font: 800 .8rem var(--texto); margin-left: 6px; vertical-align: 6px; color: var(--lima); text-transform: uppercase; letter-spacing: .1em; }
.cabecera__ig { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; border: 2px solid rgba(255,255,255,.5); }

.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--negro); color: var(--blanco); padding: 84px var(--g) 48px; display: grid; gap: 34px; }
.hero__fondo { position: absolute; z-index: -1; right: -6%; bottom: -12%; font: 400 clamp(16rem, 90vw, 44rem)/.8 var(--display); color: transparent; -webkit-text-stroke: 2px rgba(35,71,255,.55); pointer-events: none; }
.hero__texto { display: grid; gap: 16px; justify-items: start; }
.hero__titulo { font-size: clamp(3.4rem, 17vw, 7.6rem); display: grid; }
.hero__titulo span:nth-child(2) { color: var(--lima); }
.hero__sub { color: #C9C9CF; max-width: 30em; }
.hero__beneficios { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__beneficios li { font: 800 .9rem var(--texto); text-transform: uppercase; letter-spacing: .06em; padding: 7px 12px; background: var(--azul); color: #fff; }
.hero__acciones { display: grid; gap: 10px; width: 100%; max-width: 380px; }
.hero__fotos { position: relative; height: 340px; }
.hero__fotos img { position: absolute; width: 52%; aspect-ratio: 3 / 4; object-fit: cover; border: 4px solid var(--blanco); box-shadow: 0 18px 30px -12px rgba(0,0,0,.7); }
.hero__fotos .f1 { left: 2%; top: 30px; transform: rotate(-6deg); z-index: 2; }
.hero__fotos .f2 { right: 2%; top: 0; transform: rotate(5deg); }
.hero__fotos .f3 { left: 30%; top: 120px; width: 40%; transform: rotate(2deg); z-index: 3; }

.rubros { max-width: var(--max); margin: 0 auto; padding: 64px var(--g); }
.rubros .titulo { margin-bottom: 22px; }
.rubros__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rubro { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--negro); color: #fff; }
.rubro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform .7s ease, opacity .4s; }
.rubro:hover img { transform: scale(1.06); opacity: .55; }
.rubro__texto { position: absolute; inset: auto 0 0; padding: 18px; display: grid; gap: 4px; background: linear-gradient(180deg, transparent, rgba(14,14,16,.92)); }
.rubro h3 { font-size: 2.1rem; }
.rubro p { color: #E4E4E8; font-size: .95rem; }
.rubro__link { justify-self: start; margin-top: 6px; font: 800 .9rem var(--texto); text-transform: uppercase; letter-spacing: .06em; color: var(--negro); background: var(--lima); padding: 9px 14px; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }

.consulta { padding: 0 var(--g) 64px; }
.consulta__caja { max-width: 760px; margin: 0 auto; background: var(--azul); color: #fff; padding: 28px 20px; display: grid; gap: 12px; box-shadow: 8px 8px 0 var(--negro); }
.consulta__titulo { font-size: clamp(2rem, 9vw, 3.2rem); }
.form { display: grid; gap: 12px; margin-top: 6px; }
.campo { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.campo select, .campo input { font: 600 1rem var(--texto); min-height: 52px; padding: 12px 14px; border: 2px solid var(--negro); border-radius: 0; background: #fff; color: var(--negro); width: 100%; }
.form__error { color: #fff; background: #B00020; padding: 8px 12px; font-weight: 700; }

.fotos { max-width: var(--max); margin: 0 auto; padding: 0 var(--g) 64px; }
.fotos__cab { display: grid; gap: 6px; margin-bottom: 20px; }
.fotos__grilla { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fotos__grilla li { aspect-ratio: 3 / 4; overflow: hidden; }
.fotos__grilla img { width: 100%; height: 100%; object-fit: cover; }

.visita { max-width: var(--max); margin: 0 auto; padding: 0 var(--g) 72px; display: grid; gap: 24px; }
.visita__info { display: grid; gap: 16px; align-content: start; }
address { font-style: normal; font-size: 1.15rem; font-weight: 600; }
.horarios { width: 100%; border-collapse: collapse; }
.horarios th, .horarios td { text-align: left; padding: 11px 0; border-bottom: 2px solid var(--linea); font-weight: 400; }
.horarios td { text-align: right; }
.horarios .hoy th, .horarios .hoy td { color: var(--azul); font-weight: 800; }
.hoy__marca { font-size: .72rem; background: var(--azul); color: #fff; padding: 1px 8px; margin-left: 4px; vertical-align: 2px; font-weight: 800; }
.abierto { color: var(--gris); }
.abierto--si { color: #0B7A3B; font-weight: 800; }
.visita__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.visita__acciones .boton { padding: 12px 8px; }
.visita__mapa { aspect-ratio: 4 / 3; border: 2px solid var(--negro); }
.visita__mapa iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); }

.pie { background: var(--negro); color: #C9C9CF; text-align: center; padding: 40px var(--g) 110px; display: grid; gap: 4px; }
.pie__marca { color: #fff; font-size: 2.4rem; margin-bottom: 8px; }
.pie a { color: #fff; text-underline-offset: 4px; }
.pie__brito { margin-top: 12px; font-size: .88rem; }
.wa__boton { background: var(--lima); color: var(--negro); border-radius: 0; }
.wa__menu, .wa__menu a { border-radius: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero__titulo span { display: block; animation: golpe .6s cubic-bezier(.2,1.3,.4,1) both; }
  .hero__titulo span:nth-child(2) { animation-delay: .12s; } .hero__titulo span:nth-child(3) { animation-delay: .24s; }
  .hero__sub, .hero__beneficios, .hero__acciones { animation: subir .6s .45s ease both; }
  .hero__fotos img { animation: tirar .8s cubic-bezier(.2,1.2,.4,1) both; }
  .hero__fotos .f1 { animation-delay: .3s; } .hero__fotos .f2 { animation-delay: .45s; } .hero__fotos .f3 { animation-delay: .6s; }
  .hero__fondo { animation: trazo 1.6s ease both; }
  @keyframes golpe { from { opacity: 0; transform: translateX(-40px) skewX(-8deg); } }
  @keyframes subir { from { opacity: 0; transform: translateY(14px); } }
  @keyframes tirar { from { opacity: 0; transform: translateY(80px) rotate(-18deg) scale(.8); } }
  @keyframes trazo { from { opacity: 0; transform: translateX(10%); } }
  .js .rubros__lista[data-cascada] > li { clip-path: inset(0 100% 0 0); opacity: 1; transform: none; transition: clip-path .8s cubic-bezier(.7,0,.2,1); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .rubros__lista[data-cascada].visto > li { clip-path: inset(0 0 0 0); }
  .js .consulta__caja[data-reveal] { transform: translateY(30px) rotate(-1.5deg); }
  .js .consulta__caja[data-reveal].visto { transform: none; }
}

@media (min-width: 860px) {
  :root { --g: 40px; }
  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; min-height: min(92vh, 820px); padding: 110px max(var(--g), calc((100vw - var(--max)) / 2 + var(--g))) 60px; }
  .hero__acciones { grid-auto-flow: column; width: auto; max-width: none; }
  .hero__fotos { height: 520px; }
  .hero__fotos .f3 { top: 220px; }
  .rubros__lista { grid-template-columns: repeat(4, 1fr); }
  .rubro { aspect-ratio: 3 / 4.4; }
  .consulta__caja { padding: 40px; }
  .form { grid-template-columns: 1fr 1fr; align-items: end; }
  .form .boton, .form__error { grid-column: 1 / -1; }
  .visita { grid-template-columns: 1fr 1.3fr; }
  .visita__mapa { aspect-ratio: auto; min-height: 400px; }
  .pie { padding-bottom: 48px; }
}
