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

:root {
  --primary-color: #4875CF;
  --secondary-color: #E2ECF7;
  --accent-color: #7092bf;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --shadow: 0 10px 25px rgba(0, 163, 232, 0.2);
  --transition: all 0.3s ease;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
}

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

/* Header - Menú a todo lo largo (Diseño Nuevo) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Centra el contenido (nav) */
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.85);
  /* Fondo glass a todo lo largo */
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
}

.logo-container {
  position: absolute;
  /* Mantiene la misma posición que tenías */
  left: 40px;
  z-index: 1001;
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* CORRECCIÓN 1: Logo como imagen del tamaño correcto */
.logo-image {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.footer-logo-image {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.logo i {
  font-size: 2rem;
}

/* El bloque nav ya no es un "pedazo blanco", es transparente para fundirse con el header */
.nav {
  display: flex;
  justify-content: center;
  background: transparent !important;
  padding: 0;
  box-shadow: none !important;
  transition: var(--transition);
  /* Eliminamos widh, margen, bordes redondos y fondo blanco de tu versión anterior */
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  /* Reduced gap since padding provides hit area */
  margin: 0;
  justify-content: center;
  background: transparent !important;
  box-shadow: none !important;
}

.nav-link {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  padding: 8px 25px;
  border-radius: 20px;
  transition: var(--transition);
  background: transparent;
  /* Fix for coloring issue */
}

.nav-link:hover,
.nav-link.active {
  background: var(--gradient);
  /* Maintains the existing blue container when selected */
  color: var(--white);
}

/* Hide the inline mobile link on desktop by default */
.mobile-only-link {
  display: none;
}

/* Header CTA Button - 'Iniciar Sesión' */
.header-action {
  position: absolute;
  right: 40px;
  z-index: 1001;
}

.nav-icon-link {
  color: var(--primary-color);
  font-size: 1.8rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid transparent;
}

.nav-icon-link:hover {
  transform: translateY(-2px);
  color: var(--primary-color);
  background: transparent;
  border: 1px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 163, 232, 0.1);
}

/* Menú Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-10%);
  z-index: 1002;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

/* HERO SECTION NUEVO */
.hero {
  text-align: center;
  padding: 120px 0 100px;
  /* Increased padding */
}

.hero-bg-digital {
  background: url('img/hero.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Glow mucho más pequeño y concentrado. Termina en el 45% */
  background: radial-gradient(ellipse 50% 70% at center, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 15%, rgba(255, 255, 255, 0) 45%);
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.badge {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  margin-bottom: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-title {
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 30px;
  color: var(--dark-color);
  /* Dark text for the white center */
}

.hero-text {
  font-size: 18px;
  max-width: 800px;
  margin-bottom: 45px;
  color: var(--dark-color);
  opacity: 0.8;
}

.badge.glass-badge {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--primary-color);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px rgba(10, 102, 194, 0.5);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #cbd5e1;
  color: var(--dark-color);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #ffffff;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.shadow-glow {
  box-shadow: 0 10px 40px -10px rgba(10, 102, 194, 0.4);
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}


/* Trabajemos Juntos */
.work-together {
  padding: 100px 0;
  background: var(--white);
}

.work-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
}

.work-image {
  display: flex;
  justify-content: center;
}

.handshake-icon {
  width: 150px;
  height: 150px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--white);
  animation: pulse 2s ease-in-out infinite;
}

.work-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.work-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark-color);
  margin-bottom: 30px;
}

.work-features {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--light-color);
  border-radius: 25px;
  color: var(--primary-color);
  font-weight: 500;
}

/* Servicios */
.services {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-color) 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--primary-color);
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.services-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1200px;
  overflow: hidden;
}

.service-card.side-card {
  background: var(--white);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.7;
}

.service-card.side-card:nth-child(1) {
  width: 160px;
  height: 220px;
}

.service-card.side-card:nth-child(2) {
  width: 180px;
  height: 250px;
}

.service-card.side-card:nth-child(4) {
  width: 180px;
  height: 250px;
}

.service-card.side-card:nth-child(5) {
  width: 160px;
  height: 220px;
}

.service-card.side-card .service-image {
  width: 50px;
  height: 50px;
  background: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.service-card.side-card h3 {
  font-size: 1rem;
  color: var(--dark-color);
}

.service-card.main-card {
  width: 380px;
  height: auto;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-top-gradient {
  height: 150px;
  width: 100%;
  background: var(--gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 55px;
}

.card-body {
  padding: 40px 30px;
  text-align: left;
}

.card-body h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.card-body p {
  font-size: 15px;
  margin-bottom: 30px;
  line-height: 1.7;
}

.text-slate-500 {
  color: #64748b;
}

.btn-full {
  width: 100%;
  padding: 14px 0;
}

.carousel-btn {
  position: absolute;
  background: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--primary-color);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

.carousel-btn.prev {
  left: 30px;
}

.carousel-btn.next {
  right: 30px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  display: inline-block;
  transition: 0.3s;
  cursor: pointer;
}

.carousel-dots .dot.active {
  background: var(--primary-color);
  width: 30px;
  border-radius: 5px;
}

/* Sobre Nosotros */
.sobre-nosotros {
  padding: 100px 0;
  background: var(--white);
}

.sn-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.nuestra-esencia-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark-color);
  margin-bottom: 25px;
  text-align: left;
  letter-spacing: -1.5px;
}

.nuestra-esencia-title .text-cyan {
  color: var(--primary-color);
}

.section-title.esencia-style {
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--dark-color);
  font-family: 'Inter', sans-serif;
}

.section-title.esencia-style .text-cyan,
.esencia-style .text-cyan {
  color: var(--primary-color);
}

.esencia-style .text-gradient {
  background: linear-gradient(to right, #0076c8, #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.esencia-style {
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--dark-color);
  font-family: 'Inter', sans-serif;
}

.sn-text {
  flex: 1;
}

.sn-text p {
  font-size: 18px;
}

.sn-stats {
  display: flex;
  gap: 40px;
}

.stat-item-sn h3 {
  font-size: 40px;
  color: var(--dark-color);
  margin-bottom: 5px;
  letter-spacing: -2px;
}

.stat-item-sn p {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.sn-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.animated-cube {
  perspective: 1000px;
}

.cube {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 10s infinite linear;
}

.face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--gradient);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
}

.face.front {
  transform: rotateY(0deg) translateZ(100px);
}

.face.back {
  transform: rotateY(180deg) translateZ(100px);
}

.face.right {
  transform: rotateY(90deg) translateZ(100px);
}

.face.left {
  transform: rotateY(-90deg) translateZ(100px);
}

.face.top {
  transform: rotateX(90deg) translateZ(100px);
}

.face.bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

/* Proceso */
.process {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-color) 100%);
}

.process-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  flex: 1;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon {
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  text-align: center;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step p {
  color: var(--dark-color);
  line-height: 1.6;
  font-size: 0.9rem;
  text-align: center;
}

.step-1 .step-icon {
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
}

.step-2 .step-icon {
  width: 60px;
  height: 60px;
  font-size: 1.4rem;
}

.step-3 .step-icon {
  width: 70px;
  height: 70px;
  font-size: 1.6rem;
}

.step-4 .step-icon {
  width: 80px;
  height: 80px;
  font-size: 1.8rem;
}

.step-5 .step-icon {
  width: 90px;
  height: 90px;
  font-size: 2rem;
}

.step-6 .step-icon {
  width: 100px;
  height: 100px;
  font-size: 2.2rem;
  background: var(--gradient);
  color: var(--white);
}

/* CONTACTO NUEVO */
.contacto {
  padding: 100px 0;
  background: var(--white);
}

.contacto-layout {
  display: flex;
  gap: 60px;
  z-index: 2;
  position: relative;
}

.contacto-info {
  flex: 1.1;
}

.tagline {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

.contacto-desc {
  font-size: 17px;
  margin-bottom: 50px;
  max-width: 550px;
  line-height: 1.6;
}

.half-grid-horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 100%;
}

.info-card {
  padding: 24px;
  border-radius: 16px;
  transition: 0.3s ease;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

.i-icon {
  width: 48px;
  height: 48px;
  background: #ffffff;
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  margin-bottom: 18px;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03);
}

.info-card h4 {
  font-size: 17px;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.contacto-form-wrapper {
  flex: 0.9;
}

.contacto-form-card {
  padding: 50px 45px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1);
}

.contacto-form-card h3 {
  font-size: 30px;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.social-links-mini {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.social-links-mini .btn-social {
  padding: 10px 10px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

.social-links-mini .btn-social:hover {
  background: var(--dark-color);
  color: white;
}

/* Contacto Section Re-design */
.contact-tagline {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.contact-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark-color);
  margin-bottom: 25px;
  text-align: left;
  letter-spacing: -1.5px;
}

.contact-main-title .text-cyan {
  color: var(--primary-color);
}

.contacto-desc {
  font-size: 17px;
  color: #64748b;
  margin-bottom: 50px;
  line-height: 1.6;
  max-width: 550px;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 100%;
}

.contact-clean-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 40px -10px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(15, 23, 42, 0.02);
}

.contact-clean-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
}

.contact-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 163, 232, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 20px;
  background: rgba(0, 163, 232, 0.03);
}

.contact-clean-card h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 8px;
}

.contact-clean-card .text-sm {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

.contact-clean-card .mb-1 {
  margin-bottom: 5px;
}

.contact-clean-card .hover-cyan {
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-clean-card .hover-cyan:hover {
  color: var(--primary-color);
}

/* Footer */
.footer-dark {
  padding: 80px 0 30px;
  background: #000000;
  color: #94a3b8;
  font-family: "Inter", sans-serif;
}

.logo-text {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 450px;
}

.footer-logo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.logo-text {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
}

.footer-links {
  display: flex;
  gap: 120px;
}

.link-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.link-column h4 {
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.link-column a {
  font-size: 14px;
  color: #64748b;
  text-decoration: none;
  transition: 0.3s;
}

.link-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  font-size: 13px;
  color: #64748b;
}

.legal-links {
  display: flex;
  gap: 30px;
}

.legal-links a {
  color: #64748b;
  text-decoration: none;
  transition: 0.3s;
}

.legal-links a:hover {
  color: #ffffff;
}

/* Botones Flotantes */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.whatsapp-btnf {
  background: #25d366;
  color: white;
  font-size: 1.8rem;
}

.chatbot-btn {
  background: var(--gradient);
  color: white;
  font-size: 1.6rem;
}

.floating-btn .tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floating-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.whatsapp-message {
  display: none;
}

.whatsapp-message::after {
  display: none;
}

/* Chatbot Modal */
.chatbot-modal {
  position: fixed;
  bottom: 120px;
  right: 30px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-modal.active {
  display: flex;
}

.chatbot-header {
  background: var(--gradient);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chatbot-message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chatbot-message.bot {
  background: var(--light-color);
  color: var(--dark-color);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.chatbot-message.user {
  background: var(--primary-color);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.chatbot-input-container {
  padding: 15px 20px;
  border-top: 1px solid var(--light-color);
  display: flex;
  gap: 10px;
}

.chatbot-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--light-color);
  border-radius: 20px;
  outline: none;
}

.chatbot-send {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-option {
  background: var(--primary-color);
  color: var(--light-color);
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.quick-option:hover {
  background: var(--primary-color);
  color: white;
}

/* Software Page Styles */
.software-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-color) 100%);
  text-align: center;
}

.software-hero-content h1 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.software-hero-content p {
  font-size: 1.2rem;
  color: var(--dark-color);
  max-width: 600px;
  margin: 0 auto;
}

.software-categories {
  padding: 80px 0;
  background: var(--white);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--light-color);
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--gradient);
  color: var(--white);
  transform: translateY(-2px);
}

.tab-btn i {
  font-size: 1.3rem;
}

.software-carousel-container {
  max-width: 1000px;
  margin: 0 auto;
}

.software-carousel-container.hidden {
  display: none;
}

.category-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 40px;
}

.software-carousel {
  display: flex;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.carousel-item {
  min-width: 100%;
  transition: transform 0.5s ease;
}

.software-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.software-image {
  position: relative;
  overflow: hidden;
}

.software-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.software-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.software-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.software-content h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.software-content p {
  color: var(--dark-color);
  line-height: 1.6;
  margin-bottom: 20px;
}

.software-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.feature-tag {
  background: var(--primary-color);
  color: var(--light-color);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.software-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.software-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.software-actions {
  display: flex;
  gap: 10px;
}

.btn-demo,
.btn-contact {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-demo {
  background: var(--light-color);
  color: var(--primary-color);
}

.btn-contact {
  background: var(--gradient);
  color: var(--white);
}

.btn-demo:hover,
.btn-contact:hover {
  transform: translateY(-2px);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.carousel-control {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-color);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.carousel-control:hover {
  background: var(--primary-color);
  color: var(--white);
}

.carousel-indicators {
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 163, 232, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Cursos Page Styles */
.cursos-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-color) 100%);
  text-align: center;
}

.cursos-hero-content h1 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.cursos-hero-content p {
  font-size: 1.2rem;
  color: var(--dark-color);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-item .stat-label {
  color: var(--accent-color);
  font-size: 0.9rem;
}

.cursos-filters {
  padding: 40px 0;
  background: var(--white);
  border-bottom: 1px solid var(--light-color);
}

.filters-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
}

.search-box input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid var(--light-color);
  border-radius: 25px;
  font-size: 1rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: var(--light-color);
  border: none;
  border-radius: 20px;
  color: var(--dark-color);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient);
  color: var(--white);
}

.cursos-list {
  padding: 60px 0;
  background: var(--light-color);
  min-height: 70vh;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 10px;
}

.courses-grid::-webkit-scrollbar {
  width: 8px;
}

.courses-grid::-webkit-scrollbar-track {
  background: var(--light-color);
  border-radius: 10px;
}

.courses-grid::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
}

.courses-grid::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.course-card {
  background: var(--white);
  border-radius: 15px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: auto;
  max-height: 520px;
  display: flex;
  flex-direction: column;
}

.course-card .course-image {
  height: 150px;
  overflow: hidden;
}

.course-card .course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card .course-content {
  padding: 15px 0;
}

.course-card .course-description {
  font-size: 0.95rem;
  line-height: 1.5;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-card .course-skills {
  max-height: 50px;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 163, 232, 0.15);
}

.course-card.featured {
  border: 2px solid var(--primary-color);
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.course-image {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-level {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
}

.level-beginner {
  background: #10b981;
}

.level-intermediate {
  background: #f59e0b;
}

.level-advanced {
  background: #ef4444;
}

.course-duration {
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-content {
  padding: 20px;
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.course-header h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 8px;
  flex: 1;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 15px;
}

.stars {
  color: #fbbf24;
  font-size: 0.9rem;
}

.rating-number {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.9rem;
}

.course-description {
  color: var(--dark-color);
  line-height: 1.5;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.course-instructor {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.course-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.skill-tag {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.course-footer {
  border-top: 1px solid var(--light-color);
  padding-top: 20px;
}

.course-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.course-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.course-students {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-color);
  font-size: 0.9rem;
}

.course-actions {
  display: flex;
  gap: 10px;
}

.btn-preview,
.btn-enroll {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-preview {
  background: var(--light-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-enroll {
  background: var(--gradient);
  color: var(--white);
}

.btn-preview:hover,
.btn-enroll:hover {
  transform: translateY(-2px);
}

/* Soporte Page Styles */
.soporte-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-color) 100%);
  text-align: center;
}

.soporte-hero-content h1 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.soporte-hero-content p {
  font-size: 1.2rem;
  color: var(--dark-color);
  max-width: 600px;
  margin: 0 auto 40px;
}

.support-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.assistant-avatar {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 500;
  animation: float 3s ease-in-out infinite;
}

.avatar-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar-image {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
}

.avatar-speech {
  background: white;
  padding: 15px 20px;
  border-radius: 20px 20px 20px 5px;
  box-shadow: var(--shadow);
  max-width: 250px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.avatar-speech p {
  margin: 0;
  color: var(--dark-color);
}

.support-info {
  padding: 60px 0;
  background: var(--white);
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.info-header h2 {
  font-size: 2rem;
  color: var(--primary-color);
}

.info-btn {
  background: var(--light-color);
  color: var(--primary-color);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-btn:hover {
  background: var(--primary-color);
  color: white;
}

.info-panel {
  background: var(--light-color);
  border-radius: 15px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.info-panel.active {
  padding: 30px;
  max-height: 500px;
}

.info-content h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.info-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.info-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.info-note {
  background: rgba(0, 163, 232, 0.1);
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.info-note i {
  color: var(--primary-color);
  margin-top: 2px;
}

.whatsapp-btn {
  background: #25d366;
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  transition: var(--transition);
  font-size: 16px;
}

.whatsapp-btn:hover {
  background: #1da851;
  transform: translateY(-1px);
}

.ticket-form-section {
  padding: 80px 0;
  background: var(--light-color);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.form-progress {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-color);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: var(--transition);
}

.progress-step.active {
  background: var(--primary-color);
  color: white;
}

.progress-step.completed {
  background: #10b981;
  color: white;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.client-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.radio-card {
  cursor: pointer;
}

.radio-card input[type="radio"] {
  display: none;
}

.card-content {
  background: var(--light-color);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.radio-card input[type="radio"]:checked+.card-content {
  background: rgba(0, 163, 232, 0.1);
  border-color: var(--primary-color);
}

.card-content i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.card-content h4 {
  color: var(--primary-color);
  margin-bottom: 8px;
}

.card-content p {
  color: var(--accent-color);
  font-size: 0.9rem;
}

.client-fields {
  margin-top: 20px;
}

.new-client-info {
  margin-bottom: 25px;
}

.info-box {
  background: rgba(37, 211, 102, 0.1);
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid #25d366;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-box i {
  font-size: 2rem;
  color: #25d366;
  margin-top: 5px;
}

.info-box h4 {
  color: var(--primary-color);
  margin-bottom: 8px;
}

.info-box p {
  color: var(--dark-color);
  line-height: 1.5;
  margin-bottom: 10px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--light-color);
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.request-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.request-card {
  cursor: pointer;
}

.request-card input[type="radio"] {
  display: none;
}

.request-card .card-content {
  padding: 20px;
  height: 100%;
}

.file-upload {
  position: relative;
  border: 2px dashed var(--light-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.file-upload:hover {
  border-color: var(--primary-color);
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload-label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--accent-color);
}

.file-upload-label i {
  font-size: 2rem;
}

.file-list {
  margin-top: 15px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--light-color);
  border-radius: 8px;
  margin-bottom: 5px;
}

.file-item i {
  color: var(--primary-color);
}

.file-size {
  color: var(--accent-color);
  font-size: 0.9rem;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--light-color);
}

.btn-prev,
.btn-next,
.btn-submit {
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-prev {
  background: var(--light-color);
  color: var(--primary-color);
}

.btn-next,
.btn-submit {
  background: var(--gradient);
  color: white;
}

.btn-prev:hover,
.btn-next:hover,
.btn-submit:hover {
  transform: translateY(-2px);
}

.error-message {
  background: #fee2e2;
  color: #dc2626;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  display: none;
  align-items: center;
  gap: 10px;
  border-left: 4px solid #dc2626;
}

/* Animaciones mejoradas */
@keyframes rotateClockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateCounterClockwise {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes hexagonGlow {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(0, 163, 232, 0.4), inset 0 0 30px rgba(0, 163, 232, 0.1), 0 0 60px rgba(0, 163, 232, 0.2);
  }

  50% {
    box-shadow: 0 0 50px rgba(0, 163, 232, 0.6), inset 0 0 40px rgba(0, 163, 232, 0.2), 0 0 80px rgba(0, 163, 232, 0.4);
  }
}

@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }

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

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

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(20px, 20px);
  }
}

@keyframes coreRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes coreSweep {
  0% {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes corePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

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

@keyframes ringRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes nodePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.4;
  }
}

@keyframes secondaryPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.3;
  }
}

@keyframes particleFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }

  25% {
    transform: translate(10px, -15px) scale(1.2);
    opacity: 1;
  }

  50% {
    transform: translate(-5px, -25px) scale(0.8);
    opacity: 0.6;
  }

  75% {
    transform: translate(-15px, -10px) scale(1.1);
    opacity: 0.9;
  }
}

@keyframes particleFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }

  33% {
    transform: translate(-12px, 8px) scale(1.3);
    opacity: 1;
  }

  66% {
    transform: translate(8px, -12px) scale(0.9);
    opacity: 0.5;
  }
}

@keyframes particleFloat3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.9;
  }

  20% {
    transform: translate(15px, 5px) scale(0.7);
    opacity: 0.4;
  }

  40% {
    transform: translate(5px, 20px) scale(1.4);
    opacity: 1;
  }

  60% {
    transform: translate(-10px, 15px) scale(1.1);
    opacity: 0.7;
  }

  80% {
    transform: translate(-20px, -5px) scale(0.8);
    opacity: 0.6;
  }
}

@keyframes panelGlow {

  0%,
  100% {
    border-color: rgba(0, 163, 232, 0.4);
    box-shadow: 0 0 10px rgba(0, 163, 232, 0.2);
  }

  50% {
    border-color: rgba(0, 163, 232, 0.8);
    box-shadow: 0 0 20px rgba(0, 163, 232, 0.4);
  }
}

@keyframes barHeight {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(1.5);
  }
}

@keyframes graphPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleX(1);
  }

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

@keyframes codeType {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleX(1);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.1);
  }
}

@keyframes energyWave {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    width: 400px;
    height: 400px;
    opacity: 0;
  }
}

@keyframes pulse {

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

  50% {
    transform: scale(1.05);
  }
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }

  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

@keyframes messageFloat {

  0%,
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  50% {
    opacity: 0.7;
    transform: translateY(-50%) translateX(-5px);
  }
}

@keyframes float {

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

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

/* Efectos hover para interactividad */
.network-node.main-node:hover .node-core {
  transform: scale(1.2);
  box-shadow: 0 0 25px rgba(0, 163, 232, 0.9);
}

.network-node.main-node:hover::after {
  content: attr(data-tech);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 20;
}

/* Overlay para menú móvil */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  /* White overlay instead of black */
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* ========================================================
   [NUEVO] ESTILOS PARA LA VENTANA FLOTANTE DE LOGIN (MODAL)
   ======================================================== */
.login-modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999; /* Por encima de todo, incluyendo el header (z-index: 1000) */
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.login-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.login-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7); /* Fondo oscuro semitransparente fluido */
  backdrop-filter: blur(5px);
}

.login-modal-content {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 450px;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-modal.active .login-modal-content {
  transform: translateY(0);
}

.modal-content.glass-card-admin {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  padding: 30px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content.glass-card-admin {
   opacity: 1;
   transform: translateY(0);
}

.login-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.login-modal-close:hover {
  background: #f1f5f9;
  color: var(--dark-color);
}

.login-modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-modal-header h2 {
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-bottom: 8px;
}

.login-modal-header p {
  color: #64748b;
  font-size: 0.95rem;
}

.login-modal-form .form-group {
  margin-bottom: 20px;
}

.login-modal-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-color);
  font-size: 0.95rem;
}

.login-modal-form input[type="email"],
.login-modal-form input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.login-modal-form input[type="email"]:focus,
.login-modal-form input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 163, 232, 0.1);
}

.login-modal-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  cursor: pointer;
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-modal-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.95rem;
  color: #64748b;
}

.login-modal-footer a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

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

/* RESPONSIVE DESIGN MEJORADO */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .hexagon-outer {
    width: 320px;
    height: 320px;
  }

  .hexagon {
    width: 300px;
    height: 300px;
  }

  .rotating-ring.ring-1 {
    width: 340px;
    height: 340px;
  }

  .rotating-ring.ring-2 {
    width: 370px;
    height: 370px;
  }

  .rotating-ring.ring-3 {
    width: 400px;
    height: 400px;
  }

  .nav {
    width: 70%;
    padding: 12px 40px;
  }

  .nav-menu {
    gap: 40px;
  }
}

@media (max-width: 768px) {

  /* Header móvil optimizado */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
  }

  .logo-container {
    position: static;
    margin: 0;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo i {
    font-size: 1.6rem;
  }

  /* Menú hamburguesa visible */
  .menu-toggle {
    display: flex;
    position: static;
    margin: 0;
    align-self: center;
    margin-top: 3px;
    /* Mover un poco hacia abajo */
  }

  /* [NUEVO] Ajustes del Login Flotante en Móviles */
  .login-modal {
    padding: 15px; /* Evita que el modal toque los bordes de la pantalla */
  }
  
  .login-modal-content {
    padding: 30px 20px; /* Reducimos el padding interno en móviles para ahorrar espacio */
    border-radius: 16px;
  }
  
  .login-modal-header h2 {
    font-size: 1.5rem;
  }

  /* Navegación móvil */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: auto;
    /* Only take the space of the items */
    min-height: 250px;
    max-height: 80vh;
    /* Don't cover entire screen */
    background: #ffffff !important;
    /* Forces white background on mobile */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease;
    z-index: 1001;
    border-radius: 0 0 0 20px;
    /* Slight rounding at bottom */
    margin: 0;
    transform: translateX(100%);
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    gap: 25px;
    width: 100%;
    justify-content: flex-start;
  }

  /* Show the mobile link inside the hamburger menu */
  .mobile-only-link {
    display: block;
    width: 100%;
  }

  .nav-link {
    padding: 15px 25px;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    font-size: 1.1rem;
  }

  /* Hero móvil */
  .hero {
    padding: 100px 0 60px;
    min-height: 90vh;
  }

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

  /* Hero buttons stacked and larger on mobile */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 18px 20px;
    /* Made them taller/longer */
  }

  /* Hide the header action on mobile, will show in menu */
  .header-action {
    display: none;
  }

  .hero-visual {
    justify-content: center;
    height: 300px;
    padding-right: 0;
    order: -1;
  }

  .hexagon-outer {
    width: 280px;
    height: 280px;
  }

  .hexagon {
    width: 260px;
    height: 260px;
  }

  .rotating-ring.ring-1 {
    width: 300px;
    height: 300px;
  }

  .rotating-ring.ring-2 {
    width: 320px;
    height: 320px;
  }

  .rotating-ring.ring-3 {
    width: 340px;
    height: 340px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-slogan {
    font-size: 1.1rem;
  }

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

  /* Botones flotantes móvil */
  .floating-buttons {
    bottom: 20px;
    right: 20px;
    gap: 12px;
  }

  .floating-btn {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }

  .whatsapp-message {
    display: none;
  }

  /* Modal chatbot móvil */
  .chatbot-modal {
    position: fixed;
    bottom: 90px;
    right: 20px;
    left: 20px;
    width: auto;
    max-width: 350px;
    margin: 0 auto;
  }

  /* Secciones móvil */
  .work-together,
  .services,
  .about,
  .process,
  .contact {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  /* Trabajemos Juntos móvil */
  .work-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .work-text h2 {
    font-size: 2rem;
  }

  .work-features {
    justify-content: center;
    gap: 20px;
  }

  .feature {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  /* Servicios móvil - Horizontal Carousel */
  .services-carousel {
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0 5px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
  }

  .services-carousel::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari/Edge */
  }

  .service-card.side-card {
    display: none;
    /* Hide side cards in mobile to save space */
  }

  .service-card.main-card {
    min-width: 100%;
    /* Take full width of carousel */
    width: 100%;
    height: 480px;
    /* Fixed taller height so layout does not snap */
    min-height: 480px;
    order: 0;
    margin: 0;
    scroll-snap-align: center;
  }

  .carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
  }

  .carousel-btn {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    z-index: 10;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

  /* About móvil */
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-visual {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    /* Margen para separar del texto */
  }

  .stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
  }

  .cube {
    width: 150px;
    height: 150px;
  }

  .face {
    width: 150px;
    height: 150px;
    font-size: 2rem;
  }

  .face.front {
    transform: rotateY(0deg) translateZ(75px);
  }

  .face.back {
    transform: rotateY(180deg) translateZ(75px);
  }

  .face.right {
    transform: rotateY(90deg) translateZ(75px);
  }

  .face.left {
    transform: rotateY(-90deg) translateZ(75px);
  }

  .face.top {
    transform: rotateX(90deg) translateZ(75px);
  }

  .face.bottom {
    transform: rotateX(-90deg) translateZ(75px);
  }

  /* Proceso móvil */
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .step {
    max-width: 250px;
  }

  .step-icon {
    width: 80px !important;
    height: 80px !important;
    font-size: 1.8rem !important;
  }

  .step-6 .step-icon {
    background: var(--gradient) !important;
    color: var(--white) !important;
  }

  /* Contacto móvil */
  .contact-info {
    flex-direction: column;
    gap: 20px;
  }

  .contact-item {
    padding: 20px;
  }

  .social-links {
    gap: 15px;
  }

  .social-link {
    min-width: 100px;
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  /* Software page móvil */
  .software-overlay {
    top: 15px;
    right: 15px;
    z-index: 10;
    /* Asegurar que esté visible */
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 163, 232, 0.3);
  }

  .software-hero-content h1,
  .cursos-hero-content h1,
  .soporte-hero-content h1 {
    font-size: 2.5rem;
  }

  .software-hero-content p,
  .cursos-hero-content p,
  .soporte-hero-content p {
    font-size: 1.1rem;
  }

  .hero-stats,
  .support-stats {
    flex-direction: column;
    gap: 30px;
  }

  .category-tabs {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .tab-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .software-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .software-content {
    padding: 25px;
  }

  .software-content h3 {
    font-size: 1.4rem;
  }

  .software-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .software-actions {
    width: 100%;
  }

  .btn-demo,
  .btn-contact {
    flex: 1;
  }

  /* Cursos móvil */
  .filters-container {
    flex-direction: column;
    gap: 20px;
  }

  .search-box {
    max-width: 100%;
  }

  .category-filters {
    justify-content: center;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .course-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-rating {
    margin-left: 0;
    margin-top: 5px;
  }

  .course-info {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  /* Soporte móvil */
  .assistant-avatar {
    display: none;
  }

  .form-container {
    padding: 25px;
    margin: 0 15px;
  }

  .client-type-selector,
  .request-types {
    grid-template-columns: 1fr;
  }

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

  .form-progress {
    gap: 15px;
  }

  .progress-step {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .form-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .btn-prev,
  .btn-next,
  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  /* Prevenir scroll horizontal */
  body,
  html {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {

  /* Ajustes para pantallas muy pequeñas */
  .hero-content h1 {
    font-size: 2rem;
  }

  .hexagon-outer {
    width: 250px;
    height: 250px;
  }

  .hexagon {
    width: 230px;
    height: 230px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .service-card.side-card {
    width: 260px !important;
    height: 180px !important;
  }

  .service-card.main-card {
    width: 280px;
    height: 320px;
  }

  .chatbot-modal {
    height: 400px;
  }

  /* Reducir partículas en pantallas muy pequeñas */
  .particle:nth-child(n + 6) {
    display: none;
  }

  .form-container {
    padding: 20px;
  }

  .progress-step {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

/* --- DISEÑO PREVIEW MEJORADO --- */

/* Separador Vertical Azul Refinado */
.hero-separator {
  width: 4px;
  height: 200px;
  /* Un poco más grande como se pidió */
  background: linear-gradient(to bottom, transparent, var(--primary-color), var(--accent-color), transparent);
  border-radius: 20px;
  opacity: 0.8;
}

/* Imagen con difuminado EXTERIOR (Glow) */
.hero-image {
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
  z-index: 1;

  /* Sombra externa muy difuminada (difuminado por fuera) */
  box-shadow:
    0 0 50px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(0, 163, 232, 0.2);

  filter: contrast(1.05) brightness(1.02);
  animation: imageFloat 6s ease-in-out infinite;
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes imageFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

@media (max-width: 768px) {

  /* Efecto Glassmorphism en el Menú removido para que se funda con el header en móvil */
  .nav {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
  }
}

/* Botón Modernizado */
.cta-button {
  background: linear-gradient(45deg, #00a3e8, #7092bf) !important;
  border: none !important;
  padding: 18px 40px !important;
  border-radius: 30px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  font-size: 0.9rem !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow: 0 15px 30px rgba(0, 163, 232, 0.4) !important;
  background: linear-gradient(45deg, #7092bf, #00a3e8) !important;
}

/* ==================== SISTEMA DE VISTAS ==================== */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* ==================== COMING SOON SECTIONS ==================== */
.coming-soon-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
  background: linear-gradient(135deg, #f0f7ff 0%, #d9eaff 100%);
  position: relative;
  overflow: hidden;
}

.coming-soon-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(90deg, rgba(0, 163, 232, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(0, 163, 232, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
}

.coming-soon-section.cursos-theme {
  background: linear-gradient(135deg, #e8f4fd 0%, #c5e0f5 100%);
}

.coming-soon-container {
  max-width: 800px;
  /* Increased from 500px to make it wider */
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px 40px;
  /* Reduced vertical padding, increased horizontal padding */
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 163, 232, 0.15);
  position: relative;
  z-index: 1;
}

.coming-soon-icon {
  width: 80px;
  /* Reduced from 120px */
  height: 80px;
  /* Reduced from 120px */
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  /* Reduced bottom margin */
  font-size: 2.5rem;
  /* Reduced from 3.5rem */
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

.coming-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #ffa500);
  color: white;
  padding: 6px 20px;
  /* Reduced padding */
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  /* Reduced text size */
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.coming-soon-title {
  font-size: 2rem;
  /* Reduced from 2.8rem */
  color: var(--primary-color);
  margin-bottom: 15px;
  /* Reduced bottom margin */
  font-weight: 700;
}

.coming-soon-description {
  font-size: 1rem;
  /* Reduced from 1.15rem */
  color: var(--dark-color);
  line-height: 1.6;
  /* Tighter line height */
  margin-bottom: 30px;
  /* Reduced bottom margin */
  max-width: 100%;
  /* Take full width of smaller container */
  margin-left: auto;
  margin-right: auto;
}

.coming-soon-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  width: 100%;
}

.cs-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background: var(--light-color);
  border-radius: 15px;
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  transition: var(--transition);
}

.cs-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.cs-feature i {
  font-size: 2rem;
  color: var(--primary-color);
}

.cs-feature span {
  font-weight: 500;
  color: var(--dark-color);
  font-size: 0.95rem;
}

.coming-soon-cta {
  margin-top: 30px;
}

.notify-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.notify-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 163, 232, 0.35);
}

.notify-btn i {
  font-size: 1.2rem;
}

/* Responsive para Coming Soon */
@media (max-width: 768px) {
  .coming-soon-container {
    padding: 30px 20px;
    margin: 0 15px;
  }

  .coming-soon-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin: 0 auto 15px;
  }

  .coming-soon-title {
    font-size: 1.6rem;
  }

  .coming-soon-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .coming-soon-features {
    gap: 10px;
    margin-bottom: 25px;
  }

  .cs-feature {
    min-width: 100px;
    padding: 12px;
  }
}

/* ========================================================
   RESPONSIVE FIXES (STRICTLY SCOPED TO MOBILE/TABLETS)
   ======================================================== */

@media (max-width: 992px) {

  /* Contact section layout */
  .contacto-layout {
    flex-direction: column;
    gap: 40px;
  }

  /* Footer Layout */
  .footer-links {
    gap: 60px;
  }
}

@media (max-width: 768px) {

  /* Center footer logo and links */
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

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

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

  .footer-links {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .link-column {
    align-items: center;
  }

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

  /* Contact section grid stack */
  .contact-cards-grid,
  .half-grid-horizontal,
  .client-type-selector,
  .request-types,
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Cursos container */
  .courses-master-detail {
    flex-direction: column;
    width: 100% !important;
  }

  .courses-sidebar {
    width: 100% !important;
    height: auto !important;
    max-height: 400px;
  }

  .course-main-view {
    height: auto !important;
    min-height: 50vh;
  }

  /* Sobre Nosotros - Nuestra Esencia Tech fix */
  .sobre-nosotros {
    padding: 60px 0;
    /* Reduced padding for mobile to allow space for the cube */
  }

  .sn-layout {
    display: flex;
    flex-direction: column-reverse;
    /* Cube (sn-image) above text */
    text-align: center;
    gap: 40px;
    margin-top: 40px;
    /* added spacing around top of the image */
  }

  .nuestra-esencia-title {
    text-align: center;
  }

  .sn-stats {
    flex-direction: row;
    /* Horizontal */
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    /* Keep on one line */
    gap: 15px;
    /* Tighter gap to fit all 3 */
  }

  .stat-item-sn h3 {
    font-size: 24px !important;
    /* Smaller text so 3 fit horizontally */
    margin-bottom: 2px !important;
  }

  .stat-item-sn p {
    font-size: 11px !important;
    /* Smaller label */
  }

  /* Center Trabajemos Juntos title */
  .work-text .section-title {
    text-align: center !important;
  }

  /* Software mobile adjustments: hide image, keep icon overlay in center */
  .software-image {
    height: auto !important;
    padding-top: 30px;
    display: flex !important;
    justify-content: center !important;
  }
  
  .software-image img {
    display: none !important;
  }

  .software-overlay {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    width: 60px !important;
    height: 60px !important;
  }

  /* Hide chatbot message explicitly */
  #avatarSpeech {
    display: none !important;
  }

  /* Prevent horizontal scrolling on specific widgets and text */
  .container {
    padding: 0 15px !important;
    max-width: 100vw !important;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .contact-main-title,
  .nuestra-esencia-title,
  .section-title.esencia-style {
    font-size: 2rem !important;
  }

  .floating-buttons {
    bottom: 15px;
    right: 15px;
  }
}

/* ========================================================
   ESTILOS PARA SISTEMA DE LOGIN Y DASHBOARD
   ======================================================== */

/* Menú de usuario logueado */
.user-logged-menu {
    position: relative;
}

.nav-icon-link.logged-in {
    color: #10b981;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 20px;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.user-dropdown-header .user-name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 3px;
}

.user-dropdown-header .user-role {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

.user-dropdown-body {
    padding: 10px 0;
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.user-dropdown .dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.user-dropdown .dropdown-item.logout {
    color: #dc2626;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    margin-top: 5px;
    padding-top: 15px;
}

.user-dropdown .dropdown-item.logout:hover {
    background: #fef2f2;
}

/* Dashboard del cliente */
.dashboard-hero {
    padding: 100px 0 50px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-color) 100%);
    text-align: center;
}

.dashboard-hero-content p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-stats .stat-card {
    transition: transform 0.3s ease;
}

.dashboard-stats .stat-card:hover {
    transform: translateY(-5px);
}

.dashboard-section .empty-state {
    background: var(--light-color);
    border-radius: 16px;
}

.ticket-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ticket-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

/* Responsive para dashboard */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr !important;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .user-dropdown {
        right: -50px;
    }
}

/* ========== AGENDA WIDGET ========== */
.agenda-widget {
    max-width: 100%;
}

.agenda-view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 8px 16px;
    border: 2px solid #1e3a5f;
    background: white;
    color: #1e3a5f;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn.active {
    background: #1e3a5f;
    color: white;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-arrow:hover {
    background: rgba(255,255,255,0.25);
}

.calendar-month {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.calendar-grid {
    margin-bottom: 20px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 10px 0;
    border-bottom: 2px solid #1e3a5f;
    margin-bottom: 10px;
}

.calendar-header span {
    font-size: 12px;
    font-weight: 700;
    color: #1e3a5f;
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-days .day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-days .day:hover:not(.empty) {
    background: #f1f5f9;
}

.calendar-days .day.empty {
    cursor: default;
}

.calendar-days .day.today {
    background: #f97316;
    color: white;
    font-weight: 700;
}

.calendar-days .day.has-event {
    color: #4875CF;
    font-weight: 600;
}

.calendar-days .day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: #4875CF;
    border-radius: 50%;
}

.calendar-days .day {
    position: relative;
}

.next-appointment {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-bottom: 15px;
}

.next-appointment h4 {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.appointment-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #4875CF;
}

.appointment-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.appointment-info strong {
    font-size: 15px;
    color: #1e3a5f;
}

.appointment-info span {
    font-size: 13px;
    color: #64748b;
}

.appointment-time {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
}

.view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4875CF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px;
    transition: all 0.2s;
}

.view-all-link:hover {
    color: #1e3a5f;
}

/* ========== MARKETING TABS ========== */
.social-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.social-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.social-tab i {
    font-size: 18px;
}

.social-tab:hover {
    border-color: var(--tab-color);
    color: var(--tab-color);
    transform: translateY(-2px);
}

.social-tab.active {
    background: var(--tab-color);
    border-color: var(--tab-color);
    color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.marketing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.marketing-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.marketing-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.marketing-stat-card .stat-info h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.marketing-stat-card .stat-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}