* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, #163bbf 0%, transparent 35%),
    radial-gradient(circle at bottom right, #0ddf6422 0%, transparent 30%),
    #050d26;

  background-size: 160% 160%;

  animation: bgMove 22s ease-in-out infinite;

  color: rgb(255, 255, 255);
  /*nombre logo inicio*/
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

@keyframes bgMove {

  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }

}

/* =========================
   NAVBAR
========================= */

.navbar {

  width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 6%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(8, 16, 40, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom:
    1px solid rgba(255, 255, 255, 0.08);
}

/* =========================
   LOGO
========================= */

.logo {

  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {

  width: 55px;
  filter:
    drop-shadow(0 0 12px rgba(0, 194, 255, 0.5));
}

.logo h2 {

  color: #00c2ff;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

/* =========================
   LINKS
========================= */

.nav-links {

  display: flex;
  gap: 35px;
  list-style: none;
}

.nav-links a {

  color: white;
  text-decoration: none;
  transition: .3s;
}

.nav-links a:hover {

  color: #00c2ff;
}

/* =========================
   MENU HAMBURGUESA
========================= */

.menu-toggle {

  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  z-index: 2000;
}



/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

  /* MOSTRAR HAMBURGUESA */

  .menu-toggle {

    display: block;
    position: absolute;
    top: 28px;
    right: 30px;
  }

  /* OCULTAR LOGO TEXTO */

  .logo h2 {

    font-size: 1rem;
  }

  /* MENU MOBILE */

  .nav-links {

    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #07142A;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    transition: .4s ease;
    z-index: 1500;
  }

  /* MENU ACTIVO */

  .nav-links.active {

    right: 0;
  }

}




html {
  scroll-behavior: smooth;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}

.logo img {

  width: 60px;
  height: 60px;
  object-fit: contain;
  position: relative;


  filter:
    drop-shadow(0 0 6px rgba(0, 194, 255, 0.45));

  transition: all .4s ease;
}

.logo h2 {
  color: #00c2ff;

  font-size: 1.3rem;

  font-weight: 700;

  letter-spacing: 1px;

  font-family: 'Orbitron', sans-serif;

  animation: logoZoom 3s ease-in-out infinite;
}

@keyframes logoZoom {

  15% {
    transform: scale(1);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  }

  50% {
    transform: scale(1);

    text-shadow:
      0 0 12px rgba(0, 195, 255, 0.479),
      0 0 25px rgba(0, 194, 255, 0.35);
  }

}


.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  list-style: none;
}

.nav-links a:not(.btn-primary) {
  color: #e8eefc;
  /*enlaces*/
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  padding: 9px 18px;
  border: 1px solid rgba(0, 194, 255, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

.nav-links a:not(.btn-primary):hover {
  color: #00c2ff;
  /*enlaces*/
  background: rgba(0, 194, 255, 0.12);
  border-color: rgba(0, 194, 255, 0.55);
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-actions input {
  width: 180px;
  padding: 10px 16px 10px 40px;
  border: 1px solid rgba(0, 194, 255, 0.18);
  border-radius: 30px;
  background-color: rgba(9, 23, 51, 0.7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300c2ff' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath stroke-linecap='round' d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 16px;
  /*fondo barra de busqueda*/
  color: rgb(255, 255, 255);
  font-size: 0.92rem;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, width .25s ease;
  /*cursor de texto*/
}

.nav-actions input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.nav-actions input:focus {
  border-color: rgba(0, 194, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.12);
  width: 210px;
}

.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: none;
  padding: 12px 22px;
  border-radius: 30px;
  cursor: pointer;
  color: white;
  font-weight: 600;
  background: linear-gradient(135deg, #006bff, #00c2ff);
  transition: all .4s ease;
}

.btn-primary:hover {

  transform: translateY(-4px);

  box-shadow:
    0 0 20px rgba(0, 194, 255, .4),
    0 0 40px rgba(0, 194, 255, .2);
}

.btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: linear-gradient(135deg, #006bff, #00c2ff);
  border: 1px solid rgba(255, 255, 255, .2);
  color: white;
  padding: 12px 22px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all .4s ease;
}

.btn-secondary:hover {

  transform: translateY(-4px);

  box-shadow:
    0 0 20px rgba(0, 194, 255, .4),
    0 0 40px rgba(0, 194, 255, .2);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 140px 8% 80px;
}

.hero-content h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-img {
  width: 100%;
  height: 485px;

  object-fit: cover;

  border-radius: 25px;

  border: 1px solid rgba(255, 255, 255, .1);

  box-shadow:
    0 0 30px rgba(0, 194, 255, .15);

}

.tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 18px;
  border-radius: 30px;
  background: #0f1d42;
  color: #00c2ff;
}

.subtitle {
  color: #00c2ff;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/*corresponde a la descripcion de inicio*/
.description {
  color: #b4c4de;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin: 35px 0;
}

.stats {
  display: flex;
  gap: 50px;
}

.stats h3 {
  color: #00c2ff;
  font-size: 2rem;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 500px;
}

@keyframes float {

  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }

}



.image-placeholder {
  width: 100%;
  height: 430px;
  border-radius: 25px;

  border: 1px solid rgba(255, 255, 255, .1);

  display: flex;
  justify-content: center;
  align-items: center;

  backdrop-filter: blur(10px);

  overflow: hidden;
  /* IMPORTANTE */
}

/* Imagen */
.image-placeholder img {
  width: 95%;
  /* Hace la imagen más pequeña */
  height: 95%;

  object-fit: cover;

  border-radius: 20px;
  /* esquinas redondas */

  transition: 0.3s ease;
}

/* Hover premium */
.image-placeholder img:hover {
  transform: scale(1.03);

  box-shadow: 0 0 30px rgba(0, 212, 255, 0.25);
}


.floating-card,
.support-badge {
  position: absolute;

  background:
    linear-gradient(135deg, #00c2ff, #005eff);

  padding: 18px;
  border-radius: 18px;

  box-shadow:
    0 0 25px rgba(0, 194, 255, .4);
}

.floating-card {
  top: 20px;
  right: -20px;
}

.support-badge {
  left: -20px;
  bottom: 30px;
}

/* =========================
   SERVICES
========================= */

.services {

  padding: 100px 8%;
}


.service-grid {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 30px;

  margin-top: 70px;
}

/* =========================
   CARD
========================= */

.service-card {

  background:
    rgba(255, 255, 255, 0.05);

  border:
    1px solid rgba(255, 255, 255, 0.08);

  border-radius: 22px;

  padding: 35px 25px;

  backdrop-filter: blur(12px);

  transition: .4s ease;

  text-align: center;

  height: 100%;
}

.service-card:hover {

  transform: translateY(-10px);

  border-color:
    rgba(0, 194, 255, 0.4);

  box-shadow:
    0 0 25px rgba(0, 194, 255, 0.18);
}

/* =========================
   CARD TITULO
========================= */

.service-card h3 {

  color: #00c2ff;

  margin-bottom: 18px;

  font-size: 1.3rem;
}

/* =========================
   CARD TEXTO
========================= */

.service-card p {

  color: #d7e3ff;

  line-height: 1.7;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1200px) {

  .service-grid {

    grid-template-columns:
      repeat(2, 1fr);
  }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

  .service-grid {

    grid-template-columns: 1fr;
  }

  .services {

    padding: 80px 25px;
  }

}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title span {
  color: #00c2ff;
}

.section-title h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  margin: 15px 0;
}

.section-title p {
  color: #b4c4de;
}

.service-grid,
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.service-card,
.benefit-card {

  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 35px;
  border-radius: 25px;
  transition: .4s;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.service-card:hover,
.benefit-card:hover {

  transform: translateY(-10px);

  border-color: #00c2ff;

  box-shadow:
    0 0 20px rgba(0, 194, 255, .3),
    0 0 40px rgba(0, 194, 255, .15);
}

.service-card.active {

  background:
    linear-gradient(135deg, #1f1f1f, #868586);
}

.benefit-card.highlight {

  background:
    linear-gradient(135deg, #303030, #000000);
}

.service-card h3,
.benefit-card h3 {
  margin-bottom: 15px;
  color: #00c2ff;
}

.service-card p,
.benefit-card p {
  color: #ffffff;
  /*texto de servicios y porque elegirnos*/
  line-height: 1.7;
}

/*iconos servicios*/
.benefit-icon {

  width: 75px;
  height: 75px;

  margin: 0 auto 25px;

  display: flex;

  justify-content: center;
  align-items: center;

  border-radius: 22px;

  background:
    rgba(255, 255, 255, 0.05);

  border:
    1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(10px);

  position: relative;

  overflow: hidden;

  transition: .4s ease;
}

/*iconos internos servicios*/
.benefit-icon i {

  font-size: 2rem;

  color: #00c2ff;

  z-index: 2;

  animation: iconFloat 3s ease-in-out infinite;
}

/*efecto glow*/
.benefit-icon::before {

  content: "";

  position: absolute;

  width: 120px;
  height: 120px;

  background:
    radial-gradient(circle,
      rgba(0, 194, 255, 0.25),
      transparent 70%);

  animation: glowPulse 4s ease-in-out infinite;
}

/*animacion flotante iconos*/
@keyframes iconFloat {

  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0px);
  }
}

/*glow dinamico*/
@keyframes glowPulse {

  0% {
    transform: scale(1);
    opacity: .5;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: .5;
  }
}

/*Hover*/
.benefit-card:hover .benefit-icon {

  transform: translateY(-8px);

  box-shadow:
    0 0 25px rgba(0, 194, 255, 0.35);
}


/* =========================
   FOOTER
========================= */

.footer {

  background:
    linear-gradient(90deg,
      #162b6b,
      #07153d,
      #000814);

  padding: 80px 8% 30px;

  color: white;

  position: relative;

  overflow: hidden;

  margin-top: 80px;
}

/* =========================
   EFECTO FONDO
========================= */

.footer::before {

  content: "";

  position: absolute;

  width: 500px;

  height: 500px;

  background:
    radial-gradient(circle,
      rgba(0, 194, 255, .12),
      transparent 70%);

  top: -200px;

  left: -150px;
}

/* =========================
   CONTENEDOR
========================= */

.footer-container {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 60px;

  position: relative;

  z-index: 2;
}

/* =========================
   LOGO
========================= */

.footer-logo {

  display: flex;

  align-items: center;

  gap: 14px;

  margin-bottom: 25px;
}

.footer-logo h2 {

  color: #00c2ff;

  font-size: 1.7rem;
}

/* =========================
   TEXTO
========================= */

.footer-about p {

  color: #b5c3de;

  line-height: 1.9;

  margin-bottom: 30px;

  max-width: 350px;
}

/* =========================
   REDES
========================= */

.social-icons {

  display: flex;

  gap: 14px;

  flex-wrap: wrap;
}

.social-icons a {

  width: 46px;

  height: 46px;

  display: flex;

  justify-content: center;

  align-items: center;

  border-radius: 12px;

  border:
    1px solid rgba(255, 255, 255, .15);

  color: white;

  text-decoration: none;

  transition: .4s;

  backdrop-filter: blur(10px);
}

.social-icons a:hover {

  background: #00c2ff;

  transform: translateY(-6px);

  box-shadow:
    0 0 20px rgba(0, 194, 255, .5);
}

/* =========================
   LINKS
========================= */

.footer-links {

  display: flex;

  flex-direction: column;

  gap: 18px;
}

.footer-links h3 {

  margin-bottom: 12px;

  font-size: 1.3rem;
}

.footer-links a {

  color: #b5c3de;

  text-decoration: none;

  transition: .3s;
}

.footer-links a:hover {

  color: #00c2ff;

  transform: translateX(6px);
}

/* =========================
   FOOTER BOTTOM
========================= */

.footer-bottom {

  margin-top: 60px;

  padding-top: 25px;

  border-top:
    1px solid rgba(255, 255, 255, .08);

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 20px;

  position: relative;

  z-index: 2;
}

.footer-bottom p {

  color: #9bb2d1;
}

/* =========================
   POLICIES
========================= */

.footer-policies {

  display: flex;

  gap: 20px;

  flex-wrap: wrap;
}

.footer-policies a {

  color: #9bb2d1;

  text-decoration: none;

  transition: .3s;
}

.footer-policies a:hover {

  color: #00c2ff;
}

/* =========================
   TABLET
========================= */

@media (max-width: 992px) {

  .footer-container {

    grid-template-columns:
      repeat(2, 1fr);

    gap: 50px;
  }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .footer {

    padding: 70px 25px 30px;
  }

  .footer-container {

    grid-template-columns: 1fr;

    text-align: center;
  }

  .footer-about {

    display: flex;

    flex-direction: column;

    align-items: center;
  }

  .footer-links {

    align-items: center;
  }

  .footer-logo {

    justify-content: center;
  }

  .social-icons {

    justify-content: center;
  }

  .footer-bottom {

    flex-direction: column;

    text-align: center;
  }

  .footer-policies {

    justify-content: center;
  }

}




.newsletter {

  display: flex;

  gap: 10px;
}

.newsletter input {

  flex: 1;

  background: rgba(255, 255, 255, .05);

  border: 1px solid rgba(255, 255, 255, .12);

  padding: 15px;

  border-radius: 12px;

  color: rgb(255, 255, 255);
  /*editor de texto*/

  outline: none;
}

.newsletter button {

  border: none;

  background:
    linear-gradient(135deg,
      #00c2ff,
      #0066ff);

  color: white;

  padding: 15px 22px;

  border-radius: 12px;

  cursor: pointer;

  font-weight: 600;

  transition: .4s;
}

.newsletter button:hover {

  transform: translateY(-3px);

  box-shadow:
    0 0 20px rgba(0, 194, 255, .5);
}

.footer-bottom {

  margin-top: 70px;

  padding-top: 30px;

  border-top:
    1px solid rgba(255, 255, 255, .08);

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 20px;

  position: relative;

  z-index: 2;
}

.footer-bottom p {

  color: #9fb0cf;
}

.footer-policies {

  display: flex;

  gap: 30px;
}

.footer-policies a {

  color: #b5c3de;

  text-decoration: none;

  transition: .3s;
}

.footer-policies a:hover {

  color: #00c2ff;
}



/*icono mensaje*/

/* =========================
   FLOATING CHAT
========================= */

.floating-chat {

  position: fixed;

  bottom: 30px;

  right: 30px;

  z-index: 5000;
}

/* =========================
   BOTON
========================= */

.chat-button {

  width: 68px;

  height: 68px;

  border-radius: 50%;

  display: flex;

  justify-content: center;

  align-items: center;

  text-decoration: none;

  font-size: 2rem;

  background:
    linear-gradient(135deg,
      #25D366,
      #128C7E);

  color: white;

  box-shadow:
    0 0 20px rgba(37, 211, 102, 0.45);

  animation: pulseGlow 3s ease-in-out infinite;

  transition: .4s ease;

  position: relative;
}

/* =========================
   HOVER
========================= */

.chat-button:hover {

  transform: scale(1.1);

  box-shadow:
    0 0 30px rgba(37, 211, 102, 0.75);
}

/* =========================
   TOOLTIP
========================= */

.chat-tooltip {

  position: absolute;

  right: 85px;

  bottom: 10px;

  background: rgba(7, 20, 42, 0.95);

  color: white;

  padding: 12px 18px;

  border-radius: 16px;

  backdrop-filter: blur(10px);

  border:
    1px solid rgba(255, 255, 255, 0.08);

  opacity: 0;

  visibility: hidden;

  transform: translateX(10px);

  transition: .4s ease;

  min-width: 180px;
}

/* TITULO */

.chat-tooltip strong {

  display: block;

  font-size: .95rem;

  margin-bottom: 4px;

  color: #25D366;
}

/* TEXTO */

.chat-tooltip span {

  font-size: .85rem;

  color: #d7e3ff;
}

/* MOSTRAR TOOLTIP */

.floating-chat:hover .chat-tooltip {

  opacity: 1;

  visibility: visible;

  transform: translateX(0);
}

/* =========================
   ANIMACION GLOW
========================= */

@keyframes pulseGlow {

  0% {

    box-shadow:
      0 0 12px rgba(37, 211, 102, 0.35);
  }

  50% {

    box-shadow:
      0 0 28px rgba(37, 211, 102, 0.8);
  }

  100% {

    box-shadow:
      0 0 12px rgba(37, 211, 102, 0.35);
  }
}


/* ============================================================
   PÁGINA DE CONTACTO
============================================================ */

/* CTA del menú: oculto en escritorio, visible en móvil */
.nav-cta-mobile {
  display: none;
}

.contact-section {
  padding: 150px 8% 70px;
  position: relative;
  z-index: 1;
}

/* Encabezado */
.contact-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.contact-hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin: 16px 0 18px;
  background: linear-gradient(120deg, #ffffff 0%, #9fd9ff 55%, #00c2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #00c2ff;
}

.contact-hero p {
  color: #b4c4de;
  line-height: 1.85;
  font-size: 1.05rem;
}

/* Grid formulario + info */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tarjeta del formulario */
.contact-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  padding: 42px 40px;
  backdrop-filter: blur(15px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00c2ff, #006bff, transparent);
}

.contact-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  color: #fff;
}

.contact-card h2 i {
  color: #00c2ff;
}

.contact-card-sub {
  color: #9fb0cf;
  margin: 8px 0 28px;
  line-height: 1.6;
}

/* Honeypot anti-spam */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Campos */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #d7e3ff;
  font-weight: 500;
  font-size: 0.95rem;
}

.input-wrap {
  position: relative;
}

.input-wrap>i {
  position: absolute;
  left: 16px;
  top: 16px;
  color: #5d7bb0;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  pointer-events: none;
}

.input-wrap input,
.input-wrap textarea {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.input-wrap textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: #6f82a6;
}

.input-wrap input:focus,
.input-wrap textarea:focus {
  border-color: #00c2ff;
  background: rgba(0, 194, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.12);
}

.input-wrap:focus-within>i {
  color: #00c2ff;
}

/* Errores de validación */
.field-error {
  display: block;
  color: #ff7a96;
  font-size: 0.82rem;
  margin-top: 6px;
  min-height: 1em;
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: #ff7a96;
  box-shadow: 0 0 0 4px rgba(255, 122, 150, 0.1);
}

/* Botón enviar */
.form-submit {
  width: 100%;
  margin-top: 6px;
  padding: 16px;
  font-size: 1.05rem;
  gap: 10px;
}

.form-submit .btn-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}

.form-submit.is-loading .btn-label,
.form-submit.is-loading i {
  display: none;
}

.form-submit.is-loading .btn-spinner {
  display: inline-block;
}

.form-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mensaje de respuesta del servidor */
.form-feedback {
  margin-top: 18px;
  border-radius: 14px;
  max-height: 0;
  padding: 0 18px;
  overflow: hidden;
  opacity: 0;
  line-height: 1.6;
  transition: all 0.4s ease;
}

.form-feedback.show {
  max-height: 240px;
  padding: 16px 18px;
  opacity: 1;
}

.form-feedback.error {
  background: rgba(255, 80, 110, 0.12);
  border: 1px solid rgba(255, 80, 110, 0.4);
  color: #ff9bb0;
}

.form-feedback a {
  color: #00c2ff;
  font-weight: 600;
  text-decoration: none;
}

.form-feedback a:hover {
  text-decoration: underline;
}

/* Estado de éxito */
.form-success {
  text-align: center;
  padding: 26px 10px 6px;
}

.form-success .check {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0ddf64, #00a884);
  box-shadow: 0 0 35px rgba(13, 223, 100, 0.5);
  animation: pop 0.5s ease;
}

.form-success .check i {
  font-size: 2.4rem;
  color: #fff;
}

.form-success h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.form-success p {
  color: #b4c4de;
  line-height: 1.7;
  margin-bottom: 24px;
}

@keyframes pop {
  0% {
    transform: scale(0);
  }

  70% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Panel de información */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 194, 255, 0.4);
  box-shadow: 0 0 25px rgba(0, 194, 255, 0.15);
}

.info-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, #00c2ff, #005eff);
  box-shadow: 0 8px 20px rgba(0, 194, 255, 0.35);
}

.info-card h4 {
  color: #00c2ff;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.info-card p,
.info-card a {
  color: #d7e3ff;
  line-height: 1.6;
  text-decoration: none;
  word-break: break-word;
}

.info-card a {
  transition: color 0.3s ease;
}

.info-card a:hover {
  color: #00c2ff;
}

/* Mapa */
.map-section {
  max-width: 1200px;
  margin: 60px auto 0;
}

.map-head {
  text-align: center;
  margin-bottom: 28px;
}

.map-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 12px 0 8px;
}

.map-head p {
  color: #b4c4de;
}

.map-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 45px rgba(0, 194, 255, 0.15);
  height: 430px;
  line-height: 0;
}

.map-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00c2ff, #006bff, transparent);
  z-index: 2;
  pointer-events: none;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

.map-actions {
  text-align: center;
  margin-top: 22px;
}

.map-actions .btn-primary {
  gap: 10px;
}

/* Mapa dentro de la columna de info (llena el espacio vacío) */
.contact-map {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
}

.contact-map .map-frame {
  flex: 1;
  height: auto;
  min-height: 160px;
}

.map-open {
  justify-content: center;
  gap: 10px;
}

/* Encabezado h2 de los hero (about / soluciones / contacto) */
.hero-content h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}


/* ============================================================
   RESPONSIVE GLOBAL
============================================================ */

/* ---------- <= 1100px ---------- */
@media (max-width: 1100px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- <= 992px : tablets + menú móvil ---------- */
@media (max-width: 992px) {
  .navbar {
    padding: 14px 6%;
    flex-direction: row;
  }

  .logo img {
    width: 48px;
    height: 48px;
  }

  .logo h2 {
    font-size: 1.05rem;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
  }

  /* En móvil ocultamos buscador + botón de la barra; el menú lleva su propio CTA */
  .nav-actions {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82%, 330px);
    height: 100vh;
    background: linear-gradient(160deg, #07142a, #04102b);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 40px;
    transition: right 0.4s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    z-index: 1500;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.15rem;
  }

  .nav-cta-mobile {
    display: block;
    margin-top: 8px;
  }

  .nav-cta-mobile a {
    padding: 13px 30px;
    font-size: 1rem;
  }

  /* HERO de todas las páginas a una columna */
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 130px 6% 70px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    height: auto;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }

  .image-placeholder {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .image-placeholder img,
  .hero-img {
    height: auto;
  }

  .stats {
    justify-content: center;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .contact-section {
    padding: 130px 6% 60px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-map {
    flex: none;
  }

  .contact-map .map-frame {
    min-height: 320px;
  }
}

/* ---------- <= 768px : teléfonos ---------- */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 120px 24px 60px;
  }

  .subtitle {
    font-size: 1.15rem;
  }

  .description {
    font-size: 0.98rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons a {
    width: 100%;
  }

  .floating-card {
    top: 10px;
    right: 8px;
    padding: 12px 14px;
  }

  .support-badge {
    left: 8px;
    bottom: 12px;
    padding: 12px 14px;
  }

  .services {
    padding: 70px 24px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .why-us {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer {
    padding: 60px 24px 30px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 38px;
  }

  .footer-about {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .footer-policies {
    justify-content: center;
  }

  .contact-section {
    padding: 115px 22px 50px;
  }

  .contact-hero {
    margin-bottom: 44px;
  }

  .contact-card {
    padding: 30px 22px;
  }

  .map-frame {
    height: 350px;
  }

  .floating-chat {
    bottom: 20px;
    right: 18px;
  }

  .chat-button {
    width: 58px;
    height: 58px;
    font-size: 1.6rem;
  }

  .chat-tooltip {
    display: none;
  }
}

/* ---------- <= 480px : móviles pequeños ---------- */
@media (max-width: 480px) {
  .logo h2 {
    font-size: 0.92rem;
  }

  .logo img {
    width: 42px;
    height: 42px;
  }

  .tag {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .info-card {
    padding: 18px;
    gap: 14px;
  }

  .info-icon {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .contact-card {
    padding: 24px 16px;
  }

  .contact-card h2 {
    font-size: 1.35rem;
  }

  .input-wrap input,
  .input-wrap textarea {
    font-size: 0.95rem;
  }

  .map-frame {
    height: 300px;
  }
}

/* ===== FILTROS DE SOLUCIONES ===== */
.solution-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.filter-chip {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #cfe0ff;
  padding: 11px 20px;
  border: 1px solid rgba(0, 194, 255, 0.25);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all .3s ease;
}

.filter-chip:hover {
  color: #00c2ff;
  border-color: rgba(0, 194, 255, 0.6);
  transform: translateY(-2px);
}

.filter-chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #006bff, #00c2ff);
  box-shadow: 0 8px 22px rgba(0, 194, 255, 0.35);
}

/* ============================================================
   CARRUSEL 3D DE SOLUCIONES  ·  componente aislado
   Prefijo exclusivo .ms-carousel-* — no reutiliza ni modifica
   ninguna clase existente del sitio.
============================================================ */

/* El contenedor que aloja el carrusel no "flota" para no competir con el 3D */
.hero-image:has(.ms-carousel) {
  animation: none;
}

.ms-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  flex-direction: column;
  -webkit-user-select: none;
  user-select: none;
}

/* ---- Área 3D ---- */
.ms-carousel-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  perspective: 1300px;
  perspective-origin: 50% 45%;
  touch-action: pan-y;
  /* scroll vertical libre; el swipe horizontal lo gestiona el JS */
  cursor: grab;
}

.ms-carousel-viewport:active {
  cursor: grabbing;
}

.ms-carousel-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* ---- Tarjeta ---- */
.ms-carousel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 340px;
  margin: -170px 0 0 -120px;
  /* centrado: -alto/2  -ancho/2 */
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(2, 10, 30, 0.55);
  transform-style: preserve-3d;
  transition:
    transform .7s cubic-bezier(.22, .61, .36, 1),
    opacity .7s ease,
    box-shadow .5s ease,
    border-color .5s ease;
  will-change: transform, opacity;
  cursor: pointer;
}

/* Estado activo (lo gestiona el JS) */
.ms-carousel-card.is-active {
  border-color: rgba(0, 194, 255, 0.55);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 194, 255, 0.25),
    0 0 60px rgba(0, 194, 255, 0.30);
}

/* ---- Media ---- */
.ms-carousel-media {
  position: relative;
  width: 100%;
  height: 62%;
  overflow: hidden;
}

.ms-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.ms-carousel-card.is-active .ms-carousel-img {
  transform: scale(1.05);
}

/* velo inferior para integrar media con la info */
.ms-carousel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 13, 38, 0) 45%, rgba(5, 13, 38, 0.55) 100%);
  pointer-events: none;
}

/* etiqueta de categoría */
.ms-carousel-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #eaf6ff;
  padding: 6px 12px;
  border-radius: 30px;
  background: rgba(0, 109, 255, 0.30);
  border: 1px solid rgba(0, 194, 255, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* botón flotante con lupa (se revela en la tarjeta activa) */
.ms-carousel-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #006bff, #00c2ff);
  box-shadow: 0 8px 22px rgba(0, 194, 255, 0.45);
  transform: scale(0.5);
  opacity: 0;
  transition:
    transform .45s cubic-bezier(.34, 1.56, .64, 1),
    opacity .35s ease,
    box-shadow .3s ease;
}

.ms-carousel-card.is-active .ms-carousel-zoom {
  transform: scale(1);
  opacity: 1;
}

.ms-carousel-zoom:hover {
  box-shadow: 0 12px 28px rgba(0, 194, 255, 0.65);
  transform: scale(1.08);
}

/* ---- Info ---- */
.ms-carousel-info {
  height: 38%;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.ms-carousel-name {
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 5px;
}

.ms-carousel-role {
  color: #9fb6d9;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ---- Flechas ---- */
.ms-carousel-arrow {
  position: absolute;
  top: calc(50% - 23px);
  /* centrado sobre el viewport, no sobre los dots */
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  color: #cfe6ff;
  font-size: 0.9rem;
  background: rgba(8, 20, 44, 0.72);
  border: 1px solid rgba(0, 194, 255, 0.30);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: all .3s ease;
}

.ms-carousel-arrow:hover {
  color: #fff;
  border-color: rgba(0, 194, 255, 0.70);
  background: rgba(0, 109, 255, 0.45);
  box-shadow: 0 0 22px rgba(0, 194, 255, 0.40);
}

.ms-carousel-prev {
  left: 2px;
}

.ms-carousel-next {
  right: 2px;
}

/* ---- Dots ---- */
.ms-carousel-dots {
  flex: 0 0 auto;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.ms-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  transition: all .3s ease;
}

.ms-carousel-dot:hover {
  background: rgba(0, 194, 255, 0.60);
}

.ms-carousel-dot.is-active {
  width: 26px;
  border-radius: 30px;
  background: linear-gradient(135deg, #006bff, #00c2ff);
  box-shadow: 0 0 14px rgba(0, 194, 255, 0.55);
}

/* ---- Responsive (mismos breakpoints del sitio) ---- */
@media (max-width: 992px) {
  .ms-carousel {
    height: 460px;
  }

  .ms-carousel-card {
    width: 230px;
    height: 330px;
    margin: -165px 0 0 -115px;
  }
}

@media (max-width: 768px) {
  .ms-carousel {
    height: 430px;
  }

  .ms-carousel-card {
    width: 220px;
    height: 320px;
    margin: -160px 0 0 -110px;
  }
}

@media (max-width: 480px) {
  .ms-carousel {
    height: 400px;
  }

  .ms-carousel-card {
    width: 198px;
    height: 300px;
    margin: -150px 0 0 -99px;
  }

  .ms-carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .ms-carousel-name {
    font-size: 1.04rem;
  }
}

/* ---- Accesibilidad ---- */
.ms-carousel-zoom:focus-visible,
.ms-carousel-arrow:focus-visible,
.ms-carousel-dot:focus-visible {
  outline: 2px solid #00c2ff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  .ms-carousel-card,
  .ms-carousel-img,
  .ms-carousel-zoom {
    transition-duration: .01ms;
  }
}

/* ============================================================
   MODAL DE PROYECTO  ·  componente aislado (prefijo .ms-modal-*)
   Reutiliza la paleta del carrusel. No modifica clases existentes.
============================================================ */

.ms-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  /* por encima del chat flotante (5000) y la navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}

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

/* Oculta el botón flotante de WhatsApp mientras el modal está abierto (evita superposición) */
body.ms-modal-open .floating-chat {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* fondo: desenfoca la página de atrás */
.ms-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 22, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* panel */
.ms-modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  height: min(90vh, 620px);
  /* altura estable: no cambia al cambiar de proyecto */
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(150deg, #0a1430, #070f25);
  border: 1px solid rgba(0, 194, 255, 0.22);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.60), 0 0 60px rgba(0, 194, 255, 0.12);
  overflow: hidden;
  transform: translateY(14px) scale(.985);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}

.ms-modal.is-open .ms-modal-panel {
  transform: none;
}

/* botón cerrar (X) */
.ms-modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  color: #dbeeff;
  font-size: 1.05rem;
  background: rgba(8, 20, 44, 0.70);
  border: 1px solid rgba(0, 194, 255, 0.30);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: all .25s ease;
}

.ms-modal-x:hover {
  color: #fff;
  background: rgba(0, 109, 255, 0.50);
  border-color: rgba(0, 194, 255, 0.70);
  transform: rotate(90deg);
}

/* ---- Selector de proyectos (pestañas) ---- */
.ms-modal-projects {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 64px 14px 24px;
  /* margen derecho amplio para no chocar con la X */
  border-bottom: 1px solid rgba(0, 194, 255, 0.12);
  background: rgba(8, 18, 42, 0.55);
}

.ms-modal-projects[hidden] {
  display: none;
}

.ms-modal-projects-label {
  flex: 0 0 auto;
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7f97bd;
  font-weight: 700;
}

.ms-modal-ptabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  /* scroll horizontal SOLO interno si hay muchos proyectos */
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.ms-modal-ptabs::-webkit-scrollbar {
  height: 4px;
}

.ms-modal-ptabs::-webkit-scrollbar-thumb {
  background: rgba(0, 194, 255, 0.30);
  border-radius: 4px;
}

.ms-modal-ptab {
  flex: 0 0 auto;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: #cfe0ff;
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid rgba(0, 194, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all .25s ease;
}

.ms-modal-ptab:hover {
  color: #00c2ff;
  border-color: rgba(0, 194, 255, 0.60);
}

.ms-modal-ptab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #006bff, #00c2ff);
  box-shadow: 0 6px 18px rgba(0, 194, 255, 0.35);
}

/* rejilla interna (con scroll vertical) */
.ms-modal-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: minmax(0, 1fr);
  /* una fila que llena el alto (desktop) */
  overflow: hidden;
}

/* ---- IZQUIERDA · galería ---- */
.ms-modal-gallery {
  position: relative;
  min-height: 0;
  background: #060d22;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
}

.ms-modal-gallery-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ms-modal-gallery-track {
  display: flex;
  height: 100%;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.ms-modal-gslide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-modal-gslide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ms-modal-gslide video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 14px;
}

.ms-modal-garrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  color: #cfe6ff;
  font-size: .85rem;
  background: rgba(8, 20, 44, 0.72);
  border: 1px solid rgba(0, 194, 255, 0.30);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: all .25s ease;
}

.ms-modal-garrow:hover {
  color: #fff;
  background: rgba(0, 109, 255, 0.45);
  border-color: rgba(0, 194, 255, 0.70);
}

.ms-modal-gprev {
  left: 12px;
}

.ms-modal-gnext {
  right: 12px;
}

.ms-modal-gcounter {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: #eaf6ff;
  padding: 5px 11px;
  border-radius: 30px;
  background: rgba(0, 109, 255, 0.32);
  border: 1px solid rgba(0, 194, 255, 0.40);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.ms-modal-gdots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}

.ms-modal-gdot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.30);
  transition: all .3s ease;
}

.ms-modal-gdot.is-active {
  width: 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, #006bff, #00c2ff);
}

/* ---- DERECHA · info ---- */
.ms-modal-info {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  /* centra la info; evita el salto entre proyectos */
  gap: 18px;
  overflow-y: auto;
  /* si un proyecto trae texto largo, hace scroll interno */
}

.ms-modal-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 194, 255, 0.18);
  border-radius: 16px;
  padding: 20px;
}

.ms-modal-card-title {
  color: #00c2ff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.ms-modal-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ms-modal-meta li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ms-modal-urlrow[hidden] {
  display: none;
}

.ms-modal-meta span {
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7f97bd;
}

.ms-modal-meta strong {
  color: #eaf2ff;
  font-size: .98rem;
  font-weight: 600;
}

.ms-modal-meta a {
  color: #00c2ff;
  font-size: .95rem;
  word-break: break-all;
  text-decoration: none;
}

.ms-modal-meta a:hover {
  text-decoration: underline;
}

.ms-modal-cat {
  align-self: flex-start;
  background: linear-gradient(135deg, #006bff, #00c2ff);
  color: #fff !important;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: .82rem !important;
}

.ms-modal-title {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
}

.ms-modal-desc {
  color: #b4c4de;
  line-height: 1.7;
  font-size: .98rem;
}

.ms-modal-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 13px 24px;
  border-radius: 30px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #006bff, #00c2ff);
  box-shadow: 0 10px 26px rgba(0, 194, 255, 0.40);
  transition: transform .25s ease, box-shadow .25s ease;
}

.ms-modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 194, 255, 0.60);
}

.ms-modal-cta[hidden] {
  display: none;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .ms-modal {
    padding: 0;
  }

  .ms-modal-panel {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .ms-modal-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    /* apila: galería + info por contenido */
    overflow-y: auto;
    /* en móvil scrollea el conjunto */
  }

  .ms-modal-gallery {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .ms-modal-info {
    padding: 24px 20px 40px;
    overflow: visible;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .ms-modal-gallery {
    aspect-ratio: 4 / 3;
  }

  .ms-modal-info {
    padding: 20px 16px 36px;
  }

  .ms-modal-x {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }
}

/* ---- Accesibilidad ---- */
.ms-modal-x:focus-visible,
.ms-modal-garrow:focus-visible,
.ms-modal-gdot:focus-visible,
.ms-modal-cta:focus-visible,
.ms-modal-meta a:focus-visible {
  outline: 2px solid #00c2ff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  .ms-modal,
  .ms-modal-panel,
  .ms-modal-gallery-track {
    transition-duration: .01ms;
  }
}

/* ============================================================
   SECCIÓN "NUESTRAS SOLUCIONES Y FUNCIONES"  ·  componente aislado
   Prefijo .ms-services-* / .ms-service-* — no toca .services ni .service-card.
============================================================ */

.ms-services {
  padding: 130px 8% 40px;
  /* el 130px superior despeja el navbar fijo (es la 1ª sección) */
}

/* Cuando el hero va DESPUÉS de esta sección (solo en soluciones), reduce su espacio
   y su altura mínima para que el flujo sea natural: funciones arriba, proyectos abajo. */
.ms-services+.hero {
  min-height: auto;
  padding-top: 30px;
}

.ms-services-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px;
}

.ms-services-eyebrow {
  display: inline-block;
  color: #00c2ff;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 6px;
}

.ms-services-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #ffffff;
  margin: 10px 0 14px;
  line-height: 1.2;
}

.ms-services-head p {
  color: #b4c4de;
  line-height: 1.7;
}

.ms-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* ---- Tarjeta (mismo lenguaje glass + hover que .service-card) ---- */
.ms-service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 34px 28px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  transform-style: preserve-3d;
  /* para el tilt */
}

.ms-service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 194, 255, 0.45);
  box-shadow: 0 0 25px rgba(0, 194, 255, 0.18), 0 0 45px rgba(0, 194, 255, 0.10);
}

/* icono encima del título */
.ms-service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 1.75rem;
  color: #00c2ff;
  background: linear-gradient(135deg, rgba(0, 109, 255, 0.20), rgba(0, 194, 255, 0.08));
  border: 1px solid rgba(0, 194, 255, 0.30);
  transition: transform .4s ease, box-shadow .4s ease;
}

.ms-service-card:hover .ms-service-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 22px rgba(0, 194, 255, 0.35);
}

.ms-service-card h3 {
  color: #ffffff;
  font-size: 1.32rem;
  text-align: center;
  margin-bottom: 5px;
}

.ms-service-sub {
  color: #00c2ff;
  text-align: center;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 20px;
}

.ms-service-flabel {
  display: block;
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7f97bd;
  font-weight: 700;
  margin-bottom: 12px;
}

.ms-service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.ms-service-list li {
  position: relative;
  padding-left: 28px;
  color: #d7e3ff;
  line-height: 1.5;
  font-size: .93rem;
}

.ms-service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #00c2ff;
  font-weight: 800;
  font-size: 1rem;
}

/* párrafo de cierre, anclado abajo para que todas las tarjetas alineen */
.ms-service-desc {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #b4c4de;
  line-height: 1.6;
  font-size: .92rem;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .ms-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .ms-services {
    padding: 110px 22px 30px;
  }

  .ms-services-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {

  .ms-service-card,
  .ms-service-icon {
    transition-duration: .01ms;
  }
}