:root {
  --color-primario: #f09000;
  --color-texto-blanco: #ffffff;
  --relleno-seccion: clamp(3.75rem, 7.82vw, 6.25rem) 1.5rem;
  --primario: #0056b3;
  --blanco: #ffffff;
  --negro: #000000;
  --text-muted: #64748b;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset Básico ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

.navegacion {
  width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 100;
}

.contenedor-navegacion-general {
  width: 100%;
  background-color: #1869ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contenedor-navegacion-interior {
  width: 100%;
  max-width: 100%;
  padding: 12px 24px;
}

.contenedor-superior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgb(0, 0, 0);
  margin-bottom: 6px;
}

.logo {
  flex-shrink: 0;
}

.texto-logo {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, #80bdff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.meta-navegacion {
  flex: 1;
  text-align: right;
}

.meta-navegacion p {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}

.contenedor-inferior {
  display: flex;
  align-items: center;
}

.subtitulo {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Hamburger e Overlay (Ocultos en Desktop) ──────────────── */
.hamburguesa {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  z-index: 1001;
}

.hamburguesa span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #030303;
  border-radius: 3px;
  transition:
    transform 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}

.hamburguesa.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburguesa.active span:nth-child(2) {
  opacity: 0;
}

.hamburguesa.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.menu-fondo-oscuro {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.menu-fondo-oscuro.active {
  display: block;
}

/* ── Navegación (Desktop) ─────────────────────────────────── */
.botones-navegacion {
  width: 100%;
  background-color: #f09000;
}

.botones-navegacion ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
}

.botones-navegacion li {
  flex-grow: 1;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.botones-navegacion li:first-child {
  border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.botones-navegacion li a {
  display: block;
  text-align: center;
  width: 100%;
  padding: 12px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.botones-navegacion li a:hover {
  background-color: #000000;
  color: #f09000;
}

.whatsapp-float {
  display: none;
}

/* ── Responsive Navbar (Tablet y Móvil: hasta 1024px) ─────── */
@media (max-width: 1024px) {
  .hamburguesa {
    display: flex;
  }

  /* En móviles/tablets solo se visualiza el logo y el botón hamburguesa */
  .meta-navegacion,
  .contenedor-inferior {
    display: none;
  }

  .contenedor-superior {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .contenedor-navegacion-general {
    border-bottom: none;
  }

  /* Menú lateral (despliega de derecha a izquierda) */
  .botones-navegacion {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: #f09000;
    padding-top: 80px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .botones-navegacion.active {
    right: 0;
  }

  .botones-navegacion ul {
    flex-direction: column;
    align-items: stretch;
  }

  .botones-navegacion li {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .botones-navegacion li:first-child {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .botones-navegacion li a {
    padding: 16px 24px;
    font-size: 1rem;
  }

  .whatsapp-float {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background-color: #25d366;
    color: var(--blanco);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2.2rem;
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    transition: var(--transition);
  }

  .whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(37, 211, 102, 0.5);
    color: var(--blanco);
  }
}

/* ── Responsive Navbar Móvil (hasta 430px) ────────────────── */
@media (max-width: 430px) {
  .texto-logo {
    font-size: 1.8rem;
  }

  .botones-navegacion {
    width: 250px; /* Menú ligeramente más angosto en celulares */
  }
}

/* ============================================================
   TARJETAS DE PRODUCTOS
   ============================================================ */
.contenedor-tarjetas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  justify-content: center;
  padding: 4rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* Responsividad para la cuadrícula */
@media (max-width: 1200px) {
  .contenedor-tarjetas {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 950px) {
  .contenedor-tarjetas {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .contenedor-tarjetas {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .contenedor-tarjetas {
    grid-template-columns: 1fr;
  }
}

.tarjeta-producto {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  width: 100%;
  max-width: 350px; /* Reducido un 30% (desde 500px) */
  margin: 0 auto; /* Para centrar la tarjeta dentro de su celda de la cuadrícula */
  display: flex;
  flex-direction: column;
}

/* .tarjeta-producto:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.679);
} */

.espacio-imagen {
  width: 100%;
  aspect-ratio: 500 / 500; /* Proporción exacta de 500x600 */
  background-color: #e5e7eb; /* Color de fondo gris como marcador */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.espacio-imagen::after {
  content: "Imagen 500x600";
  color: #6b7280;
  font-size: 1.25rem;
  font-weight: 500;
}

.espacio-imagen:has(img)::after {
  content: none;
}

.espacio-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.contenido-tarjeta {
  padding: 1rem;
  text-align: center;
}

.titulo-producto {
  font-size: 1.5rem;
  color: #000940;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.texto-producto {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  text-transform: capitalize;
}

/*-- -------------------------- -->
<---          Footer            -->
<--- -------------------------- -*/

/* Fila Superior: Localidades */
.footer-locations {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  max-width: 1400px;
  width: 100%;
  margin: 15px auto;
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding: 0 40px;
}

.locations-texto {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.6rem;
  text-align: justify;
}

.locations-texto span {
  transition: var(--transition);
  text-transform: capitalize;
}

.locations-texto span:hover {
  color: var(--primario);
  cursor: default;
}

.footer-section h3 {
  background: linear-gradient(135deg, #f09000, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  position: relative;
  font-weight: 800;
}
.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--color-primario);
}

.locations-text {
  color: var(--color-texto-blanco);
  line-height: 1.8;
  font-size: 0.95rem;
  text-align: justify;
}

.locations-text span {
  transition: var(--transition);
}
.locations-text span:hover {
  color: var(--color-primario);
  cursor: default;
}

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #pie-pagina {
    padding: 2rem 1.5rem var(--relleno-seccion) 1.5rem;
    background-color: #1a1a1a;
    /* Navigation Links */
  }
  #pie-pagina .contenedor-pie {
    width: 100%;
    /* reset on desktop */
    max-width: 43.75rem;
    margin: auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2.5rem;
  }
  #pie-pagina .grupo-logo {
    /* takes up all the space, lets the other ul's wrap below it */
    width: 100%;
    position: relative;
  }
  #pie-pagina .logo-pie {
    width: 11.125rem;
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
  }
  #pie-pagina .texto-logo-pie {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #f09000, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
  }
  #pie-pagina .imagen-logo-pie {
    width: 100%;
    height: auto;
  }
  #pie-pagina .imagen-logo-pie.dark {
    display: none;
  }
  #pie-pagina .texto-descripcion-pie {
    /* 14px - 16px */
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 1.5em;
    margin: 0;
    width: 78%;
    /* changes to 305px at desktop */
    max-width: 26.25rem;
    color: var(--color-texto-blanco);
  }
  #pie-pagina .menu-pie {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
  #pie-pagina .item-menu-pie {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }
  #pie-pagina .titulo-seccion-pie {
    font-size: 1rem;
    line-height: 1.2em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-texto-blanco);
    position: relative;
    display: block;
  }
  #pie-pagina .enlace-menu-pie {
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.5em;
    color: var(--color-texto-blanco);
    position: relative;
    display: inline-block;
    transition: color 0.3s;
  }
  #pie-pagina .enlace-menu-pie:before {
    /* underline */
    content: "";
    width: 0%;
    height: 0.125rem;
    background: currentColor;
    opacity: 1;
    position: absolute;
    display: block;
    bottom: -0.125rem;
    left: 0;
    transition: width 0.3s;
  }
  #pie-pagina .enlace-menu-pie:hover {
    color: var(--color-primario);
  }
  #pie-pagina .enlace-menu-pie:hover:before {
    width: 100%;
  }
  #pie-pagina .icono-contacto {
    width: 1.5rem;
    height: auto;
    margin-right: 0.75rem;
  }
  #pie-pagina .parte-inferior-pie {
    max-width: 80rem;
    margin: auto;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #484848;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #pie-pagina .derechos-autor,
  #pie-pagina .enlace-derechos-autor {
    font-size: 1rem;
    line-height: 1.5em;
    color: var(--color-texto-blanco);
  }
  #pie-pagina .enlace-derechos-autor {
    text-decoration: none;
    transition: color 0.3s;
  }
  #pie-pagina .enlace-derechos-autor:hover {
    color: var(--color-primario);
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #pie-pagina .contenedor-pie {
    row-gap: 0;
    flex-direction: row;
    justify-content: space-between;
    row-gap: 2.5rem;
  }
  #pie-pagina .menu-pie {
    width: auto;
  }
}
/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #pie-pagina .contenedor-pie {
    max-width: 80rem;
    flex-wrap: nowrap;
    /* align everything to the right */
    justify-content: flex-end;
    column-gap: 5.25rem;
  }
  #pie-pagina .grupo-logo {
    width: 30%;
    max-width: 24.1875rem;
    /* pushes away from everything to the right */
    margin-right: auto;
  }
  #pie-pagina .texto-descripcion-pie {
    width: 100%;
  }
}

/* ============================================
   BOTONES FLOTANTES
   ============================================ */

#btnScrollTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: var(--primario);
  color: var(--blanco);
  border: none;
  outline: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  text-align: center;
  line-height: 50px;
  box-shadow: 0 10px 15px -3px rgba(0, 86, 179, 0.2);
  transition: var(--transition);
}

#btnScrollTop:hover {
  background-color: var(--primario);
  color: var(--negro);
  transform: translateY(-5px);
  box-shadow: 0 15px 25px -5px rgba(0, 87, 179, 0.648);
}
