.deal-page {
  background: var(--bg);
}

/* Ensure main content is positioned for proper parallax containment */
.deal-page #main-content {
  position: relative;
  z-index: 1;
}

/* Section wrapper */
.mp-deal-detail {
  position: relative;
  z-index: 1;
  padding: 3rem 0 5rem;
}

/* Main panel - wraps everything */
.mp-deal-detail__panel {
  position: relative;
  z-index: 2;
  background: rgba(8, 10, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Hero grid - title left, image right */
.mp-deal-detail__hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.mp-deal-detail__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

.mp-deal-detail__media {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.mp-deal-detail__image {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.mp-deal-detail__image.flotante,
.mp-deal-detail .flotante {
  animation: flotar 3s ease-in-out infinite;
  top: 0 !important; /* Override global .flotante top: -150px from planes.css */
  position: relative !important;
}

@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Content/description */
.mp-deal-detail__content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d5dbe6;
}

.mp-deal-detail__content p {
  margin: 0 0 1.1rem;
}

.mp-deal-detail__content p:last-child {
  margin-bottom: 0;
}

.mp-deal-detail__content h2,
.mp-deal-detail__content h3,
.mp-deal-detail__content h4 {
  margin: 1.8rem 0 0.9rem;
  font-weight: 700;
  color: #fff;
}

.mp-deal-detail__content ul,
.mp-deal-detail__content ol {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}

.mp-deal-detail__content em {
  display: none;
}

/* Cards section */
.mp-deal-detail__cards {
  margin-top: 2rem;
  display: grid;
  gap: 1.6rem;
}

/* Individual card */
.mp-deal-detail-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.6rem;
  align-items: stretch;
  padding: 1.8rem;
  background: rgba(12, 16, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.mp-deal-detail-card__logo {
  background: #fff;
  border-radius: 18px;
  padding: 1.2rem;
  border: 1px solid #e6e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  height: 100%;
}

.mp-deal-detail-card__logo img {
  width: 100%;
  max-width: 200px;
  max-height: 120px;
  height: auto;
  object-fit: contain;
  display: block;
}

.mp-deal-detail-card__body {
  display: grid;
  gap: 0.9rem;
  align-content: center;
}

.mp-deal-detail-card__list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  list-style: none;
}

.mp-deal-detail-card__list li {
  position: relative;
  padding: 0.6rem 1rem 0.6rem 2.2rem;
  border-radius: 12px;
  background: var(--rojo);
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
}

.mp-deal-detail-card__list li::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #fff;
  transform: translateY(-50%);
}

.mp-deal-detail-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: var(--amarillo);
  color: #000;
  font-weight: 700;
  border: 1px solid transparent;
  width: fit-content;
  justify-self: center;
  box-shadow: 0 12px 30px rgba(254, 236, 2, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.mp-deal-detail-card__cta:hover {
  background: #f7de00;
  color: #000;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 991px) {
  .mp-deal-detail__hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mp-deal-detail__media {
    justify-content: center;
    order: -1;
  }

  .mp-deal-detail__image {
    max-width: 380px;
  }

  .mp-deal-detail-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mp-deal-detail-card__logo {
    margin: 0 auto;
    max-width: 220px;
  }

  .mp-deal-detail-card__body {
    justify-items: center;
  }
}

@media (max-width: 768px) {
  .mp-deal-detail {
    padding: 2rem 0 3rem;
  }

  .mp-deal-detail__panel {
    padding: 1.5rem;
  }

  .mp-deal-detail__image {
    max-width: 300px;
  }
}
