/* ==========================================================
   LURO TRAC — styles.css
   Paleta: Azul oscuro #1A2B6D | Rojo #D92B2B | Blanco #FFFFFF
   Tipografía: Barlow Condensed (títulos) + Barlow (cuerpo)
   ========================================================== */

/* ——— VARIABLES ——— */
:root {
  --azul:        #1A2B6D;
  --azul-oscuro: #121e52;
  --azul-claro:  #2a3f9f;
  --rojo:        #D92B2B;
  --rojo-oscuro: #b52020;
  --blanco:      #ffffff;
  --gris-suave:  #f4f6fb;
  --gris-texto:  #4a4a6a;
  --sombra:      0 8px 32px rgba(26,43,109,0.12);
  --radio:       12px;
  --transicion:  0.3s ease;

  /* ================================================
     TIPOGRAFÍAS: Si querés cambiar las fuentes,
     actualizá estos nombres Y el @import de Google
     Fonts en index.html.
  ================================================ */
  --fuente-titulo: 'Barlow Condensed', sans-serif;
  --fuente-cuerpo: 'Barlow', sans-serif;
}

/* ——— RESET Y BASE ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--fuente-cuerpo);
  color: var(--gris-texto);
  background: var(--blanco);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

/* ——— CONTENEDOR ——— */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ——— UTILIDADES ——— */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--fuente-titulo);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--azul);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--gris-texto);
  max-width: 500px;
  margin-bottom: 48px;
}


/* ==========================================================
   BOTONES
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fuente-cuerpo);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transicion), color var(--transicion),
              border-color var(--transicion), transform var(--transicion);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--rojo);
  color: var(--blanco);
  border-color: var(--rojo);
}
.btn-primary:hover {
  background: var(--rojo-oscuro);
  border-color: var(--rojo-oscuro);
}

.btn-outline {
  background: transparent;
  color: var(--azul);
  border-color: var(--azul);
}
.btn-outline:hover {
  background: var(--azul);
  color: var(--blanco);
}

.btn-catalog {
  background: transparent;
  color: var(--azul);
  border-color: var(--azul);
  font-size: 0.88rem;
  padding: 9px 20px;
  border-radius: 6px;
  width: 100%;
  justify-content: center;
}
.btn-catalog:hover {
  background: var(--azul);
  color: var(--blanco);
}


/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transicion), box-shadow var(--transicion);
}

/* Clase que se agrega con JS al hacer scroll */
.navbar.scrolled {
  border-bottom-color: var(--rojo);
  box-shadow: 0 2px 16px rgba(26,43,109,0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.logo { display: flex; align-items: center; }


.logo-img {
 height: 40px;
 width: auto;
 display: block;
}



/* ================================================
   LOGO IMAGEN: Si usás <img>, agregá:
   .logo-img { height: 44px; width: auto; }
================================================ */

/* Nav links desktop */
.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--fuente-cuerpo);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--azul-oscuro);
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transicion);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rojo);
  transition: width var(--transicion);
}

.nav-links a:hover { color: var(--rojo); }
.nav-links a:hover::after { width: 100%; }

/* Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--azul);
  border-radius: 2px;
  transition: transform var(--transicion), opacity var(--transicion);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Menú móvil */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--blanco);
  padding: 16px 24px 24px;
  border-top: 1px solid #e8eaf0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--azul);
  padding: 10px 0;
  border-bottom: 1px solid #e8eaf0;
}
.mobile-menu a:last-child { border-bottom: none; }


/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  /* ================================================
     IMAGEN DE FONDO DEL HERO:
     Reemplazá la línea de abajo con la ruta a tu foto:
     background-image: url('assets/hero-local.jpg');
     Tamaño mínimo sugerido: 1920×1080px.
     Si no tenés foto, podés usar un gradiente como
     fondo temporario (el que está ahora).
  ================================================ */
  background-image: url(imagenes/local-exterior.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 30, 82, 0.62) 0%,
    rgba(18, 30, 82, 0.75) 60%,
    rgba(18, 30, 82, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  animation: fadeUp 0.9s ease both;
}

.hero-badge {
  display: inline-block;
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--fuente-cuerpo);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  animation: fadeUp 0.9s 0.15s ease both;
}

.hero-title {
  font-family: var(--fuente-titulo);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  color: var(--blanco);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 16px;
  animation: fadeUp 0.9s 0.25s ease both;
}
.hero-title em {
  font-style: normal;
  color: var(--rojo);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  animation: fadeUp 0.9s 0.35s ease both;
}

.hero .btn-primary {
  animation: fadeUp 0.9s 0.45s ease both;
  font-size: 1rem;
  padding: 14px 36px;
}

/* Ola inferior */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: 60px;
}


/* ==========================================================
   SOBRE NOSOTROS
   ========================================================== */
.nosotros {
  background: var(--blanco);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.nosotros-text p {
  margin-bottom: 16px;
  font-size: 0.97rem;
  color: var(--gris-texto);
}
.nosotros-text .btn { margin-top: 8px; }

.nosotros-img {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  aspect-ratio: 4/3;
}

/* Placeholder imagen (se reemplaza con <img>) */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gris-suave);
  border: 2px dashed #c5cae8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #8890b8;
  font-size: 0.9rem;
  min-height: 300px;
}
.img-placeholder i { font-size: 3rem; }
.nosotros-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==========================================================
   MARCAS
   ========================================================== */
.marcas {
  background: var(--gris-suave);
}

.marcas .section-title { margin-bottom: 8px; }

.marcas-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.marca-logo {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 20px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(26,43,109,0.07);
  transition: transform var(--transicion), box-shadow var(--transicion);
  min-height: 80px;

  /* ================================================
     Cuando uses <img> real en lugar de .marca-text,
     el .marca-logo actuará de contenedor. Solo
     asegurate de que la img tenga max-height: 48px;
  ================================================ */
}
.marca-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,43,109,0.14);
}

.marca-text {
  font-family: var(--fuente-titulo);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  color: var(--azul);
  letter-spacing: 0.3px;
}
.marca-elf { color: var(--rojo); font-size: 1rem; }
.marca-negro { color: #111; }
.marca-liqui { color: #c8a000; }


/* ==========================================================
   CATÁLOGOS
   ========================================================== */
.catalogos {
  background: var(--blanco);
}

.catalogos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.catalogo-card {
  background: var(--blanco);
  border: 1px solid #e2e6f3;
  border-radius: var(--radio);
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-shadow: 0 4px 18px rgba(26,43,109,0.07);
  transition: transform var(--transicion), box-shadow var(--transicion);
}
.catalogo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(26,43,109,0.13);
}

.card-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* ================================================
     Cuando uses <img> real de logo:
     .card-logo img { max-height: 64px; max-width: 160px; object-fit: contain; }
  ================================================ */
}

.card-logo-text {
  font-family: var(--fuente-titulo);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--azul);
  letter-spacing: 0.3px;
}

.card-body h3 {
  font-family: var(--fuente-titulo);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 6px;
}
.card-body p {
  font-size: 0.88rem;
  color: var(--gris-texto);
  line-height: 1.5;
}

.catalogo-card .btn-catalog {
  margin-top: auto;
}


/* ==========================================================
   CONTACTO
   ========================================================== */
.contacto {
  background: var(--rojo);
}

.contacto-title {
  color: var(--blanco);
  margin-bottom: 40px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Mapa */
.mapa-wrapper {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  aspect-ratio: 4/3;
}

.mapa-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Placeholder mapa */
.mapa-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.15);
  border: 2px dashed rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 24px;
  min-height: 260px;
  border-radius: var(--radio);
}
.mapa-placeholder i { font-size: 2.5rem; opacity: 0.8; }
.mapa-placeholder p { font-weight: 600; font-size: 0.95rem; }
.mapa-placeholder small { font-size: 0.82rem; opacity: 0.75; }

/* Info de contacto */
.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--blanco);
  font-size: 1.05rem;
  font-weight: 500;
  transition: opacity var(--transicion);
}
a.contacto-item:hover { opacity: 0.8; }

.contacto-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
  transition: background var(--transicion);
}
a.contacto-item:hover .contacto-icon {
  background: rgba(255,255,255,0.32);
}


/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--azul-oscuro);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.footer-inner p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-inner strong {
  color: rgba(255,255,255,0.85);
}


/* ==========================================================
   ANIMACIONES
   ========================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal al scroll (clase añadida por JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablet: ≤ 900px */
@media (max-width: 900px) {

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nosotros-img { order: -1; }

  .marcas-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .catalogos-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Mobile: ≤ 600px */
@media (max-width: 600px) {

  .section { padding: 60px 0; }

  .hero-title { line-height: 1.05; }

  .marcas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    gap: 8px;
  }
}
/* ==========================================================
   CARRUSEL — Sobre nosotros
   ========================================================== */
.nosotros-img {
  /* ya tenía border-radius, overflow, shadow, aspect-ratio */
  position: relative;
}

.carrusel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radio);
}

.carrusel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.carrusel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.carrusel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Flechas */
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 43, 109, 0.55);
  color: var(--blanco);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transicion);
  z-index: 2;
}
.carrusel-btn:hover {
  background: var(--rojo);
}
.carrusel-btn.prev { left: 16px; }
.carrusel-btn.next { right: 16px; }

/* Indicadores (dots) */
.carrusel-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--blanco);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--transicion), transform var(--transicion);
}
.dot.active {
  background: var(--blanco);
  transform: scale(1.15);
}

/* Mobile: flechas más pequeñas */
@media (max-width: 600px) {
  .carrusel-btn { width: 34px; height: 34px; font-size: 1rem; }
}
/* ==========================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: var(--blanco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform var(--transicion), box-shadow var(--transicion);
  animation: wa-pop 0.6s 1.2s ease both;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(0,0,0,0.32);
}

/* Anillo pulsante para llamar la atención */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2.2s infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

@keyframes wa-pop {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}

/* Mobile: un poco más chico y pegado al borde */
@media (max-width: 600px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
    bottom: 16px;
    right: 16px;
  }
}