/* ==================================================
   GARANTÍASUY
   PÁGINA EDITORIAL DE GARANTÍAS
================================================== */

@import url("./styles.css");


/* ==================================================
   1. HERO DE GARANTÍAS
================================================== */

.guarantees-editorial-hero {
  padding: 6.5rem 0 6rem;
  background-color: var(--page);
  border-bottom: 1px solid var(--line);
}

.guarantees-editorial-hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(320px, 0.85fr);
  gap: 6rem;
  align-items: center;
}

.guarantees-editorial-hero-content {
  max-width: 760px;
}

.guarantees-editorial-hero-content h1 {
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.guarantees-editorial-description {
  max-width: 650px;
  font-size: 1rem;
  line-height: 1.78;
}

.guarantees-editorial-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.guarantees-editorial-note {
  max-width: 620px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.67rem;
}


/* ==================================================
   2. RESUMEN DEL HERO
================================================== */

.guarantees-editorial-summary {
  padding: 1.5rem 0;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--line);
}

.guarantees-summary-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.guarantees-summary-heading span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guarantees-summary-heading strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.guarantees-summary-list {
  margin-bottom: 1.1rem;
}

.guarantees-summary-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.guarantees-summary-list dt {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.guarantees-summary-list dd {
  color: var(--muted);
  font-size: 0.67rem;
}


/* ==================================================
   3. NAVEGACIÓN INTERNA
================================================== */

.guarantees-internal-navigation {
  position: sticky;
  top: 0;
  z-index: 120;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.guarantees-internal-navigation-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.guarantees-internal-navigation a {
  position: relative;
  flex-shrink: 0;
  padding: 0.9rem 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.guarantees-internal-navigation a:hover {
  color: var(--navy);
}

.guarantees-internal-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background-color: transparent;
}

.guarantees-internal-navigation a:hover::after {
  background-color: var(--navy);
}


/* ==================================================
   4. DIRECTORIO RESUMIDO
================================================== */

.guarantees-directory-section {
  padding: 6rem 0;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}

.guarantees-directory-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
}

.guarantees-directory-table {
  width: 100%;
  min-width: 930px;
  border-collapse: collapse;
}

.guarantees-directory-table th,
.guarantees-directory-table td {
  padding: 1rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.guarantees-directory-table thead th {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.guarantees-directory-table tbody th {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.guarantees-directory-table tbody td {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.guarantees-directory-table tbody tr {
  transition: background-color var(--transition);
}

.guarantees-directory-table tbody tr:hover {
  background-color: var(--paper-hover);
}

.guarantees-directory-table a {
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
}

.guarantees-directory-table a:hover {
  text-decoration: underline;
}


/* ==================================================
   5. SECCIÓN INDIVIDUAL DE GARANTÍA
================================================== */

.guarantee-editorial-section {
  padding: 6.5rem 0;
  background-color: var(--page);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 70px;
}

.guarantee-editorial-section-paper {
  background-color: var(--paper);
}

.guarantee-editorial-article {
  max-width: 1120px;
  margin-inline: auto;
}


/* ==================================================
   6. ENCABEZADO DE CADA GARANTÍA
================================================== */

.guarantee-editorial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line-strong);
}

.guarantee-editorial-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: start;
  max-width: 800px;
}

.guarantee-editorial-index {
  padding-top: 0.3rem;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.guarantee-editorial-type {
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guarantee-editorial-heading h2 {
  margin-bottom: 0.65rem;
}

.guarantee-editorial-lead {
  max-width: 700px;
  font-size: 0.83rem;
  line-height: 1.72;
}

.guarantee-information-label {
  flex-shrink: 0;
  padding: 0.38rem 0.65rem;
  color: var(--green);
  background-color: var(--green-soft);
  border: 1px solid rgb(70 100 84 / 0.2);
  font-size: 0.6rem;
  font-weight: 600;
}

.guarantee-information-label-limited {
  color: var(--amber);
  background-color: var(--amber-soft);
  border-color: rgb(128 107 60 / 0.22);
}


/* ==================================================
   7. DATOS PRINCIPALES
================================================== */

.guarantee-editorial-data-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.guarantee-editorial-data-grid dl {
  min-height: 130px;
  padding: 1rem;
  background-color: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guarantee-editorial-section-paper
.guarantee-editorial-data-grid dl {
  background-color: var(--page);
}

.guarantee-editorial-data-grid dt {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.guarantee-editorial-data-grid dd {
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.guarantee-editorial-data-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.45;
}


/* ==================================================
   8. COLUMNAS INFORMATIVAS
================================================== */

.guarantee-editorial-columns {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 3rem;
  margin-top: 2.5rem;
}

.guarantee-editorial-columns > section {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-strong);
}

.guarantee-editorial-columns h3 {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.guarantee-editorial-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.guarantee-editorial-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.guarantee-editorial-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 4px;
  height: 4px;
  content: "";
  background-color: var(--navy);
  border-radius: 50%;
}


/* ==================================================
   9. OBSERVACIONES
================================================== */

.guarantee-editorial-observations {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.guarantee-editorial-observations > div {
  padding: 1rem;
  border-top: 2px solid var(--line-strong);
  background-color: transparent;
}

.guarantee-editorial-observations > div:first-child {
  border-top-color: var(--green);
}

.guarantee-editorial-observations > div:last-child {
  border-top-color: var(--amber);
}

.guarantee-editorial-observations strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 600;
}

.guarantee-editorial-observations p {
  font-size: 0.69rem;
  line-height: 1.62;
}


/* ==================================================
   10. PIE DE CADA GARANTÍA
================================================== */

.guarantee-editorial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}


/* ==================================================
   11. CÓMO ELEGIR
================================================== */

.guarantees-choice-section {
  padding: 6rem 0;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 70px;
}

.guarantees-choice-list {
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.guarantees-choice-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.guarantees-choice-list li > span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.guarantees-choice-list h3 {
  margin-bottom: 0.3rem;
  font-size: 0.94rem;
}

.guarantees-choice-list p {
  max-width: 760px;
  font-size: 0.72rem;
}

.guarantees-choice-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}


/* ==================================================
   12. AVISO LEGAL
================================================== */

.guarantees-legal-section {
  padding: 3rem 0;
  background-color: var(--page);
  border-bottom: 1px solid var(--line);
}

.guarantees-legal-content {
  display: grid;
  grid-template-columns:
    minmax(180px, 0.35fr)
    minmax(0, 1fr);
  gap: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.guarantees-legal-content strong {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
}

.guarantees-legal-content p {
  max-width: 800px;
  font-size: 0.7rem;
  line-height: 1.65;
}


/* ==================================================
   13. MODO OSCURO
================================================== */

body.dark-mode
.guarantees-editorial-summary,
body.dark-mode
.guarantee-editorial-data-grid,
body.dark-mode
.guarantees-directory-table-wrapper {
  border-color: var(--line);
}

body.dark-mode
.guarantee-editorial-data-grid dl {
  background-color: var(--paper);
}

body.dark-mode
.guarantee-editorial-section-paper
.guarantee-editorial-data-grid dl {
  background-color: var(--page);
}

body.dark-mode
.guarantee-information-label {
  border-color: rgb(141 173 155 / 0.2);
}

body.dark-mode
.guarantee-information-label-limited {
  border-color: rgb(195 171 118 / 0.2);
}


/* ==================================================
   14. RESPONSIVE — TABLET
================================================== */

@media (max-width: 1050px) {
  .guarantees-editorial-hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .guarantees-editorial-summary {
    max-width: 720px;
  }

  .guarantee-editorial-data-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


/* ==================================================
   15. RESPONSIVE — TABLET CHICA
================================================== */

@media (max-width: 820px) {
  .guarantee-editorial-header {
    flex-direction: column;
    gap: 1rem;
  }

  .guarantee-information-label {
    align-self: flex-start;
  }

  .guarantee-editorial-columns,
  .guarantee-editorial-observations {
    grid-template-columns: 1fr;
  }

  .guarantee-editorial-columns {
    gap: 1.5rem;
  }
}


/* ==================================================
   16. RESPONSIVE — CELULAR
================================================== */

@media (max-width: 720px) {
  .guarantees-editorial-hero {
    padding: 4.5rem 0;
  }

  .guarantees-editorial-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .guarantees-editorial-actions
  .editorial-button {
    width: 100%;
  }

  .guarantees-internal-navigation {
    position: static;
  }

  .guarantees-directory-section,
  .guarantee-editorial-section,
  .guarantees-choice-section {
    padding: 4.5rem 0;
  }

  .guarantee-editorial-heading {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .guarantee-editorial-index {
    padding-top: 0;
  }

  .guarantee-editorial-data-grid {
    grid-template-columns: 1fr;
  }

  .guarantee-editorial-data-grid dl {
    min-height: auto;
  }

  .guarantee-editorial-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .guarantee-editorial-footer
  .editorial-button {
    width: 100%;
  }

  .guarantees-choice-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .guarantees-choice-actions
  .editorial-button {
    width: 100%;
  }

  .guarantees-legal-content {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}


/* ==================================================
   17. RESPONSIVE — CELULAR CHICO
================================================== */

@media (max-width: 430px) {
  .guarantees-summary-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .guarantees-summary-list > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .guarantees-choice-list li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .guarantees-directory-table {
    min-width: 820px;
  }
}


/* ==================================================
   18. IMPRESIÓN
================================================== */

@media print {
  .guarantees-internal-navigation,
  .guarantees-editorial-actions,
  .guarantee-editorial-footer,
  .guarantees-choice-actions,
  .editorial-closing-section,
  .editorial-footer {
    display: none !important;
  }

  .guarantees-editorial-hero,
  .guarantees-directory-section,
  .guarantee-editorial-section,
  .guarantees-choice-section,
  .guarantees-legal-section {
    padding: 1.5rem 0;
    background-color: #ffffff;
  }

  .guarantee-editorial-article {
    break-inside: avoid;
  }

  .guarantee-editorial-data-grid dl {
    background-color: #ffffff;
  }
}


/* ==================================================
   FIN DEL ARCHIVO
================================================== */