/* ==========================================================================
   Foto de encabezado (banner superior)
   ========================================================================== */

.cuidado-header-photo {
  position: relative;
  width: 100%;
  max-height: 40vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.cuidado-header-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.cuidado-header-photo__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(254, 251, 247, 0) 35%,
    rgba(254, 251, 247, 0.1) 55%,
    rgba(254, 251, 247, 0.3) 72%,
    rgba(254, 251, 247, 0.6) 88%,
    var(--color-yelowish) 100%
  );
}

/* ==========================================================================
   4 niveles de cuidado
   ========================================================================== */

.care-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.care-level {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  border: 1px solid var(--color-border);
}

.care-level:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.care-level__icon {
  width: 128px;
  height: 128px;
  object-fit: contain;
  margin: 0 auto;
}

.care-level h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line);
  color: var(--color-olivo);
}

.care-level__pavilion {
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  color: var(--color-text-secondary);
}

.care-level p.care-level__desc {
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  color: var(--color-900);
}

.care-level__link {
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  color: var(--color-olivo);
  font-weight: 600;
  transition: gap var(--transition-fast);
  display: inline-flex;
  gap: 4px;
}

.care-level__link:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .care-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .care-levels {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Tabla de tipos de estancia
   ========================================================================== */

.stay-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.stay-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
}

.stay-table th,
.stay-table td {
  text-align: left;
  padding: 14px 24px;
  width: 33.33%;
  vertical-align: top;
}

.stay-table thead th {
  background: var(--color-border);
  color: var(--color-900);
  font-weight: 600;
}

.stay-table tbody td {
  background: var(--color-white);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.stay-table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  .stay-table-wrap {
    overflow-x: visible;
  }

  .stay-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .stay-table thead {
    display: none;
  }

  .stay-table tbody {
    display: block;
  }

  .stay-table tr {
    display: block;
    background: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    padding: 4px 16px;
    box-shadow: var(--shadow-sm);
  }

  .stay-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .stay-table td {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: auto;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .stay-table tr > td:last-child {
    border-bottom: none;
  }

  .stay-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-900);
  }
}
