/*
  custom.css
  ---------------------------------------------------------------------------
  Aquí puedes meter tus cambios SIN tocar los estilos del template.

  Ejemplos:
  :root { --brand-color: #0b3a66; }
  .navbar-brand img { max-height: 44px; }
*/

/* --------------------------------------------------------------------------
   MODAL (Política de privacidad) — /empresa/contacto
   -------------------------------------------------------------------------- */

body.vhi-modal-open {
  overflow: hidden;
}

.vhi-modal[hidden] {
  display: none !important;
}

.vhi-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.vhi-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.vhi-modal__panel {
  position: relative;
  width: min(1100px, 100%);
  height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

html.dark .vhi-modal__panel {
  background: #0f1115;
}

.vhi-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html.dark .vhi-modal__header {
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

.vhi-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
}

.vhi-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

html.dark .vhi-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.vhi-modal__body {
  flex: 1;
  background: transparent;
}

.vhi-modal__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.vhi-modal__footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

html.dark .vhi-modal__footer {
  border-top-color: rgba(255, 255, 255, 0.10);
}

.sg-call-modal {
  padding: clamp(10px, 2vw, 24px);
}

.sg-call-modal .vhi-modal__panel {
  width: min(1180px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
}

.sg-call-modal .vhi-modal__body {
  overflow: auto;
  background: #ffffff;
}

html.dark .sg-call-modal .vhi-modal__body {
  background: #0f1115;
}

.sg-call-modal__iframe {
  min-height: 563px;
  background: #ffffff;
}

html.dark .sg-call-modal__iframe {
  background: #0f1115;
}

@media (max-width: 767px) {
  .sg-call-modal {
    padding: 0;
  }

  .sg-call-modal .vhi-modal__panel {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .sg-call-modal__iframe {
    min-height: calc(100dvh - 62px);
  }
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */

.sg-call-cta {
  background: #767A7C !important;
  border-color: #767A7C !important;
  color: #ffffff !important;
}

.sg-call-cta:hover,
.sg-call-cta:focus {
  background: #F16D24 !important;
  border-color: #F16D24 !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   SEGUROS
   -------------------------------------------------------------------------- */

.seguro-coberturas-title {
  max-width: 100% !important;
  width: 100%;
}

.aseguradoras-ramo-item {
  flex: none;
  width: 50%;
}

.aseguradoras-ramo-card {
  min-height: 126px;
  padding: 20px 12px;
}

.aseguradoras-ramo-logo {
  display: block;
  height: 62px;
  margin: 0 auto;
  max-width: 100%;
  object-fit: contain;
  width: 142px;
}

.aseguradora-provincias-item {
  flex: none;
  width: 50%;
}

.aseguradora-provincias-card {
  min-height: 128px;
  padding: 18px 10px;
}

.aseguradora-provincias-logo {
  display: block;
  height: 60px;
  min-height: 60px;
  min-width: 60px;
  max-width: 100%;
  object-fit: contain;
  width: 60px;
}

.aseguradora-texto-section {
  padding-top: 28px !important;
  padding-bottom: 32px !important;
}

.aseguradora-texto-article {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

.aseguradora-texto-content.is-collapsed {
  max-height: 380px;
  overflow: hidden;
  position: relative;
}

.aseguradora-texto-content.is-collapsed::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 86%);
  bottom: 0;
  content: "";
  height: 96px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

html.dark .aseguradora-texto-content.is-collapsed::after {
  background: linear-gradient(to bottom, rgba(28, 28, 28, 0), #1c1c1c 86%);
}

.aseguradora-texto-content.is-expanded {
  max-height: none;
  overflow: visible;
}

.aseguradora-texto-content.is-expanded::after {
  display: none;
}

.home-seguros-section {
  margin-top: -150px;
}

.home-seguros-item {
  flex: none;
  width: 50%;
}

.home-seguros-card {
  min-height: 150px;
  padding: 22px 12px;
}

.home-seguros-icon {
  display: block;
  height: 56px;
  max-width: 100%;
  object-fit: contain;
  width: 56px;
}

.seguro-page-title-inner {
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

.seguro-intro-section {
  padding-top: 28px !important;
  padding-bottom: 18px !important;
}

.seguro-tarificador-section {
  padding-bottom: 32px !important;
}

.seguro-tarificador-inner {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.seguro-tarificador-section .pys-tarificador-widget #pys-widget {
  margin-bottom: 20px !important;
}

.seguro-texto-content.is-collapsed {
  max-height: 380px;
  overflow: hidden;
  position: relative;
}

.seguro-texto-content.is-collapsed::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 86%);
  bottom: 0;
  content: "";
  height: 96px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

html.dark .seguro-texto-content.is-collapsed::after {
  background: linear-gradient(to bottom, rgba(28, 28, 28, 0), #1c1c1c 86%);
}

.seguro-texto-content.is-expanded {
  max-height: none;
  overflow: visible;
}

.seguro-texto-content.is-expanded::after {
  display: none;
}

.seguro-texto-content h2,
.seguro-texto-content h3,
.seguro-texto-content h4 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.seguro-texto-content h2 {
  font-size: 1.75rem;
}

.seguro-texto-content h3 {
  font-size: 1.35rem;
}

.seguro-texto-content p,
.seguro-texto-content ul,
.seguro-texto-content ol {
  margin-bottom: 1.25rem;
}

.seguro-texto-content ul,
.seguro-texto-content ol {
  padding-left: 1.5rem;
}

.seguro-texto-content ul {
  list-style: disc;
}

.seguro-texto-content ol {
  list-style: decimal;
}

.seguro-texto-content li + li {
  margin-top: .4rem;
}

.seguro-contact-section {
  padding-bottom: 42px !important;
}

.seguro-opiniones-section {
  padding-top: 48px !important;
  padding-bottom: 52px !important;
}

.seguro-opiniones-title {
  margin-bottom: 28px !important;
}

.seguro-opiniones-nav {
  margin-top: 24px !important;
}

.contact-action-card {
  min-height: 168px;
}

.home-contact-section {
  padding-bottom: 48px !important;
}

.home-feature-card-image {
  aspect-ratio: 445 / 230;
  height: auto;
  min-height: 230px;
}

.home-feature-section > .section {
  padding-top: 72px !important;
}

.home-feature-section {
  margin-bottom: -96px;
}

.home-testimonials-section {
  padding-top: 56px !important;
  padding-bottom: 64px !important;
}

.provincia-ramos-item {
  flex: none;
  width: 50%;
}

.provincia-ramos-card {
  min-height: 128px;
  padding: 18px 10px;
}

.provincia-ramos-icon {
  display: block;
  height: 60px;
  min-height: 60px;
  min-width: 60px;
  max-width: 100%;
  object-fit: contain;
  width: 60px;
}

.provincia-contact-section {
  padding-top: 40px !important;
}

.provincia-texto-section {
  padding-top: 28px !important;
  padding-bottom: 32px !important;
}

.provincia-texto-article {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

.provincia-texto-content.is-collapsed {
  max-height: 380px;
  overflow: hidden;
  position: relative;
}

.provincia-texto-content.is-collapsed::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 86%);
  bottom: 0;
  content: "";
  height: 96px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

html.dark .provincia-texto-content.is-collapsed::after {
  background: linear-gradient(to bottom, rgba(28, 28, 28, 0), #1c1c1c 86%);
}

.provincia-texto-content.is-expanded {
  max-height: none;
  overflow: visible;
}

.provincia-texto-content.is-expanded::after {
  display: none;
}

@media (min-width: 1280px) {
  .seguro-coberturas-title {
    white-space: nowrap;
  }
}

@media (min-width: 64rem) {
  .aseguradoras-ramo-item,
  .aseguradora-provincias-item {
    width: 16.6667%;
  }

  .home-seguros-item,
  .provincia-ramos-item {
    width: 16.6667%;
  }

  .home-seguros-section {
    margin-top: -200px;
  }

  .aseguradoras-ramo-card {
    min-height: 118px;
    padding: 18px 10px;
  }

  .aseguradoras-ramo-logo {
    height: 58px;
    width: 132px;
  }

  .aseguradora-provincias-card {
    min-height: 124px;
    padding: 18px 8px;
  }

  .aseguradora-provincias-logo {
    height: 66px;
    min-height: 66px;
    min-width: 66px;
    width: 66px;
  }

  .aseguradora-texto-section {
    padding-top: 32px !important;
    padding-bottom: 36px !important;
  }

  .aseguradora-texto-article {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  .aseguradora-texto-content.is-collapsed {
    max-height: 420px;
  }

  .seguro-texto-content.is-collapsed {
    max-height: 420px;
  }

  .home-seguros-card {
    min-height: 148px;
    padding: 22px 10px;
  }

  .provincia-ramos-card {
    min-height: 124px;
    padding: 18px 8px;
  }

  .home-seguros-icon {
    height: 60px;
    width: 60px;
  }

  .seguro-page-title-inner {
    padding-top: 96px !important;
    padding-bottom: 96px !important;
  }

  .seguro-intro-section {
    padding-top: 40px !important;
    padding-bottom: 24px !important;
  }

  .seguro-tarificador-section {
    padding-bottom: 44px !important;
  }

  .seguro-tarificador-inner {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .seguro-contact-section {
    padding-bottom: 50px !important;
  }

  .seguro-opiniones-section {
    padding-top: 64px !important;
    padding-bottom: 72px !important;
  }

  .seguro-opiniones-title {
    margin-bottom: 32px !important;
  }

  .seguro-opiniones-nav {
    margin-top: 28px !important;
  }

  .provincia-ramos-icon {
    height: 66px;
    min-height: 66px;
    min-width: 66px;
    width: 66px;
  }

  .provincia-contact-section {
    padding-top: 56px !important;
  }

  .provincia-texto-section {
    padding-top: 32px !important;
    padding-bottom: 36px !important;
  }

  .provincia-texto-article {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  .provincia-texto-content.is-collapsed {
    max-height: 420px;
  }

  .home-feature-section {
    margin-bottom: -132px;
  }

  .home-contact-section {
    padding-bottom: 56px !important;
  }

  .home-feature-section > .section {
    padding-top: 84px !important;
  }

  .home-testimonials-section {
    padding-top: 64px !important;
    padding-bottom: 80px !important;
  }
}

/* --------------------------------------------------------------------------
   TARIFICADOR PYS
   -------------------------------------------------------------------------- */

header.header {
  z-index: 1000 !important;
}

.pys-tarificador-section .pys-tarificador-container {
  max-width: 100% !important;
  padding-inline: clamp(16px, 3vw, 56px) !important;
  width: 100% !important;
}

.pys-tarificador-column,
.pys-tarificador-shell,
.pys-tarificador-widget,
.sg-formulario-widget {
  max-width: 100%;
  width: 100%;
}

.pys-tarificador-widget #pys-widget {
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
  width: 100%;
  max-width: none;
  margin: 15px 0 55px !important;
}

.pys-tarificador-widget #pys-widget .row > .tarificador_arrow_left,
.pys-tarificador-widget #pys-widget .row > .tarificador_arrow_right {
  width: auto !important;
  max-width: none !important;
  flex-shrink: 1 !important;
  padding: 7px !important;
}

.pys-tarificador-widget #pys-widget .row > .tarificador_progressbar {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 767px) {
  .pys-tarificador-shell {
    padding-inline: 0 !important;
  }

  .pys-tarificador-widget #pys-widget {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   HOME
   -------------------------------------------------------------------------- */

.home-hero-btn {
  background: #767A7C !important;
  border-color: #767A7C !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
}

.home-hero-btn:hover,
.home-hero-btn:focus {
  background: #F16D24 !important;
  border-color: #F16D24 !important;
  color: #ffffff !important;
}
