/* ======================================================
   RESETEO Y CONFIGURACIÓN GLOBAL
   ====================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  text-decoration: none;
}

/* Control del scroll horizontal */
html, body {
  overflow-x: hidden;
}

/* Transición suave al hacer clic en los enlaces */
html {
  scroll-behavior: smooth;
}

/* ======================================================
   NAVBAR / MENÚ DE NAVEGACIÓN
   ====================================================== */
.navbar {
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

/* Links del menú */
.nav-links a {
  color: #000000;
  display: inline-block;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
}

/* Hover en links */
.nav-links a:hover {
  background-color: #3fef865c;
  color: rgb(255, 255, 255);
  border-radius: 50px;
}

/* Logo */
.logo-navbar {
  height: 60px;
  width: auto;
}

/* Ícono menú hamburguesa (responsive) */
.navbar .icon {
  display: none;
  font-size: 26px;
  color: white;
  padding: 14px 20px;
  cursor: pointer;
}

/* --------- Responsive navbar --------- */
@media screen and (max-width: 600px) {
  .nav-links a { display: none; }

  .navbar .icon {
    display: block;
    margin-left: auto;
    margin-right: 10px;
    color: #000;
  }

  .navbar.responsive {
    flex-direction: column;
    align-items: center;
  }

  .navbar.responsive .nav-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
  }

  .navbar.responsive .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }

  .navbar.responsive .logo-navbar {
    margin: 20px auto;
    display: block;
    max-width: 80px;
  }
}

/* ======================================================
   HERO / PORTADA
   ====================================================== */
.car {
  width: 100%;
  background-image: url("/static/img/inicio/glascar%20fondooo.png");
  background-repeat: no-repeat;
  background-position: top center;
}

/* Título principal */
h1 {
  padding-top: 150px;
  padding-left: 100px;
  font-family: "Parisienne", cursive;
  color: rgb(36, 181, 55);
  font-weight: 400;
  font-size: 80px;
}

/* Texto debajo del título */
.car p {
  padding-left: 50px;
  color: rgb(255, 255, 255);
  margin-top: 50px;
}

/* --------- Responsive hero --------- */
@media (max-width: 768px) {
  h1 {
    font-size: 40px;
    text-align: center;
    padding-left: 0;
  }

  .car p {
    font-size: 16px;
    padding: 0 15px;
    text-align: center;
  }

  .car {
    height: auto;
    padding-bottom: 50px;
  }
}

/* ======================================================
   SECCIÓN QUIÉNES SOMOS
   ====================================================== */
.quienes-somos {
  padding-bottom: 100px;
  margin: 40px auto;
  max-width: 900px;
  text-align: center;
}

.quienes-somos h2 {
  font-family: "Parisienne", cursive;
  font-size: 2.8rem;
  color: #00203f;
  margin-bottom: 40px;
}

.quienes-somos p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: black;
}

/* Botón “Más información” */
.btn-mas-info {
  display: inline-block;
  margin-top: 30px;
  background-color: #00c853;
  color: white;
  padding: 15px 30px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.3s;
}
.btn-mas-info:hover { background-color: #00b347; }

/* --------- Responsive “quiénes somos” --------- */
@media (max-width: 768px) {
  .quienes-somos {
    margin: 0 20px 40px;
  }

  .quienes-somos h2 { font-size: 2.2rem; }
  .quienes-somos p  { font-size: 1rem; line-height: 1.6; }
}

/* ======================================================
   SECCIÓN CONTACTO
   ====================================================== */
.contacto {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Open Sans', sans-serif;
  background-color: rgb(170, 186, 173);
}

.contacto h2 {
  font-family: "Parisienne", cursive;
  font-size: 2.5rem;
  color: #00203f;
  margin-bottom: 20px;
}

.contacto p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}

/* Botón contacto */
.btn-verde {
  display: inline-block;
  padding: 15px 30px;
  margin: 10px;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  background: linear-gradient(90deg, #009245, #00c853);
  transition: 0.3s ease;
}
.btn-verde:hover { background: #00b347; }

/* Info contacto */
.info-contacto {
  font-size: 1rem;
  margin-top: 20px;
  color: #444;
  line-height: 1.6;
}
.info-contacto a {
  color: #0073e6;
  text-decoration: none;
}

/* ======================================================
   REDES SOCIALES Y FOOTER
   ====================================================== */
.footer-background {
  width: 100%;
  background-color: rgb(170, 186, 173);
}

.footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.redes-sociales {
  margin-top: 40px;
  text-align: center;
}
.redes-sociales h2 {
  font-weight: bold;
  margin-bottom: 10px;
  color: #00203f;
  font-size: 15px;
}
.redes-sociales a {
  display: inline-block;
  margin: 10px;
  color: #0073e6;
  text-decoration: none;
  font-size: 1rem;
}
.redes-sociales a img {
  display: block;
  margin: 0 auto 5px;
  width: 40px;
  height: auto;
}

/* Data Fiscal AFIP */
.clave-fiscal-container {
  background-color: rgb(170, 186, 173);
  padding: 30px 0 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.clave-fiscal-container img {
  width: 100px;
  height: auto;
  margin: 0 auto;
}
.clave-fiscal-container h2 {
  color: #333;
  margin-top: 10px;
  font-size: 14px;
}

/* ======================================================
   SLIDER CATEGORÍAS (CARRUSEL)
   ====================================================== */
.slider-categorias-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #044714;
  padding: 40px 0;
  overflow: hidden;
}
.slider-categorias-wrapper {
  overflow: hidden;
  width: 720px;
}
#categoriaSlider {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

/* Item del slider */
.slide {
  width: 240px;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
}
.slide img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}
.slide p {
  color: white;
  font-size: 1rem;
  line-height: 1.3;
  max-width: 200px;
}
.slide:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* 🔹 Responsive slides: ancho cambia según pantalla */
@media (max-width: 768px) {
  .slide {
    width: 200px;
  }
}
@media (max-width: 480px) {
  .slide {
    width: 140px;
  }
}

/* Flechas del slider */
.categoria-prev,
.categoria-next {
  background-color: white;
  border: none;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  margin: 0 10px;
  transition: background 0.3s;
}
.categoria-prev:hover,
.categoria-next:hover { background-color: #ddd; }

/* ======================================================
   CATEGORÍAS HERO (TARJETAS TIPO WHEATON)
   ====================================================== */
.categorias-hero {
  margin: 300px auto 50px;
  max-width: 1280px;
  padding: 0 24px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 520px;
  justify-content: center;
}

/* Tarjeta */
.cat-tile {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .3s ease;
}

/* Imagen */
.cat-tile--img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .35s ease, filter .3s ease;
}

/* Overlay */
.cat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.55) 100%);
  opacity: .55;
  transition: opacity .35s ease;
  z-index: 0;
}

/* Contenido */
.cat-tile__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  color: #fff;
  z-index: 1;
  display: grid;
  gap: 10px;
}
.cat-tile__content h3 {
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.cat-tile__content p {
  font-size: 16px;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s ease, opacity .35s ease;
}

/* CTA */
.cat-tile__cta {
  width: fit-content;
  margin-top: 6px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(20, 83, 45, .55);
  backdrop-filter: blur(2px);
  transform: translateY(6px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease, background .2s ease;
}

/* Hover en tarjeta */
.cat-tile:hover {
  z-index: 5;
  grid-column: span 2;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.cat-tile:hover .cat-tile__content p { max-height: 160px; opacity: 1; }
.cat-tile:hover .cat-tile__cta { opacity: 1; transform: translateY(0); }

/* --------- Responsive tarjetas --------- */
@media (max-width: 992px) {
  .categorias-hero { grid-auto-rows: 420px; }
}
@media (max-width: 768px) {
  .categorias-hero {
    grid-auto-rows: 380px;
    gap: 12px;
    padding: 0 16px;
  }
  .cat-tile__content p { max-height: 120px; opacity: .95; }
  .cat-tile__cta { opacity: 1; transform: translateY(0); }
}
@media (max-width: 420px) {
  .categorias-hero {
    grid-template-columns: 1fr;
    grid-auto-rows: 340px;
  }
  .cat-tile:hover { grid-column: span 1; }
}

.modal-acceso {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-contenido {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  width: 300px;
}

.modal-contenido input {
  width: 100%;
  padding: 8px;
  margin: 15px 0;
}

.modal-contenido button {
  margin: 5px;
  padding: 10px 20px;
  cursor: pointer;
}
