

/*****************************************
   SERVICIOS TÉCNICOS
   ========================================= */

.security-services-v2 {
  padding: 28px 0 70px;
}

.security-services-v2 > .container {
  width: var(--main-shell-w) !important;
  max-width: var(--main-shell-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.security-services-v2-title {
  text-align: center;
  font-family: "Brumder", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  line-height: 1.05;
  font-weight: 400;
  color: #2f2f2f;
  margin-bottom: 18px;
  position: relative;
}

.security-services-v2-title::after {
  content: "";
  display: block;
  width: 180px;
  height: 4px;
  border-radius: 999px;
  background: #339999;
  margin: 14px auto 0;
}

.security-services-v2-text {
  width: 100%;
  max-width: none;
  margin: 0 0 48px;
  padding: 0;
  text-align: center;
  font-family: "Mazzard", sans-serif;
  font-size: clamp(1rem, 1.12vw, 1.18rem);
  line-height: 1.62;
  color: #111;
  font-weight: 500;
}

.services-visual-wrap {
  position: relative;
  width: 100%;
  padding: 10px 0 18px;
  overflow: visible;
}

.services-visual-carousel {
  width: 100%;
  overflow: visible;
}

.services-visual-track {
  width: 100%;
}

.services-visual-page {
  width: 100%;
}

.visual-service-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.visual-service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 173, 181, 0.95) 0%,
    rgba(0, 173, 181, 0.78) 38%,
    rgba(0, 173, 181, 0.18) 72%,
    rgba(0, 173, 181, 0) 100%
  );
}

.visual-service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.visual-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.visual-service-card:hover img {
  transform: scale(1.06);
}

.visual-service-card span,
.visual-service-card__title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  text-align: center;
  color: #fff;
  font-family: "Brumder", sans-serif;
  font-size: clamp(2rem, 2.1vw, 2.45rem);
  line-height: 0.92;
  letter-spacing: 0.5px;
}

.visual-service-card__plus {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}

.visual-service-card__plus i {
  font-size: 1rem;
  font-weight: 700;
}

.visual-service-card:hover .visual-service-card__plus {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

.services-visual-dots {
  display: none;
}

/* Desktop / laptop */
@media (min-width: 993px) {
  .services-visual-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 45px;
    row-gap: 40px;
    width: 100%;
    margin: 0;
    align-items: stretch;
  }

  .services-visual-page {
    display: contents;
  }

  .visual-service-card {
    aspect-ratio: 1.08 / 1;
    border-radius: 50px;
  }

  .services-visual-arrow {
    display: flex;
    position: absolute;
    top: 50%;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #2f2f2f;
    color: #fff;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    z-index: 30;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    pointer-events: none;
  }

  .services-visual-arrow.left {
    left: -60px;
  }

  .services-visual-arrow.right {
    right: -60px;
  }
}

@media (min-width: 993px) and (max-width: 1280px) {
  .services-visual-track {
    column-gap: 16px;
    row-gap: 16px;
  }

  .visual-service-card {
    aspect-ratio: 1.05 / 1;
    border-radius: 24px;
  }

  .visual-service-card span,
  .visual-service-card__title {
    font-size: clamp(1.65rem, 1.7vw, 2.2rem);
  }
}

/* Tablet */
@media (min-width: 577px) and (max-width: 992px) {
  .services-visual-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 16px;
    width: 100%;
    margin: 0;
  }

  .services-visual-page {
    display: contents;
  }

  .visual-service-card {
    aspect-ratio: 1.04 / 1;
    border-radius: 22px;
  }

  .visual-service-card span,
  .visual-service-card__title {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 0.92;
  }

  .services-visual-arrow {
    display: none !important;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .security-services-v2 {
    padding: 18px 0 26px;
  }

  .security-services-v2-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .security-services-v2-title::after {
    width: 110px;
    margin-top: 8px;
    height: 3px;
  }

  .security-services-v2-text {
    font-size: 0.88rem;
    line-height: 1.42;
    margin: 0 auto 12px;
    max-width: 340px;
    padding: 0 4px;
  }

  .services-visual-wrap {
    padding: 4px 0 12px;
  }

  .services-visual-carousel {
    overflow: hidden;
  }

  .services-visual-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease;
  }

  .services-visual-page {
    min-width: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .visual-service-card {
    aspect-ratio: 1.08 / 1;
    border-radius: 16px;
  }

  .visual-service-card span,
  .visual-service-card__title {
    left: 8px;
    right: 8px;
    bottom: 10px;
    font-size: 0.98rem;
    line-height: 0.92;
    letter-spacing: 0.2px;
  }

  .visual-service-card__plus {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
  }

  .visual-service-card__plus i {
    font-size: 0.72rem;
  }

  .services-visual-arrow {
    display: none !important;
  }

  .services-visual-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
  }

  .services-visual-dot {
    width: 18px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(51, 153, 153, 0.22);
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .services-visual-dot.active {
    width: 40px;
    background: var(--principal);
  }
}

/* Mobile landscape */
@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .security-services-v2 {
    padding: 10px 0 18px;
  }

  .security-services-v2 > .container {
    width: 92% !important;
  }

  .security-services-v2-title {
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 6px;
  }

  .security-services-v2-title::after {
    width: 95px;
    margin-top: 6px;
    height: 3px;
  }

  .security-services-v2-text {
    font-size: 0.76rem;
    line-height: 1.28;
    margin: 0 auto 10px;
    max-width: 620px;
    padding: 0;
  }

  .services-visual-wrap {
    padding: 2px 0 10px;
  }

  .services-visual-carousel {
    overflow: hidden;
  }

  .services-visual-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease;
  }

  .services-visual-page {
    min-width: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .visual-service-card {
    aspect-ratio: 1.95 / 1;
    border-radius: 14px;
  }

  .visual-service-card span,
  .visual-service-card__title {
    left: 8px;
    right: 8px;
    bottom: 8px;
    font-size: 0.78rem;
    line-height: 0.9;
    letter-spacing: 0.15px;
  }

  .visual-service-card__plus {
    top: 7px;
    right: 7px;
    width: 28px;
    height: 28px;
  }

  .visual-service-card__plus i {
    font-size: 0.68rem;
  }

  .services-visual-arrow {
    display: none !important;
  }

  .services-visual-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
  }

  .services-visual-dot {
    width: 16px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(51, 153, 153, 0.22);
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .services-visual-dot.active {
    width: 34px;
    background: var(--principal);
  }
}

/* =========================================
   MODAL SERVICIOS
   ========================================= */

body.modal-open {
  overflow: hidden !important;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.service-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.service-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 18, 0.58);
  backdrop-filter: blur(8px);
}

.service-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  min-height: min(620px, 82vh);
  max-height: 82vh;
  background: #ffffff;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.28s ease;
}

.service-modal.is-open .service-modal__dialog {
  transform: translateY(0) scale(1);
}

.service-modal__media {
  position: relative;
  min-height: 100%;
  background: #dceff0;
}

.service-modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 173, 181, 0.55),
    rgba(0, 173, 181, 0.08) 45%,
    rgba(0, 0, 0, 0.04)
  );
  pointer-events: none;
}

.service-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-modal__content {
  padding: 52px 42px 36px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-modal__eyebrow {
  margin: 0 0 10px;
  color: var(--principal);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-modal__content h3 {
  margin: 0 0 12px;
  color: var(--tono);
  font-family: "Brumder", sans-serif;
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  line-height: 0.96;
}

.service-modal__subtitle {
  margin: 0 0 18px;
  color: #2f2f2f;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.service-modal__description {
  margin: 0 0 24px;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.72;
}

.service-modal__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.service-modal__feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(51, 153, 153, 0.08);
  color: var(--tono);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.service-modal__feature i {
  color: var(--principal);
  font-size: 0.85rem;
}

.service-modal__actions {
  margin-top: auto;
}

.service-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(47, 47, 47, 0.88);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.service-modal__close:hover {
  background: var(--principal);
  transform: scale(1.06);
}

.service-modal__close i {
  font-size: 1.2rem;
}

@media (max-width: 992px) {
  .service-modal {
    padding: 20px;
  }

  .service-modal__dialog {
    width: min(960px, 94vw);
    min-height: auto;
    max-height: 88vh;
    grid-template-columns: 1fr;
  }

  .service-modal__media {
    min-height: 320px;
    max-height: 320px;
  }

  .service-modal__content {
    padding: 34px 26px 28px;
  }
}

@media (max-width: 576px) {
  .service-modal {
    padding: 12px;
  }

  .service-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px;
  }

  .service-modal__media {
    min-height: 240px;
    max-height: 240px;
  }

  .service-modal__content {
    padding: 24px 18px 20px;
  }

  .service-modal__content h3 {
    font-size: 2rem;
  }

  .service-modal__subtitle {
    font-size: 0.98rem;
  }

  .service-modal__description {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .service-modal__feature {
    font-size: 0.86rem;
    padding: 9px 12px;
  }

  .service-modal__close {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 576px) and (orientation: portrait) {
  .service-modal {
    padding: 10px;
  }

  .service-modal__dialog {
    width: min(92vw, 390px);
    max-height: 86vh;
    min-height: auto;
    border-radius: 22px;
    grid-template-columns: 1fr;
  }

  .service-modal__media {
    min-height: 185px;
    max-height: 185px;
  }

  .service-modal__content {
    padding: 18px 16px 16px;
  }

  .service-modal__content h3 {
    font-size: 1.7rem;
    line-height: 0.95;
    margin-bottom: 10px;
  }

  .service-modal__subtitle {
    font-size: 0.94rem;
    margin-bottom: 10px;
  }

  .service-modal__description {
    font-size: 0.9rem;
    line-height: 1.52;
    margin-bottom: 14px;
  }

  .service-modal__features {
    gap: 8px;
    margin-bottom: 16px;
  }

  .service-modal__feature {
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .service-modal__actions .btn-service {
    width: 100%;
    text-align: center;
    padding: 0.82rem 1rem;
  }

  .service-modal__close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 950px) and (orientation: landscape) {
  .service-modal {
    padding: 10px 14px;
  }

  .service-modal__dialog {
    width: min(92vw, 760px);
    max-height: 82vh;
    min-height: auto;
    border-radius: 22px;
    grid-template-columns: 1.06fr 0.94fr;
  }

  .service-modal__media {
    min-height: 100%;
    max-height: none;
  }

  .service-modal__content {
    padding: 18px 18px 16px;
    overflow-y: auto;
  }

  .service-modal__eyebrow {
    font-size: 0.78rem;
    margin-bottom: 8px;
  }

  .service-modal__content h3 {
    font-size: 1.8rem;
    line-height: 0.95;
    margin-bottom: 8px;
  }

  .service-modal__subtitle {
    font-size: 0.92rem;
    margin-bottom: 8px;
  }

  .service-modal__description {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .service-modal__features {
    gap: 8px;
    margin-bottom: 14px;
  }

  .service-modal__feature {
    font-size: 0.78rem;
    padding: 7px 10px;
  }

  .service-modal__actions .btn-service {
    padding: 0.72rem 1rem;
  }

  .service-modal__close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }
}