/* =============================================
   VARIABLES Y BASE
============================================= */
:root {
  --color-primary: #1a1a2e;
  --color-accent:  #e63946;
  --color-light:   #f8f9fa;
  --color-border:  #dee2e6;
  --topbar-bg:     #1a1a2e;
  --footer-bg:     #1a1a2e;
  --footer-text:   #ced4da;
  --primary-font: "Codystar", sans-serif;
}

.codystar-light {
  font-family: "Codystar", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.encode-sans {
  font-family: "Encode Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}


body {
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

/* =============================================
   TOP BAR
============================================= */
.top-bar {
  background-color: var(--topbar-bg);
  color: #fff;
  font-size: 0.82rem;
}

.top-bar a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.top-bar a:hover {
  color: #fff;
}

/* =============================================
   NAVBAR
============================================= */




/* =============================================
   HERO / CAROUSEL
============================================= 
.hero-slide {
  width: 100vw;
  height: 60vh;
  padding: 3rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-text {
  max-width: 420px;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;

}

.hero-divider {
  width: 50px;
  border-top: 3px solid #333;
  opacity: 1;
  margin: 1rem 0;
}*/


/* =============================================
   HERO — texto fijo con fade + carrusel de fondo
============================================= */

/* =============================================
   ESTILOS DE TEXTO - HERO
============================================= */

/* Subtítulos (Slides 1 y 2) */
.hero-subtitulo {
  font-family: "Encode Sans", sans-serif;
  font-weight: 300; /* Finito */
  letter-spacing: 0.15em; /* Espaciado elegante entre letras */
  color: var(--color-primary); /* Color oscuro configurado en tu root */
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Títulos principales (Slides 1 y 2) */
.hero-titulo {
  font-family: "Codystar", sans-serif;
  font-weight: 400; /* Estilo decorativo */
  color: var(--color-primary);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* Subtítulo (Slide 3 - Texto Blanco) */
.hero-subtitulo1 {
  font-family: "Encode Sans", sans-serif;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #ffffff; /* Forzado a blanco para fondos oscuros */
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Título principal (Slide 3 - Texto Blanco) */
.hero-titulo1 {
  font-family: "Codystar", sans-serif;
  font-weight: 400;
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* Botón personalizado dentro de la Hero */
.hero-btn {
  font-family: "Encode Sans", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background-color: var(--footer-text);
  color: #000000;
  padding: 0.6rem 1.5rem;
  border-radius: 0; /* Bordes rectos más elegantes */
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-btn:hover {
  background-color: #91d091;
  color: #ffffff;
}





.hero-wrapper {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.hero-wrapper .carousel,
.hero-wrapper .carousel-inner,
.hero-wrapper .carousel-item {
  height: 100%;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-col-text {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 3rem;
  pointer-events: none;
}

.hero-box {
  pointer-events: auto;
  border: 1px solid #00c700;
  background-color: rgba(255, 255, 255, 0.402);
  padding: 2.5rem 3rem;
  text-align: center;
  width: 75%;
  /* Fade del texto */
  transition: opacity 0.4s ease;
}

.hero-box.fading {
  opacity: 0;
}

@media (max-width: 768px) {
  .hero-wrapper { height: 50vh; }
  .hero-col-text {
    width: 100%;
    padding-right: 0;
    align-items: flex-end;
    padding-bottom: 1.5rem;
  }
  .hero-box { width: 90%; padding: 1.5rem; }
  .hero-subtitulo { font-size: 1rem; }
  .hero-titulo    { font-size: 1.4rem; }
}


/* =============================================
   TÍTULOS DE SECCIÓN
============================================= */
.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.section-title::before,
.section-title::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: #aaa;
}

/* =============================================
   TARJETAS DE CATEGORÍA
   (generadas dinámicamente por JS)
============================================= */
.categoria-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 10px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.categoria-card:hover {
  border-color: #00c700;
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,199,0,0.15);
}

.categoria-card .icono-cat {
  font-size: 2.4rem;
  color: #41a52a;
  transition: color 0.2s, transform 0.2s;
}

.categoria-card:hover .icono-cat {
  color: #027e02;
  transform: scale(1.15);
}

.categoria-card .nombre {
  font-family: 'Encode Sans', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: rgb(75,75,75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* =============================================
   TARJETAS DE PRODUCTO
   (generadas dinámicamente por JS)
============================================= */
.producto-card {
  background: rgb(228, 228, 228);  /* gris medio neutro */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.producto-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
  transform: translateY(-3px);
}

.producto-card .producto-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #eee;

  /* Placeholder mientras no hay imagen real */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.85rem;
}

.producto-card .card-body {
  padding: 0.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Título del producto */
.producto-card .card-title {
  font-family: 'Encode Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: rgb(75,75,75);
  margin-bottom: 6px;
}

/* Descripción corta */
.producto-card .card-text {
  font-family: 'Encode Sans', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  color: rgb(110,110,110);
  line-height: 1.4;
}

/* Precio */
.producto-card .precio {
  font-family: 'Codystar', cursive;
  font-size: 1.6rem;
  font-weight: 400;
  color: #000000;
  margin: 8px 0;
}

/* Botón */
.producto-card .btn-ver {
  background-color: #41a52a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 18px;
  font-family: 'Encode Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.producto-card .btn-ver:hover {
  background-color: #009e00;
}

/* =============================================
   FOOTER
============================================= */
.footer {
  background-color: rgb(75, 75, 75);
  color: var(--footer-text);
}

/* Contenedor del mapa en el footer */
.mapa-placeholder {
  width: 100%;
  height: 200px; /* Ajusta la altura a tu gusto */
  margin-top: 0.5rem; /* Separación ligera respecto al título */
}

/* Forzar al iframe a ocupar todo el espacio horizontal sin márgenes raros */
.mapa-placeholder iframe {
  width: 80% !important;
  height: 80% !important;
  border-radius: 4px; /* Un toque sutil redondeado opcional, combina con tus tarjetas */
}

.cinta {

  color: beige !important;
}

.cinta a {

  color: beige !important;

}

.footer a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: #fff;
}

.footer-heading {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.footer-info li {
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.footer-divider {
  border-color: beige;
}



/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
  .hero-slide {
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-divider {
    margin: 0.8rem auto;
  }

  .hero-img-placeholder {
    width: 200px;
    height: 160px;
    margin: 0 auto;
  }
}
