/* Reset y configuración base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


:root {
  /* 30 % — estructura y tipografía */
  --primary-color: #1A1A2E;
  --secondary-color: #3D3D5C;

  /* 10 % — acento e interacción */
  --accent-color: #1CDAFF;
  --accent2:   #0BBDE0;
  
  /* 60 % — fondos y espacios */
  --white:          #FFFFFF;
  --light-gray:     #F4F6F8;
  --border-color:   #E8ECF0;

  /* Texto */
  --text-primary:   #0D0D0D;
  --text-secondary: #3D3D5C;

  --background: #b9b8b8;
  --background2:rgb(219, 215, 215);
}

body {
  font-family: "Tomorrow", sans-serif;
  color: var(--text-primary);
  background: #050816;
  overflow-x: hidden;
  position: relative;
}

/* Luces de fondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.372), transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.285), transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(140, 0, 255, 0.301), transparent 30%);
  filter: blur(70px);
  z-index: -1;
}

@keyframes floatBg {
  from {
    transform: translate(0,0) scale(1);
  }
  to {
    transform: translate(-40px,20px) scale(1.2);
  }
}

/* Header corporativo */
header {
  margin-top:1rem;
  background: rgba(47, 43, 43, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1200px;
  border-radius: 20px;
  z-index: 1000;
  border: 50%;
  z-index: 1000;
  display: flex;
  justify-content:space-around;
  align-items: center;
  transition: box-shadow 0.3s ease;
  padding: 0.5rem 2rem;
}

header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

img {
  height: 60px;
}

section, footer, .services, .contact-section {
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== MENU PRINCIPAL ===== */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

/* Links y botón del submenu */
.nav-menu a,
.submenu-btn {
  display: block;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--background);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Iceland", sans-serif;
  font-weight: 600;
  font-style: normal;
}

/* Hover color */
.nav-menu a:hover,
.submenu-btn:hover {
  color: var(--accent-color);
}

/* Línea inferior animada */
.nav-menu a::after,
.submenu-btn::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--background);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu a:hover::after,
.submenu-btn:hover::after {
  width: 70%;
}

/* ===== SUBMENU ===== */
.submenu {
  position: absolute;
  top: 110%;
  left: 0;
  background: var(--background);
  border-radius: 10px;
  width: 300px;
  list-style: none;
  padding: 0.5rem 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: block !important;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
}

/* Mostrar submenu */
.dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* items */
.submenu li {
  display: block;
  width: 100%;
}

/* Items del submenu */
.submenu li a {
  display: block;
  padding: 12px 18px;
  width: 100%;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text-primary);
}

/* Hover submenu */
.submenu li a:hover {
  background: #f5f7fa;
  color: var(--primary-color);
}

/* eliminar linea animada del submenu */
.submenu a::after {
  display: none;
}

.hamburger{
   background: none;
   border: none;
   color: #000;
   font-size: 2rem;
   cursor: pointer;
   display: none;
}

/* Hero section profesional */
.hero {
    position: relative;
    width: 100%;
    height: 120vh; /* ocupa toda la pantalla */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    border-radius: 0 0 25% 25%;
}

/* VIDEO RESPONSIVE */
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 clave para que se adapte */
    transform: translate(-50%, -50%);
    z-index: -2;
}

/* CAPA OSCURA PARA MEJORAR VISIBILIDAD */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* ajusta intensidad */
    z-index: -1;
}

/* TEXTO */
.hero h2 {
    color: #fff;
    font-size: 2.8rem;
    max-width: 800px;
    margin: 20px 0px;
    font-family: "Zen Dots", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.hero p {
  color: #fff;
  font-size: 1.2rem;
  max-width: 1200px;
  line-height: 1.6;
  font-family: "Tomorrow", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.hero h2 {
  opacity: 0;
  animation: fadeDown 1s cubic-bezier(0.22,1,0.36,1) 0.2s forwards;
}
.hero p {
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.5s forwards;
}


/* SERVICIOS */
#servicios {
  padding: 2rem 0;
  text-align: center;
  mask-image: linear-gradient(#1A1A2E 80%, transparent);
}

#servicios h2 {
  margin-bottom: 1.6rem;
  text-align: center;
  font-size: clamp(1.5rem, 6vw, 3rem);
  color: var(--background);
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Línea de acento bajo el título */
#servicios .section-line {
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
  margin: 12px auto 3rem;
}

/* ── GRID ── */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "card1 card2 card2 card3"
    "card4 card5 card6 card6";
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  overflow-y: hidden;
}

.service-card:nth-child(1) { grid-area: card1; }
.service-card:nth-child(2) { grid-area: card2; }
.service-card:nth-child(3) { grid-area: card3; }
.service-card:nth-child(4) { grid-area: card4; }
.service-card:nth-child(5) { grid-area: card5; }
.service-card:nth-child(6) { grid-area: card6; }

/* ── IMÁGENES DE FONDO ── */
.service-card:nth-child(1) { background-image: url('/img/Consultoria-inicio.webp'); }
.service-card:nth-child(2) { background-image: url('/img/TI-inicio.jpg'); }
.service-card:nth-child(3) { background-image: url('/img/procesamiento-inicio.webp'); }
.service-card:nth-child(4) { background-image: url('/img/portal-inicio.webp'); }
.service-card:nth-child(5) { background-image: url('/img/innivacion-inicio.jpg'); }
.service-card:nth-child(6) { background-image: url('/img/Desarrollo-inicio'); }

/* ══════════════════════════════════════════════
   TARJETA BASE
   ══════════════════════════════════════════════ */
.service-card {
  position: relative;
  min-height: 260px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* contenido en la parte inferior */
  align-items: flex-start;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  /* ── Animación de entrada (estado inicial) ── */
  opacity: 0;
  transform: translateY(50px) scale(0.96);
  transition:
    opacity  0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

/* ── Estado visible (activado por JS) ── */
.service-card.card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Estado salida (al salir del viewport) ── */
.service-card.card-hidden {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
}

/* Delays escalonados de entrada */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.12s; }
.service-card:nth-child(3) { transition-delay: 0.20s; }
.service-card:nth-child(4) { transition-delay: 0.15s; }
.service-card:nth-child(5) { transition-delay: 0.24s; }
.service-card:nth-child(6) { transition-delay: 0.32s; }

/* ══════════════════════════════════════════════
   CAPAS DE OVERLAY
   ══════════════════════════════════════════════ */

/* Capa 1: gradiente permanente en la parte inferior (legibilidad) */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(10, 10, 30, 0.88) 0%,
      rgba(10, 10, 30, 0.30) 50%,
      rgba(10, 10, 30, 0.05) 100%
    );
  z-index: 1;
  transition: background 0.3s ease;
}

/* Capa 2: overlay de color acento al hacer hover */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 218, 255, 0.10) 0%,
    rgba(26, 26, 46, 0.72) 100%
  );
  opacity: 0;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.service-card:hover::after {
  opacity: 1;
}

/* Zoom imagen en hover */
.service-card {
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Pseudo-elemento de zoom de imagen via wrapper transform */
.service-card:hover {
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 0 0 2px rgba(28, 218, 255, 0.35);
  transform: translateY(-8px) scale(1.02);
}

/* ══════════════════════════════════════════════
   NÚMERO DE TARJETA (badge superior)
   ══════════════════════════════════════════════ */
.service-card .card-num {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  font-family: 'Syne', 'Segoe UI', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.service-card:hover .card-num {
  color: var(--accent-color);
  border-color: rgba(28, 218, 255, 0.45);
}

/* ══════════════════════════════════════════════
   CONTENIDO (zona inferior de la tarjeta)
   ══════════════════════════════════════════════ */
.card-body {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Línea acento — aparece al entrar */
.card-body::before {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
  margin-bottom: 14px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .card-body::before {
  width: 40px;
}

/* Título */
.service-card h3 {
  position: relative;
  z-index: 10;
  font-family: "Iceland", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: clamp(1.5rem, 1.8vw, 1.5rem);
  color: var(--white);
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover h3 {
  transform: translateY(-4px);
}

/* Descripción */
.service-card p {
  position: relative;
  z-index: 10;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 0 16px;
}

/* Enlace "Ver más" */
.service-card a,
.card-link {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color);
  text-decoration: none;
}

.service-card a::after,
.card-link::after {
  content: '→';
  transition: transform 0.15s ease;
}


/* ══════════════════════════════════════════════
   KEYFRAME DE ENTRADA (al cargar por primera vez)
   ══════════════════════════════════════════════ */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(50px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* Sección general */
.Metodología {
  background: var(--background);
  padding: 5rem 2rem;
  overflow: hidden;
  position: relative;
}

/* Contenedor principal */
.Meto-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Texto */
.Meto-text {
  flex: 1;
}

.Meto-text h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.Meto-text p {
  font-size: 1.10rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* Imagen */
.Meto-content img {
  flex: 1;
  max-width: 400px;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.75);
}


.Meto-content img:hover {
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.Meto-content img {
  animation: floatImg 5s ease-in-out infinite;
  transition: box-shadow 0.4s ease, filter 0.4s ease;
}
.Meto-content img:hover {
  animation-play-state: paused;
  transform: translateY(-14px) scale(1.04);
  box-shadow: 0 30px 60px rgba(0,0,0,0.65),
              0 0 0 6px rgba(28,218,255,0.2);
  filter: brightness(1.05);
}

/* Estados iniciales */
.Meto-content img {
  opacity: 0;
  transform: translateX(-60px) scale(0.95);
  transition:
    opacity  0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    filter 0.4s ease;
}

.Meto-text {
  opacity: 0;
  transform: translateX(60px);
  transition:
  opacity  0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
  transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.Meto-text h2 {
  opacity: 0;
  transform: translateY(-20px);
  transition:
  opacity  0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.28s,
  transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.28s;
}

.Meto-text p {
  opacity: 0;
  transform: translateY(16px);
  transition:
  opacity  0.55s ease,
  transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.Meto-text p:nth-of-type(1) { transition-delay: 0.38s; }
.Meto-text p:nth-of-type(2) { transition-delay: 0.50s; }
.Meto-text p:nth-of-type(3) { transition-delay: 0.62s; }

/* ── Estado VISIBLE (entrada) ── */
.Metodología.meto-visible .Meto-content img {
  opacity: 1;
  transform: translateX(0) scale(1);
  animation: floatImg 5s ease-in-out 0.75s infinite;
}

.Metodología.meto-visible .Meto-text {
  opacity: 1;
  transform: translateX(0);
}

.Metodología.meto-visible .Meto-text h2 {
  opacity: 1;
  transform: translateY(0);
}

.Metodología.meto-visible .Meto-text p {
  opacity: 1;
  transform: translateY(0);
}

/* ── Estado SALIDA (al salir del viewport) ── */
.Metodología.meto-hidden .Meto-content img {
  opacity: 0;
  transform: translateX(-40px) scale(0.96);
  animation: none;
  transition-delay: 0s;
}

.Metodología.meto-hidden .Meto-text {
  opacity: 0;
  transform: translateX(40px);
  transition-delay: 0s;
}

.Metodología.meto-hidden .Meto-text h2 {
  opacity: 0;
  transform: translateY(-14px);
  transition-delay: 0s;
}

.Metodología.meto-hidden .Meto-text p {
  opacity: 0;
  transform: translateY(10px);
  transition-delay: 0s !important;
}

/* ══════════════════════════════════════════════
   SECCIÓN METODOLOGÍA DE DESARROLLO
   ══════════════════════════════════════════════ */
.dev-process {
  padding: 4rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
}

/* Título — estado inicial */
.dev-process h2 {
  font-size: 2.4rem;
  color: var(--background);
  margin-bottom: 1rem;
  opacity: 0;
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
  transform: translateY(28px);
  transition:
    opacity  0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

/* Línea decorativa bajo el h2 */
.dev-process .process-line {
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
  margin: 0 auto 1.4rem;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

/* Párrafo intro — estado inicial */
.dev-process > p {
  max-width: 860px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--background);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity  0.6s ease 0.22s,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.22s;
}

/* ── ESTADO VISIBLE (entrada) ── */
.dev-process.process-visible h2 {
  opacity: 1;
  transform: translateY(0);
}
.dev-process.process-visible .process-line {
  width: 52px;
}
.dev-process.process-visible > p {
  opacity: 1;
  transform: translateY(0);
}

/* ── ESTADO SALIDA (exit) ── */
.dev-process.process-hidden h2 {
  opacity: 0;
  transform: translateY(20px);
  transition-delay: 0s;
}
.dev-process.process-hidden .process-line {
  width: 0;
  transition-delay: 0s;
}
.dev-process.process-hidden > p {
  opacity: 0;
  transform: translateY(14px);
  transition-delay: 0s;
}

/* ══════════════════════════════════════════════
   GRID DE PASOS
   ══════════════════════════════════════════════ */
.process-steps {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 0 1rem;
}

/* ══════════════════════════════════════════════
   TARJETA PASO — REDISEÑO PROFESIONAL
   ══════════════════════════════════════════════ */
.step {
  background: var(--background);
  border-radius: 16px;
  /* border: 1px solid var(--border-color); */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  position: relative;
  cursor: default;
  /* Estado inicial (invisible) */
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition:
    opacity   0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* Número de paso — esquina superior derecha */
.step::before {
  content: attr(data-step);
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: 'Syne', 'Segoe UI', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
  background: rgba(26, 26, 46, 0.55);
  backdrop-filter: blur(4px);
  padding: 3px 9px;
  border-radius: 20px;
  z-index: 5;
  transition: background 0.3s ease, color 0.3s ease;
}

.step:hover::before {
  background: rgba(28, 218, 255, 0.25);
  color: var(--accent-color);
}

/* Línea teal inferior */
.step::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent2));
  border-radius: 0 0 0 0;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 5;
}

/* ── Estado visible de cada step ── */
.step.step-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Estado salida ── */
.step.step-hidden {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition-delay: 0s !important;
}

/* Hover completo */
.step:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(28, 218, 255, 0.2);
  border-color: rgba(28, 218, 255, 0.3);
}
.step:hover::after { width: 100%; }

/* ── Imagen de la tarjeta ── */
.step .step-img-wrap {
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.step img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.step:hover img {
  transform: scale(1.08);
}

/* Overlay gradiente sobre la imagen */
.step .step-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10,10,30,0.35) 100%);
  pointer-events: none;
}

/* ── Cuerpo de texto ── */
.step-body {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Título */
.step h4 {
  font-family: "Iceland", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1rem;
  color: var(--primary-color);
  line-height: 1.3;
  margin: 0;
  transition: color 0.3s ease;
}

.step:hover h4 {
  color: var(--accent-color);
}

/* Separador */
.step-divider {
  width: 0;
  height: 2px;
  background: var(--accent-color);
  border-radius: 1px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.step:hover .step-divider {
  width: 28px;
}

/* Párrafo */
.step p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
  text-align: left;
}


/* Descripción */
.innovacion-descripcion {
  padding: 2rem 2rem;
  max-width: 1500px;
  margin: 0 auto;
}

.innovacion {
  margin-bottom: 2rem;
  max-width: 1500px;
  margin: 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.innovacion-text {
  flex: 1;
}

.innovacion-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--background);
  text-align: center;
  margin-bottom: 2rem;
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.innovacion-text p {
  font-size: 1.1rem;
  color: var(--background);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  max-width: 1200px;
  margin-left: 4rem;
  margin-right: auto;
}

/* Img */
.innovacion img{
  max-width: 600px;
  flex: 1;
  width: 90%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(#1A1A2E 80%, transparent);
}

.innovacion img,
.innovacion-beneficios-content img {
  animation: floatImg 6s ease-in-out infinite;
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}
.innovacion img:hover,
.innovacion-beneficios-content img:hover {
  animation-play-state: paused;
  transform: scale(1.04) translateY(-8px);
  filter: drop-shadow(0 20px 40px rgba(28,218,255,0.2));
}

/* Estados iniciales */
.innovacion-text h2 {
  opacity: 0;
  transform: translateY(-24px);
  transition:
    opacity  0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.innovacion-text p {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity  0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Cada párrafo con delay escalonado */
.innovacion-text p:nth-of-type(1) { transition-delay: 0.22s; }
.innovacion-text p:nth-of-type(2) { transition-delay: 0.34s; }
.innovacion-text p:nth-of-type(3) { transition-delay: 0.46s; }
.innovacion-text p:nth-of-type(4) { transition-delay: 0.58s; }

.innovacion img {
  opacity: 0;
  transform: translateX(60px) scale(0.93);
  /* Sobreescribe la transición para añadir opacity y transform de entrada */
  transition:
    opacity   0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    filter    0.4s ease,
    box-shadow 0.4s ease;
  /* Pausar floatImg hasta que sea visible */
  animation: none;
}

/* ── ENTRADA ── */
.innovacion.innov-visible .innovacion-text h2 {
  opacity: 1;
  transform: translateY(0);
}

.innovacion.innov-visible .innovacion-text p {
  opacity: 1;
  transform: translateX(0);
}

.innovacion.innov-visible img {
  opacity: 1;
  transform: translateX(0) scale(1);
  /* Reanudar flotación una vez visible */
  animation: floatImg 6s ease-in-out 0.8s infinite;
}

/* ── SALIDA ── */
.innovacion.innov-hidden .innovacion-text h2 {
  opacity: 0;
  transform: translateY(-18px);
  transition-delay: 0s;
}

.innovacion.innov-hidden .innovacion-text p {
  opacity: 0;
  transform: translateX(-20px);
  transition-delay: 0s !important;
}

.innovacion.innov-hidden img {
  opacity: 0;
  transform: translateX(40px) scale(0.95);
  animation: none;
  transition-delay: 0s;
}


/* Áreas de Innovación */
.innovacion-areas {
  padding: 5rem 2rem;
  background: var(--background);
  max-width: 1500px;
}

.innovacion-areas h2 {
  text-align: center;
  font-size: 2.3rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.area-card {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--background);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.area-card{
  position: relative; /* Importante para posicionar la capa oscura */
  z-index: 1;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Oscuridad inicial (40%) */
  transition: background-color 0.3s ease;
  z-index: -1; /* Se pone detrás del texto pero delante de la imagen */
}

.area-card:hover {
  transform: translateY(-5px);
}

.area-card:nth-child(1) { background-image: url('/img/Automatizacion.webp'); }
.area-card:nth-child(2) { background-image: url('/img/Software.webp'); }
.area-card:nth-child(3) { background-image: url('/img/Transformacion-Digital.jpg'); }
.area-card:nth-child(4) { background-image: url('/img/nube.jpg'); }


.area-card h3 {
  font-size: 1.5rem;
  font-family: "Iceland", sans-serif;
  font-weight: 600;
  font-style: normal;
  color: var(--background);
  margin-bottom: 0.5rem;
  text-align: center;
}

.area-card p {
  color: var(--background);
  line-height: 1.6;
  font-size: 1rem;
  text-align: center;
}

.area-card h3,
.area-card p {
  position: relative;
  z-index: 2;
}

.area-card:hover::before {
  background-color: rgba(0, 0, 0, 0.75);
}

.area-card {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease;
  overflow: hidden;
}
.area-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
/* Acento teal en hover */
.area-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent-color);
  transition: 0.4s ease;
  z-index: 3;
}
.area-card:hover::after {
  width: 100%;
}

/* Título — estado inicial */
.innovacion-areas h2 {
  opacity: 0;
  transform: translateY(-28px);
  transition:
    opacity  0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Cards — estado inicial */
.area-card {
  opacity: 0;
  transform: translateY(45px) scale(0.95);
  /* Se añaden al transition ya existente */
  transition:
    opacity   0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

/* ── ENTRADA ── */
.innovacion-areas.areas-visible h2 {
  opacity: 1;
  transform: translateY(0);
}

.innovacion-areas.areas-visible .area-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Delays escalonados para las cards */
.innovacion-areas.areas-visible .area-card:nth-child(1) { transition-delay: 0.10s; }
.innovacion-areas.areas-visible .area-card:nth-child(2) { transition-delay: 0.20s; }
.innovacion-areas.areas-visible .area-card:nth-child(3) { transition-delay: 0.30s; }
.innovacion-areas.areas-visible .area-card:nth-child(4) { transition-delay: 0.40s; }

/* ── SALIDA ── */
.innovacion-areas.areas-hidden h2 {
  opacity: 0;
  transform: translateY(-20px);
  transition-delay: 0s;
}

.innovacion-areas.areas-hidden .area-card {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition-delay: 0s !important;
}

/* Restaurar hover cuando es visible
   (evita que el scale del hover compita con el de entrada) */
.innovacion-areas.areas-visible .area-card:hover {
  transform: translateY(-8px) scale(1.03);
}

/* Success */
#nosotros {
  background: var(--background);
  padding: 2rem 2rem;
  max-width: 1500px;
  margin: 0 auto; /* Centra toda la sección */
  text-align: center; /* Centra el contenido dentro */
}

/* Contenedor general */
.about-content {
  margin-bottom: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.about-text{
  flex: 1;
}

/* Título principal */
.about-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Párrafos descriptivos */
.about-text p {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.about-content img {
  flex: 1;
  max-width: 500px;
  width: 40%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.25));
  transition: all 0.3s ease;
}

/* Subtítulos (Visión, Misión) */
#nosotros h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-family: "Iceland", sans-serif;
  font-weight: 600;
  font-style: normal;
  margin: 3rem auto 1rem auto;
  padding: 1rem 1.5rem;
  background: var(--background2);
  border-radius: 10px;
  border-left: 6px solid var(--primary-color);
  max-width: 1200px;
  text-align: left;
  transition: all 0.3s ease;
}

/* Efecto suave al pasar el cursor */
#nosotros h3:active{
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* Texto debajo de cada subtítulo */
#nosotros > p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
  margin: 0 auto 2rem auto;
  max-width: 1200px;
  text-align: justify;
  padding: 0 1rem;
}

.about-content img {
  animation: floatImg 6s ease-in-out 1s infinite;
  transition: filter 0.4s ease, transform 0.4s ease;
}
.about-content img:hover {
  animation-play-state: paused;
  transform: scale(1.05);
  filter: drop-shadow(0 20px 40px rgba(28,218,255,0.25));
}

#nosotros h3 {
  transition: background 0.3s ease, color 0.3s ease,
              transform 0.3s ease, border-color 0.3s ease;
}
#nosotros h3:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateX(6px);
  border-left-color: var(--accent-color);
}

/* ── Estados iniciales ── */
.about-text h2 {
  opacity: 0;
  transform: translateY(-26px);
  transition:
    opacity  0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.about-text p {
  opacity: 0;
  transform: translateX(-28px);
  transition:
  opacity  0.6s ease,
  transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-text p:nth-of-type(1) { transition-delay: 0.18s; }
.about-text p:nth-of-type(2) { transition-delay: 0.30s; }
.about-text p:nth-of-type(3) { transition-delay: 0.42s; }

.about-content img {
  opacity: 0;
  transform: translateX(55px) scale(0.94);
  transition:
    opacity   0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    filter    0.4s ease;
  animation: none; /* espera a ser visible */
}

/* h3 Visión / Misión */
#nosotros h3 {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity   0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    color      0.3s ease,
    border-color 0.3s ease;
}

/* p global de Visión / Misión */
#nosotros > p {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity  0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── ENTRADA ── */
#nosotros.nosotros-visible .about-text h2 {
  opacity: 1;
  transform: translateY(0);
}

#nosotros.nosotros-visible .about-text p {
  opacity: 1;
  transform: translateX(0);
}

#nosotros.nosotros-visible .about-content img {
  opacity: 1;
  transform: translateX(0) scale(1);
  animation: floatImg 6s ease-in-out 0.8s infinite;
}

#nosotros.nosotros-visible h3 {
  opacity: 1;
  transform: translateX(0);
}

/* Delays escalonados para h3 */
#nosotros.nosotros-visible h3:nth-of-type(1) { transition-delay: 0.20s; }
#nosotros.nosotros-visible h3:nth-of-type(2) { transition-delay: 0.35s; }

#nosotros.nosotros-visible > p {
  opacity: 1;
  transform: translateY(0);
}

/* p que sigue al primer h3 */
#nosotros.nosotros-visible > p:nth-of-type(1) { transition-delay: 0.30s; }
#nosotros.nosotros-visible > p:nth-of-type(2) { transition-delay: 0.45s; }

/* ── SALIDA ── */
#nosotros.nosotros-hidden .about-text h2 {
  opacity: 0;
  transform: translateY(-18px);
  transition-delay: 0s;
}

#nosotros.nosotros-hidden .about-text p {
  opacity: 0;
  transform: translateX(-20px);
  transition-delay: 0s !important;
}

#nosotros.nosotros-hidden .about-content img {
  opacity: 0;
  transform: translateX(35px) scale(0.96);
  animation: none;
  transition-delay: 0s;
}

#nosotros.nosotros-hidden h3 {
  opacity: 0;
  transform: translateX(-24px);
  transition-delay: 0s !important;
}

#nosotros.nosotros-hidden > p {
  opacity: 0;
  transform: translateY(14px);
  transition-delay: 0s !important;
}

/* Restaurar hover de h3 cuando está visible */
#nosotros.nosotros-visible h3:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateX(6px);
  border-left-color: var(--accent-color);
}

/* Restaurar hover de imagen cuando está visible */
#nosotros.nosotros-visible .about-content img:hover {
  animation-play-state: paused;
  transform: scale(1.05);
  filter: drop-shadow(0 20px 40px rgba(28,218,255,0.25));
}


/* Contacto */
.contact-section {
  padding: 10px 0 80px;
  background: var(--background);
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Estructura Principal */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Formulario un poco más ancho que la imagen */
  gap: 60px;
  align-items: center;
}

.title {
  font-size: 2.5rem;
  font-family: "Zen Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 30px;
  color: var(--primary-color);
}

/* =========================
   PREMIUM CONTACT FORM
========================= */

.form-container{
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    padding: 45px;
    border-radius: 28px;
    box-shadow:
    0 10px 40px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}

/* Glow decorativo */
.form-container::before{
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(
    circle,
    rgba(28,218,255,0.12),
    transparent 70%);
    top: -120px;
    right: -120px;
    pointer-events: none;
}

/* Título */
.title{
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #111827;
    font-family: "Zen Dots", sans-serif;
    position: relative;
}

.title::after{
    content: '';
    width: 90px;
    height: 4px;
    background: linear-gradient(
    90deg,
    #1cdaff,
    #4f46e5);
    display: block;
    margin-top: 15px;
    border-radius: 50px;
}

/* Formulario */
#contact-form{
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Grid */
.form-row-two{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

/* Field */
.field{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Labels */
.label{
    font-size: 1rem;
    font-family: "Tomorrow", sans-serif;
    color: #1f2937;
    letter-spacing: .5px;
    font-weight: 600;
}

/* Inputs */
.form-input{
    width: 100%;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    background: var(--background2);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    color: #111827;
    font-family: "Tomorrow", sans-serif;
    transition:
    all .35s cubic-bezier(0.22,1,0.36,1);
    box-shadow:
    0 4px 12px rgba(0,0,0,0.04);
}

/* Placeholder */
.form-input::placeholder{
    color: #9ca3af;
}

/* Focus premium */
.form-input:focus{
    outline: none;
    border-color: #1cdaff;
    background: rgba(255,255,255,0.95);
    transform: translateY(-2px);
    box-shadow:
    0 0 0 4px rgba(28,218,255,0.12),
    0 10px 25px rgba(28,218,255,0.12);
}

/* Select */
select.form-input{
    cursor: pointer;
}

/* Textarea */
.textarea{
    resize: none;
    min-height: 170px;
}

/* Checkbox */
.checkbox-row{
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox{
    width: 18px;
    height: 18px;
    accent-color: #1cdaff;
    cursor: pointer;
}

.checkbox-label{
    font-size: .95rem;
    color: #4b5563;
    font-family: "Tomorrow", sans-serif;
    cursor: pointer;
}

/* Botón */
.btn-submit{
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: none;
    border-radius: 18px;
    background:
    linear-gradient(
    135deg,
    #111827,
    #1e1b4b);
    color: white;
    font-size: 1.05rem;
    font-family: "Tomorrow", sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition:
    transform .3s ease,
    box-shadow .3s ease;
}

/* Shine effect */
.btn-submit::before{
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background:
    linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent);
    transition: .8s;
}

.btn-submit:hover::before{
    left: 130%;
}

.btn-submit:hover{
    transform: translateY(-4px);
    box-shadow:
    0 18px 40px rgba(17,24,39,0.3);
}

.btn-submit:active{
    transform: scale(.98);
}

/* Imagen */
.image-container{
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-image{
    width: 100%;
    height: auto;
    max-width: 430px;
    object-fit: contain;
    transition:transform .5s ease,filter .5s ease;
    filter:drop-shadow(0 20px 40px rgba(0,0,0,0.18));
}

.contact-image:hover{
    transform: translateY(-8px) scale(1.03);
    filter:
    drop-shadow(0 30px 50px rgba(28,218,255,0.2));
}


/* Footer corporativo */
.footer {
  color: var(--background);
  padding: 3rem 2rem 2rem;
  font-family: "Tomorrow", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h3, .footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  opacity: 0.9;
  font-family: "Iceland", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.footer-col p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--background);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-col a:hover {
  opacity: 1;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
  opacity: 1; /* Ajustado para mejor visibilidad */
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.2rem;
   font-family: "Iceland", sans-serif;
  font-weight: 600;
  font-style: normal;
  opacity: 0.8;
}

.footer-bottom a {
  color: var(--background);
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-col ul li a {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-col ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}
.footer-col ul li a:hover {
  color: var(--accent-color);
  opacity: 1;
  padding-left: 5px;
}
.footer-col ul li a:hover::after { width: 100%; }

.social-links a {
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
  background: rgba(28,218,255,0.1);
  border-color: rgba(28,218,255,0.4);
  transform: translateX(6px);
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-65px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(65px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.75) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes wipeLeft {
  from { opacity: 1; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0% 0 0); }
}
@keyframes dropCard {
  from { opacity: 0; transform: translateY(-30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes floatImg {
  0%, 100% { transform: translateY(0px); }
  40%       { transform: translateY(-10px); }
  70%       { transform: translateY(-5px); }
}
@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 160%; }
}
@keyframes tealPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(28,218,255,0.35); }
  50%       { box-shadow: 0 0 22px 6px rgba(28,218,255,0.07); }
}
@keyframes listSlide {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Estados iniciales ── */
.anim-up, .anim-down, .anim-left, .anim-right,
.anim-pop, .anim-wipe, .anim-drop, .anim-list {
  opacity: 0;
  will-change: opacity, transform;
}
.anim-up    { transform: translateY(50px); }
.anim-down  { transform: translateY(-40px); }
.anim-left  { transform: translateX(-65px); }
.anim-right { transform: translateX(65px); }
.anim-pop   { transform: scale(0.75) translateY(30px); }
.anim-drop  { transform: translateY(-30px) scale(0.95); }
.anim-list  { transform: translateX(-30px); }
.anim-wipe  { clip-path: inset(0 100% 0 0); opacity: 1; }

/* ── Disparar al entrar ── */
.anim-up.visible    { animation: fadeUp    0.8s  cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-down.visible  { animation: fadeDown  0.75s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-left.visible  { animation: fadeLeft  0.85s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-right.visible { animation: fadeRight 0.85s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-pop.visible   { animation: popIn     0.75s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-wipe.visible  { animation: wipeLeft  0.95s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-drop.visible  { animation: dropCard  0.7s  cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-list.visible  { animation: listSlide 0.65s cubic-bezier(0.22,1,0.36,1) forwards; }

/* ── Delays ── */
.d1 { animation-delay: 0.08s !important; }
.d2 { animation-delay: 0.17s !important; }
.d3 { animation-delay: 0.26s !important; }
.d4 { animation-delay: 0.35s !important; }
.d5 { animation-delay: 0.44s !important; }
.d6 { animation-delay: 0.53s !important; }


/* =========================================
   MEDIA QUERIES PARA TABLES (MAX 1024PX)
   ========================================= */
/* TABLET */
@media (max-width: 1024px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    gap: 1rem;
  }

  img {
    height: 80px;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "card1 card2"
      "card3 card4"
      "card5 card6";
  }

  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5),
  .service-card:nth-child(6) {
    grid-area: unset;
  }
}


/* ================================
   MÓVIL (MENÚ HAMBURGUESA)
================================ */
@media (max-width: 768px) {

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
  }

  /* LOGO */
  header img {
    width: auto;
    height: 60px;
  }
  

  /* Hamburguesa visible */
  .hamburger {
    display: block;
  }

  /* Menú oculto inicialmente */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    clip-path: circle(0px at 90% -10%);
    pointer-events: none;
  }

  .nav-menu a{
    font-size: 1.2rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .submenu-btn{
    color: var(--white);
  }

  .nav-menu.active{
    clip-path: circle(1000px at 90% -10%);
    pointer-events: all;
  }

  .nav-menu li{
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
  }

  .nav-menu.active li{
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu li:nth-child(1) {transition: 0.1s;}
  .nav-menu li:nth-child(2) {transition: 0.2s;}
  .nav-menu li:nth-child(3) {transition: 0.3s;}
  .nav-menu li:nth-child(4) {transition: 0.4s;}

  .hero{
    margin-top: 10px;
    padding: 1rem;
    height: 80svh;
  }

  .hero h2{
    font-size: 1.8rem;
  }

  .hero p{
    font-size: 1rem;
 }

 #servicios h2{
    font-size: 30px;
  }

 .process-steps {
   grid-template-columns: repeat(2, 1fr);
 }

 .about-content img,
 .innovacion img{
   display: none;
 }

   .services {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "card1"
      "card2"
      "card3"
      "card4"
      "card5"
      "card6";
  }

  .service-card {
    width: 100%;
  }

  .Meto-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
  }

  .Meto-content img {
    max-width: 300px;
    height: auto;
  }

  .Meto-text h2,
  .innovacion-text h2,
  .dev-process h2{
    font-size: 1.8rem;
    line-height: 1.2;
    text-align: center;
  }

  .innovacion-text p{
    font-size: 1rem;
    padding: 0;
    margin: auto 0;
  }

  .areas-grid {
    grid-template-columns:1fr;
  }

  #nosotros {
    padding: 3rem 1.5rem;
  }

  #nosotros h3 {
    font-size: 1.4rem;
    text-align: center;
  }

  #nosotros > p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .title{
    text-align: center;
    font-size: 2rem;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }

}
/* ================================
   DESKTOP (MENÚ NORMAL)
================================ */
@media (min-width: 769px) {

  /* Menú horizontal */
  .nav-menu ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }

  /* Ocultar hamburguesa */
  .hamburger {
    display: none;
  }

  .portalweb-hero {
    min-height: 80%;
  }
}



/* Tablet */
@media (max-width: 992px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .map-container iframe {
    width: 100% !important;
    height: 350px !important;
  }
}



@media (max-width: 900px) {

    .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .image-container {
    order: -1; /* Muestra la imagen arriba en móviles */
  }

  .form-row-two {
    grid-template-columns: 1fr;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }

  .footer-col a{
    font-size: 1rem;
  }
}


