:root{
  --muted: #8b94a7;
  --text: #e8edf5;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --bg: #fff;
  --brand: #ff7f50;
  --brand-2: #ff4500;
}

body {
  margin:0;
  color: var(--text);
}

/* Contenedor */
.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
}

/* Secciones */
.section-title{
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  color: #931212;
}

.carousel {
  position: relative;
}

.carousel .dots {
  position: absolute;
  top: 90%;               /* Centrado vertical */
  right: 10px;            /* A la derecha */
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

/* Puntos */
.carousel .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #931212;
  display: inline-block;
}


/* Carrusel */
.carousel{
  position: relative;
  margin: 18px 0 36px;
  --g: clamp(12px, 2vw, 16px);
  --pad-x: clamp(8px, 2vw, 16px);
}
.track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 28vw, 280px);
  gap: var(--g);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px var(--pad-x) 18px;
}

/* Cards carrusel */
.carta{
  scroll-snap-align: start;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02);
}

/* Navbar */
.navbar {
  background-color: #931212 !important;
  padding: 0.5rem 0rem;
  position: relative;
  z-index: 1;
}

/* Links de navegación */
.navbar .nav-link {
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
  color: white !important;
  text-decoration: none;
}

.navbar .nav-link:hover {
  color: #000 !important;
}
/* Cards productos */
.card img {
  height: 220px;
  object-fit: cover;
}
.card {
  overflow: hidden;
  transition: transform 0.5s ease;
}
.card img.card-img-top {
  transition: transform 0.5s ease;
}
.card:hover img.card-img-top {
  transform: scale(1.1);
}

/* Footer */
.liston-negro {
  background-color: rgb(233, 230, 230);
  width: 100%;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-link {
  color: #931212;
  text-decoration: none;
}
.footer-link:hover {
  text-decoration: underline;
}

.espacio {
  word-spacing: 5px;
}

/* Tipografía */
.texto {
  color: #931212;
}

.textos {
  color: #931212;
  text-decoration: none;
  margin: 0 5px;
}
.textos:hover {
  text-decoration: underline;
}



@media (max-width: 540px){
  .actions{ flex-direction: column; }
  .card img { height: auto; }
  footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

  .arrows{
    display:flex;
    gap: 10px;
  }
  .arrow{
    display:grid; place-items:center;
    width:42px; height:42px;
    border-radius: 999px;
    background:#931212;
    border:1px solid rgba(255,255,255,.08);
    text-decoration:none; color:var(--text);
    font-weight: 900; font-size: 18px;
    transition: transform .08s ease, background .2s ease, border-color .2s ease;
  }
  .arrow:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.18); }
  .dots{ display:flex; gap:8px; }
  .dot{
    width:10px; height:10px; border-radius:999px;
    background:#931212; display:inline-block; text-decoration:none;
  }

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0; 
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
  padding: 40px 20px;
}

.lightbox:target {
  display: flex; 
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.close-button {
  color: #fff;
  position: absolute;
  top: -15px;
  right: -15px;
  font-size: 35px;
  background: #931212;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s;
}

.close-button:hover {
  background: #000;
  color: #fff;
}