/* ====================================================================
   TAVOMOTOS
   Idea: el frente del local. La persiana de chapa sube una vez al
   cargar y deja ver los seis rubros del negocio como estantes; cada
   uno abre su consulta. Chapa gris, naranja de taller, tinta y blanco.
   Alumni Sans, alta y angosta como un cartel de frente.
   ==================================================================== */
:root {
  --chapa: #9AA1A8;
  --chapa-oscura: #6F767D;
  --naranja: #F28C28;
  --fondo: #F5F5F3;
  --tinta: #202326;
  --gris: #5B6066;
  --linea: #DADBD7;
  --blanco: #FFFFFF;
  --pie-fondo: #202326;
  --pie-texto: #A7ABAF;
  --radio: 3px;
  --foco: #F28C28;

  --titular: "Alumni Sans", "Arial Narrow", sans-serif;
  --texto: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ====================================================================
   BASE (reset, contenedor, ubicación, horarios, pie y botón flotante).
   Usa las variables que define la identidad de cada sitio:
   --fondo, --tinta, --gris, --linea, --pie-fondo, --pie-texto,
   --radio, --texto (familia) y --foco.
   ==================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--texto); background: var(--fondo); color: var(--tinta); line-height: 1.6; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; }
.contenedor { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1rem; }

.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marca, .cabecera-tel { text-decoration: none; }
.cabecera-tel { white-space: nowrap; font-weight: 600; }

.boton-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.7rem 1.3rem;
  background: #25D366;
  color: #0B2915;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radio);
}
.boton-wa:hover { background: #1FB855; }

/* Ubicación y horarios */
.ubicacion { padding: 3.2rem 0; }
.ubicacion-fila { display: grid; gap: 1.6rem; align-items: start; }
.ubicacion p { color: var(--gris); margin-bottom: 0.3rem; }
.ubicacion p a { color: var(--tinta); font-weight: 600; }
.horarios { margin: 1.2rem 0 0.4rem; max-width: 360px; }
.horarios h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.horarios li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px solid var(--linea); font-size: 0.95rem; }
.horarios li.es-hoy { font-weight: 700; }
.horarios li.dia-cerrado { color: var(--gris); }
.horarios em { font-style: normal; font-size: 0.8rem; }
.boton-contorno {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--tinta);
  border-radius: var(--radio);
  font-weight: 600;
  text-decoration: none;
}
.boton-contorno:hover { background: var(--tinta); color: var(--fondo); }
#mapa-iframe { width: 100%; height: 300px; border: 0; border-radius: var(--radio); background: var(--linea); }
@media (min-width: 860px) { .ubicacion-fila { grid-template-columns: 1fr 1.4fr; gap: 3rem; } #mapa-iframe { height: 380px; } }

/* Pie */
.pie { background: var(--pie-fondo); color: var(--pie-texto); padding: 2rem 0 6rem; font-size: 0.9rem; }
.pie p + p { margin-top: 0.3rem; }
.demo-aviso { font-style: italic; }

/* Botón flotante */
.flotante {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem;
  background: #25D366;
  color: #0B2915;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.flotante span { display: none; }
@media (min-width: 640px) { .flotante { padding: 0.85rem 1.25rem; } .flotante span { display: inline; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

h1, h2, .marca, .cartel, .rubro-nombre { font-family: var(--titular); font-weight: 900; line-height: 0.92; }
.cabecera { background: var(--tinta); color: var(--blanco); }
.marca { font-size: 2rem; color: var(--naranja); }

/* ====================================================================
   PRESENTACIÓN + FRENTE
   ==================================================================== */
.inicio { padding: 2rem 0 3.4rem; }
.inicio h1 { font-size: clamp(3.4rem, 15vw, 7rem); }
.bajada { max-width: 44ch; margin: 0.8rem 0 1.8rem; color: var(--gris); font-size: 1.05rem; }

.frente { border: 10px solid var(--tinta); border-top-width: 0; background: var(--tinta); }
.cartel { padding: 0.5rem 1rem 0.3rem; background: var(--naranja); color: var(--tinta); font-size: clamp(2.4rem, 11vw, 4.2rem); text-align: center; letter-spacing: 0.02em; }
.vidriera { position: relative; overflow: hidden; background: #2C3034; }
.rubros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; }
.rubro {
  display: grid;
  align-content: space-between;
  gap: 0.3rem;
  min-height: 140px;
  height: 100%;
  padding: 0.9rem;
  background: var(--fondo);
  color: var(--tinta);
  text-decoration: none;
}
.rubro:hover { background: var(--naranja); }
.rubro-nombre { font-size: 2.1rem; }
.rubro-texto { color: var(--gris); font-size: 0.92rem; line-height: 1.35; }
.rubro:hover .rubro-texto { color: var(--tinta); }
.rubro svg { color: #1FA855; }

/* La persiana: sube una vez y queda enrollada arriba */
.persiana {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, var(--chapa) 0 18px, var(--chapa-oscura) 18px 21px);
  animation: subir 1.3s cubic-bezier(0.6, 0, 0.3, 1) 0.5s forwards;
  pointer-events: none;
}
.manija { position: absolute; left: 50%; bottom: 14px; width: 80px; height: 10px; margin-left: -40px; background: var(--tinta); border-radius: 5px; }
@keyframes subir { to { transform: translateY(-100%); } }

@media (min-width: 760px) {
  .rubros { grid-template-columns: repeat(3, 1fr); }
  .rubro { min-height: 170px; padding: 1.2rem; }
  .rubro-nombre { font-size: 2.6rem; }
}

.ubicacion h2 { font-family: var(--titular); font-size: clamp(2.6rem, 10vw, 4rem); margin-bottom: 0.8rem; }

@media (prefers-reduced-motion: reduce) { .persiana { display: none; } }
