/* COLORES DEL FONDO DE LA PAGINA */
:root {
  --bg-main: #0D0D0D;       /* fondo principal */
  --bg-alt: #2E2E2E;        /* fondo alterno */
  --text-main: #f5f5f5;     /* texto principal */
  --text-muted: #6B6B6B;    /* texto secundario */
  --accent: #FF4C29;        /* acento naranja */
  --accent-hover: #DF1515;  /* acento rojo al hover */
  --border-soft: #2E2E2E;   /* bordes suaves */
}

* {
  box-sizing: border-box;
}
/* tipo de letra y colores de fondo  */
body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* Barra de navegación */
.skate-navbar {
  background: rgba(18, 18, 18, 0.95);
  border-bottom: 2px solid var(--accent);
}

.navbar .nav-link {
  color: var(--text-main);
  transition: color 0.2s ease-in-out;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--accent);
}

/* Sección Hero */
.hero-section {
  min-height: 95vh;
  padding-top: 80px;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(13, 13, 13, 0.95)),
    url("../Pictures/distrito.jpg") center / cover no-repeat;
}

/* Jerarquía visual */
.section-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-subtitle {
  color: var(--text-muted);
}

.section-dark {
  background-color: var(--bg-alt);
}


/* Chips */
.category-chip {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-chip:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}


/* Cards */
.product-card {
  background: #252525;
  border: 1px solid var(--border-soft);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

.product-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.price {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* Botones */
.btn-skate {
  background-color: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 700;
}

.btn-skate:hover,
.btn-skate:focus {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.info-box {
  height: 100%;
  background: #0D0D0D;
  border: 1px solid var(--border-soft);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.contact-form {
  background: #0D0D0D;
  border: 1px solid var(--border-soft);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.form-control {
  background-color: #0D0D0D;
  border: 1px solid #6B6B6B;
  color: var(--text-main);
}

.form-control:focus {
  background-color: #0D0D0D;
  border-color: var(--accent);
  color: var(--text-main);
  box-shadow: 0 0 0 0.15rem rgba(255, 76, 41, 0.25);
}

.form-message {
  color: #DF1515;
  font-weight: 600;
}

/* Footer */
.footer-section {
  background: #0D0D0D;
  border-top: 1px solid var(--border-soft);
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 78vh;
  }

  .product-img {
    height: 200px;
  }
}

/* 
   ESTILOS DEL CARRITO (SIDEBAR)
   */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--bg-alt);
  box-shadow: -5px 0 25px rgba(0,0,0,0.9);
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1050;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

#empty-cart-msg i {
  color: var(--accent);
  margin-bottom: 10px;
}
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-item {
  background: var(--bg-main);
  border: 1px solid var(--border-soft);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.25rem;
}

/* Animación del globo al agregar productos */
@keyframes pop {
  0% { transform: scale(1) translate(-50%, -50%); }
  50% { transform: scale(1.4) translate(-35%, -35%); }
  100% { transform: scale(1) translate(-50%, -50%); }
}

.animate-pop {
  animation: pop 0.3s ease-in-out;
}

/* 
   NOTIFICACIÓN TOAST
  */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: -400px; /* Oculto fuera de la pantalla */
  background-color: var(--accent);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1100;
  transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
  right: 20px; /* Se desliza hacia adentro */
}