.section-2 {
  padding: 3.75rem 0;
  background: var(--surface-section);
}

.subhero-container {
  display: flex;
  flex-direction: column;
  margin-left: 0;
  padding: 0 1.25rem 1.5rem;
}

.subhero {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.25;
  color: var(--brand-ink);
  margin-left: 6%;
}

.subhero-container p {
  padding: 1rem 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text-body);
  width: min(56.25rem, 100%);
  margin-left: 6%;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-left: 0;
  padding: 0 1.25rem 3rem;
}

.cards-container img {
  height: 200px;
  width: 300px;
}

.card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface-elevated);
  border: 1px solid rgba(29, 41, 61, 0.06);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: "Montserrat", sans-serif;
  justify-self: center;
}

.card:hover {
  transform: translateY(-0.375rem);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.cards-content,
.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem 1.4rem;
}

.card h3,
.card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 0.5rem;
  padding: 7% 7% 2% 7%;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.4;
  margin-bottom: 0;
  padding: 0 7% 7% 7%;
}

.card button.ver-mas {
  margin-top: auto;
  background: none;
  border: none;
  color: var(--brand-blue-strong);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4% 7%;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.card button.ver-mas:hover {
  color: var(--brand-blue);
  transform: translateX(2px);
}

dialog {
  margin: auto;
  width: min(45rem, 92vw);
  border: none;
  border-radius: 1rem;
  padding: 0;
  background: transparent;
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background: var(--overlay);
  animation: fadeIn 0.15s ease-out;
}

.modal {
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-height: 85vh;
  background: var(--surface-elevated);
}

.modal__header,
.modal__footer {
  padding: 1rem 1.125rem;
  border-bottom: 0.0625rem solid var(--border-soft);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.modal__footer {
  border-top: 0.0625rem solid var(--border-soft);
  border-bottom: 0;
  justify-content: flex-end;
  background-color: var(--surface-elevated-muted);
}

.modal__title {
  margin: 0;
  font-size: 19.2px;
  font-weight: 700;
  letter-spacing: 0.0125rem;
  color: var(--text-strong);
  font-family: var(--font-heading);
}

.modal__subtitle{
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.0125rem;
  color: var(--text-strong);
  font-family: var(--font-heading);
}

.modal__body {
  padding: 1rem 1.125rem;
  overflow: auto;
  min-height: 0;
  line-height: 1.55;
  color: var(--text-body);
  font-family: "Montserrat", sans-serif;
}

.modal-subtitle {
  font-size: 17.6px;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 0.625rem;
  font-family: var(--font-heading);
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.modal-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.55rem;
}

.modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--brand-blue);
  box-shadow: 0 0 0 0.2rem rgba(29, 100, 255, 0.12);
}

.modal__close {
  margin-left: auto;
  border: 0.0625rem solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text-strong);
  border-radius: 0.7rem;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.06s ease, box-shadow 0.2s ease;
}

.modal__header .modal__close {
  background: var(--surface-elevated-muted);
}

.modal__header .modal__close:hover {
  background: var(--surface-accent);
  transform: translateY(-0.0625rem);
}

body.modal-open {
  overflow: hidden;
}

.modal__footer button,
.modal__close {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal__footer .modal__close {
  margin-left: 0;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-strong) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-blue);
}

.modal__footer .modal__close:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 24px 42px rgba(29, 100, 255, 0.26);
}

.modal__footer .modal__close:active {
  transform: translateY(0);
  box-shadow: var(--shadow-blue);
}

.modal-ordered-list {
  margin: 0 0 1.25rem 1.35rem;
  padding: 0;
}

.modal-ordered-list li {
  margin-bottom: 0.45rem;
  padding-left: 0.2rem;
}

.modal-checked-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.modal-checked-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.6rem;
}

.modal-checked-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid rgba(29, 41, 61, 0.5);
  border-radius: 0.15rem;
  background: var(--surface-elevated);
}

.renta-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 52rem;
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
  align-items: start;
}

.renta-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.renta-table thead th,
.renta-table__section th {
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-strong) 100%);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.renta-table tbody th,
.renta-table tbody td {
  width: 50%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(29, 41, 61, 0.1);
  text-align: center;
}

.renta-table tbody th {
  color: var(--text-strong);
  font-weight: 600;
  background: rgba(29, 100, 255, 0.04);
}

.renta-table tbody td {
  color: var(--brand-ink);
  font-weight: 700;
  background: #fff;
}

@media (max-width: 760px) {
  .renta-examples {
    grid-template-columns: 1fr;
  }
}

html,
body {
  overflow-x: hidden;
}

@media (max-width: 1024px) {
  .cards-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .subhero {
    font-size: 2.4rem;
    margin-left: 2%;
  }

  .subhero-container p {
    max-width: 42rem;
    margin-left: 2%;
  }
}

@media (max-width: 640px) {
  dialog {
    width: calc(100vw - 2rem);
    max-height: calc(100dvh - 6.5rem - env(safe-area-inset-top));
    margin: calc(5.5rem + env(safe-area-inset-top)) auto 1rem;
    overflow: hidden;
  }

  .modal {
    max-height: inherit;
  }

  .section-2 {
    padding: 2.5rem 0;
  }

  .subhero-container {
    padding: 0 1rem 1.25rem;
  }

  .subhero {
    font-size: 2rem;
    line-height: 1.15;
    margin-left: 2%;
  }

  .subhero-container p {
    max-width: none;
    width: 100%;
    font-size: 1rem;
    margin-left: 2%;
  }

  .cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem 2.25rem;
  }

  .card {
    max-width: 100%;
    border-radius: 14px;
  }

  .card img {
    height: 190px;
  }

  .card h4 {
    padding: 1rem 1rem 0.5rem;
  }

  .card p {
    padding: 0 1rem 1rem;
  }

  .card button.ver-mas {
    padding: 0 1rem 1.25rem;
  }
}
