:root {
  --ink: #e8ecff;
  --panel: #000000;
  --radius: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Fuentes */
h1,
h2,
p {
  margin: 0;
  padding: 0;
  color: white;
  text-shadow: 0 0 20px rgba(0, 0, 0, 1);
  line-height: 100%;
  user-select: none;
}

h1 {
  font-size: 80px;
  font-weight: 700;
  text-transform: uppercase;
}

h2 {
  font-size: 60px;
  font-weight: 500;
  text-transform: uppercase;
}

.lineasmhd {
  border-top: 2px solid #ffbc4e;
  border-bottom: 2px solid #ffbc4e;
}

.lineamhd {
  border-bottom: 1px solid #ffbb4e82;

}
 
.separadormhd{
 background: linear-gradient(135deg, rgba(255, 72, 0, 1) 54%, rgba(249, 163, 55, 1) 54%);
 margin-bottom: 6rem;
}
   

/* header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 40px);
  z-index: 999;
  backdrop-filter: saturate(140%) blur(4px);
  background: linear-gradient(180deg, rgba(5, 10, 20, .6), rgba(5, 10, 20, 0));
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: .4px;
  font-weight: 700;
  color: var(--ink);
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #cdd6ff, #7b87ff 70%);
  box-shadow: 0 0 12px 4px #7381ff;
}

.hamb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--ink);
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 12px;
  transition: transform .25s var(--ease), background .25s var(--ease);
}

.hamb:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .06)
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px
}

/* MENÚ LATERAL */
.menu-root {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  pointer-events: none;
  z-index: 1000;
}

.panel {
  position: relative;
  width: min(900px, 78vw);
  height: 100%;
  background: var(--panel);
  color: var(--panel-ink);
  transform: translateX(-100%);
  transition: transform .6s var(--ease);
  box-shadow: 20px 0 60px rgba(0, 0, 0, .4);
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 28px clamp(18px, 4vw, 50px);
  gap: 20px;
}

.panel .close-row {
  position: absolute;
  inset: 16px auto auto 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
}

.panel .close-row:hover {
  background: rgb(255, 140, 0)
}

.panel .langs {
  position: absolute;
  inset: 18px 26px auto auto;
  display: flex;
  gap: 16px;
  color: #ffffff;
  font-weight: 700;
}

.panel .langs .active {
  color: #ffffff;
  text-decoration: underline
}

.actives {
  color: #ffffff;
  text-decoration: underline
}

.actives:hover {
  color: #ff7b50;
}

.panel-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}

.panel h4 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 28px)
}

.big-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  color: #ffffff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 14px;
  transition: background .25s var(--ease), transform .25s var(--ease)
}

.big-link:hover {
  background: rgb(255, 140, 0);
  transform: translateX(6px)
}

.big-link i {
  opacity: .9
}

.menu-list a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 28px);
  padding: 8px 0;
  transition: transform .25s var(--ease), color .25s var(--ease)
}

.menu-list a:hover {
  color: #ffffff;
  transform: translateX(6px)
}

.panel-footer {
  position: absolute;
  inset: auto 24px 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1a2157;
  font-weight: 700;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px) saturate(120%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}

.backdrop-right {
  position: fixed;
  inset: 0 0 0 min(900px, 78vw);
  /* cubre la parte no ocupada por el panel */
  background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  backdrop-filter: blur(8px) saturate(140%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}

.menu-root.open .panel {
  transform: none
}

.menu-root.open .backdrop,
.menu-root.open .backdrop-right {
  opacity: 1;
  pointer-events: auto
}

@media (max-width:980px) {
  .panel {
    width: 100vw;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 22px 90px;
  }

  .backdrop-right {
    inset: 0;
    display: none
  }

  .panel-footer {
    inset: auto 16px 20px 16px;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start
  }
}

/* Accesibilidad: foco */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffe15d;
  outline-offset: 2px;
  border-radius: 8px
}

/* Utilidades */
.hide {
  display: none !important
}

/* Animaciones */
.mhd {
  background: linear-gradient(90deg, rgba(242, 136, 29, 1) 0%, rgba(234, 63, 13, 1) 100%);
  border-radius: 5px;
}

.mhdfondo {
  background: linear-gradient(90deg, rgba(242, 136, 29, 1) 0%, rgba(234, 63, 13, 1) 100%);
}

.mhd:hover {
  box-shadow: 0 0 12px 4px #ff7b50;
  transition: .3s;
}

.mhd2 {
  background: #000000;
  background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(237, 70, 252, 1) 100%);
}

.mhdtextos {
  color: rgb(255, 140, 0);
}

.mhdtextos2 {
  color: #e98800;
}


.bg1 {
  background-color: antiquewhite;
  background-size: cover;
  background-attachment: fixed;
  background-position: center
}

.bg2 {
  background-color: rgb(0, 0, 0);
  background-image: url(../../assets/image/bg/lineas.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.web {
  background-color: rgba(0, 0, 0, 0);
  background-image: url(../../assets/image/service/web/1.jpg);
  background-position: center;
  filter: brightness(50%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  text-align: center;
  padding-top: 10%;
  padding-bottom: 10%;
}
.web h1 {
  filter: brightness(100%);
}

.cardmhd {
  border: 1px solid #ffffff;
  border-radius: 10px 10px 10px 10px;
  -webkit-border-radius: 10px 10px 10px 10px;
  -moz-border-radius: 10px 10px 10px 10px;
}

.cardmhd:hover {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.502) 0%, rgba(237, 70, 252, 1) 100%);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.55);
  transition: all 0.5s ease;
}

.section-subtitle {
  color: #ff8c00;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-subtitle::before,
.section-subtitle::after {
  content: "";
  width: 50px;
  height: 1px;
  background: #ff8c00;
  display: inline-block;
  vertical-align: middle;
  margin: 0 10px;
}



/* Footer  inicio */
footer {
  font-family: 'Poppins', sans-serif;
}

footer ul {
  padding-left: 0;
}

.aContact {
  color: #fff;
}

.aContact:hover {
  color: #fff;
}

footer a {
  text-decoration: none;
}

footer img {
  padding: 0;
}

footer h1 {
  font-weight: 300;
  letter-spacing: 2px;
  font-size: 48px;
}

footer h3 {
  font-weight: bold;
}

.header {
  position: relative;
  text-align: center;
  background: rgb(0, 0, 0);
  color:
    white;
}

.inner-header {
  height: 40vh;
  width: 100%;
  margin: 0;
  padding: 0;
}

.flex {
  /*Flexbox for containers*/
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.waves {
  position: relative;
  width: 100%;
  height: 15vh;
  margin-bottom: -7px;
  /*Fix for safari gap*/
  min-height: 100px;
  max-height: 150px;
}

.content {
  position: relative;
  text-align: center;
}

.googlePartner img {
  width: 150px;
}

.links a {
  color: #ffff;
}

.links a:hover {
  color: #ffff;
}

.zoom {
  transform: scale(var(--escala, 1));
  transition: transform 0.25s;
}

.zoom:hover {
  --escala: 1.2;
  cursor: pointer;
}

@media only screen and (max-width: 912px) {
  footer .payment {
    display: table;
  }
}

@media only screen and (max-width: 412px) {
  .googlePartner img {
    width: 40%;
    padding-bottom: 2rem;
  }
}

@media only screen and (max-width: 280px) {
  .payment {
    display: table;
  }
}


/* Animation */
.parallax>use {
  animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax>use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax>use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax>use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves {
    height: 40px;
    min-height: 40px;
  }

  .content {
    height: 14vh;
  }

  h1 {
    font-size: 40px;
  }
}

/* Footer */


/* Gallery */
@import "https://unpkg.com/open-props/open-props.min.css";
@import "https://unpkg.com/open-props/normalize.min.css";

.photo-block {
  position: sticky;
  top: calc(50% - 30vh);
  height: 60vh;
  width: 100%;
  display: grid;
  overflow: hidden;
  background: var(--gray-6);
}

.photo-grid {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(38deg);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.photo {
  aspect-ratio: 3 / 4;
  width: 20vmax;
}

.collage {
  height: 200vh;
  view-timeline: --collage;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo:nth-of-type(7n + 1):nth-of-type(even),
.photo:nth-of-type(7n + 3):nth-of-type(even),
.photo:nth-of-type(7n + 5):nth-of-type(even),
.photo:nth-of-type(7n + 7):nth-of-type(even) {
  --vertical: -100%;
  --horizontal: 100%;
}

.photo:nth-of-type(7n + 1):nth-of-type(odd),
.photo:nth-of-type(7n + 3):nth-of-type(odd),
.photo:nth-of-type(7n + 5):nth-of-type(odd),
.photo:nth-of-type(7n + 7):nth-of-type(odd) {
  --vertical: -100%;
  --horizontal: -100%;
}

.photo:nth-of-type(7n + 2):nth-of-type(even),
.photo:nth-of-type(7n + 4):nth-of-type(even),
.photo:nth-of-type(7n + 6):nth-of-type(even) {
  --vertical: 100%;
  --horizontal: -100%;
}

.photo:nth-of-type(7n + 2):nth-of-type(odd),
.photo:nth-of-type(7n + 4):nth-of-type(odd),
.photo:nth-of-type(7n + 6):nth-of-type(odd) {
  --vertical: 100%;
  --horizontal: 100%;
}

.photo {
  animation-name: travel;
  animation-fill-mode: both;
  animation-timing-function: linear;
  animation-timeline: --collage;
  animation-range: entry 100% exit 0%;
}

@keyframes travel {
  0% {
    translate: 0 0;
  }

  50% {
    translate: 0 var(--vertical);
  }

  100% {
    translate: var(--horizontal) var(--vertical);
  }
}

.imgparallax {
  --f: .1;
  /* the parallax factor (the smaller the better) */
  --r: 10px;
  /* radius */

  --_f: calc(100%*var(--f)/(1 + var(--f)));
  --_a: calc(90deg*var(--f));
  width: 250px;
  /* the image size */
  aspect-ratio: calc(1 + var(--f));
  object-fit: cover;
  clip-path: inset(0 var(--_f) 0 0 round var(--r));
  transform: perspective(400px) var(--_t, rotateY(var(--_a)));
  transition: .5s;
  cursor: pointer;
}

.imgparallax:hover {
  clip-path: inset(0 0 0 var(--_f) round var(--r));
  --_t: translateX(calc(-1*var(--_f))) rotateY(calc(-1*var(--_a)))
}


/* Canvas Animations */

#cursor-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

#cursor {
  position: relative;
  overflow: hidden;
}

#cursor .container {
  position: relative;
  z-index: 2;
}

.cursor-hint {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  z-index: 3;
  pointer-events: none;
}

#about-us-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

#about-us {
  position: relative;
  overflow: hidden;
}

#about-us .row {
  position: relative;
  z-index: 2;
}

.about-us-hint {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  z-index: 3;
  pointer-events: none;
}

/* Lightbox (Galería) */
.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.lightbox__dialog {
  position: relative;
  max-width: min(1000px, 90vw);
  max-height: 90vh;
  padding: 0;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
  color: #fff;
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}

.lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  background: #fff;
  color: #000;
}

/* Animaciones de aparición por sección */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Animaciones de texto dentro de secciones (stagger sencillo) */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal.is-visible h1 {
  animation: fadeUp .6s var(--ease) both;
}

.reveal.is-visible h2 {
  animation: fadeUp .7s var(--ease) both;
}

.reveal.is-visible p,
.reveal.is-visible li {
  animation: fadeUp .8s var(--ease) both;
}

.reveal.is-visible .mhd {
  animation: fadeUp .65s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal.is-visible {
    transition: none;
    transform: none !important;
  }
}

/* ========================================
   CARRUSEL DE EMPRESAS CON EFECTO FLIP
   ======================================== */

/* Contenedor principal del carrusel */
.carousel-companies-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 1) 100%);
}

/* Track que contiene todas las tarjetas */
.carousel-companies-track {
  display: flex;
  gap: 40px;
  animation: scroll-companies 30s linear infinite;
  width: fit-content;
}

/* Pausar animación al hacer hover sobre el carrusel */
.carousel-companies-wrapper:hover .carousel-companies-track {
  animation-play-state: paused;
}

/* Tarjeta individual de empresa */
.company-card {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  perspective: 1000px;
  cursor: pointer;
}

/* Contenedor interno para el efecto flip 3D */
.company-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

/* Caras frontal y trasera para evitar “lado en blanco” */
.company-card-inner .face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: inherit;
  padding: 20px;
  /* mismo padding que el contenedor para centrar la imagen */
}

.company-card-inner .face--front {
  transform: rotateY(0deg);
}

.company-card-inner .face--back {
  transform: rotateY(180deg);
}

.company-card-inner .face img {
  width: 100%;
  height: auto;
  max-width: 160px;
  object-fit: contain;
}

/* Efecto hover: voltear la tarjeta */
.company-card:hover .company-card-inner {
  transform: rotateY(180deg);
}

/* Imagen dentro de la tarjeta */
.company-card-inner img {
  width: 100%;
  height: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(0%);
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1), filter 0.3s ease;
}

/* Efecto adicional en la imagen al hover */
.company-card:hover .company-card-inner img {
  filter: grayscale(0%) brightness(1.1);
}

/* Animación de desplazamiento infinito */
@keyframes scroll-companies {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.333%);
    /* Mueve exactamente 1/3 del contenido (5 logos) */
  }
}

/* Responsive: tablets */
@media (max-width: 992px) {
  .company-card {
    width: 160px;
    height: 160px;
  }

  .carousel-companies-track {
    gap: 30px;
    animation-duration: 25s;
  }

  .company-card-inner img {
    max-width: 130px;
  }
}

/* Responsive: móviles */
@media (max-width: 768px) {
  .company-card {
    width: 140px;
    height: 140px;
  }

  .carousel-companies-track {
    gap: 20px;
    animation-duration: 20s;
  }

  .company-card-inner {
    padding: 15px;
  }

  .company-card-inner img {
    max-width: 110px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .company-card {
    width: 120px;
    height: 120px;
  }

  .carousel-companies-track {
    gap: 15px;
    animation-duration: 18s;
  }

  .company-card-inner {
    padding: 10px;
    border-radius: 10px;
  }

  .company-card-inner img {
    max-width: 100px;
  }
}

/* Accesibilidad: reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .carousel-companies-track {
    animation: none;
  }

  .company-card-inner {
    transition: none;
  }

  .carousel-companies-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .carousel-companies-track {
    justify-content: flex-start;
  }
}

/* ============================
   PROYECTS STATS (cards)
   ============================ */
#proyects {
  background-color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 28px;
}

.stat-card {
  position: relative;
  z-index: 0;
  /* crea stacking para colocar el decorativo por detrás del contenido */
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 28px 36px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.stat-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(90deg, rgba(242, 136, 29, 1) 0%, rgba(234, 63, 13, 1) 100%);
  background-size: cover;
  opacity: .7;
  pointer-events: none;
  z-index: 0;
  /* detrás del contenido de la tarjeta */
}

.stat-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #ff6f00;
  /* verde oscuro para el ícono */
  font-size: 20px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
}

.stat-value {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: clamp(32px, 4.8vw, 44px);
  color: #fd6f03;
  /* tono verde oscuro para el número */
  letter-spacing: .3px;
}

.stat-label {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: clamp(14px, 2.2vw, 18px);
  color: #2f2f2f;
  opacity: .9;
}

/* Responsive */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================
   INFO sections: centering
   ============================ */

/* Center text in all #info sections (both instances) */
#info {
  text-align: center;
}

/* Center the grid items and content inside stat cards */
#info .stats-grid {
  justify-items: center;
}

#info .stat-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#info .stat-icon {
  margin: 0 auto 10px;
}

/* Center column content for the second #info section */
#info .col-md-4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Center action buttons inside info */
#info .actions {
  display: flex;
  justify-content: center;
}