:root {
  --black: #050505;
  --white: #f5f5f2;
  --ink: #121212;
  --muted: #6d6d6b;
  --line: #d7d7d2;
  --blue: #1c2f5b;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: auto; /* Temporalmente para encontrar el problema */
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: auto;
}
a { color: inherit; }

.hero {
  min-height: 760px;
  color: white;
  position: relative;
  overflow: hidden;
  padding-top: 110px; /* <--- Esto empuja el contenido hacia abajo para que la barra no lo tape */
  background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.28)), url("public/images/hero.avif") center/cover no-repeat;

}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px clamp(22px, 5vw, 76px);

  z-index: 1000;
}

.brand {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 72px;

    margin-right: 26px;   /* <-- este es el cambio */

    padding: 8px 28px;

    border-radius: 30px;

    background: rgba(247,247,245,.96);
}

.brand img{
    width:auto;
    max-width:220px;
    height:48px;
}
.whatsapp-button {
  position: absolute;
  right: clamp(22px, 5vw, 76px);

  width: 72px;
  height: 72px;

  border-radius: 28px;

  display: grid;
  place-items: center;

  background: rgba(247,247,245,.96);

  transition: transform .2s ease;
}

.whatsapp-button:hover { transform: translateY(-3px); }
.whatsapp-button img { width: 54px; height: 54px; object-fit: contain; }
.hero-copy {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1120px;

  margin: 110px auto 0;

  padding: 0 clamp(22px, 5vw, 76px) 80px;

  text-align: center;
} 
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.35), transparent 55%); }

/* Tipografía Hero principal */
.hero-copy h1 {
  margin: 18px 20px 24px;

  font-family: 'Syne', sans-serif;
  font-weight: 800;

  font-size: clamp(30px, 8vw, 55px);
  line-height: 1.1;

  letter-spacing: -1px;

  color: #ffffff;

  max-width: 100%;
  overflow-wrap: break-word;
}
.hero-copy > p:last-child { font-size: clamp(17px, 2vw, 26px); letter-spacing: .1em; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 700; }

.services { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 760px; background: white; }
.services-copy { padding: 74px clamp(28px, 5vw, 82px); }
.services h2, .brands h2, .hours h2 { margin: 0; font-size: clamp(42px, 5vw, 76px); line-height: .95; letter-spacing: -.055em; }
.rule { width: 100%; height: 2px; background: var(--black); margin: 26px 0 70px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 52px 36px; }
.service-grid article:last-child { grid-column: 1 / -1; max-width: 520px; }
.service-grid span { display: block; color: var(--blue); font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.service-grid h3 { font-size: 24px; margin: 0 0 20px; line-height: 1.05; }
.service-grid p { margin: 0; color: #343434; font-size: 17px; line-height: 1.55; }
.services-image { min-height: 650px; background: url("public/images/service.avif") center/cover no-repeat; }

.brands { padding: 110px clamp(24px, 8vw, 130px); text-align: center; background: var(--black); color: white; }
.brands h2 { 
    max-width: 1050px; 
    margin: 18px auto 65px; 
    font-family: 'Syne', sans-serif; /* <--- Añade esto */
    font-weight: 800; /* <--- Y esto para que mantenga el grosor llamativo */
}
.brands > p:last-child { max-width: 720px; margin: 0 auto; color: #c9c9c6; font-size: 18px; line-height: 1.6; }

/* Carrusel de marcas infinito */
.brands-marquee {
    position: relative;

    width: 100%;

    overflow: hidden;

    display: flex;

    padding: 50px 0;
}

.brand-list {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: scrollMarquee 40s linear infinite;
}

.brand-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 80px;
  padding-right: 80px; 
  align-items: center;
  flex-shrink: 0;
}

.brand-group img {
  height: 85px;
  width: auto;
  object-fit: contain;
}

.brands-marquee:hover .brand-list {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Centrar el tercer servicio de la cuadrícula */
.centered-card {
  grid-column: 1 / -1;
  width: 65%;
  margin: 40px auto;
  text-align: left;
}

/* Sección de Horarios full-width correcta */
.hours { 
  min-height: 690px; 
  display: grid; 
  grid-template-columns: .8fr 1.2fr; 
  gap: 28px; 
  align-items: stretch; 
  padding: 88px clamp(22px, 5vw, 76px); 
  color: white; 
  background-image: linear-gradient(rgba(5, 5, 5, 0.78), rgba(5, 5, 5, 0.78)), url("public/images/hero.avif");
  background-size: cover; 
  background-position: center center; 
  background-repeat: no-repeat; 
}

.hours-card { padding: 46px; border-radius: 30px; background: rgba(10,10,10,.62); backdrop-filter: blur(10px); }
.hours h2 { margin: 14px 0 42px; }
.hours dl { margin: 0; }
.hours dl div { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.25); }
.hours dt { font-size: 21px; font-weight: 700; }
.hours dd { margin: 7px 0 0; color: #d6d6d3; font-size: 18px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact-links a { text-decoration: none; padding: 13px 18px; border-radius: 999px; background: white; color: black; font-weight: 700; }
.hours iframe { width: 100%; height: 100%; min-height: 500px; border: 0; border-radius: 28px; filter: grayscale(.15); }

footer { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; padding: 52px clamp(22px, 5vw, 76px); background: white; }
footer img { width: 190px; height: 68px; object-fit: contain; }
footer p { color: var(--muted); }
footer div { display: flex; align-items: center; gap: 20px; }
footer div a { font-weight: 700; text-decoration: none; }
footer small { grid-column: 1 / -1; color: #888; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.social-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}
/* =========================================
   📱 AJUSTES PARA MÓVILES Y TABLETS
   ========================================= */

/* Para pantallas medianas (Tablets hasta 900px) */
@media (max-width: 900px) {
  /* Empujamos el fondo un poco más abajo para que la barra flotante no lo tape */
  .hero { min-height: 680px; padding-top: 130px; }
  
  /* Apilamos las secciones de servicios y horarios a una sola columna */
  .services, .hours { grid-template-columns: 1fr; }
  .services-image { min-height: 520px; order: -1; } /* Sube la imagen del servicio arriba del texto */
  .hours iframe { min-height: 430px; }
  
  /* Centramos el footer */
  footer { grid-template-columns: 1fr; text-align: center; gap: 30px; justify-items: center; }
  footer div { justify-content: center; }
  
  /* La tarjeta centrada (Servicio 3) vuelve a ocupar todo el ancho */
  .centered-card { width: 100%; text-align: left; }
}

/* Para pantallas pequeñas (Celulares hasta 560px) */
@media (max-width: 560px) {
  /* Achicamos la barra superior para que no ocupe media pantalla */
  .topbar { gap: 0; padding: 15px 16px; }
  .brand { 
    height: 50px; 
    padding: 5px 15px; 
    border-radius: 15px; 
    margin-right: 0; /* Anulamos el margen problemático de la PC */
    flex: center; /* Evitamos que el logo intente estirarse */
  }

  .brand img { height: 35px; }
  
  .brands-marquee {
    width: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
  }
  /* Reducimos el tamaño del título principal para que no se corte */
  .hero-copy { margin-top: 40px; padding-inline: 15px; }
  .hero-copy h1 { font-size: clamp(25px, 8vw, 40px); line-height: 1.1; }
  
  /* Alineamos la cuadrícula de servicios a 1 sola columna */
  .service-grid { grid-template-columns: 1fr; gap: 30px; }
  
  /* Reducimos los espacios (paddings) para aprovechar mejor la pantalla pequeña */
  .services-copy, .brands, .hours { padding: 50px 20px; }
  .hours-card { padding: 30px 20px; }
  
  /* Ajustamos el tamaño del mapa */
  .hours iframe { min-height: 350px; }
}
  /* Hacemos el botón flotante de WhatsApp un poco más sutil */
    .whatsapp-button {
    position: fixed; /* Lo despegamos de la barra superior */
    top: auto; /* Anulamos su posición de arriba */
    bottom: 20px; /* Lo mandamos abajo */
    right: 20px;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Le damos sombra para que resalte */
    z-index: 9999;
  }

    .whatsapp-button img { 
    width: 35px; 
    height: 35px; 
  }

/* Achicamos los títulos de las secciones para que las palabras largas no se salgan */
  .services h2, .brands h2, .hours h2 { 
    font-size: clamp(28px, 8vw, 38px); 
    overflow-wrap: break-word; 
  }