/* Design: Brand | Vibe: Warm Craft (nave industrial, no gimnasio-neón) |
   Layout: Editorial Split a sangre, alternando lado | Color: Committed (su naranja)

   La banda de credenciales (5,0 · 8 · 4 · 40) roza el patrón «hero-metric», que la
   doctrina refusa por defecto. Se mantiene con motivo: (1) la banda de autoridad es
   obligatoria en toda web de la casa y tiene que llevar la nota de Google; (2) la
   alternativa simple —contarlo en prosa— entierra los cuatro datos que deciden la
   compra; (3) evita la forma tópica: sin degradado, sin tarjetas, sin iconos, solo
   cifras sobre un filete en la banda de papel.

   ==========================================================================
   CORE — demo de oportunidad · Maillo & Co
   Identidad MEDIDA de su kit real: el naranja del mural pintado en la pared de
   su nave (#C6682A), el carbón de su logotipo (#1C1C1C) y los OSB y el
   hormigón del local. Anton es la condensada de su logotipo; Montserrat, la
   que ya carga su web.
   Cero JavaScript y cero recursos externos.
   ========================================================================== */

/* --- tipografías autoalojadas -------------------------------------------- */
@font-face {
  font-family: 'Anton';
  src: url('fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;            /* Anton SOLO trae el 400: pedir más lo sintetiza */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 400 800;        /* variable */
  font-style: normal;
  font-display: swap;
}

:root {
  /* color, medido */
  --tinta: #1C1C1C;
  --tinta-suave: #4A4A4A;
  --naranja: #C6682A;          /* el del mural. MANCHA, no texto sobre blanco */
  --accion: #A8521F;           /* 5,40:1 sobre blanco: sí aguanta texto blanco */
  --accion-hover: #8F4418;
  --papel: #F6F2EE;
  --arena: #E7DFD6;
  --osb: #D2C5B6;
  --blanco: #FDFBF9;   /* tintado hacia su naranja: nunca blanco puro */
  --whatsapp: #128C7E;

  --fuente-display: 'Anton', 'Arial Narrow', system-ui, sans-serif;
  --fuente: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --medida: 34rem;             /* la prosa, acotada en rem (ch mide el «0», no una letra) */
  --contenedor: 1180px;
  --gutter: 20px;
  --curva: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blanco);
  color: var(--tinta);
  font-family: var(--fuente);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accion); text-underline-offset: 3px; }
a:hover { color: var(--accion-hover); }

:focus-visible {
  outline: 3px solid var(--accion);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--fuente-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
}
h1 { font-size: clamp(42px, 7.2vw, 88px); line-height: 0.98; }
h2 { font-size: clamp(31px, 4.6vw, 56px); line-height: 1.06; }
h3 { font-size: clamp(21px, 2.3vw, 27px); line-height: 1.18; }

p { margin: 0 0 1.05em; max-width: var(--medida); }
p:last-child { margin-bottom: 0; }

.contenedor {
  width: 100%;
  max-width: var(--contenedor);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.salta-a {
  position: absolute; left: -9999px; top: 0;
  background: var(--tinta); color: var(--blanco);
  padding: 12px 18px; z-index: 100;
}
.salta-a:focus { left: 8px; top: 8px; }

/* ==========================================================================
   Banda de aviso de demostración — UNA LÍNEA, con enlace a la derecha, y
   FUERA del <footer>. En móvil se apila y el enlace NO se esconde.
   ========================================================================== */
.aviso-demo { background: var(--tinta); color: var(--blanco); }
.aviso-demo__interior {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding-block: 11px;
  font-size: 14px; line-height: 1.45;
}
.aviso-demo__texto { margin: 0; max-width: none; }   /* ← LA CLAVE: sin tope de medida */
.aviso-demo__enlace {
  color: var(--blanco); white-space: nowrap;
  text-decoration: underline; font-weight: 600;
  display: inline-block; padding-block: 12px; margin-block: -12px;
}
@media (max-width: 720px) {
  .aviso-demo__interior { flex-direction: column; gap: 6px; }
  .aviso-demo__enlace { margin-block: -6px -12px; }
}

/* ==========================================================================
   Cabecera
   ========================================================================== */
.cabecera { border-bottom: 1px solid var(--arena); background: var(--blanco); }
.cabecera__interior {
  display: flex; align-items: center; gap: 18px;
  padding-block: 14px; flex-wrap: wrap;
}
.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--tinta); }
.marca__icono { width: 38px; height: 38px; flex: none; }
.marca__nombre {
  font-family: var(--fuente-display); font-size: 27px; line-height: 1;
  letter-spacing: 0.01em;
}
.marca__cola { display: block; font-family: var(--fuente); font-size: 9.5px;
  font-weight: 600; letter-spacing: 0.17em; color: var(--tinta-suave); margin-top: 3px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--tinta); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 11px 10px; border-radius: 999px;
  transition: background .18s var(--curva), color .18s var(--curva);
}
.nav a:hover { background: var(--papel); color: var(--accion); }
.nav__tel {
  background: var(--tinta); color: var(--blanco) !important;
  padding: 12px 20px !important; letter-spacing: 0.01em;
}
.nav__tel:hover { background: var(--accion) !important; color: var(--blanco) !important; }

@media (max-width: 880px) {
  .nav { width: 100%; margin-left: 0; justify-content: flex-start; }
  .nav a { padding: 11px 9px; font-size: 14.5px; }
}

/* ==========================================================================
   Botones
   ========================================================================== */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 14px 28px;
  border-radius: 999px;                      /* su web usa píldora (medido: 200px) */
  font-family: var(--fuente); font-size: 16px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s var(--curva), color .2s var(--curva), border-color .2s var(--curva);
}
.boton--principal { background: var(--accion); color: var(--blanco); }
.boton--principal:hover { background: var(--accion-hover); color: var(--blanco); }
.boton--contorno { background: transparent; color: var(--tinta); border-color: var(--tinta); }
.boton--contorno:hover { background: var(--tinta); color: var(--blanco); }
.boton--claro { background: var(--blanco); color: var(--tinta); }
.boton--claro:hover { background: var(--arena); color: var(--tinta); }
.boton--wa { background: var(--whatsapp); color: var(--blanco); border-color: var(--whatsapp); }
.boton--wa:hover { background: #0E6F63; color: var(--blanco); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ==========================================================================
   Hero — foto a sangre de su nave con el mural CORE pintado
   ========================================================================== */
.hero { position: relative; background: var(--tinta); color: var(--blanco); overflow: hidden; }
.hero__foto {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 50%;
}
.hero__velo {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,14,14,.93) 0%, rgba(14,14,14,.86) 42%, rgba(14,14,14,.42) 100%);
}
.hero__interior { position: relative; padding-block: clamp(64px, 11vw, 132px); }
.hero__caja { max-width: 39rem; }
.hero h1 { color: var(--blanco); }
.hero__regla { width: 84px; height: 6px; background: var(--naranja); margin: 26px 0 24px; }
.hero__texto { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.58; color: #F2EDE8; max-width: 33rem; }
.hero__oferta {
  display: inline-block; margin-top: 4px; font-weight: 700; font-size: 17px;
  color: var(--blanco); border-bottom: 3px solid var(--naranja); padding-bottom: 2px;
}
.hero .boton--contorno { color: var(--blanco); border-color: var(--blanco); }
.hero .boton--contorno:hover { background: var(--blanco); color: var(--tinta); }

/* ==========================================================================
   Banda de autoridad — la nota de Google, las credenciales y las opiniones
   ========================================================================== */
.autoridad { background: var(--papel); border-bottom: 1px solid var(--arena); }
.autoridad__interior { padding-block: clamp(30px, 4vw, 44px); }
.credenciales {
  display: grid; gap: 22px 30px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  align-items: start;
}
.credencial__cifra {
  font-family: var(--fuente-display); font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1; color: var(--tinta); display: block;
}
.credencial__texto { margin: 7px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--tinta-suave); max-width: 15rem; }
.estrellas { color: var(--naranja); letter-spacing: 0.12em; font-size: 16px; display: block; margin-top: 4px; }

/* opiniones: carrusel sin una línea de script (radios + :checked).
   Los radios SON los mandos: 44 × 44 px de verdad, con el punto dibujado por un
   radial-gradient. No hay un input diminuto escondido detrás de una etiqueta,
   que es lo que medía 13 px y fallaba el área táctil. El orden visual lo pone
   `order`: la cita arriba, los mandos debajo. */
.opiniones {
  margin-top: clamp(26px, 3.4vw, 38px);
  border-top: 1px solid var(--osb);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.opiniones__lista { order: 1; flex: 0 0 100%; margin-bottom: 10px; }
.opinion { display: none; }
.opinion blockquote { margin: 0; max-width: 40rem; }
.opinion p {
  font-size: clamp(17px, 2vw, 21px); line-height: 1.5; font-weight: 500;
  color: var(--tinta); max-width: 40rem;
}
.opinion cite { font-style: normal; font-size: 14.5px; font-weight: 700; color: var(--tinta-suave); }
.opinion cite span { font-weight: 400; }
#op1:checked ~ .opiniones__lista .opinion:nth-of-type(1),
#op2:checked ~ .opiniones__lista .opinion:nth-of-type(2),
#op3:checked ~ .opiniones__lista .opinion:nth-of-type(3),
#op4:checked ~ .opiniones__lista .opinion:nth-of-type(4) { display: block; }
.opiniones__radio {
  order: 2;
  appearance: none; -webkit-appearance: none;
  width: 44px; height: 44px; margin: 0; padding: 0; border: 0;
  border-radius: 999px; cursor: pointer;
  background: radial-gradient(circle at center, var(--osb) 0 5.5px, transparent 5.5px);
  transition: background .18s var(--curva);
}
.opiniones__radio:hover {
  background: radial-gradient(circle at center, var(--tinta-suave) 0 5.5px, transparent 5.5px);
}
.opiniones__radio:checked {
  background: radial-gradient(circle at center, var(--accion) 0 6.5px, transparent 6.5px);
}

/* ==========================================================================
   EL MOMENTO — ocho marcas contra veinte. El dato que vende el negocio,
   dibujado. No es decoración: es la comparación.
   ========================================================================== */
.ocho { background: var(--tinta); color: var(--blanco); }
.ocho__interior { padding-block: clamp(56px, 8vw, 104px); }
.ocho__rejilla {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start;
}
.ocho h2 { color: var(--blanco); }
.ocho__texto { color: #E4DED9; margin-top: 20px; max-width: 30rem; }
.medidas { display: grid; gap: 30px; }
.medida__rotulo {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px;
  font-size: 14.5px; font-weight: 600; color: #E4DED9;
}
.medida__cifra { font-family: var(--fuente-display); font-size: 34px; line-height: 1; color: var(--blanco); }
.medida--ellos .medida__cifra { color: #8A8480; }
.figuras { display: flex; flex-wrap: wrap; gap: 7px; max-width: 24rem; }
.figura { width: 15px; height: 30px; border-radius: 7px 7px 3px 3px; background: var(--naranja); }
.medida--ellos .figura { background: #3A3936; }

/* ==========================================================================
   Secciones de servicio: foto a sangre a un lado, prosa estrecha al otro
   ========================================================================== */
.servicio { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.servicio--alterna .servicio__media { order: 2; }
.servicio__media { position: relative; min-height: 380px; background: var(--osb); }
.servicio__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.servicio__cuerpo {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vw, 84px) clamp(20px, 5vw, 76px);
}
.servicio--papel { background: var(--papel); }
.servicio__texto { margin-top: 18px; }
.lista-marcas { list-style: none; margin: 20px 0 0; padding: 0; max-width: var(--medida); }
.lista-marcas li { position: relative; padding-left: 26px; margin-bottom: 10px; line-height: 1.5; }
.lista-marcas li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 11px; height: 3px; background: var(--naranja);
}
.dato-fuerte { font-weight: 700; }

@media (max-width: 860px) {
  .servicio { grid-template-columns: 1fr; }
  .servicio--alterna .servicio__media { order: 0; }
  .servicio__media { min-height: 260px; }
}

/* ==========================================================================
   Equipo
   ========================================================================== */
.bloque { padding-block: clamp(56px, 8vw, 100px); }
.bloque--papel { background: var(--papel); }
.bloque__entrada { margin-top: 18px; }
.equipo {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid; gap: clamp(20px, 3vw, 34px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
}
.persona img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--osb); }
.persona h3 { margin-top: 15px; }
.persona__rol { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--accion); letter-spacing: 0.02em; }
.persona__que { margin: 9px 0 0; font-size: 15px; line-height: 1.5; color: var(--tinta-suave); }

/* mosaico de instalaciones */
.mosaico {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.mosaico img { width: 100%; height: 220px; object-fit: cover; background: var(--osb); }
.mosaico img:first-child { grid-column: span 2; height: 100%; min-height: 220px; }
@media (max-width: 620px) { .mosaico img:first-child { grid-column: span 1; height: 220px; } }

/* horario */
.horario { margin-top: clamp(28px, 4vw, 40px); display: grid; gap: clamp(24px, 4vw, 44px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; }
.horario__tabla { width: 100%; border-collapse: collapse; font-size: 15px; }
.horario__tabla th, .horario__tabla td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--osb); vertical-align: top; }
.horario__tabla th { font-weight: 700; white-space: nowrap; width: 7.5rem; }
.horario__tabla td { color: var(--tinta-suave); line-height: 1.45; }
.horario__cartel { width: 100%; border: 1px solid var(--osb); }

/* ==========================================================================
   Contacto — formulario INERTE
   ========================================================================== */
.contacto { position: relative; background: var(--tinta); color: var(--blanco); overflow: hidden; }
.contacto__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contacto__velo { position: absolute; inset: 0; background: rgba(14,14,14,.90); }
.contacto__interior { position: relative; padding-block: clamp(56px, 8vw, 100px); }
.contacto h2 { color: var(--blanco); }
.contacto__rejilla {
  margin-top: clamp(28px, 4vw, 40px);
  display: grid; gap: clamp(30px, 4.5vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
}
.contacto__texto { color: #E4DED9; }
.campo { display: block; margin-bottom: 16px; }
.campo span { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 7px; color: var(--blanco); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 50px; padding: 13px 15px;
  border: 1px solid #5A5754; border-radius: 10px;
  background: #262524; color: var(--blanco);
  font-family: var(--fuente); font-size: 16px;
}
.campo textarea { min-height: 108px; resize: vertical; }
.campo input::placeholder, .campo textarea::placeholder { color: #A39D98; }
.nota-inerte {
  margin-top: 18px; padding: 15px 17px; border-left: 4px solid var(--naranja);
  background: #262524; font-size: 14.5px; line-height: 1.5; color: #E4DED9; max-width: none;
}
.datos-contacto { margin-top: 26px; display: grid; gap: 12px; }
.datos-contacto a, .datos-contacto p { color: var(--blanco); font-size: 16.5px; margin: 0; }
.datos-contacto a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; }
.datos-contacto a:hover { color: var(--naranja); }
.datos-contacto .etiqueta { font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: #A39D98; margin-bottom: -6px; }

/* ==========================================================================
   Pie y WhatsApp flotante
   ========================================================================== */
.pie { background: var(--papel); border-top: 1px solid var(--arena); padding-block: 40px; font-size: 15px; }
.pie__rejilla { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.pie p { color: var(--tinta-suave); margin-bottom: .5em; }
.pie strong { color: var(--tinta); }
.pie__legal { font-size: 13.5px; }

.wa-flotante {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 999px;
  background: var(--whatsapp); color: var(--blanco);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transition: transform .2s var(--curva), background .2s var(--curva);
}
.wa-flotante:hover { background: #0E6F63; transform: translateY(-2px); color: var(--blanco); }
.wa-flotante svg { width: 29px; height: 29px; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   Tarifas — copiadas literalmente de las tablas que CORE publica en su web.
   Tabla de datos de verdad (th/td), no una rejilla de tarjetas: es un precio
   por concepto y eso es una tabla.
   ========================================================================== */
.tarifas { width: 100%; border-collapse: collapse; margin-top: 24px; max-width: 32rem; }
.tarifas caption {
  text-align: left; font-size: 13.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--tinta-suave); padding-bottom: 10px;
}
.tarifas th, .tarifas td { padding: 12px 0; border-bottom: 1px solid var(--osb); font-size: 16px; }
.tarifas th { text-align: left; font-weight: 500; color: var(--tinta); }
.tarifas td { text-align: right; font-weight: 700; white-space: nowrap; }
.tarifas td span { display: block; font-weight: 400; font-size: 13.5px; color: var(--tinta-suave); }
.tarifas-dos {
  display: grid; gap: clamp(20px, 4vw, 48px); margin-top: clamp(20px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start;
}
.tarifas-dos .tarifas { margin-top: 0; }
.equipo__foto {
  width: 100%; max-height: 380px; object-fit: cover; object-position: center 40%;
  margin-top: clamp(24px, 3vw, 34px); background: var(--osb);
}

/* En móvil el hero recorta mucho: se centra el encuadre para no quedarse con el
   material del fondo en vez de con la sala. Medido sobre la captura a 360 px. */
@media (max-width: 720px) {
  .hero__foto { object-position: 42% 45%; }
}
