@charset "UTF-8";

html {
  background: #182231 !important;
}

body {
  background: #eee9df !important;
}

#autoridades-retiro {
  background: #eee9df !important;
  background-color: #eee9df !important;
}

#autoridades-retiro .container,
#autoridades-retiro .row,
#autoridades-retiro .col-md-12,
#autoridades-retiro .col-lg-10 {
  background: transparent !important;
}

/* =========================================================
   AUTORIDAD NOTARIAL · RETIRO
   Pestañas y superficies alineadas con Normativa.
========================================================= */

.aq-wrap {
  padding-top: 0 !important;
  padding-bottom: 4.9rem !important;
}

.aq-shell {
  position: relative;
  padding: 1rem 1rem 1.15rem;
  border: 1px solid rgba(126, 105, 75, .24);
  border-radius: 0;
  background: var(--retiro-form-card, #ebe3d7) !important;
  overflow: hidden;
  box-shadow: none;
}

.aq-tabs-nav {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.aq-tab-btn {
  position: relative;
  min-height: 44px;
  padding: .8rem 1.05rem;
  border: 1px solid rgba(126, 105, 75, .30);
  border-radius: 0;
  background: transparent !important;
  color: var(--retiro-ink, #182231) !important;
  box-shadow: none;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: left;
  transition: border-color .22s ease, background-color .22s ease, color .22s ease;
}

.aq-tab-btn:hover,
.aq-tab-btn:focus-visible {
  border-color: rgba(158, 107, 37, .52);
  background: var(--retiro-form-field-focus, #f8f3eb) !important;
  color: var(--retiro-ink, #182231) !important;
  outline: 0;
}

.aq-tab-btn.active {
  border-color: var(--retiro-dark, #07111f);
  background: var(--retiro-dark, #07111f) !important;
  color: var(--retiro-ivory, #f4eadb) !important;
  box-shadow: none;
}

.aq-panel {
  display: none;
}

.aq-panel.active {
  display: block;
}

.aq-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.aq-card {
  padding: 1.4rem 1.4rem 1.45rem;
  border: 1px solid rgba(126, 105, 75, .22);
  border-radius: 0;
  background: var(--retiro-form-field, #f2eadf) !important;
  color: var(--retiro-form-muted, #625f58);
  box-shadow: none;
}

.aq-card-title,
.aq-suplentes-title {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.15rem !important;
  padding-bottom: .38rem;
  border-bottom: 1px solid rgba(143, 123, 82, .18);
  color: var(--retiro-ink, #182231) !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.2;
}

.aq-card-title::after,
.aq-suplentes-title::after {
  content: "";
  width: 30px;
  height: 1px;
  background: rgba(31, 40, 35, .42);
}

.aq-name {
  margin: 0 0 .72rem !important;
  color: var(--retiro-ink, #182231) !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 2.7vw, 2.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .01em;
}

.aq-role {
  width: 100%;
  max-width: none;
  margin: 0 0 .78rem !important;
  color: #4e5750 !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.04rem;
  line-height: 1.55;
}

.aq-role strong {
  font-weight: 700;
}

.aq-assumption {
  margin: 0 0 1.2rem !important;
  color: #7a6349 !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: .96rem;
  font-style: italic;
  line-height: 1.45;
}

.aq-divider {
  width: 100%;
  height: 1px;
  margin: 0 0 1.35rem;
  background: rgba(199, 140, 49, .62);
}

.aq-lead-text {
  width: 100%;
  max-width: none;
  color: var(--retiro-form-muted, #625f58);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.04rem;
  line-height: 1.78;
}

.aq-lead-text p {
  margin: 0 0 1.22rem !important;
  color: inherit !important;
  text-align: justify;
  text-justify: inter-word;
}

.aq-lead-text p:last-child {
  margin-bottom: 0 !important;
}

/* =========================================================
   SUPLENTES
========================================================= */

.aq-suplentes-wrap {
  padding: 1.15rem;
  border: 1px solid rgba(126, 105, 75, .22);
  border-radius: 0;
  background: var(--retiro-form-field, #f2eadf) !important;
  box-shadow: none;
}

.aq-suplentes-head {
  margin-bottom: 1.25rem;
}

.aq-suplentes-text {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  color: var(--retiro-form-muted, #625f58) !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1rem;
  line-height: 1.62;
}

.aq-suplentes-list {
  display: grid;
  gap: .78rem;
}

.aq-suplente-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(126, 105, 75, .20);
  border-radius: 0;
  background: rgba(251, 248, 242, .48);
  box-shadow: none;
  transition: border-color .22s ease, background-color .22s ease;
}

.aq-suplente-item:hover {
  border-color: rgba(126, 105, 75, .34);
  background: var(--retiro-form-field-focus, #f8f3eb);
}

.aq-suplente-mark {
  width: 8px;
  height: 8px;
  margin-top: .46rem;
  border: 1px solid var(--retiro-accent, #c78c31);
  transform: rotate(45deg);
}

.aq-suplente-name {
  margin: 0 0 .18rem !important;
  color: var(--retiro-ink, #182231) !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
}

.aq-suplente-role {
  margin: 0 !important;
  color: #7a6349 !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: .94rem;
  line-height: 1.4;
}

/* =========================================================
   ACCIONES
========================================================= */

.aq-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin: 1.35rem 0 2.8rem !important;
  padding: 0 !important;
}

.aq-actions.mbr-section-btn {
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: flex-start !important;
}

.aq-actions .btn,
.aq-actions a.btn,
.aq-actions .btn.btn-secondary-outline,
.aq-actions a.btn.btn-secondary-outline {
  min-height: 46px;
  margin: 0 !important;
  padding: .82rem 1.35rem !important;
  border: 1px solid rgba(126, 105, 75, .38) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--retiro-ink, #182231) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
  line-height: 1.2;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease !important;
}

.aq-actions .btn:hover,
.aq-actions .btn:focus,
.aq-actions a.btn:hover,
.aq-actions a.btn:focus,
.aq-actions .btn.btn-secondary-outline:hover,
.aq-actions .btn.btn-secondary-outline:focus,
.aq-actions a.btn.btn-secondary-outline:hover,
.aq-actions a.btn.btn-secondary-outline:focus {
  border-color: var(--retiro-dark, #07111f) !important;
  background: var(--retiro-dark, #07111f) !important;
  color: var(--retiro-ivory, #f4eadb) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

@media (max-width: 991.98px) {
  .aq-wrap {
    padding-bottom: 4.4rem !important;
  }

  /* El global aplica line-height:1 directamente a <p>;
     en responsive se fija el interlineado sobre el párrafo real. */
  .aq-lead-text p {
    line-height: 1.72;
  }

  .aq-actions .btn,
  .aq-actions a.btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .aq-wrap {
    padding-bottom: 4rem !important;
  }

  .aq-shell {
    padding: .85rem;
  }

  .aq-tabs-nav {
    gap: .65rem;
  }

  .aq-tab-btn {
    width: 100%;
  }

  .aq-card,
  .aq-suplentes-wrap {
    padding: 1.05rem;
  }

  .aq-name {
    font-size: 1.7rem;
  }

  .aq-lead-text {
    font-size: 1rem;
    line-height: 1.68;
  }

  .aq-lead-text p {
    margin-bottom: 1.05rem !important;
    line-height: 1.68;
  }

  .aq-suplente-item {
    padding: .9rem;
  }

  .aq-actions {
    margin-bottom: 2.4rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aq-tab-btn,
  .aq-suplente-item,
  .aq-actions .btn {
    transition: none !important;
  }
}
