/* =========================================================
   DOCUMENTOS INSTITUCIONALES
   ESTILO SCUOLA INSTITUCIONAL
   ========================================================= */

.docs-page {
  --siv-blue: var(--navy, #003d71);
  --siv-blue-dark: var(--navy-dark, #00305f);
  --siv-gold: var(--gold, #b9985a);
  --siv-red: #b51f2f;
  --siv-cream: #f7f7f7;
  --siv-border: #dfe5ec;
  --siv-text: #173b63;
  --siv-muted: #52677e;

  width: 100%;
  max-width: 100%;
  color: var(--siv-text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

.docs-page *,
.docs-page *::before,
.docs-page *::after {
  box-sizing: border-box;
}

.docs-page a {
  text-decoration: none;
}

.docs-wide {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

.docs-inner {
  width: 100%;
  max-width: 1130px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  overflow-x: hidden;
}

.docs-section {
  width: 100%;
  max-width: 100%;
  padding: 70px 0;
  overflow-x: hidden;
}

.docs-section-soft {
  background: #f7f7f7;
}

.docs-page .row {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.docs-page [class*="col-"] {
  min-width: 0;
}

.docs-page p:empty {
  display: none;
}

.docs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--siv-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.docs-eyebrow::before {
  content: "";
  width: 48px;
  height: 2px;
  background: var(--siv-gold);
  display: inline-block;
  flex: 0 0 auto;
}

.docs-title,
.docs-title-small,
.docs-final h2 {
  font-family: var(--serif);
  color: var(--siv-blue-dark);
  font-weight: 500;
  letter-spacing: -.035em;
  text-transform: none;
}

.docs-title {
  max-width: 650px;
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1.08;
  margin: 0 0 28px;
}

.docs-title em {
  display: inline-block;
  color: var(--siv-gold);
  font-style: italic;
  font-weight: 400;
}

.docs-title-small {
  max-width: 720px;
  font-size: clamp(30px, 3.1vw, 42px);
  line-height: 1.08;
  margin: 0 0 22px;
}

.docs-lead {
  max-width: 760px;
  color: var(--siv-muted);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.docs-text {
  color: var(--siv-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.docs-intro-card {
  position: relative;
  max-width: 570px;
  background: #fff;
  padding: 34px 38px;
  border: 1px solid var(--siv-border);
  border-left: 3px solid var(--siv-red);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 8px 24px rgba(0,48,95,.06);
  overflow: hidden;
}

.docs-intro-card::after {
  content: "Docs";
  position: absolute;
  right: 14px;
  bottom: -5px;
  color: rgba(0,61,113,.045);
  font-size: 76px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  pointer-events: none;
}

.docs-note {
  min-height: 132px;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid var(--siv-border);
  border-top: 2px solid var(--siv-gold);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,48,95,.045);
  color: var(--siv-blue);
  overflow-wrap: anywhere;
}

.docs-note span {
  display: block;
  color: var(--siv-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: none;
  margin-bottom: 12px;
}

.docs-note p {
  font-family: var(--serif);
  color: var(--siv-blue-dark);
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.docs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 220px;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-bottom: 3px solid var(--siv-gold);
  padding: 30px 28px;
  box-shadow: 0 4px 14px rgba(0,48,95,.04);
  color: var(--siv-blue);
  text-decoration: none;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: break-word;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.docs-card:hover {
  transform: translateY(-3px);
  border-color: var(--siv-gold);
  background: #fbfbfb;
  color: var(--siv-blue);
  text-decoration: none;
}

.docs-card::before {
  content: attr(data-number);
  position: absolute;
  right: 22px;
  top: 18px;
  color: rgba(0,61,113,.055);
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
}

.docs-card-icon {
  width: 42px;
  height: 42px;
  background: var(--siv-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 22px;
  flex: 0 0 auto;
}

.docs-card h3 {
  position: relative;
  max-width: 100%;
  color: var(--siv-blue-dark);
  font-size: 17px;
  line-height: 1.22;
  font-weight: 800;
  margin: 0 0 12px;
  padding-right: 52px;
  overflow-wrap: break-word;
}

.docs-card p {
  position: relative;
  max-width: 100%;
  color: #25496c;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 22px;
  overflow-wrap: break-word;
}

.docs-card-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--siv-gold);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.docs-card-action::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
}

.docs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.docs-list > p {
  margin: 0;
}

.docs-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e6e6e6;
  text-decoration: none;
  color: #1d3557;
  transition: all 0.2s ease;
}

.docs-item:hover {
  transform: translateY(-2px);
  border-color: #c8a46c;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.docs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex: 0 0 24px;
  color: var(--siv-gold);
  font-size: 17px;
  line-height: 1;
}

.docs-name {
  flex: 1;
  font-weight: 500;
}

.docs-action {
  font-size: 14px;
  color: #c8a46c;
  font-weight: 500;
}

.docs-item:focus-visible {
  outline: 2px solid rgba(185,152,90,.75);
  outline-offset: 3px;
}

.docs-access {
  background: #fff;
  border: 1px solid #e4e9ef;
  border-left: 3px solid var(--siv-red);
  padding: 34px 36px;
  overflow: hidden;
}

.docs-access h3 {
  color: var(--siv-blue-dark);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 14px;
}

.docs-access p {
  color: #25496c;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
}

.docs-final {
  background: linear-gradient(135deg, rgba(0,61,113,.96), rgba(0,48,95,.96));
  color: #fff;
  padding: 82px 0;
}

.docs-final h2 {
  max-width: 800px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.02;
  margin: 0 0 22px;
}

.docs-final p {
  max-width: 760px;
  color: rgba(255,255,255,.9);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 991.98px) {
  .docs-section {
    padding: 55px 0;
  }

  .docs-title {
    font-size: 44px;
  }

  .docs-title-small {
    font-size: 34px;
  }

  .docs-intro-card {
    max-width: none;
  }

  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 575.98px) {
  .docs-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .docs-section {
    padding: 45px 0;
  }

  .docs-title {
    font-size: 38px;
  }

  .docs-title-small {
    font-size: 30px;
  }

  .docs-lead {
    font-size: 15px;
  }

  .docs-text {
    font-size: 13.5px;
  }

  .docs-intro-card {
    padding: 28px 24px;
  }

  .docs-intro-card::after {
    font-size: 56px;
  }

  .docs-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .docs-card {
    min-height: auto;
    padding: 28px 24px;
  }

  .docs-card h3 {
    padding-right: 38px;
  }

  .docs-card::before {
    font-size: 42px;
    right: 18px;
  }

  .docs-access {
    padding: 28px 24px;
  }

  .docs-final {
    padding: 58px 0;
  }
}

/* Fixes de overflow para grilla de documentos */
.docs-page,
.docs-wide,
.docs-section,
.docs-inner {
  max-width: 100%;
  overflow-x: hidden;
}

.docs-inner {
  width: 100%;
  max-width: 1130px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.docs-page .row {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.docs-page [class*="col-"] {
  min-width: 0;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.docs-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: break-word;
}

.docs-card h3,
.docs-card p,
.docs-card span {
  max-width: 100%;
  overflow-wrap: break-word;
}

.docs-card h3 {
  padding-right: 52px;
}

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

@media (max-width: 575.98px) {
  .docs-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .docs-card h3 {
    padding-right: 38px;
  }

  .docs-card::before {
    font-size: 42px;
    right: 18px;
  }
}
