/* Tarjetas de novedades futuristas */
.novedades-grid {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  margin-top: 2.2rem;
  width: 100%;
  max-width: 1200px;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}
.novedad-principal {
  flex: 1 1 40%;
  min-width: 320px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  min-height: 420px;
  box-sizing: border-box;
}
.novedades-secundarias {
  flex: 2 1 60%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1.2rem;
  min-width: 0;
  max-width: 100%;
  align-items: stretch;
  box-sizing: border-box;
}
.novedad-secundaria {
  min-height: 120px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  box-sizing: border-box;
}
.card-futurista {
  background: linear-gradient(135deg, rgba(10,92,133,0.18) 0%, rgba(0,255,255,0.08) 100%);
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(0,255,255,0.10), 0 1.5px 8px 0 #0ff8;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
  border: 1.5px solid rgba(0,255,255,0.18);
  border-top: none;
  animation: card-futurista-in 1.1s cubic-bezier(.77,0,.18,1) both;
}
.card-futurista:hover {
  box-shadow: 0 8px 48px 0 #00fff7cc, 0 2px 16px 0 #0ff8;
  transform: translateY(-6px) scale(1.03) rotateZ(-1deg);
}
.novedad-img-wrapper {
  flex: 0 0 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #00fff7 0%, #0af 100%);
  min-width: 120px;
  min-height: 120px;
  max-width: 140px;
  max-height: 140px;
  overflow: hidden;
  border-radius: 0 0 32% 0;
  transition: filter 0.3s, box-shadow 0.3s;
}
.novedad-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0 24px 24px 0;
  margin-left: 0;
}
.novedad-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.23, 1.12, 0.32, 1), filter 0.5s cubic-bezier(0.23, 1.12, 0.32, 1);
  animation: novedad-entrada 1.1s cubic-bezier(0.23, 1.12, 0.32, 1) both;
}
.novedad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 24px 24px 0;
}
.novedad-img-wrapper:hover .novedad-img {
  /* El hover ahora se aplica en la tarjeta completa, no solo en la imagen */
}

.card-futurista:hover .novedad-img {
  animation: novedad-hover 0.9s cubic-bezier(0.23, 1.12, 0.32, 1) both;
}
.novedad-content {
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.novedad-principal .novedad-content h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-style: italic;
}
.novedad-secundaria .novedad-content h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
  font-style: italic;
}
.novedad-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}
[data-theme="dark"] .card-futurista {
  background: linear-gradient(135deg, rgba(10,223,240,0.18) 0%, rgba(0,255,255,0.10) 100%);
  border: 1.5px solid #00fff7;
  box-shadow: 0 4px 32px 0 #00fff733, 0 1.5px 8px 0 #0ff8;
}
[data-theme="dark"] .novedad-principal .novedad-content h2,
[data-theme="dark"] .novedad-secundaria .novedad-content h3 {
  color: #fff !important;
}
[data-theme="dark"] .novedad-content p {
  color: #d1d5db;
}
@media (max-width: 1100px) {
  .novedades-grid {
    flex-direction: column;
    gap: 1.5rem;
    max-width: 98vw;
  }
  .novedad-principal, .novedades-secundarias {
    max-width: 100%;
    min-width: 0;
  }
  .novedades-secundarias {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
  }
}
@media (max-width: 700px) {
  .novedad-principal, .novedad-secundaria {
    min-height: 180px;
  }
  .novedad-img-wrapper {
    min-width: 80px;
    min-height: 80px;
    max-width: 90px;
    max-height: 90px;
  }
  .novedad-img {
    width: 48px;
    height: 48px;
  }
  .novedad-content {
    padding: 0.7rem 0.5rem;
  }
}
@keyframes card-futurista-in {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95) skewY(3deg);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes novedad-entrada {
  0% {
    transform: scale(0.85) rotate(-6deg);
    filter: brightness(0.7) blur(2px);
    opacity: 0.2;
  }
  60% {
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.2) blur(0.5px);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1) blur(0);
    opacity: 1;
  }
}
@keyframes novedad-hover {
  0% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1) blur(0);
  }
  60% {
    transform: scale(1.08) rotate(2deg);
    filter: brightness(1.2) blur(0.5px);
  }
  100% {
    transform: scale(1.03) rotate(-1deg);
    filter: brightness(1.05) blur(0);
  }
}
