/* =================Template adaptation=============
==============================================  */

/* ===============================================
   Accesibilidad - Skip to content link
   =============================================== */
.skip-to-content {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1rem 1.5rem;
  background-color: #0039b4;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 4px 4px;
  transition: all 0.3s ease;
}

.skip-to-content:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}

/* ===============================================
   Estilos del template
   =============================================== */

/* Nueva clase del cuerpo  */
.body-standard .rts-btn {
  border-radius: 6px;
}

.body-standard .rts-btn.with-arrow {
  display: flex;
  align-items: center;
  gap: 25px;
}

.body-standard .rts-btn.with-arrow i {
  display: inline-block;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  font-size: 25px;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.body-standard .rts-btn.with-arrow:hover i,
.body-standard .rts-btn.with-arrow:focus-visible i,
.body-standard .rts-btn.with-arrow:focus-within i {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  .body-standard .rts-btn.with-arrow i {
    -webkit-transition: none;
    transition: none;
  }
}

.body-standard .rts-testimonials-style-three {
  padding-top: 0 !important;
}

.body-standard [class~="mySwiper-digital-agency-brand"] .single-image {
  border-radius: 6px;
  padding: 20px;
}

.body-standard
  .rts-call-to-action-area.demo-app-development
  .call-to-action-wrapper-three {
  border-radius: 30px;
  background: url("../images/home/animated_web.mp4");
}

.body-standard
  .rts-call-to-action-area.demo-app-development
  .call-to-action-wrapper-three
  .bg-shape {
  position: absolute;
  z-index: 1;
}

.body-standard
  .rts-call-to-action-area.demo-app-development
  .call-to-action-wrapper-three
  .bg-shape.one {
  left: 0;
  bottom: 0;
}

.body-standard
  .rts-call-to-action-area.demo-app-development
  .call-to-action-wrapper-three
  .bg-shape.two {
  top: 0;
  right: 0;
}

@media (width <= 450px) {
  .body-standard .rts-btn.with-arrow {
    padding: 12px 15px;
    font-size: 14px;
  }
}

.select-area.language {
  cursor: pointer;
}

/* ===============================================
   Call to Action – overlay oscuro sobre el vídeo
   =============================================== */

/* stylelint-disable no-descending-specificity -- Regla base y variante pertenecen al mismo CTA y no pisan propiedades. */
.call-to-action-wrapper-three {
  position: relative;
  overflow: hidden;
}
/* stylelint-enable no-descending-specificity */

/* Vídeo de fondo: ocupa todo el contenedor */
.call-to-action-wrapper-three .background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay con gradiente radial oscuro, por encima del vídeo */
.cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgb(0 0 0 / 77%) 39.42%,
    rgb(0 0 0 / 3.85%) 100%
  );
  pointer-events: none;
}

.header-contact .cta-overlay {
  height: 706px;
}

/* Contenido del CTA: por encima del overlay */
.call-to-action-wrapper-three > div:first-child {
  position: relative;
  z-index: 2;
}

/* ==============================================  */

/* Feature area three -> Service area  */
.single-services-area {
  padding: 30px 8px 30px 20px;
  border-radius: 20px;
  border: 1px solid #eaf0ff;
  transition: all 0.3s ease;
}

.single-services-area .icon {
  margin-bottom: 30px;
}

.single-services-area .content .title {
  font-size: 23px;
  color: #050d20;
  margin-bottom: 18px;
}

.single-services-area .content p.disc {
  font-size: 16px;
  color: #717383;
  margin-bottom: 30px;
}

.single-services-area:hover {
  border-color: var(--color-primary);
  transform: scale(1.02) translateY(-2px);
}

.single-services-area.data-science {
  background: #f9faff;
  border: 1px solid #e5eaff;
}

.single-services-area.data-science .content .round-btn {
  max-width: max-content;
  width: 100%;
  border: 1px solid #e5eaff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-heading-1);
  font-weight: 500;
  padding: 9px 12px;
}

.single-services-area.data-science .content .round-btn i {
  color: var(--color-heading-1);
}

.single-services-area.data-science .content .round-btn:hover {
  color: var(--color-white);
}

.single-services-area.data-science .content .round-btn:hover i {
  color: var(--color-white);
}

.rts-services-area.saas-landing .section-inner {
  background: #f6f8ff;
  border-radius: 20px;
  padding: 10% 13%;
}

.rts-services-area.saas-landing .title-left-wrapper .title,
.rts-services-area.saas-landing .title-center-wrapper .title {
  font-size: 24px;
  line-height: 1.2;
}

.rts-services-area.saas-landing .bottom-button-area {
  text-align: center;
  margin-top: 50px;
}

.rts-services-area.saas-landing .bottom-button-area .rts-btn {
  margin: auto;
  background: transparent;
}

@media (width <= 1400px) {
  .rts-services-area.saas-landing .section-inner {
    padding: 8%;
  }
}

:where(.services-area-left-three p.disc) {
  max-width: 78%;
}

@media only screen and (width <= 767px) {
  .services-area-left-three p.disc {
    max-width: 100%;
  }
}

/* ==============================================  */

/* Title left wrapper - Asegurar ancho completo  */
.title-left-wrapper,
.services-area-left-three .title-left-wrapper {
  width: 100%;
  min-width: 100%;
}

/* ==============================================  */

/* demo-cybersecurity -> Case study page  */
.case-studie .rts-btn .up-right {
  transform: rotate(45deg);
}

.case-studie .title-left-wrapper span.pre,
.case-studie .title-center-wrapper span.pre {
  display: inline-block;
  padding: 2px 13px;
  border: 1px solid #dbe7ff;
  color: #050d20;
  font-size: 14px;
  font-weight: 500;
  border-radius: 33px;
}

:where(.case-studie .title) {
  font-family: var(--font-4) !important;
}

:where(.case-studie .rts-btn) {
  border-radius: 6px;
}

:where(.case-studie .footer-form .rts-btn) {
  border-radius: 4px;
}

/* ==============================================  */

/* Sticky Footer - Mantiene el footer pegado al fondo */
html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* El header mantiene su tamaño natural */
.rts-header-one {
  flex-shrink: 0;
}

/* El contenido principal crece para llenar el espacio disponible */
body
  > *:not(
    .rts-header-one,
    .rts-footer-one,
    .rts-side-menu,
    #anywhere-home,
    .loader-wrapper,
    .progress-wrap
  ) {
  flex-shrink: 0;
}

/* Contenedor wrapper para todo el contenido entre header y footer */
body::before {
  content: "";
  flex: 1 0 auto;
  display: none;
}

/* El footer se mantiene en su tamaño natural y se pega al fondo */
.rts-footer-one {
  background: linear-gradient(
    180deg,
    rgb(52 52 52 / 2%) 0%,
    rgb(255 255 255 / 6%) 100%
  );
  border-top: solid 0.5px #ffffff50;
  border-bottom: solid 0.5px #ffffff50;
  flex-shrink: 0;
  margin-top: auto;
}

/* Aseguramos que el body tenga al menos la altura de la ventana */
@supports (min-height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #60b146 0%, #304e3d 100%);
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 6px rgb(96 177 70 / 28%);
}

/* Animación suave */
@media (prefers-reduced-motion: no-preference) {
  #scroll-progress {
    transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  #scroll-progress {
    transition: none;
  }
}

/* ============================================
   FORM DRAFT NOTIFICATIONS
   ============================================ */
.draft-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  background: #28a745;
  color: white;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.3s,
    transform 0.3s;
  pointer-events: none;
  z-index: 10000;
}

.draft-notification.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.draft-notification.restore {
  background: #17a2b8;
  padding-right: 50px;
  position: relative;
}

.clear-draft-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(255 255 255 / 20%);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s;
}

.clear-draft-btn:hover {
  background: rgb(255 255 255 / 30%);
}

@media (prefers-reduced-motion: reduce) {
  .draft-notification {
    transition: none;
  }
}

/* ============================================
   CONTACT FORM + CONTACT-2 - Botones responsive
   Evita overflow en móvil cuando el texto es largo
   ============================================ */
/* stylelint-disable no-descending-specificity -- Botones de contacto y servicios pertenecen a componentes independientes. */
.contact-form-main-wrapper-contact .rts-btn,
.contact-form-main-wrapper-contact .rts-btn.with-arrow,
.contact .rts-btn,
.contact .rts-btn.with-arrow {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  height: auto;
  min-height: 50px;
  line-height: 1.4;
  flex-direction: row;
  box-sizing: border-box;
}

.contact-form-main-wrapper-contact .rts-btn i,
.contact-form-main-wrapper-contact .rts-btn .up-right,
.contact .rts-btn i,
.contact .rts-btn .up-right {
  flex-shrink: 0;
}
/* stylelint-enable no-descending-specificity */

@media (width <= 575px) {
  .contact-form-main-wrapper-contact .rts-btn,
  .contact-form-main-wrapper-contact .rts-btn.with-arrow,
  .contact .rts-btn,
  .contact .rts-btn.with-arrow {
    width: 100%;
    flex-direction: row;
    gap: 10px;
  }
}

/* ============================================
   RESPONSIVE SIDE-BAR MENU (<= 1199px)
   ============================================ */

/* Botón hamburguesa */
.menu-btn-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
  flex-shrink: 0;
}

.menu-btn-toggle:hover {
  background: rgb(96 177 70 / 18%);
  border-color: #60b146;
  transform: translateY(-1px);
}

.menu-btn-toggle:focus-visible {
  outline: 2px solid #60b146;
  outline-offset: 2px;
}

.menu-btn-toggle svg rect {
  fill: #fff;
  transition: fill 0.2s ease;
}

.menu-btn-toggle:hover svg rect {
  fill: #60b146;
}

/* Mostrar botón en resoluciones <= 1199px (cuando .nav-area se oculta) */
@media screen and (width <= 1199px) {
  .menu-btn-toggle {
    display: flex;
  }
}

/* Backdrop / Overlay oscuro */
#anywhere-home {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgb(4 8 16 / 78%);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9998;
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.35s ease;
}

#anywhere-home.bgshow {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Contenedor Drawer del Menú Lateral */
#side-bar.side-bar {
  position: fixed;
  top: 0;
  right: -105%;
  width: 100%;
  max-width: 400px;
  height: 100%;
  height: 100dvh;
  backdrop-filter: blur(24px);
  border-left: 1px solid rgb(255 255 255 / 10%);
  box-shadow: -15px 0 45px rgb(0 0 0 / 70%);
  z-index: 9999;
  padding: 30px 24px 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden auto;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

#side-bar.side-bar.show {
  right: 0;
}

@media (width <= 480px) {
  #side-bar.side-bar {
    max-width: 100%;
    padding: 24px 18px 32px;
  }
}

/* Cabecera del sidebar (logo + botón cerrar) */
.rts-sidebar-menu-desktop .logo-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.rts-sidebar-menu-desktop .logo-area .logo img {
  max-width: 170px;
  height: auto;
  display: block;
}

.rts-sidebar-menu-desktop .close-icon-menu {
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.rts-sidebar-menu-desktop .close-icon-menu:hover {
  background: rgb(96 177 70 / 20%);
  border-color: #60b146;
  color: #60b146;
  transform: rotate(90deg);
}

.rts-sidebar-menu-desktop .close-icon-menu:focus-visible {
  outline: 2px solid #60b146;
  outline-offset: 2px;
}

/* Navegación móvil dentro del sidebar */
.mobile-menu-main {
  width: 100%;
}

.mobile-menu-main nav.nav-main ul.mainmenu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-main nav.nav-main ul.mainmenu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu-main nav.nav-main ul.mainmenu li a.main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 8px;
  color: #f2faf8;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  background: rgb(255 255 255 / 2%);
  border: 1px solid rgb(255 255 255 / 5%);
  transition: all 0.25s ease;
}

.mobile-menu-main nav.nav-main ul.mainmenu li a.main:hover,
.mobile-menu-main nav.nav-main ul.mainmenu li.active a.main {
  background: rgb(96 177 70 / 12%);
  border-color: rgb(96 177 70 / 35%);
  color: #60b146;
  padding-left: 22px;
}

/* Área de acciones (botón CTA y cambio de idioma) */
.sidebar-action-area {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-cta-btn {
  justify-content: center;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 8px;
  text-align: center;
}

.sidebar-lang-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgb(255 255 255 / 3%);
  border-radius: 8px;
  width: fit-content;
  border: solid 0.5px #ffffff50;
}

.sidebar-lang-switch .lang-switch-label {
  color: rgb(255 255 255 / 70%);
  font-size: 13px;
  font-weight: 500;
}

.sidebar-lang-switch .lang-switch-buttons {
  display: flex;
  gap: 8px;
}

.sidebar-lang-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgb(255 255 255 / 8%);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-lang-btn:hover {
  background: rgb(96 177 70 / 30%);
  color: #fff;
}

.sidebar-lang-btn.active {
  background: #60b146;
  color: #fff;
}

/* Bloque de contacto */
.sidebar-contact-info {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-contact-info .single-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgb(255 255 255 / 75%);
  font-size: 14px;
}

/* stylelint-disable no-descending-specificity -- Los iconos del sidebar no comparten componente con los iconos de botón. */
.sidebar-contact-info .single-contact-item i {
  color: #60b146;
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
/* stylelint-enable no-descending-specificity */

.sidebar-contact-info .single-contact-item a {
  color: rgb(255 255 255 / 75%);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-all;
}

.sidebar-contact-info .single-contact-item a:hover {
  color: #60b146;
}

/* Redes sociales */
.rts-social-border-area.right-sidebar {
  margin-top: 22px;
}

.rts-social-border-area.right-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* stylelint-disable no-descending-specificity -- Enlaces sociales y enlaces de contacto son componentes independientes. */
.rts-social-border-area.right-sidebar ul li a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 15%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(255 255 255 / 70%);
  background: rgb(255 255 255 / 4%);
  transition: all 0.25s ease;
  text-decoration: none;
}

.rts-social-border-area.right-sidebar ul li a:hover {
  background: #60b146;
  border-color: #60b146;
  color: #fff;
  transform: translateY(-2px);
}

.rts-social-border-area.right-sidebar ul li a i {
  font-size: 15px;
}
/* stylelint-enable no-descending-specificity */

/* Bloqueo de desplazamiento del fondo cuando el menú está abierto */
body.sidebar-open {
  overflow: hidden !important;
  touch-action: none;
}

/* ============================================
   FOOTER NAV - Sección activa
   ============================================ */
.rts-footer-one .footer-wized-wrapper ul li.active > a,
.rts-footer-one .nav-area ul li.main-nav.active > a,
.rts-footer-one .copyright-area ul li.main-nav.active > a {
  color: #60b146 !important;
}

/* ============================================
   HEADER NAV - Sección activa (mismo verde que footer)
   ============================================ */
.header-one .nav-area ul li.main-nav.active > a,
header .nav-area ul li.main-nav.active > a {
  color: #60b146 !important;
}

/* ============================================
   HOME HERO VIDEO - Transición suave al siguiente bloque
   Funde la parte inferior del vídeo con el fondo sólido
   (#111111) de la sección siguiente mediante un overlay.
   ============================================ */
.rts-banner-data-science {
  position: relative;
  overflow: hidden;
  background-color: #111;
  margin-bottom: -1px;
}

/* Overlay con degradado, por encima del vídeo (z-index 0) y
   por debajo del contenido (z-index 2). No intercepta clics. */
.rts-banner-data-science::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 34%;
  max-height: 50px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgb(17 17 17 / 0%) 0%,
    rgb(17 17 17 / 55%) 45%,
    #111 100%
  );
}

/* Garantiza que el contenido quede por encima del degradado */
.rts-banner-data-science .container,
.rts-banner-data-science .row {
  position: relative;
  z-index: 2;
}

/* Solapa 1px con el hero para evitar líneas de subpíxel entre bloques */
.rts-banner-data-science + .rts-services-area {
  position: relative;
  background-color: #111;
  margin-top: -1px;
}

@media (width <= 575px) {
  .rts-banner-data-science::after {
    height: 42%;
    min-height: 150px;
  }
}

/* ============================================
   HERO VIDEO - Solutions / Method (.header-solutions)
   y About us (.header-about-us). El ::after ya existe
   en style.css (140px, z-index 1) pero sin fondo:
   aquí se le da el degradado hacia #111.
   ============================================ */
.header-solutions,
.header-about-us {
  background-color: #111;
}

/* stylelint-disable no-descending-specificity -- El ::after base vive en style.css; aquí solo se completa el fondo. */
.header-solutions::after,
.header-about-us::after {
  height: 32%;
  min-height: 150px;
  max-height: 260px;
  background: linear-gradient(
    to bottom,
    rgb(17 17 17 / 0%) 0%,
    rgb(17 17 17 / 55%) 45%,
    #111 100%
  );
}
/* stylelint-enable no-descending-specificity */

/* ============================================
   HERO VIDEO - Contact (.header-contact). No tenía
   ::after: se crea. Convive con .cta-overlay (radial,
   z-index 1): ambos quedan bajo el contenido (z-index 2)
   y no interceptan clics.
   ============================================ */
.header-contact {
  position: relative;
  overflow: hidden;
  background-color: #111;
  margin-bottom: -1px;
}

.header-contact::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 32%;
  min-height: 150px;
  max-height: 260px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgb(17 17 17 / 0%) 0%,
    rgb(17 17 17 / 55%) 45%,
    #111 100%
  );
}

/* Solapa 1px con el bloque siguiente para evitar líneas de subpíxel */
.header-contact + .contact {
  position: relative;
  background-color: #111;
  margin-top: -1px;
}

@media (width <= 575px) {
  .header-solutions::after,
  .header-about-us::after,
  .header-contact::after {
    height: 42%;
    min-height: 140px;
  }
}
