/* =========================
   SECCIÓ SMASH BURGERS
   (mobile-first, street food style)
========================= */
.smash-section {
  padding: 4rem clamp(1rem, 4vw, 1.5rem);
  background: linear-gradient(180deg, #151515 0%, #101010 100%);
  color: var(--color-light);
  text-align: center;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.smash-section .container {
  max-width: min(var(--container-width), 100%);
  margin: 0 auto;
}

.smash-title {
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
}

.smash-subtitle {
  margin-bottom: 2rem;
  max-width: 650px;
  margin-inline: auto;
  font-family: var(--font-body);
  line-height: 1.6;
  opacity: 0.95;
}

.smash-grid {
  display: grid;
  gap: 1rem;
}

.smash-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 230, 211, 0.12);
  min-height: 250px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  transform: translateY(22px) scale(0.98);
}

.smash-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(184, 50, 39, 0.45),
    0 0 30px rgba(184, 50, 39, 0.35);
}

.smash-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.smash-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 25%, rgba(0, 0, 0, 0.62) 100%);
  transition: opacity 0.25s ease;
}

/* Efecte "queso derritiéndose" al hover */
.smash-card::after {
  content: "";
  position: absolute;
  top: -65%;
  left: -20%;
  width: 140%;
  height: 75%;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(242, 169, 0, 0.85) 0%, rgba(242, 169, 0, 0.35) 45%, transparent 65%),
    radial-gradient(ellipse at 50% 90%, rgba(255, 204, 102, 0.9) 0%, rgba(255, 204, 102, 0.35) 50%, transparent 70%),
    radial-gradient(ellipse at 80% 85%, rgba(242, 169, 0, 0.8) 0%, rgba(242, 169, 0, 0.3) 45%, transparent 65%);
  filter: blur(1px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-20%);
  transition: opacity 0.25s ease, transform 0.45s ease;
  z-index: 2;
}

.smash-card:hover::after {
  opacity: 0.9;
  transform: translateY(115%);
}

.smash-card > span {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  z-index: 2;
  font-family: var(--font-title);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-align: left;
}

.smash-info {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  color: var(--color-light);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  text-align: left;
  transition: opacity 0.3s ease;
  z-index: 3;
  pointer-events: none;
}

.smash-info p {
  font-family: var(--font-body);
  line-height: 1.5;
  font-size: 0.95rem;
}

.smash-info .btn-primary {
  align-self: flex-start;
  background: var(--color-primary);
  color: var(--color-light);
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.smash-info .btn-primary:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
}

.smash-card.active .smash-info {
  opacity: 1;
  pointer-events: auto;
}

.smash-card.active .overlay {
  opacity: 0;
}

/* Entrada tipo app */
.smash-card.is-visible {
  animation: smashIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.smash-grid .smash-card:nth-child(2).is-visible {
  animation-delay: 0.08s;
}

.smash-grid .smash-card:nth-child(3).is-visible {
  animation-delay: 0.16s;
}

@keyframes smashIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 768px) {
  .smash-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .smash-card img {
    height: 280px;
  }
}
