/* ==========================================================================
   Derechos y Deberes — Clínica Palermo
   Figma: 857-4437 (1:1)
   ========================================================================== */

/* ─── Hero / Info — Figma: 1275×480, bg #d7e4f4, HORIZONTAL CENTER ─── */
.dd-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 480px;
  padding: 56px 0;
  overflow: hidden;
  background: #d7e4f4;
}

.dd-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.dd-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(215 228 244 / 88%) 0%, rgb(215 228 244 / 40%) 42%, transparent 72%);
}

.dd-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 452px;
}

.dd-hero__title {
  margin: 0 0 14px;
  font-family: var(--cp-font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 40px;
  color: #344054;
}

.dd-hero__title strong {
  color: #0d4fc0;
}

.dd-hero__subtitle {
  margin: 0 0 8px;
  font-family: var(--cp-font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 21.94px;
  color: #0d4fc0;
}

.dd-hero__description {
  margin: 0;
  font-family: var(--cp-font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 21.94px;
  color: #344054;
}

/* ─── Cards section — Figma: sub-seccion-que-ofrecemos, pad=56/0/56/0 ─── */
.dd-cards-section {
  padding: 56px 0;
}

/* ─── Cards container — Figma: white bg, r=10, VERTICAL, align=CENTER ─── */
.dd-cards-section .cp-container {
  background: #fff;
  border-radius: 10px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dd-cards-section__title {
  margin: 0 0 25px;
  font-family: var(--cp-font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 43.71px;
  color: #344054;
  text-align: center;
}

/* ─── Tabs — Figma: 545×74, bg #f5f5f5, r=50, pad=15, gap=10 ─── */
.dd-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  background: #f5f5f5;
  border-radius: 50px;
  padding: 15px;
  width: fit-content;
}

/* ─── Tab button ─── */
.dd-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 44px;
  border: none;
  border-radius: 20px;
  font-family: var(--cp-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 19.5px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-radius 0.2s ease;
  background: transparent;
  color: #344054;
  white-space: nowrap;
}

.dd-tab__icon {
  width: 24px;
  height: 24px;
  flex: none;
}

/* Active tab — Figma: blue bg #0d4fc0, r=20, white text, fw=700 */
.dd-tab--active {
  background: #0d4fc0;
  color: #fff;
  font-weight: 700;
  border-radius: 20px;
}

.dd-tab--active .dd-tab__icon {
  filter: brightness(0) invert(1);
}

/* Inactive tab hover */
.dd-tab:hover:not(.dd-tab--active) {
  background: rgba(14, 79, 190, 0.08);
}

.dd-tab:focus-visible {
  outline: 2px solid var(--cp-cyan-500);
  outline-offset: 2px;
}

/* ─── Cards grid — Figma: vertical, gap=25 ─── */
.dd-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  max-width: 797px;
}

.dd-cards-grid.is-hidden {
  display: none;
}

/* ─── Card individual — Figma: 797×103, white, r=15, horizontal, gap=0 ─── */
.dd-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  height: 103px;
}

/* Letter box — Figma: 106×103, light blue bg, blue text+border, r=[15,0,0,15] ─── */
.dd-card__letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 106px;
  flex-shrink: 0;
  background: #e8eefc;
  border: 1px solid #0d4fc0;
  border-radius: 15px 0 0 15px;
}

.dd-card__letter-text {
  font-family: var(--cp-font-heading);
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  color: #0d4fc0;
}

/* Text info — Figma: 691×103, stroke #d6ddeb, r=[0,15,15,0], pad=20, gap=5 ─── */
.dd-card__content {
  flex: 1;
  min-width: 0;
  padding: 20px;
  border: 1px solid #d6ddeb;
  border-radius: 0 15px 15px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.dd-card__title {
  margin: 0;
  font-family: var(--cp-font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 21.94px;
  color: #344054;
}

.dd-card__description {
  margin: 0;
  font-family: var(--cp-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 17.07px;
  color: #667085;
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
  .dd-hero { min-height: auto; padding: 32px 0; }
  .dd-hero__title { font-size: 24px; line-height: 30px; }
  .dd-hero__subtitle,
  .dd-hero__description { font-size: 16px; }
  .dd-cards-section { padding: 40px 0; }
  .dd-cards-section .cp-container { padding: 20px; }
  .dd-cards-section__title { font-size: 24px; }
  .dd-tabs { width: 100%; }
  .dd-tab { flex: 1; justify-content: center; font-size: 14px; padding: 0 12px; }
  .dd-card { flex-direction: column; height: auto; }
  .dd-card__letter {
    width: 100%;
    min-height: 80px;
    border-right: 1px solid #0d4fc0;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
  }
  .dd-card__content {
    padding: 20px;
    border-left: 1px solid #d6ddeb;
    border-top: 0;
    border-radius: 0 0 16px 16px;
  }
}
