/* V2 · En la mira — la mira roja de la campaña */
:root {
  --noche: #1F1A66;
  --noche-2: #2A2380;
  --rojo: #E2231A;
  --blanco: #FFFFFF;
  --hielo: #EEF0F7;
  --texto: #1B1840;
  --suave: #55536F;
  --linea: #D8DBE8;
  --wa: #1FA855;

  --display: "Anton", "Impact", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--blanco); color: var(--texto); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .98; margin: 0; text-transform: uppercase; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid #FFC93C; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--noche); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.h2 { font-size: clamp(2.3rem, 9vw, 4rem); letter-spacing: .01em; }
.sub { color: var(--suave); margin-top: 12px; max-width: 58ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 22px; border-radius: 999px;
  font: 800 1rem/1.1 var(--body); text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178A45; }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* Header */
.top { background: var(--noche); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 62px; }
.top__logo { background: #fff; border-radius: 10px; padding: 6px 10px; }
.top__logo img { width: 138px; }
.top__wa {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none;
  font-weight: 800; background: var(--wa); border-radius: 999px; padding: 10px 16px;
}
.top__acc { display: flex; align-items: center; gap: 10px; }
.top__tel { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 800; font-size: .9rem; white-space: nowrap; }
/* En móvil no caben el número y "Cotizar": el botón de WhatsApp queda solo con el ícono */
@media (max-width: 479px) {
  .top__logo img { width: clamp(96px, 29vw, 138px); }
  .top__acc { gap: 8px; }
  .top__wa { padding: 10px; }
  .top__wa span { display: none; }
}
@media (max-width: 359px) { .top__tel .ico { display: none; } }

/* Hero */
.hero { background: var(--noche); color: #fff; overflow: hidden; }
.hero__in { display: grid; gap: 36px; padding-top: 40px; padding-bottom: 44px; }
.hero h1 { font-size: clamp(3.6rem, 17vw, 7.4rem); line-height: .9; max-width: 8ch; }
.hero__lead { margin-top: 18px; color: #CFCBF5; font-size: 1.12rem; max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__cta .btn { flex: 1 1 220px; }

/* El visor: foto circular dentro de la mira */
.visor { position: relative; width: min(86vw, 460px); aspect-ratio: 1; justify-self: center; }
.visor__foto { position: absolute; inset: 11%; border-radius: 50%; overflow: hidden; background: #fff; }
.visor__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 73% 28%; transform: scale(1.02); }
.visor__mira { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.visor__mira circle, .visor__mira line { fill: none; stroke: var(--rojo); stroke-linecap: round; }
.mira__aro { stroke-width: 5; stroke-dasharray: 120 24.5; transform-origin: 100px 100px; }
.mira__aro2 { stroke-width: 1.5; opacity: .55; }
.mira__ticks line { stroke-width: 6; }

@media (prefers-reduced-motion: no-preference) {
  .mira__aro { animation: fijar 1.1s cubic-bezier(.2, .8, .2, 1) .25s both; }
  .mira__ticks line { animation: entrar .9s cubic-bezier(.2, .8, .2, 1) .35s both; }
  .mira__ticks line:nth-child(1) { --d: 0 -26px; }
  .mira__ticks line:nth-child(2) { --d: 0 26px; }
  .mira__ticks line:nth-child(3) { --d: -26px 0; }
  .mira__ticks line:nth-child(4) { --d: 26px 0; }
}
@keyframes fijar { from { transform: rotate(-120deg) scale(1.18); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes entrar { from { translate: var(--d); opacity: 0; } to { translate: 0 0; opacity: 1; } }

/* Credenciales */
.credenciales { background: var(--noche-2); }
.credenciales__in { display: grid; gap: 14px; padding-top: 20px; padding-bottom: 20px; }
.cred { display: flex; align-items: center; gap: 14px; color: #E6E3FF; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.cred img { width: 54px; flex: none; }
.cred .cred__mp { width: 128px; }

/* Tarifas */
.tarifas { padding: 64px 0 72px; }
.tarifas .h2 { color: var(--noche); }
.tarifas__lista { margin-top: 32px; border-top: 3px solid var(--noche); }
.tarifa {
  display: grid; grid-template-columns: 96px 1fr; gap: 6px 18px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--linea);
}
.tarifa__foto {
  width: 96px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--rojo); grid-row: span 1;
}
.tarifa__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.tarifa__info h3 { font-size: 2rem; color: var(--noche); }
.tarifa__info p { display: none; }
.tarifa .btn { grid-column: 1 / -1; margin-top: 12px; }
/* En móvil la descripción va bajo la foto y el nombre */
.tarifa__info p { color: var(--suave); }
@media (max-width: 759px) {
  .tarifa { grid-template-areas: "foto nombre" "desc desc" "btn btn"; }
  .tarifa__foto { grid-area: foto; }
  .tarifa__info { display: contents; }
  .tarifa__info h3 { grid-area: nombre; }
  .tarifa__info p { display: block; grid-area: desc; margin-top: 8px; }
  .tarifa .btn { grid-area: btn; }
}

.tarifa__info h3 a { color: inherit; text-decoration: none; }
.tarifa__info h3 a:hover { text-decoration: underline; text-decoration-color: var(--rojo); text-decoration-thickness: 3px; }

/* Por tipo de recinto */
.recintos { padding: 64px 0; }
.recintos .h2 { color: var(--noche); }
.recintos__lista { display: grid; gap: 10px; margin-top: 26px; }
.recintos__lista a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px;
  padding: 14px 18px; border: 2px solid var(--noche); border-radius: 14px;
  color: var(--noche); font-weight: 800; text-decoration: none;
}
.recintos__lista a::after { content: "→"; color: var(--rojo); font-size: 1.3rem; }
.recintos__lista a:hover { background: var(--noche); color: #fff; }
.recintos--otros { background: var(--hielo); }

/* Páginas de servicio y de recinto */
.pag-hero .wrap { padding-top: 34px; padding-bottom: 48px; }
.pag-hero h1 { font-size: clamp(2.6rem, 11vw, 4.8rem); max-width: 16ch; }
.migas { font-size: .92rem; color: #CFCBF5; margin-bottom: 18px; }
.migas a { color: #fff; }
.pag-cuerpo { padding: 56px 0 64px; }
.pag-cuerpo .h2 { color: var(--noche); }
.pag-intro { display: grid; gap: 14px; max-width: 64ch; font-size: 1.12rem; }
.pag-cuerpo .tarifas__lista, .pag-cuerpo .lista-mira { margin-top: 26px; }
.pag-intro + .bloque, .pag-cuerpo .bloque + .bloque { margin-top: 56px; }
.estanques__mas { color: #fff; font-weight: 700; }

/* Pie: enlaces */
.pie__links { display: grid; gap: 22px; font-size: .95rem; line-height: 1.9; }
.pie__links h2 { font: 800 .8rem/1.2 var(--body); letter-spacing: .08em; color: #fff; margin-bottom: 6px; }
.pie__links a { color: #CFCBF5; text-decoration: none; }
.pie__links a:hover { color: #fff; text-decoration: underline; }

/* Empresas */
.empresas { background: var(--hielo); }
.empresas__in { display: grid; gap: 28px; padding-top: 60px; }
.empresas .h2 { color: var(--noche); }
.empresas__dest { font: 400 clamp(1.7rem, 7vw, 2.4rem)/1.05 var(--display); color: var(--rojo); text-transform: uppercase; margin-top: 10px; }
.lista-mira { display: grid; gap: 10px; margin: 22px 0 26px; }
.lista-mira li { position: relative; padding-left: 30px; }
.lista-mira li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid var(--rojo);
  background: radial-gradient(circle, var(--rojo) 0 2.5px, transparent 3px);
}
.empresas__img { width: 100%; max-width: 420px; justify-self: center; align-self: end; }

/* Estanques */
.estanques { position: relative; color: #fff; isolation: isolate; }
.estanques__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; z-index: -2; }
.estanques::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 16, 70, .25) 0%, rgba(20, 16, 70, .92) 62%);
}
.estanques__in { padding-top: 260px; padding-bottom: 56px; display: grid; gap: 16px; justify-items: start; }
.estanques p { max-width: 46ch; color: #E3E1FA; }

/* Clientes */
.clientes { padding: 64px 0; }
.clientes .h2 { color: var(--noche); }
.clientes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.clientes__item { display: grid; place-items: center; height: 76px; padding: 10px; background: #fff; border: 1px solid var(--linea); border-radius: 12px; }
.clientes__item img { width: auto; height: auto; max-width: 100%; max-height: 54px; }

/* FAQ */
.faq-sec { background: var(--noche); color: #fff; padding: 64px 0 72px; }
.faq-sec__in { display: grid; gap: 26px; }
.faq__item { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative;
  font-weight: 800; font-size: 1.08rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 3px; background: var(--rojo); border-radius: 2px;
  transition: transform .2s;
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__item p { padding: 0 0 20px; color: #CFCBF5; max-width: 68ch; }

/* Cobertura */
.cobertura { padding: 56px 0; background: var(--hielo); }
.cobertura .h2 { color: var(--noche); font-size: clamp(2rem, 7vw, 3rem); }
.cobertura p { margin-top: 14px; color: var(--suave); font-size: .98rem; max-width: 80ch; }

/* Pie */
.pie { background: var(--noche); color: #CFCBF5; padding: 44px 0 110px; }
.pie__in { display: grid; gap: 18px; }
.pie img { width: 180px; }
.pie address { font-style: normal; line-height: 1.7; }
.pie a { color: #fff; }
.pie__copy { font-size: .9rem; opacity: .7; }

/* Botón flotante */
.flotante {
  position: fixed; z-index: 30; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
  background: var(--wa); color: #fff; border-radius: 999px; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 28px rgba(14, 80, 40, .35);
  transition: opacity .2s, transform .2s;
}
.flotante--oculto { opacity: 0; transform: translateY(20px); pointer-events: none; }

@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .top__logo img { width: 170px; }
  .top__acc { gap: 22px; }
  .top__tel { font-size: 1rem; }
  /* Los dos teléfonos en una fila del mismo ancho; WhatsApp abajo a todo el ancho */
  .hero__cta .btn--wa { order: 1; flex-basis: 100%; }
  .credenciales__in { grid-template-columns: auto auto; justify-content: start; gap: 48px; }
  .tarifa {
    grid-template-columns: 120px 1fr auto; gap: 28px; padding: 30px 0;
  }
  .tarifa__foto { width: 120px; }
  .tarifa__info p { display: block; margin-top: 8px; max-width: 46ch; }
  .tarifa__info h3 { font-size: 2.4rem; }
  .tarifa .btn { grid-column: auto; margin: 0; }
  .empresas__in { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .empresas__txt { padding-bottom: 60px; }
  .estanques__in { padding-top: 140px; padding-bottom: 140px; }
  .estanques::before { background: linear-gradient(90deg, rgba(20, 16, 70, .94) 0%, rgba(20, 16, 70, .7) 45%, rgba(20, 16, 70, 0) 75%); }
  .estanques .h2 { max-width: 14ch; }
  .clientes__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .recintos__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pie__links { grid-template-columns: auto auto; gap: 48px; }
  .pie { padding-bottom: 44px; }
  .pie__in { grid-template-columns: auto 1fr auto; align-items: start; gap: 40px; }
  .pie__copy { grid-column: 1 / -1; }
  .flotante { left: auto; right: 24px; bottom: 24px; padding: 0 24px; }
}

@media (min-width: 1020px) {
  .hero__in { grid-template-columns: 1.1fr 1fr; align-items: center; padding-top: 64px; padding-bottom: 72px; }
  .faq-sec__in { grid-template-columns: 1fr 2fr; }
  .clientes__grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
