/* =========================================================
   CONTACTO · SEGUNDA NOTARÍA DE PARRAL CON ASIENTO EN RETIRO
   Página aislada: no redefine menú ni footer globales.
========================================================= */

/* Fondo raíz de la página.
   Evita destellos claros durante la transición del menú fijo
   entre su estado compacto y normal al volver al inicio. */
html {
  background: #182231 !important;
}

#contacto-retiro {
  --contact-bg: var(--retiro-form-section-bg);
  --contact-card: var(--retiro-form-card);
  --contact-field: var(--retiro-form-field);
  --contact-field-focus: var(--retiro-form-field-focus);
  --contact-ink: #313833;
  --contact-muted: var(--retiro-form-muted);
  --contact-bronze: #a7874e;
  --contact-bronze-soft: rgba(143, 123, 82, .24);
  --contact-dark: #182231;
  background: var(--contact-bg) !important;
  padding: 4.65rem 0 6.2rem;
}

#contacto-retiro .cl-wrap {
  width: min(1240px, calc(100% - 48px));
  max-width: none;
  padding: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(390px, .96fr);
  gap: 1.6rem;
  align-items: stretch;
}

.cl-shell {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cl-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  padding: 1.75rem 1.7rem 1.8rem;
  border: 1px solid rgba(126, 105, 75, .16);
  border-radius: 0;
  background: var(--contact-card);
  box-shadow: 0 8px 24px rgba(31, 40, 35, .045);
  color: var(--contact-ink);
}

.cl-card-head {
  padding-bottom: 1.15rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid rgba(126, 105, 75, .18);
}

.cl-card-title {
  margin: 0 0 .45rem;
  color: var(--contact-ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.62rem, 1.34rem + .5vw, 1.98rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .008em;
}

.cl-card-subtitle {
  margin: 0;
  color: var(--contact-muted);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.64;
}

.cl-form {
  flex: 1 1 auto;
}

.cl-form .form-control,
.cl-form .input-group-text {
  min-height: 52px;
  border: 1px solid rgba(126, 105, 75, .24) !important;
  border-radius: 0 !important;
  background: var(--contact-field) !important;
  color: var(--contact-ink) !important;
  box-shadow: none !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.02rem;
}

.cl-form .form-control {
  padding: .82rem .96rem;
}

.cl-form .form-control::placeholder {
  color: #6a675f !important;
  opacity: 1;
}

.cl-form .form-control:focus {
  border-color: rgba(167, 135, 78, .55) !important;
  background: var(--contact-field-focus) !important;
  box-shadow: inset 3px 0 0 rgba(167, 135, 78, .5) !important;
}

/* Mantiene la paleta cálida cuando Chrome/Edge autocompletan campos. */
.cl-form .form-control:-webkit-autofill,
.cl-form .form-control:-webkit-autofill:hover,
.cl-form .form-control:-webkit-autofill:active {
  -webkit-text-fill-color: var(--contact-ink) !important;
  caret-color: var(--contact-ink);
  -webkit-box-shadow: 0 0 0 1000px var(--contact-field) inset !important;
  box-shadow: 0 0 0 1000px var(--contact-field) inset !important;
  transition: background-color 9999s ease-out 0s;
}

.cl-form .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--contact-ink) !important;
  caret-color: var(--contact-ink);
  border-color: rgba(167, 135, 78, .55) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--contact-field-focus) inset !important;
  box-shadow: 0 0 0 1000px var(--contact-field-focus) inset !important;
}

.cl-form .form-control:autofill {
  color: var(--contact-ink) !important;
  background: var(--contact-field) !important;
}

.cl-form textarea.form-control {
  min-height: 205px;
  resize: vertical;
  line-height: 1.55;
}

.cl-phone-group .input-group-text {
  justify-content: center;
  padding-inline: .72rem;
}

.cl-phone-group .cl-flag {
  border-right: 0 !important;
}

.cl-phone-group .cl-prefix {
  border-left: 0 !important;
  border-right: 0 !important;
  color: #5e665f !important;
  font-weight: 600;
}

.cl-phone-group .form-control {
  border-left: 0 !important;
}

.cl-hint {
  margin: .78rem 0 0;
  color: var(--contact-muted);
  font-family: "EB Garamond", Georgia, serif;
  font-size: .98rem;
  line-height: 1.55;
}

.cl-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.cl-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: .35rem;
}

.cl-actions .btn,
.cl-actions .btn.btn-secondary-outline {
  min-height: 48px;
  margin: 0 !important;
  padding: .84rem 1.55rem !important;
  border-radius: 0 !important;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: .01em;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease !important;
}

.cl-actions .btn:hover,
.cl-actions .btn:focus {
  border-color: var(--contact-dark) !important;
  background: var(--contact-dark) !important;
  color: var(--retiro-ivory) !important;
  box-shadow: none !important;
}

.cl-actions .btn:disabled {
  cursor: wait;
  opacity: .72;
}

.ci-card {
  position: relative;
  padding: 0 0 1.08rem;
  margin: 0 0 1.08rem;
  border: 0;
  border-bottom: 1px solid rgba(126, 105, 75, .17);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ci-card:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.ci-label {
  display: block;
  margin-bottom: .48rem;
  color: #7c6238;
  font-family: "EB Garamond", Georgia, serif;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.ci-contact-link {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: .64rem;
  max-width: 100%;
  color: var(--contact-ink) !important;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.52;
  text-decoration: none !important;
}

.ci-contact-email-list {
  display: grid;
  gap: .68rem;
  align-items: start;
}

.ci-contact-link > span:last-child {
  min-width: 0;
  max-width: 100%;
  width: fit-content;
  overflow-wrap: anywhere;
  word-break: normal;
  background-image: linear-gradient(rgba(130, 107, 67, .76), rgba(130, 107, 67, .76));
  background-repeat: no-repeat;
  background-position: left calc(100% - .02em);
  background-size: 0 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .24s ease;
}

.ci-contact-link::after {
  content: none;
  display: none;
}

.ci-contact-link:hover > span:last-child,
.ci-contact-link:focus > span:last-child {
  background-size: 100% 1px;
}

.ci-contact-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: var(--contact-bronze);
}

.ci-contact-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.ci-contact-icon-mail {
  color: #b65d54;
}

.ci-contact-icon-phone {
  color: #5c8fae;
}

.ci-contact-icon-location {
  color: #9a7a43;
}

.ci-card-schedule {
  flex: 0 0 auto;
}

.ci-schedule-group {
  display: grid;
  gap: .42rem;
  color: var(--contact-ink);
  font-family: "EB Garamond", Georgia, serif;
  line-height: 1.45;
}

.ci-schedule-group strong {
  font-size: 1.06rem;
  font-weight: 800;
}

.ci-schedule-times {
  display: grid;
  gap: .2rem;
  color: #566158;
  font-size: 1rem;
}

.ci-schedule-months {
  color: #646c65;
  font-size: .98rem;
  font-style: normal;
}

.ci-schedule-divider {
  height: 1px;
  margin: 1rem 0;
  background: rgba(126, 105, 75, .14);
}

/* =========================================================
   SWEETALERT · MISMO COMPORTAMIENTO VALIDADO EN VALIDACIÓN
========================================================= */
html.swal2-shown {
  overflow: visible !important;
}

body.swal2-shown {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  overflow: auto !important;
  padding-right: 0 !important;
}

.swal2-container {
  position: fixed !important;
  inset: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: contain;
}

.swal2-container.swal2-backdrop-show {
  background: rgba(8, 14, 22, .26) !important;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.swal2-container .swal2-popup.cl-swal-popup {
  border: 1px solid rgba(143, 123, 82, .20) !important;
  border-radius: 0 !important;
  background: var(--contact-bg, #eee9df) !important;
  box-shadow: 0 18px 40px rgba(31, 40, 35, .16) !important;
  padding: 1.35rem 1.25rem 1.2rem !important;
}

.swal2-container .swal2-title.cl-swal-title {
  margin-bottom: .45rem !important;
  color: #313833 !important;
  font-family: "EB Garamond", Georgia, serif !important;
  font-size: 1.7rem !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
}

.swal2-container .swal2-html-container.cl-swal-text {
  margin-top: 0 !important;
  color: #566158 !important;
  font-family: "EB Garamond", Georgia, serif !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
}

.swal2-container button.swal2-confirm.cl-swal-confirm.swal2-styled {
  border: 1px solid rgba(110, 88, 60, .28) !important;
  border-radius: 0 !important;
  background: var(--retiro-form-button) !important;
  color: #41483f !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .05) !important;
  font-family: "EB Garamond", Georgia, serif !important;
  font-weight: 700 !important;
  padding: .78rem 1.3rem !important;
}

.swal2-container button.swal2-confirm.cl-swal-confirm.swal2-styled:hover,
.swal2-container button.swal2-confirm.cl-swal-confirm.swal2-styled:focus {
  background: #182231 !important;
  color: #fff !important;
  border-color: #182231 !important;
  box-shadow: 0 10px 20px rgba(31, 40, 35, .20) !important;
}

.swal2-container .swal2-icon.swal2-warning {
  border-color: rgba(182, 160, 113, .75) !important;
  color: #9b7842 !important;
}

.swal2-container .swal2-icon.swal2-error {
  border-color: rgba(168, 86, 74, .55) !important;
  color: #9f4d41 !important;
}

.swal2-container .swal2-icon.swal2-success {
  border-color: rgba(86, 139, 105, .45) !important;
  color: #4e8a66 !important;
}

@media (max-width: 991.98px) {
  #contacto-retiro {
    padding: 3.7rem 0 5rem;
  }

  #contacto-retiro .cl-wrap {
    width: min(760px, calc(100% - 36px));
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    align-items: start;
  }

  .cl-shell {
    height: auto;
  }

  .cl-card-title {
    text-align: center;
  }

  .cl-card-subtitle,
  .cl-hint {
    text-align: justify;
    text-align-last: left;
  }

  .cl-actions {
    justify-content: center;
  }

  .cl-shell-info .ci-card,
  .cl-shell-info .ci-label,
  .cl-shell-info .ci-schedule-group,
  .cl-shell-info .ci-schedule-times,
  .cl-shell-info .ci-schedule-months {
    text-align: center;
  }

  .cl-shell-info .ci-contact-link {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .cl-shell-info .ci-contact-email-list {
    width: 100%;
    justify-items: center;
  }

  .cl-shell-info .ci-contact-icon {
    margin-top: 0;
  }

  .cl-shell-info .ci-schedule-group {
    justify-items: center;
  }

  .cl-shell-info .ci-contact-link::after {
    content: none;
    display: none;
  }
}

@media (max-width: 575.98px) {
  #contacto-retiro {
    padding: 3rem 0 4rem;
  }

  #contacto-retiro .cl-wrap {
    width: calc(100% - 28px);
  }

  .cl-shell {
    padding: 0;
    border-radius: 0;
  }

  .cl-card {
    padding: 1.3rem 1.05rem 1.4rem;
  }

  .cl-card-title {
    font-size: 1.48rem;
  }

  .cl-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .swal2-container .swal2-popup.cl-swal-popup {
    width: calc(100% - 1.4rem) !important;
    padding: 1.1rem 1rem 1rem !important;
  }
}