/* ===============================
   RESET
================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
  background-color: #0f1219;
  color: #1e293b;
  position: relative;
  min-height: 100vh;
}

/* Patrón de líneas onduladas en movimiento lento (detrás de todo: nav + hero) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 25 Q20 15 40 25 T80 25' stroke='%23ffffff' stroke-width='0.4' fill='none'/%3E%3Cpath d='M0 35 Q20 25 40 35 T80 35' stroke='%23ffffff' stroke-width='0.3' fill='none'/%3E%3Cpath d='M0 45 Q20 35 40 45 T80 45' stroke='%23ffffff' stroke-width='0.35' fill='none'/%3E%3Cpath d='M0 55 Q20 45 40 55 T80 55' stroke='%23ffffff' stroke-width='0.25' fill='none'/%3E%3Cpath d='M0 20 Q20 10 40 20 T80 20' stroke='%23ffffff' stroke-width='0.3' fill='none'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  animation: linesDrift 25s linear infinite;
  pointer-events: none;
}

@keyframes linesDrift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 80px 80px;
  }
}

/* ===============================
   NAVBAR
================================== */

/* al hacer scroll a un ancla, deja espacio para el header fijo */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* altura del header */
}

section {
  scroll-margin-top: 80px; /* margen adicional por si el destino es un section */
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  background: transparent;
  border-bottom: 1px solid transparent;

  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.4s ease;
}

/* Estado cuando se hace scroll */
.header.scrolled {
  background: rgba(10, 12, 18, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

/* Efecto cuando el mouse pasa sobre el nav */
.header:hover {
  background: rgba(15, 18, 25, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  border-bottom: 1px solid rgba(139, 92, 246, 0.4);
}

/* Contenedor */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 75px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* Desktop Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
}

/* Links */
.nav-links a {
  position: relative;
  text-decoration: none;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Subrayado animado */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Botón CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
}

/* Ocultar mobile en desktop */
.mobile-header,
.mobile-cta {
  display: none;
}

/* Desktop Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #8b5cf6; /* ahora coherente con hero */
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #8b5cf6;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.nav-cta:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
}

/* Ocultar elementos mobile en desktop */
.mobile-header,
.mobile-cta {
  display: none;
}

/* ===============================
     HERO PROFESIONAL
  ================================== */

.hero {
  position: relative;
  min-height: 100vh;
  background: #0a0c12;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 180px 20px 120px 20px; /* espacio para navbar fijo */
  overflow: hidden;
}

/* Ondas fluidas en relieve: curvas amplias + gradiente direccional (luz arriba / sombra abajo) + morado branding */
.hero-wave-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0a0c12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cdefs%3E%3ClinearGradient id='hi' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='rgba(200,185,255,0.2)'/%3E%3Cstop offset='40%25' stop-color='rgba(255,255,255,0.06)'/%3E%3Cstop offset='100%25' stop-color='rgba(255,255,255,0.02)'/%3E%3C/linearGradient%3E%3ClinearGradient id='sh' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='rgba(0,0,0,0.15)'/%3E%3Cstop offset='100%25' stop-color='rgba(0,0,0,0.04)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='600' fill='%230a0c12'/%3E%3Cpath d='M-100 100 C250 40 550 160 850 100 S1450 40 1300 100' stroke='url(%23sh)' stroke-width='2' fill='none' opacity='0.6' transform='translate(0 4)'/%3E%3Cpath d='M-100 100 C250 40 550 160 850 100 S1450 40 1300 100' stroke='url(%23hi)' stroke-width='1.4' fill='none' opacity='0.95'/%3E%3Cpath d='M-100 200 C200 140 600 260 900 200 S1200 140 1300 200' stroke='url(%23sh)' stroke-width='1.8' fill='none' opacity='0.5' transform='translate(0 3)'/%3E%3Cpath d='M-100 200 C200 140 600 260 900 200 S1200 140 1300 200' stroke='url(%23hi)' stroke-width='1.2' fill='none' opacity='0.85'/%3E%3Cpath d='M-100 300 C300 240 500 360 800 300 S1100 240 1300 300' stroke='url(%23sh)' stroke-width='1.6' fill='none' opacity='0.45' transform='translate(0 3)'/%3E%3Cpath d='M-100 300 C300 240 500 360 800 300 S1100 240 1300 300' stroke='url(%23hi)' stroke-width='1.1' fill='none' opacity='0.75'/%3E%3Cpath d='M-100 400 C150 340 550 460 950 400 S1350 340 1300 400' stroke='url(%23sh)' stroke-width='1.4' fill='none' opacity='0.4' transform='translate(0 2)'/%3E%3Cpath d='M-100 400 C150 340 550 460 950 400 S1350 340 1300 400' stroke='url(%23hi)' stroke-width='1' fill='none' opacity='0.7'/%3E%3Cpath d='M-100 500 C250 440 650 560 850 500 S1250 440 1300 500' stroke='url(%23sh)' stroke-width='1.2' fill='none' opacity='0.35' transform='translate(0 2)'/%3E%3Cpath d='M-100 500 C250 440 650 560 850 500 S1250 440 1300 500' stroke='url(%23hi)' stroke-width='0.9' fill='none' opacity='0.65'/%3E%3Cpath d='M-100 50 C400 0 700 100 1000 50 S1400 0 1300 50' stroke='url(%23hi)' stroke-width='1' fill='none' opacity='0.55'/%3E%3Cpath d='M-100 550 C350 490 750 610 1050 550 S1350 490 1300 550' stroke='url(%23hi)' stroke-width='0.85' fill='none' opacity='0.5'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

/* Iluminación sutil adicional (crestas + legibilidad) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% 20%,
      rgba(139, 92, 246, 0.12),
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 80%,
      rgba(99, 102, 241, 0.08),
      transparent 45%
    ),
    radial-gradient(
      ellipse 60% 40% at 20% 70%,
      rgba(139, 92, 246, 0.06),
      transparent 45%
    );
  animation: waveMove 30s linear infinite;
  pointer-events: none;
}

@keyframes waveMove {
  0% {
    transform: rotate(0deg) scale(1.05);
    opacity: 1;
  }
  50% {
    transform: rotate(180deg) scale(1.08);
    opacity: 0.95;
  }
  100% {
    transform: rotate(360deg) scale(1.05);
    opacity: 1;
  }
}

/* Contenido encima */
.hero-container {
  position: relative;
  z-index: 5;
  max-width: 900px;
  color: white;
}

/* Título */
.hero-title {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 30px;
}

/* Descripción */
.hero-description {
  font-size: 20px;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 45px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Badge superior (icono + texto) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  margin-bottom: 28px;
  background: rgba(15, 18, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c4b5fd;
}

/* Botones del hero */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: calc(
    4cm + 32px
  ); /* 4cm de separación hasta el círculo + altura del indicador */
}

.hero-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 28px;
}

.hero-buttons a {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto; /* asegurar que es clickeable */
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-buttons .btn-primary {
  background: #8b5cf6;
  color: #fff;
  border: none;
}

.hero-buttons .btn-primary:hover {
  background: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.hero-buttons .btn-outline {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-buttons .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  transform: translateY(-1px);
}

/* Indicador de scroll: círculo con borde morado y flecha blanca hacia arriba */
.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(167, 139, 250, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.3);
  animation: scrollIndicatorJump 2s ease-in-out infinite;
}

.scroll-indicator::after {
  content: "";
  width: 0;
  height: 0;
  margin-bottom: 4px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid #fff;
}

@keyframes scrollIndicatorJump {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ===============================
   TRUSTED SECTION ELEGANTE
================================== */

.trusted {
  background: #05070d;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

.trusted-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.trusted-title {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 60px;
}

/* Slider */
.trusted-slider {
  position: relative;
  overflow: hidden;
}

/* Fade lateral */
.trusted-slider::before,
.trusted-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 160px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.trusted-slider::before {
  left: 0;
  background: linear-gradient(to right, #05070d, transparent);
}

.trusted-slider::after {
  right: 0;
  background: linear-gradient(to left, #05070d, transparent);
}

/* Track */
.trusted-track {
  display: flex;
  gap: 140px;
  width: max-content;
  animation: scrollTrusted 65s linear infinite; /* MÁS LENTO */
}

/* Movimiento */
@keyframes scrollTrusted {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Elementos */
.trusted-track span {
  font-size: 26px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.25);
  transition: all 0.4s ease;
  letter-spacing: 1px;
}

/* Hover elegante */
.trusted-track span:hover {
  color: #8b5cf6;
  text-shadow:
    0 0 6px rgba(139, 92, 246, 0.6),
    0 0 18px rgba(139, 92, 246, 0.4);
  transform: scale(1.06);
}

/* Pausa */
.trusted-slider:hover .trusted-track {
  animation-play-state: paused;
}

/* ===============================
   SERVICES PREMIUM
================================== */

.services {
  background: #05070d;
  padding: 150px 20px;
}

.services-container {
  max-width: 1100px;
  margin: 0 auto;
}

.services-title {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 20px;
  color: white;
}

.services-title span {
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-subtitle {
  color: #94a3b8;
  font-size: 18px;
  max-width: 700px;
  margin-bottom: 80px;
}

.services-accordion {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}

.service-item.active {
  background: rgba(255, 255, 255, 0.02);
}

.service-header {
  width: 100%;
  background: none;
  border: none;
  padding: 35px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: white;
}

.service-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.service-icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  transition: all 0.3s ease;
}

.service-item.active .service-icon {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
}

.service-header h3 {
  font-size: 36px;
  font-weight: 600;
}

.service-toggle {
  font-size: 28px;
  color: #8b5cf6;
  transition: transform 0.3s ease;
}

.service-item.active .service-toggle {
  transform: rotate(45deg);
}

.service-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.service-content p {
  color: #cbd5e1;
  max-width: 800px;
  margin-bottom: 25px;
}

.service-tags {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  padding-bottom: 35px;
}

.service-tags span {
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.08);
  color: #8b5cf6;
}

/* ===============================
   EXPERTISE SECTION
================================== */

.expertise {
  background: #05070d;
  padding: 50px 20px 20px;
}

.expertise-row {
  max-width: 1200px;
  margin: 0 auto 30px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.expertise-row.reverse {
  direction: rtl;
}

.expertise-row.reverse .expertise-content {
  direction: ltr;
}

.expertise-image img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.expertise-content h2 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 25px;
  color: white;
}

.expertise-content h2 span {
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.expertise-content h4 {
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 10px;
  color: white;
}

.expertise-content p {
  color: #94a3b8;
  line-height: 1.6;
  max-width: 500px;
}

/* ===============================
   PROJECTS SECTION
================================== */

.projects {
  background: #05070d;
  padding: 20px 20px 140px;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
  gap: 40px;
  margin-top: -40px;
}

.projects-label {
  font-size: 12px;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #8b5cf6;
  display: inline-block;
  margin-bottom: 15px;
}

.projects-header h2 {
  font-size: 48px;
  font-weight: 800;
  color: white;
}

.projects-header h2 span {
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.projects-header p {
  color: #94a3b8;
  max-width: 400px;
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Card */
.project-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: transform 0.4s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

/* Overlay */
.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: white;
}

.project-overlay h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.project-overlay p {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 15px;
}

.project-tags span {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  margin-right: 8px;
}

/* Badge */
.project-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 20px;
  color: white;
  z-index: 2;
}

.project-badge.creation {
  background: #22c55e;
}

.project-badge.migration {
  background: #3b82f6;
}

/* ===============================
   CTA SECTION
================================== */

.cta {
  position: relative;
  background: #0a0c12;
  padding: 180px 20px;
  text-align: center;
  overflow: hidden;
}

/* Mismas ondas fluidas que el Hero (coherencia visual) */
.cta-wave-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0a0c12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cdefs%3E%3ClinearGradient id='hi' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='rgba(200,185,255,0.2)'/%3E%3Cstop offset='40%25' stop-color='rgba(255,255,255,0.06)'/%3E%3Cstop offset='100%25' stop-color='rgba(255,255,255,0.02)'/%3E%3C/linearGradient%3E%3ClinearGradient id='sh' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='rgba(0,0,0,0.15)'/%3E%3Cstop offset='100%25' stop-color='rgba(0,0,0,0.04)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='600' fill='%230a0c12'/%3E%3Cpath d='M-100 100 C250 40 550 160 850 100 S1450 40 1300 100' stroke='url(%23sh)' stroke-width='2' fill='none' opacity='0.6' transform='translate(0 4)'/%3E%3Cpath d='M-100 100 C250 40 550 160 850 100 S1450 40 1300 100' stroke='url(%23hi)' stroke-width='1.4' fill='none' opacity='0.95'/%3E%3Cpath d='M-100 200 C200 140 600 260 900 200 S1200 140 1300 200' stroke='url(%23sh)' stroke-width='1.8' fill='none' opacity='0.5' transform='translate(0 3)'/%3E%3Cpath d='M-100 200 C200 140 600 260 900 200 S1200 140 1300 200' stroke='url(%23hi)' stroke-width='1.2' fill='none' opacity='0.85'/%3E%3Cpath d='M-100 300 C300 240 500 360 800 300 S1100 240 1300 300' stroke='url(%23sh)' stroke-width='1.6' fill='none' opacity='0.45' transform='translate(0 3)'/%3E%3Cpath d='M-100 300 C300 240 500 360 800 300 S1100 240 1300 300' stroke='url(%23hi)' stroke-width='1.1' fill='none' opacity='0.75'/%3E%3Cpath d='M-100 400 C150 340 550 460 950 400 S1350 340 1300 400' stroke='url(%23sh)' stroke-width='1.4' fill='none' opacity='0.4' transform='translate(0 2)'/%3E%3Cpath d='M-100 400 C150 340 550 460 950 400 S1350 340 1300 400' stroke='url(%23hi)' stroke-width='1' fill='none' opacity='0.7'/%3E%3Cpath d='M-100 500 C250 440 650 560 850 500 S1250 440 1300 500' stroke='url(%23sh)' stroke-width='1.2' fill='none' opacity='0.35' transform='translate(0 2)'/%3E%3Cpath d='M-100 500 C250 440 650 560 850 500 S1250 440 1300 500' stroke='url(%23hi)' stroke-width='0.9' fill='none' opacity='0.65'/%3E%3Cpath d='M-100 50 C400 0 700 100 1000 50 S1400 0 1300 50' stroke='url(%23hi)' stroke-width='1' fill='none' opacity='0.55'/%3E%3Cpath d='M-100 550 C350 490 750 610 1050 550 S1350 490 1300 550' stroke='url(%23hi)' stroke-width='0.85' fill='none' opacity='0.5'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

/* Iluminación sutil (coherente con Hero) */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% 30%,
      rgba(139, 92, 246, 0.1),
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 70%,
      rgba(99, 102, 241, 0.06),
      transparent 45%
    ),
    radial-gradient(
      ellipse 60% 40% at 20% 60%,
      rgba(139, 92, 246, 0.05),
      transparent 45%
    );
  animation: waveMove 30s linear infinite;
  pointer-events: none;
}

.cta-container {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 56px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
}

.cta h2 span {
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta p {
  color: #94a3b8;
  font-size: 18px;
  margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

/* ===============================
   FOOTER
================================== */

.footer {
  background: #05070d;
  padding: 100px 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
}

.footer-column h3 {
  color: white;
  margin-bottom: 15px;
}

.footer-column h4 {
  color: white;
  margin-bottom: 20px;
}

.footer-column p {
  color: #94a3b8;
  margin-bottom: 10px;
}

.footer-column span {
  color: #64748b;
  font-size: 14px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  text-decoration: none;
  color: #94a3b8;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #8b5cf6;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 14px;
}

.social-icons a:hover {
  color: #8b5cf6;
}

.footer-bottom {
  text-align: center;
  color: #64748b;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

/* ===============================
     PÁGINA DE CONTACTO
     (tipografía y espaciados tipo Tailwind / referencia)
  ================================== */

.contact-page {
  min-height: 100vh;
  padding: 128px 20px 128px 8px; /* py-32 = 8rem */
  background: #05070d;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px; /* gap-16 */
  align-items: start;
}

.contact-left {
  position: sticky;
  top: 100px;
}

/* Título: text-6xl / md:text-8xl, bold, uppercase, leading-tight, mb-6 */
.contact-title {
  font-size: clamp(60px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 24px; /* mb-6 */
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.contact-title span {
  color: #9372ff; /* accent-purple de la referencia */
}

/* Párrafo: text-xl, gray-400, max-w-sm, mb-16 */
.contact-description {
  font-size: 1.25rem; /* 20px */
  line-height: 1.75rem; /* 28px */
  color: rgb(156 163 175); /* gray-400 */
  max-width: 24rem; /* 384px = max-w-sm */
  margin-bottom: 64px; /* mb-16 */
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 48px; /* mb-12 entre bloques */
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px; /* gap-8 */
}

.contact-card {
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.contact-card-icon {
  font-size: 20px; /* w-5 h-5 ≈ 1.25rem */
  margin-bottom: 12px; /* gap-3 */
  color: #9372ff;
}

/* Títulos de sección: uppercase text-sm tracking-widest text-gray-400 */
.contact-card-title {
  font-size: 0.875rem; /* 14px = text-sm */
  font-weight: 600;
  letter-spacing: 0.1em; /* tracking-widest */
  text-transform: uppercase;
  color: rgb(156 163 175); /* gray-400 */
  margin-bottom: 12px;
}

.contact-card-email,
.contact-card-line {
  font-size: 1.125rem; /* 18px = text-lg */
  color: rgb(229 231 235); /* gray-200 */
  margin-bottom: 4px; /* space-y-1 */
}

.contact-card-line:last-child {
  margin-bottom: 0;
}

.contact-office {
  display: flex;
  flex-direction: column;
  gap: 4px; /* space-y-1 */
}

.contact-office-icon {
  font-size: 20px;
  margin-bottom: 4px;
  color: #9372ff;
}

.contact-office-title {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(156 163 175);
}

.contact-office-address {
  font-size: 1.125rem;
  color: rgb(229 231 235);
}

.contact-image-wrap {
  border-radius: 1rem; /* rounded-2xl */
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===============================
   PÁGINA DE COTIZACIÓN
================================== */

.quote-page {
  min-height: 100vh;
  padding: 128px 20px 128px;
  background: #05070d;
}

.quote-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}

.quote-left {
  position: sticky;
  top: 110px;
}

.quote-title {
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.quote-title span {
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quote-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #94a3b8;
  max-width: 26rem;
}

.quote-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quote-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.8);
}

.quote-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.quote-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quote-field label,
.quote-field legend {
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
}

/* Inputs y Select */
.quote-field input[type="email"],
.quote-field input[type="number"],
.quote-field select {
  background: #020617;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 12px 14px;
  color: #e2e8f0;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.quote-field input:focus,
.quote-field select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.6);
}

/* FIELDSET Opciones extra */
.quote-field fieldset {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 16px;
  background: rgba(2, 6, 23, 0.6);
}

.quote-field fieldset legend {
  padding: 0 6px;
  color: #cbd5e1;
}

.quote-field fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  color: #e2e8f0;
}

.quote-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #8b5cf6;
}

/* BOTÓN */
#submitQuote {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 12px 40px rgba(88, 28, 135, 0.5);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#submitQuote:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(88, 28, 135, 0.7);
}

/* RESULTADO */
.quote-result {
  font-size: 14px;
  line-height: 1.7;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 14px;
  min-height: 40px;
}

/* ===============================
     BOTÓN FLOTANTE "Contactar Ejecutivo"
  ================================== */

.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: inherit;
  /* contenedor para posicionar el menú desplegable */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.floating-cta-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.floating-cta-toggle:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
}

.floating-cta-icon {
  font-size: 20px;
  line-height: 1;
}

.floating-cta-dropdown {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  padding: 8px 0;
  background: rgba(15, 18, 25, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.floating-cta.is-open .floating-cta-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-cta-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.floating-cta-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.floating-cta-whatsapp:hover {
  color: #25d366;
}
.floating-cta-instagram:hover {
  color: #e4405f;
}

/* adaptación para pantallas pequeñas */
@media (max-width: 480px) {
  /* convertimos el CTA en una barra inferior de ancho completo */
  .floating-cta {
    bottom: 0;
    right: 0;
    left: 0;
    padding: 0 16px 8px; /* espacio inferior extra para el scroll indicator */
    align-items: center;
  }
  .floating-cta-toggle {
    width: 100%;
    border-radius: 0;
    padding: 10px 14px;
    font-size: 13px;
    justify-content: center;
  }
  .floating-cta-text {
    display: inline; /* mostrar texto en barra inferior */
  }
  .floating-cta-dropdown {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 50vh;
    overflow-y: auto;
    border-radius: 12px 12px 0 0;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
  }
  .floating-cta.is-open .floating-cta-dropdown {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  /* asegurar que el scroll indicator no choque con la barra */
  .scroll-indicator {
    bottom: 80px;
  }
}

.field-help {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ===============================
   Opciones extra mejoradas
================================== */

.extra-options {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 20px;
  background: rgba(2, 6, 23, 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.extra-options legend {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  padding: 0 6px;
}

.extra-description {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 6px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #e2e8f0;
  cursor: pointer;
  padding: 6px 0;
}

.checkbox-item input {
  width: 16px;
  height: 16px;
  accent-color: #8b5cf6;
}

/* ---------------------------------------------------
   Estilos para el modal de cotización
---------------------------------------------------- */
.quote-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 2000;
}
.quote-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.quote-modal {
  background: #ffffff;
  color: #000000;
  padding: 2rem;
  max-width: 90%;
  width: 400px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
  font-family: inherit;
}
.quote-modal h2 {
  margin-bottom: 1rem;
  color: #6C4BFF;
}
.quote-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}
.modal-highlight {
  color: #8b5cf6;
  font-weight: 600;
}

