/* ------------------------------------------------------------------
   Servicios adicionales (página "Nuestros servicios"): banner que abre
   el <dialog> + el <dialog> mismo (ver /js/servicio-adicional.js).
   ------------------------------------------------------------------ */

.sa-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin: 0 0 56px;
  padding: 30px 36px;
  background: linear-gradient(110deg, #050503 0%, #1a1709 50%, #050503 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 6px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.sa-banner-texto {
  flex: 1 1 320px;
}

.sa-banner-etiqueta {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d4af37;
}

.sa-banner-titulo {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  color: #f4e3b2;
}

.sa-banner-detalle {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(244, 227, 178, 0.75);
}

.sa-banner-boton {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  background: #d4af37;
  border: none;
  border-radius: 4px;
  color: #000;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.sa-banner-boton:hover {
  background: #f4e3b2;
  transform: translateY(-2px);
}

.sa-banner-boton:focus-visible {
  outline: 2px solid #f4e3b2;
  outline-offset: 3px;
}

.sa-banner-boton .card-arrow-icon {
  font-style: normal;
}

@media (max-width: 768px) {
  .sa-banner {
    margin-bottom: 40px;
    padding: 26px 22px;
  }

  .sa-banner-titulo {
    font-size: 26px;
  }

  .sa-banner-boton {
    width: 100%;
    justify-content: center;
  }
}

/* El <dialog> va en la capa superior del navegador: queda sobre el header sticky
   sin pelear con z-index. */
.sa-dialogo {
  width: min(560px, calc(100vw - 32px));
  max-height: min(88vh, 760px);
  max-height: min(88dvh, 760px);
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  color: #2d3748;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* bootstrap.min.css (v4) fuerza "dialog { display: block }", que deja el <dialog> cerrado
   visible en el flujo de la página, tapando el formulario. */
.sa-dialogo:not([open]) {
  display: none;
}

.sa-dialogo[open] {
  display: flex;
  animation: sa-entrada 0.22s ease-out;
}

.sa-dialogo::backdrop {
  background: rgba(10, 9, 6, 0.62);
}

body:has(.sa-dialogo[open]) {
  overflow: hidden;
}

@keyframes sa-entrada {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-dialogo[open] {
    animation: none;
  }
}

.sa-caja {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

/* Misma franja negra y champán que el header del sitio: es lo único llamativo del modal. */
.sa-cabecera {
  position: relative;
  flex: none;
  padding: 26px 64px 22px 28px;
  background: linear-gradient(110deg, #050503 0%, #1a1709 50%, #050503 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.45);
}

.sa-titulo {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: #f4e3b2;
}

.sa-subtitulo {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: rgba(244, 227, 178, 0.72);
}

.sa-cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-radius: 50%;
  color: #d9c690;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.sa-cerrar:hover {
  color: #f4e3b2;
  background: rgba(244, 227, 178, 0.08);
}

.sa-cuerpo {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 28px 6px;
}

.sa-intro {
  max-width: 60ch;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #4a5568;
}

.sa-grupo {
  margin: 0 0 18px;
}

.sa-grupo-nombre {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1a202c;
}

.sa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sa-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #2d3748;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sa-chip:hover {
  border-color: #d4af37;
}

.sa-chip .fa-check {
  display: none;
  font-size: 11px;
  color: #d4af37;
}

.sa-chip[aria-pressed="true"] {
  background: #000;
  border-color: #000;
  color: #f4e3b2;
}

.sa-chip[aria-pressed="true"] .fa-check {
  display: inline-block;
}

.sa-nota {
  margin: 4px 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #718096;
}

.sa-pie {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 28px 20px;
  background: #fff;
  border-top: 1px solid #edf0f4;
}

.sa-estado {
  flex: 1 1 160px;
  margin: 0;
  font-size: 13px;
  color: #718096;
}

.sa-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.sa-seguir {
  padding: 10px 2px;
  background: none;
  border: none;
  color: #4a5568;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.sa-seguir:hover {
  color: #000;
}

.sa-cotizar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: #000;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.sa-cotizar i {
  font-size: 18px;
  color: #25d366;
}

.sa-cotizar:hover,
.sa-cotizar:focus {
  background: #2a2412;
  color: #fff;
  text-decoration: none;
}

.sa-cerrar:focus-visible,
.sa-chip:focus-visible,
.sa-seguir:focus-visible,
.sa-cotizar:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

@media screen and (max-width: 560px) {
  .sa-cabecera {
    padding: 22px 56px 18px 20px;
  }

  .sa-titulo {
    font-size: 21px;
  }

  .sa-cuerpo {
    padding: 18px 20px 4px;
  }

  .sa-pie {
    padding: 14px 20px 18px;
  }

  /* El botón principal queda arriba y a todo lo ancho, al alcance del pulgar */
  .sa-acciones {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
  }
}
