/*
 * LC Medical Care - Public Prices Page
 * Diseño responsive para servicios, promociones y contenido multimedia.
 */

.prices-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #f4f8f8;
}

.prices-body .prices-page {
  flex: 1 0 auto;
}


.prices-body footer {
  margin-top: auto;
}

.prices-page {
  --prices-navy: #07223d;
  --prices-blue: #267fa8;
  --prices-teal: #36b9bb;
  --prices-lime: #b8f36a;
  --prices-text: #18364d;
  --prices-muted: #607789;
  --prices-surface: #ffffff;
  width: 100%;
  overflow: hidden;
  background: #f4f8f8;
}

.prices-container {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

/* Encabezado con imagen predeterminada. Después se conectará al administrador. */
.prices-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  padding: clamp(72px, 9vw, 126px) 0;
  color: #ffffff;
  background:
    linear-gradient(
      90deg,
      rgba(7, 34, 61, .99) 0%,
      rgba(7, 34, 61, .96) 38%,
      rgba(13, 70, 104, .78) 62%,
      rgba(13, 70, 104, .24) 100%
    ),
    url('../img/home/home-doctor.jpg') center right / cover no-repeat;
}

.prices-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 30%, rgba(184, 243, 106, .22), transparent 27%),
    linear-gradient(180deg, transparent 60%, rgba(7, 34, 61, .28));
}

.prices-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.prices-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  margin: 0 0 20px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: var(--prices-lime);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.prices-title {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.055em;
}

.prices-intro {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.7;
}

.prices-section {
  padding: clamp(58px, 7vw, 92px) 0;
}

.prices-section:nth-of-type(even) {
  background: #ffffff;
}

.prices-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.prices-section-heading h2 {
  margin: 0;
  color: var(--prices-navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.prices-section-heading p {
  max-width: 540px;
  margin: 10px 0 0;
  color: var(--prices-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.prices-promotion-grid,
.prices-service-grid,
.prices-media-grid {
  display: grid;
  gap: 24px;
}

.prices-promotion-grid,
.prices-media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prices-service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 34, 61, .09);
  border-radius: 26px;
  background: var(--prices-surface);
  box-shadow: 0 18px 45px rgba(7, 34, 61, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.price-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--prices-teal), var(--prices-blue));
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(54, 185, 187, .35);
  box-shadow: 0 26px 62px rgba(7, 34, 61, .14);
}

.price-card.is-featured {
  border-color: rgba(54, 185, 187, .5);
  box-shadow: 0 25px 62px rgba(38, 127, 168, .18);
}

.price-card.is-promotion {
  background: linear-gradient(145deg, #ffffff 0%, #f1ffdf 100%);
  border-color: rgba(145, 200, 75, .42);
}

.price-card.is-promotion::before {
  background: linear-gradient(90deg, #85cc4d, var(--prices-lime));
}

.price-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dceceb;
}

.price-card-media img,
.price-card-media video,
.price-card-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.price-card-body {
  padding: 28px;
}

.price-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 17px;
  padding: 0 13px;
  border-radius: 999px;
  background: #e5f8f7;
  color: #147d80;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.price-card.is-promotion .price-card-badge {
  background: var(--prices-lime);
  color: var(--prices-navy);
}

.price-card h3 {
  margin: 0;
  color: var(--prices-navy);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.price-card-description {
  margin: 15px 0 0;
  color: var(--prices-muted);
  line-height: 1.68;
  white-space: pre-line;
}

.price-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.price-card-old-price {
  color: #91a0ad;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: line-through;
}

.price-card-price {
  color: var(--prices-blue);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 950;
  letter-spacing: -.045em;
}

.price-card-dates {
  margin: 13px 0 0;
  color: #6d8192;
  font-size: .84rem;
  font-weight: 700;
}

.price-card-action,
.prices-cta-button {
  text-decoration: none;
}

.price-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 23px;
  padding: 0 20px;
  border-radius: 13px;
  background: var(--prices-navy);
  color: #ffffff;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease;
}

.price-card-action:hover {
  transform: translateY(-2px);
  background: #164d73;
}

.prices-empty {
  padding: clamp(32px, 6vw, 58px);
  border: 1px dashed rgba(7, 34, 61, .22);
  border-radius: 26px;
  background: #ffffff;
  color: var(--prices-muted);
  font-size: 1.05rem;
  text-align: center;
  box-shadow: 0 16px 42px rgba(7, 34, 61, .05);
}

.prices-cta {
  padding: clamp(54px, 7vw, 86px) 0;
  background: linear-gradient(180deg, #e9f8f6 0%, #dff3f0 100%);
}

.prices-cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 10%, rgba(184, 243, 106, .2), transparent 30%),
    var(--prices-navy);
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(7, 34, 61, .2);
}

.prices-cta-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.prices-cta-card p {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .8);
  line-height: 1.65;
}

.prices-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 27px;
  border-radius: 15px;
  background: var(--prices-lime);
  color: var(--prices-navy);
  font-weight: 950;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

.prices-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .prices-page,
html[data-theme="dark"] .prices-body {
  background: #071421;
}

html[data-theme="dark"] .prices-section:nth-of-type(even) {
  background: #091a2a;
}

html[data-theme="dark"] .price-card,
html[data-theme="dark"] .prices-empty {
  border-color: rgba(255, 255, 255, .12);
  background: #0d2236;
}

html[data-theme="dark"] .price-card.is-promotion {
  background: linear-gradient(145deg, #0d2236 0%, #183423 100%);
}

html[data-theme="dark"] .price-card h3,
html[data-theme="dark"] .prices-section-heading h2 {
  color: #f8fafc;
}

html[data-theme="dark"] .price-card-description,
html[data-theme="dark"] .prices-section-heading p,
html[data-theme="dark"] .prices-empty,
html[data-theme="dark"] .price-card-dates {
  color: #b9c7d3;
}

html[data-theme="dark"] .prices-cta {
  background: #071421;
}

@media (max-width: 980px) {
  .prices-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .prices-container {
    width: min(100% - 22px, 1180px);
  }

  .prices-hero {
    min-height: 380px;
    padding: 70px 0;
    background:
      linear-gradient(rgba(7, 34, 61, .9), rgba(7, 34, 61, .92)),
      url('../img/home/home-doctor.jpg') center / cover no-repeat;
  }

  .prices-section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .prices-promotion-grid,
  .prices-service-grid,
  .prices-media-grid {
    grid-template-columns: 1fr;
  }

  .prices-cta-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .prices-cta-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-card,
  .price-card-action,
  .prices-cta-button {
    transition: none;
  }
}