/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE
========================= */
body {
  font-family: 'Inter', sans-serif;
  background-color: #050505;
  color: #ffffff;
  overflow-x: hidden;
}

/* =========================
   FONDO GLOBAL SUTIL
========================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 160px 160px;
  opacity: 0.12;
  pointer-events: none;
  z-index: -2;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 70px;
  position: relative;
  z-index: 20;
}

/* LOGO + TEXTO */
.logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo img {
  height: 70px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0,255,136,0.45));
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.brand-code {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #00ff88;
}

.brand-imperium {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
}

/* LINKS */
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-btn {
  padding: 8px 16px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(90deg, #00ff88, #00cc66);
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

/* =========================
   HERO (FONDO + CIRCUITOS)
========================= */
.hero {
  display: flex;
  align-items: flex-start;       /* CLAVE: sube el texto */
  padding: 0px 70px 100px;      /* más espacio arriba */
  min-height: calc(100vh - 80px);
  position: relative;

  background-image: url("img/hero--bg.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: #050505;
}

/* Overlay de fusión */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.85) 30%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.25) 55%,
    rgba(0,0,0,0.0) 65%
  );
  z-index: 0;
  pointer-events: none;
}


/* =========================
   HERO TEXTO
========================= */
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-top: 0;
}

.hero-text h1 {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.05;
}

.hero-text span {
  color: #00ff88;
}

.hero-text p {
  margin-top: 26px;
  max-width: 520px;
  line-height: 1.6;
  color: #cfcfcf;
}

.cta {
  margin-top: 32px;
  padding: 16px 34px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(90deg, #00ff88, #00cc66);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(0,255,136,0.6);
}




/* =========================
   CHATBOT
========================= */
.chatbot {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 260px;
  background: #0b0b0b;
  border: 1px solid rgba(0,255,136,0.35);
  border-radius: 18px;
  padding: 18px;
  z-index: 30;
  box-shadow: 0 0 25px rgba(0,255,136,0.25);
}

.chatbot h4 {
  font-size: 15px;
  margin-bottom: 14px;
}

.chatbot button:not(.chatbot-minimizar) {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #00ff88;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

.chatbot input {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: none;
}

/* =========================
   CHATBOT AVATAR (ROBOT)
========================= */
.chatbot {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 320px;
  background: #0b0b0b;
  border: 1px solid rgba(0,255,136,0.35);
  border-radius: 20px;
  padding: 26px 16px 16px;
  z-index: 30;
  box-shadow: 0 0 25px rgba(0,255,136,0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.35s ease;
}

.chatbot-avatar {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  overflow: hidden;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 18px rgba(0,255,136,0.6),
    inset 0 0 10px rgba(0,255,136,0.25);
}

.chatbot-avatar img {
  width: 56px;
  height: auto;
  border-radius: 50%;
}

/* =========================
   ROBOT HOVER EXPRESIÓN
========================= */
.chatbot-avatar {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #050505;
  border: 2px solid rgba(0,255,136,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 18px rgba(0,255,136,0.6),
    inset 0 0 10px rgba(0,255,136,0.25);
  cursor: pointer;
}

.chatbot-avatar img {
  position: absolute;
  width: 58px;
  height: auto;
  transition: 
    opacity 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
  filter: drop-shadow(0 0 8px rgba(0,255,136,0.45));
}


/* Estado normal */
.robot-normal {
  opacity: 1;
}

/* Estado hover */
.robot-hover {
  opacity: 0;
  transform: scale(0.95);
  filter: drop-shadow(0 0 6px rgba(0,255,136,0.4));
}

/* Al pasar el mouse */
.chatbot-avatar:hover .robot-normal {
  opacity: 0;
  transform: scale(1.05);
}

.chatbot-avatar:hover .robot-hover {
  opacity: 1;
  transform: scale(1.15); /* 🔥 MÁS GRANDE */
  filter: 
    drop-shadow(0 0 12px rgba(0,255,136,0.8))
    drop-shadow(0 0 22px rgba(0,255,136,0.6));
}

/* Glow reactivo */
.chatbot-avatar:hover {
  box-shadow:
    0 0 28px rgba(0,255,136,0.9),
    inset 0 0 14px rgba(0,255,136,0.35);
}

.chatbot-avatar::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0,255,136,0.15) 0%,
    rgba(0,0,0,0.85) 55%,
    rgba(0,0,0,1) 70%
  );
  z-index: -1;
}


.nav-links a {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  opacity: 0.85;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #C9A24D;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* =========================
   SERVICIOS PRO
========================= */
.services {
  padding: 120px 70px;
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}

.services-header h2 {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(90deg, #C9A24D, #FFD166);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}

.services-header p {
  font-size: 17px;
  line-height: 1.7;
  color: #cfcfcf;
}

/* Grid avanzado */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

/* Card pro */
.service-card {
  position: relative;
  background: #0b0b0b;
  border: 1px solid rgba(0,255,136,0.18);
  border-radius: 20px;
  padding: 40px 30px 30px 30px;
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,255,136,0.1);
}

/* Icono */
.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  transition: transform 0.35s ease;
}

.service-icon img {
  width: 100%;
  height: 100%;
}

/* Hover elegante + 3D */
.service-card:hover {
  transform: translateY(-12px) scale(1.03);
  border-color: rgba(0,255,136,0.45);
  box-shadow:
    0 12px 28px rgba(0,255,136,0.3),
    inset 0 0 12px rgba(0,255,136,0.1);
}

.service-card:hover .service-icon {
  transform: rotate(-15deg) scale(1.2);
}

/* Títulos y texto */
.service-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}

.service-card p {
  font-size: 15px;
  line-height: 1.65;
  color: #cfcfcf;
}

/* Animación de aparición al scroll */
.service-card {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.service-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   MINIMIZADO
================================ */
.chatbot.minimizado {
  width: 72px;
  height: 72px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 50%;
}

.chatbot.minimizado .chatbot-minimizar,
.chatbot.minimizado h4,
.chatbot.minimizado .chatbot-mensajes,
.chatbot.minimizado .chatbot-btn-rapido,
.chatbot.minimizado .chatbot-input-row,
.chatbot.minimizado .chatbot-acciones {
  display: none;
}

.chatbot.minimizado .chatbot-avatar {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  width: 72px;
  height: 72px;
  cursor: pointer;
}

/* ================================
   ÁREA DE MENSAJES (BURBUJAS)
================================ */
.chatbot-mensajes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,255,136,0.3) transparent;
}

.chatbot-mensajes::-webkit-scrollbar {
  width: 4px;
}
.chatbot-mensajes::-webkit-scrollbar-thumb {
  background: rgba(0,255,136,0.3);
  border-radius: 4px;
}

/* ================================
   BURBUJAS
================================ */
.burbuja {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  animation: aparecer 0.25s ease;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Bot — izquierda */
.burbuja-bot {
  background: #161616;
  border: 1px solid rgba(0,255,136,0.2);
  color: #cfcfcf;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* Usuario — derecha */
.burbuja-usuario {
  background: linear-gradient(135deg, #00ff88, #00cc66);
  color: #000;
  font-weight: 600;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Cargando — puntos animados */
.burbuja-cargando {
  background: #161616;
  border: 1px solid rgba(0,255,136,0.2);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  padding: 12px 18px;
}

.puntos span {
  display: inline-block;
  animation: parpadeo 1.2s infinite;
  font-size: 18px;
  color: #00ff88;
  line-height: 1;
}
.puntos span:nth-child(2) { animation-delay: 0.2s; }
.puntos span:nth-child(3) { animation-delay: 0.4s; }

@keyframes parpadeo {
  0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
  40%           { opacity: 1;   transform: translateY(-4px); }
}

/* ================================
   BOTONES RÁPIDOS
================================ */
.chatbot-acciones {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.chatbot-btn-rapido {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,255,136,0.3);
  background: transparent;
  color: #00ff88;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chatbot-btn-rapido:hover {
  background: rgba(0,255,136,0.1);
  border-color: rgba(0,255,136,0.6);
}

/* ================================
   INPUT + BOTÓN ENVIAR
================================ */
.chatbot-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chatbot-input-row input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,255,136,0.25);
  background: #111;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.chatbot-input-row input:focus {
  border-color: rgba(0,255,136,0.6);
}

.chatbot-input-row input::placeholder {
  color: rgba(255,255,255,0.3);
}

#chatbot-enviar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #00ff88, #00cc66);
  color: #000;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

#chatbot-enviar:hover {
  transform: scale(1.1);
}

/* ================================
   MODAL FORMULARIO
================================ */
.chatbot-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 100;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.chatbot-modal.activo {
  display: flex;
}

.modal-contenido {
  background: #0e0e0e;
  border: 1px solid rgba(0,255,136,0.35);
  border-radius: 20px;
  padding: 32px;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 0 30px rgba(0,255,136,0.2);
  animation: aparecer 0.3s ease;
}

.modal-contenido h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
}

#modal-cerrar {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

#modal-cerrar:hover {
  color: #00ff88;
}

/* Campos del formulario */
#modal-form label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#modal-form input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,255,136,0.25);
  background: #161616;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

#modal-form input:focus {
  border-color: rgba(0,255,136,0.6);
}

.modal-submit {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #00ff88, #00cc66);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.modal-submit:hover {
  opacity: 0.9;
}

/* WhatsApp */
.modal-btn-wa {
  display: block;
  text-align: center;
  padding: 13px;
  border-radius: 12px;
  background: #25d366;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
  transition: opacity 0.2s;
}

.modal-btn-wa:hover {
  opacity: 0.88;
}

/* Lista servicios */
.modal-servicios {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-servicios li {
  background: #161616;
  border: 1px solid rgba(0,255,136,0.18);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #cfcfcf;
}
.services-header {
  max-width: 700px;
  margin-bottom: 60px;
}

.services-header {
  text-align: center;
  margin: 0 auto 70px auto;
}

/* =========================
   SERVICES STATS
========================= */
.services-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 60px 0 80px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 36px;
  color: #00ff88;
  font-weight: 800;
}

.stat span {
  font-size: 14px;
  color: #cfcfcf;
}

/* =========================
   FEATURES LIST
========================= */
.service-features {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #a8f5d1;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}

/* Mostrar al hover */
.service-card:hover .service-features {
  opacity: 1;
  max-height: 200px;
  margin-bottom: 18px;
}

/* =========================
   BOTÓN VER MÁS
========================= */
.service-btn {
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0,255,136,0.4);
  background: transparent;
  color: #00ff88;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.service-card:hover .service-btn {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   CTA FINAL
========================= */
.services-cta {
  margin-top: 100px;
  text-align: center;
}

.cta-secondary {
  padding: 16px 34px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(90deg, #00ff88, #00cc66);
  color: #000;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,255,136,0.4);
}

/* Overlay */

.service-panel p,
.service-panel li {
  color: rgba(255,255,255,0.85);
}
.service-panel .close-btn:hover {
  background: rgba(0,255,136,0.1);
  transform: rotate(90deg);
}

.service-overlay.active {
  opacity: 1;
  visibility: visible;
}

.service-panel-header h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.service-close {
  position: relative; /* importante */
  z-index: 10;

  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.35);

  color: #00ff88;
  width: 38px;
  height: 38px;
  border-radius: 50%;

  font-size: 22px;
  font-weight: 700;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.25s ease;
}

/* Content */
.service-panel-content {
  padding: 24px;
  line-height: 1.7;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}
.close-panel:hover {
  transform: rotate(90deg);
  text-shadow: 0 0 10px #00ff88;
}

/* Hover elegante en botón */
.service-btn {
  cursor: pointer;
  transition: all .2s ease;
}

.service-btn:hover {
  transform: translateY(-3px);
}


.service-panel h2,
.service-panel p,
.service-panel li {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(.16,1,.3,1);
}

.service-panel.active h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.service-panel.active p,
.service-panel.active li {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.panel-subtitle {
  color: rgba(255,255,255,0.6);
  margin-bottom: 25px;
  font-size: 15px;
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.panel-list li {
  margin-bottom: 15px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.cta-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #00ffa6, #00c97a);
  border: none;
  border-radius: 12px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,255,170,0.3);
}

/* =========================
   SERVICE PANEL PREMIUM
========================= */

.service-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 9998;
}

.service-overlay.active {
  opacity: 1;
  visibility: visible;
}

.service-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;

  background: rgba(10,15,14,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-left: 1px solid rgba(0,255,136,0.15);
  box-shadow: -20px 0 60px rgba(0,0,0,0.7);

  transform: translateX(100%);
  opacity: 0;

  transition: 
    transform 0.6s cubic-bezier(.16,1,.3,1),
    opacity 0.4s ease;

  z-index: 9999;

  display: flex;
  flex-direction: column;
  padding: 40px 35px;
}

.service-panel.active {
  transform: translateX(0);
  opacity: 1;
}

/* Header */
.service-panel h2 {
  font-size: 22px;
  font-weight: 700;
  color: #00ff88;
  margin-bottom: 25px;
}

/* Contenido */
.service-panel p,
.service-panel li {
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
  line-height: 1.7;
}

/* Botón cerrar */
.service-close {
  position: absolute;
  top: 22px;
  right: 22px;

  width: 38px;
  height: 38px;
  border-radius: 50%;

  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.4);

  color: #00ff88;
  font-size: 20px;
  font-weight: bold;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all .25s ease;
}

.service-close:hover {
  transform: rotate(90deg);
  background: rgba(0,255,136,0.15);
}


/* =====================
   TESTIMONIOS
===================== */

.testimonials {
  padding: 120px 8%;
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.section-header p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.testimonial-card {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,255,170,0.15);
  border-radius: 20px;
  padding: 35px;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
  cursor: pointer;
}

/* Spotlight dinámico */
.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(
    600px circle at var(--x) var(--y),
    rgba(0,255,170,0.18),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0,255,170,0.4);
}

.highlight-section {
  animation: highlightPulse 1.2s ease;
}

@keyframes highlightPulse {
  0% { box-shadow: 0 0 0 rgba(0,255,136,0); }
  50% { box-shadow: 0 0 40px rgba(0,255,136,0.4); }
  100% { box-shadow: 0 0 0 rgba(0,255,136,0); }
}

.nav-glow {
  text-shadow: 0 0 12px rgba(0,255,136,0.8);
  transition: text-shadow 0.3s ease;
}


.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.85);
}

.testimonial-author strong {
  color: #00ff88;
}

.testimonial-author span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* =====================
   CONTACTO
===================== */

.contact {
  padding: 100px 8%;
  background: #0b0f14;
  text-align: center;
  color: white;
}

.contact h2 {
  font-size: 34px;
  margin-bottom: 15px;
}

.contact p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
}


/* =====================
   STACK & METODOLOGÍA
===================== */

.stack {
  padding: 140px 8%;
  background:
    radial-gradient(circle at 15% 20%, rgba(0,255,136,0.06), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0,255,136,0.04), transparent 45%),
    #050505;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.stack .section-header {
  max-width: 720px;
}

.stack-statement {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.75;
}

.stack-title {
  font-size: 2.6rem;
  line-height: 1.15;
  font-weight: 800;
}

.stack-subtitle {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;   /* más chico */
  font-weight: 500;
  color: #9aa3a0;       /* gris técnico */
  opacity: 0.85;
}

.stack-title {
  font-size: 2.6rem;
  line-height: 1.15;
  font-weight: 800;
}


.stack-subtitle {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.stack-subtitle {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;   /* más chico */
  font-weight: 600;
  color: #F4A261;       /* gris técnico */
  opacity: 0.85;
}

.section-header .accent {
  color: #00ff9c;
  font-weight: 200;
}

.section-header::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #00ff9c, transparent);
  margin-bottom: 14px;
}

/* Divider sutil diagonal */
.stack::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(0,255,136,0.03) 0%, rgba(0,255,136,0) 70%);
  pointer-events: none;
}

.stack-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  margin-top: 80px;
  position: relative;
}

/* Header de sección con fondo y degradado */
.methodology h3,
.technology h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #00ff88, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.technology {
  position: relative;
}

.tech-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  max-width: 420px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tech-badge {
  position: relative;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(0,255,136,0.08),
    rgba(0,255,136,0.02)
  );
  border: 1px solid rgba(0,255,136,0.18);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  transition: all 0.35s ease;
  cursor: default;
}

.tech-badge:hover {
  background: linear-gradient(
    145deg,
    rgba(0,255,136,0.18),
    rgba(0,255,136,0.05)
  );
  border-color: rgba(0,255,136,0.45);
  box-shadow: 0 0 24px rgba(0,255,136,0.25);
  transform: translateY(-2px);
}
.tech-badge::after {
  content: "●";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 8px;
  color: rgba(0,255,136,0.6);
}
.stack-statement {
  max-width: 680px;
  margin: 20px auto 0;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}



/* =====================
   METODOLOGÍA
===================== */

.method-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.method-item {
  position: relative;
  padding-left: 24px;
}

.method-item::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,255,136,0.6);
  box-shadow: 0 0 12px rgba(0,255,136,0.6);
}

.method-item:hover::after {
  background: rgba(0,255,136,1);
  box-shadow: 0 0 18px rgba(0,255,136,0.9);
}

.method-item::before {
  content: attr(data-step);
  position: absolute;
  top: -6px;
  right: 20px;
  font-size: 60px;
  font-weight: 800;
  color: rgba(0, 255, 136, 0.045); /* balance perfecto */
  letter-spacing: -2px;
  pointer-events: none;
}

.method-item {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease;
}

.method-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.method-item:hover::before {
  color: rgba(0, 255, 136, 0.08);
}

.method-list {
  position: relative;
  padding-left: 32px;
}

.method-list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,255,136,0.15),
    rgba(0,255,136,0.02)
  );
}

@media (max-width: 768px) {
  .method-item::before {
    font-size: 48px;
    right: 12px;
    color: rgba(0, 255, 136, 0.06);
  }
}
.method-item:hover {
  transform: translateY(-8px);
  border-color: rgba(0,255,136,0.4);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.6),
    0 0 0 1px rgba(0,255,136,0.25);
}
.method-item span {
  font-size: 14px;
  font-weight: bold;
  color: #00ff88;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method-item h4 {
  margin: 12px 0;
  font-size: 20px;
  font-weight: 600;
}

.method-item p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}

/* =====================
   STACK TECNOLÓGICO
===================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.tech-badge {
  position: relative;
  padding: 14px 18px;
  border-radius: 8px; /* más técnico, menos card */
  background: transparent; /* CLAVE */
  border: 1px solid rgba(0,255,136,0.18);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  text-transform: uppercase; /* sensación infra */
  transition: all 0.25s ease;
}


.tech-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--x) var(--y),
    rgba(0,255,136,0.18),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tech-badge:hover::before {
  opacity: 1;
}

.tech-badge:hover {
  transform: translateY(-6px) scale(1.06);
  border-color: rgba(0,255,136,0.45);
}
.tech-badge:hover {
  background: rgba(0,255,136,0.12);
  transform: scale(1.08) rotate(1deg);
  box-shadow: 0 8px 20px rgba(0,255,136,0.15);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .stack-container {
    grid-template-columns: 1fr;
  }
  .stack-container::before {
    display: none; /* ocultar divider en móvil */
  }
  .tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px 20px; /* menos aire vertical */
  position: relative;
}
}

.tech-grid::before {
  content: "";
  position: absolute;
  inset: -20px;
  border: 1px dashed rgba(0,255,136,0.08);
  border-radius: 12px;
  pointer-events: none;
}

.tech-architecture {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}

.tech-layer {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,255,170,0.12);
  border-radius: 14px;
  padding: 18px 22px;
}

.layer-title {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #00f5a0;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #e5e5e5;
}

.tech-item img {
  width: 20px;
  height: 20px;
  opacity: 0.75;
  filter: grayscale(100%);
}

.tech-item img,
.tech-icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}


/* Responsive */

@media (max-width: 900px) {
  .stack-container {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

html {
  scroll-behavior: smooth;
}

.testimonials-cta {
  margin-top: 80px;
  text-align: center;
}

.testimonials-cta h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.testimonials-cta p {
  opacity: 0.7;
  margin-bottom: 20px;
}

.testimonials-cta {
  margin-top: 100px;
}

.testimonial-card {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,255,170,0.15);
  border-radius: 20px;
  padding: 35px;
  backdrop-filter: blur(12px);
  transition: all 0.5s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}

/* Glow layer interno */
.testimonial-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(0,255,170,0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.testimonial-title {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  margin-bottom: 70px;
  background: linear-gradient(90deg, #ffffff, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  position: relative;
}

.testimonial-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, #00ff88, transparent);
  border-radius: 10px;
}

/* Hover */
.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(0,255,170,0.4);
  box-shadow:
    0 20px 50px rgba(0,255,170,0.15),
    0 0 40px rgba(0,255,170,0.1);
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00ff88, #00c76f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: 14px;
}

.btn-contact {
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #00ff9d, #00c97b);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;

  width: auto;
  align-self: center;
  min-width: 260px;
}

.contact-card {
  background: #0f1a24;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  max-width: 600px;
  margin: auto;
}


.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 16px;
  background: #0c141c;
  border: 1px solid rgba(0,255,157,0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border: 1px solid #00d084;
  box-shadow: 0 0 0 3px rgba(0,208,132,0.15);
  outline: none;
}

/* =====================
   CONTACTO PREMIUM
===================== */

.contact {
  padding: 140px 8%;
  background: 
    radial-gradient(circle at 20% 10%, rgba(0,255,136,0.06), transparent 40%),
    #0a1118;
  text-align: center;
  color: white;
}

.contact h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 18px;
}

.contact p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CARD */

.contact-card {
  background: rgba(15,26,36,0.9);
  border: 1px solid rgba(0,255,136,0.15);
  backdrop-filter: blur(12px);
  padding: 50px;
  border-radius: 22px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(0,255,136,0.05);
  max-width: 620px;
  margin: auto;
}

/* FORM */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

/* GROUP */

.form-group {
  display: flex;
  flex-direction: column;
}

/* LABEL */

.form-group label {
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.4px;
}

/* INPUTS */

.form-group input,
.form-group textarea,
.form-group select {
  padding: 15px 16px;
  background: #0c141c;
  border: 1px solid rgba(0,255,136,0.12);
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  transition: all 0.25s ease;
}

/* FOCUS */

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #00ff88;
  box-shadow: 0 0 0 3px rgba(0,255,136,0.15);
  outline: none;
  transform: translateY(-2px);
}

/* TEXTAREA */

.form-group textarea {
  resize: none;
  min-height: 130px;
}

/* BUTTON */

.btn-contact {
  margin-top: 10px;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(90deg, #00ff88, #00c76f);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,255,136,0.4);
}

.btn-agendar {
  display: inline-block;
  margin-top: 40px;
  padding: 18px 30px;
  border-radius: 16px;
  background: linear-gradient(90deg, #00ff88, #00c76f);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-agendar:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,255,136,0.4);
}

.calendly-embed {
  margin-top: 60px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,255,136,0.2);
}

/* BOTÓN */

.btn-agendar-modal {
  padding: 18px 28px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(90deg, #00ff88, #00c76f);
  color: #000;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-agendar-modal:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,255,136,0.4);
}

/* MODAL BASE */

.modal-agenda {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

/* ACTIVO */

.modal-agenda.activo {
  visibility: visible;
  opacity: 1;
}

/* OVERLAY */

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
}

/* CARD */

.modal-contenido {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: #0f1a24;
  border-radius: 22px;
  border: 1px solid rgba(0,255,136,0.15);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  transform: translateY(40px);
  transition: all 0.35s ease;
  z-index: 2;
  overflow: hidden;
}

/* Animación entrada */

.modal-agenda.activo .modal-contenido {
  transform: translateY(0);
}

/* HEADER */

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.modal-cerrar {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.modal-cerrar:hover {
  color: #00ff88;
}

/* BODY */

.modal-body {
  padding: 20px;
}

/* CONTENEDOR GENERAL */

.agenda-panel {
  position: fixed;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 9999;
}

.agenda-panel.activo {
  visibility: visible;
  opacity: 1;
}

/* OVERLAY OSCURO */

.agenda-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
}

/* PANEL DERECHO */

.agenda-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 100%;
  height: 100%;
  background: #0f1a24;
  border-left: 1px solid rgba(0,255,136,0.15);
  box-shadow: -20px 0 60px rgba(0,0,0,0.8);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
}

/* Animación */

.agenda-panel.activo .agenda-drawer {
  transform: translateX(0);
}

/* HEADER */

.agenda-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.agenda-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.agenda-header button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.agenda-header button:hover {
  color: #00ff88;
}

/* BODY */

.agenda-body {
  flex: 1;
  overflow: hidden;
}

/* =========================
   SCHEDULER INTEGRADO
========================= */
.scheduler-integrado.activo {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 20px;
}

/* Card interna */
.scheduler-body {
  margin-top: 20px;
  padding: 25px;
  border-radius: 18px;
  background: rgba(0,255,136,0.03);
  border: 1px solid rgba(0,255,136,0.15);
}

/* Campos */
.campo {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.campo label {
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
}

.campo input[type="date"] {
  padding: 14px;
  border-radius: 12px;
  background: #0c141c;
  border: 1px solid rgba(0,255,136,0.2);
  color: #fff;
}

/* Horas */
.horas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.horas button {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,255,136,0.25);
  background: transparent;
  color: #00ff88;
  cursor: pointer;
  transition: all 0.25s ease;
}

.horas button:hover {
  background: rgba(0,255,136,0.12);
}


.horas button.activa {
  background: linear-gradient(90deg, #00ff88, #00c76f);
  color: #000;
  border: none;
  font-weight: 700;
  transform: scale(1.05);
}

input[type="date"] {
  color-scheme: dark;
}

/* ================================
   TOAST NOTIFICATION
================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-exito {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.5);
  color: #00ff88;
  box-shadow: 0 0 20px rgba(0,255,136,0.3);
}

.toast-error {
  background: rgba(255, 60, 60, 0.15);
  border: 1px solid rgba(255, 60, 60, 0.5);
  color: #ff5555;
  box-shadow: 0 0 20px rgba(255,60,60,0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
}