/* ==========================================================================
   Tema "dw" — estilo inspirado en webdoxclm.com
   Se carga después de style.css y solo actúa con <body class="theme-dw">.
   Referencia: Albert Sans, azul marino #001133 → #1d2f74, verde #4ad8a1,
   títulos #0d1c77, texto #52617a, fondos lavanda #f8f9ff, botones 4.5px.
   ========================================================================== */

.theme-dw {
  --dw-navy-900: #001133;
  --dw-navy-700: #1d2f74;
  --dw-blue-800: #0d1c77;
  --dw-indigo: #3a4ef2;
  --dw-violet: #8f8bff;
  --dw-accent: #38bdf8;
  --dw-accent-dark: #0ea5e9;
  --dw-lavender: #f8f9ff;
  --dw-lavender-2: #ebedff;
  --dw-border: #e3e6f8;

  --color-primary: var(--dw-blue-800);
  --color-primary-light: #3342b3;
  --color-primary-dark: var(--dw-navy-900);
  --color-accent: var(--dw-indigo);
  --color-accent-light: var(--dw-lavender-2);
  --color-surface: var(--dw-lavender);
  --color-text-main: var(--dw-navy-900);
  --color-text-muted: #52617a;

  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.25s ease;
  --shadow-sm: 0 2px 8px rgba(13, 28, 119, 0.06);
  --shadow-md: 0 12px 30px -12px rgba(13, 28, 119, 0.2);
  --shadow-lg: 0 30px 60px -20px rgba(0, 17, 51, 0.5);

  --font-main: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.theme-dw,
.theme-dw button,
.theme-dw input,
.theme-dw select {
  font-family: var(--font-main);
}

/* ---------- Tipografía ---------- */
.theme-dw h1,
.theme-dw h2,
.theme-dw h3,
.theme-dw h4 {
  color: var(--dw-blue-800);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.theme-dw h2 {
  font-weight: 800;
}

.theme-dw p {
  font-size: 1.0625rem;
  line-height: 1.6;
}

.theme-dw .eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--dw-indigo);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Botones ---------- */
.theme-dw .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid transparent;
  box-shadow: none;
}

.theme-dw .btn::before {
  display: none;
}

.theme-dw .btn-primary,
.theme-dw .nav-links li a.btn {
  background: linear-gradient(135deg, var(--dw-accent-dark) 0%, var(--dw-indigo) 100%);
  background-origin: border-box;
  border: 0;
  padding: calc(0.6rem + 2px) calc(1.25rem + 2px);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(58, 78, 242, 0.55);
}

.theme-dw .btn-primary:hover,
.theme-dw .nav-links li a.btn:hover {
  background: linear-gradient(135deg, var(--dw-accent) 0%, #5566ff 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -10px rgba(58, 78, 242, 0.7);
}

.theme-dw .btn-secondary {
  background: transparent;
  border-color: var(--dw-blue-800);
  color: var(--dw-blue-800);
  box-shadow: none;
}

.theme-dw .btn-secondary:hover {
  background: var(--dw-blue-800);
  border-color: var(--dw-blue-800);
  color: #fff;
  transform: translateY(-1px);
}

.theme-dw .btn-block {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1.25rem;
}

/* ---------- Navbar (transparente sobre el hero, sólido al scroll) ---------- */
.theme-dw .navbar {
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  max-width: none;
  padding: 1rem 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.theme-dw .navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(0, 17, 51, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -10px rgba(0, 0, 0, 0.5);
}

.theme-dw .navbar .container {
  max-width: 1200px;
  padding: 0 2rem;
}

.theme-dw .logo img {
  height: 42px;
  filter: brightness(0) invert(1);
}

.theme-dw .nav-links {
  gap: 0.5rem;
}

.theme-dw .nav-links li a:not(.btn) {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
}

.theme-dw .nav-links li a:not(.btn):hover {
  color: var(--dw-accent);
  background: rgba(255, 255, 255, 0.08);
}

.theme-dw .hamburger span {
  background-color: #fff;
}

/* Mega menú */
.theme-dw .dropdown-content {
  border-radius: 12px;
  border: 1px solid var(--dw-border);
  box-shadow: 0 24px 48px -16px rgba(0, 17, 51, 0.35);
  left: -230px;
}

.theme-dw .dropdown-content::before {
  border-color: var(--dw-border);
}

.theme-dw .mega-menu-item {
  border-radius: 8px !important;
}

.theme-dw .mega-menu-item:hover {
  background: var(--dw-lavender) !important;
  border-color: var(--dw-border);
  transform: none;
  box-shadow: none;
}

.theme-dw .nav-links li a.mega-menu-item {
  color: inherit;
}

.theme-dw .mega-text h4 {
  color: var(--dw-blue-800);
  letter-spacing: 0;
}

/* ---------- Hero ---------- */
.theme-dw .hero {
  padding-top: 9rem;
  padding-bottom: 6rem;
  background: linear-gradient(180deg, var(--dw-navy-900) 0%, var(--dw-navy-700) 100%);
  color: #fff;
}

.theme-dw .hero::before {
  width: 1100px;
  height: 1100px;
  top: -500px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(143, 139, 255, 0.28) 0%, rgba(0, 17, 51, 0) 65%);
}

.theme-dw .hero::after {
  width: 800px;
  height: 800px;
  bottom: -450px;
  right: -200px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, rgba(0, 17, 51, 0) 70%);
}

.theme-dw .hero .container {
  flex-direction: column;
  text-align: center;
  gap: 4rem;
}

.theme-dw .hero-content {
  max-width: 860px;
  flex: none;
}

.theme-dw .hero-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.theme-dw .hero-tag i {
  color: var(--dw-accent);
}

.theme-dw .hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.theme-dw .hero h1 strong {
  font-weight: 800;
}

.theme-dw .hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.theme-dw .hero-cta {
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.theme-dw .hero .btn-secondary {
  border-color: #fff;
  color: #fff;
}

.theme-dw .hero .btn-secondary:hover {
  background: #fff;
  color: var(--dw-navy-900);
}

.theme-dw .hero-visual {
  flex: none;
  width: 100%;
  max-width: 980px;
  perspective: none;
}

.theme-dw .hero-image-wrapper {
  transform: none;
  animation: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05), 0 40px 80px -20px rgba(143, 139, 255, 0.45);
  backdrop-filter: none;
}

.theme-dw .float-badge {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 20px 40px -12px rgba(0, 17, 51, 0.5);
}

.theme-dw .badge-icon {
  background: var(--dw-lavender-2);
  color: var(--dw-indigo);
  border-radius: 10px;
}

.theme-dw .badge-text h4 {
  color: var(--dw-blue-800);
  letter-spacing: 0;
}

/* ---------- Clientes ---------- */
.theme-dw .clients-carousel {
  padding: 3rem 0;
  background: #fff;
  border-bottom: 1px solid var(--dw-border);
}

.theme-dw .clients-container {
  max-width: 100%;
  padding: 0;
}

.theme-dw .trusted-title {
  color: #8f91a2;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0 1.5rem;
}

/* ---------- Video / GRC ---------- */
.theme-dw .video-section {
  background: #fff;
  padding: 6rem 0;
}

.theme-dw .video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.theme-dw .video-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(13, 28, 119, 0.4);
}

.theme-dw .video-container iframe {
  display: block;
}

.theme-dw .video-content h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.theme-dw .video-content p {
  margin-bottom: 2rem;
}

.theme-dw .video-features {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.theme-dw .video-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-dw .video-feature span {
  font-weight: 700;
  color: var(--dw-blue-800);
  line-height: 1.3;
}

.theme-dw .video-feature-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--dw-lavender-2);
  color: var(--dw-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ---------- Módulos ---------- */
.theme-dw .solutions {
  background: linear-gradient(180deg, #ddE1fd 0%, #fff 38%);
  background-image: linear-gradient(180deg, #dde1fd 0%, #ffffff 38%);
  padding-bottom: 7rem;
}

.theme-dw .solutions::before,
.theme-dw .solutions::after,
.theme-dw .bg-elements {
  display: none;
}

.theme-dw .section-header {
  margin-bottom: 3rem;
}

.theme-dw .detailed-module-row {
  background: #fff;
  backdrop-filter: none;
  border: 1px solid var(--dw-border);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(13, 28, 119, 0.04);
}

.theme-dw .detailed-module-row::before {
  display: none;
}

.theme-dw .detailed-module-row:hover {
  transform: translateY(-4px);
  border-color: var(--dw-violet);
  box-shadow: 0 24px 48px -20px rgba(58, 78, 242, 0.3);
}

.theme-dw .module-divider {
  display: none;
}

.theme-dw .module-icon {
  width: 56px;
  height: 56px;
  background: var(--dw-lavender-2);
  color: var(--dw-indigo);
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  margin-bottom: 1.5rem;
}

.theme-dw .module-icon::after {
  display: none;
}

.theme-dw .detailed-module-row:hover .module-icon {
  background: var(--dw-indigo);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.theme-dw .detailed-module-row:hover .module-main h3 {
  color: var(--dw-indigo);
}

.theme-dw .module-main h3 {
  font-weight: 700;
}

.theme-dw .module-link {
  margin-top: 1rem;
  padding: 0.5rem 0;
  background: none;
  border-radius: 0;
  color: var(--dw-indigo);
  font-weight: 700;
}

.theme-dw .detailed-module-row:hover .module-link {
  background: none;
  box-shadow: none;
  color: var(--dw-blue-800);
}

.theme-dw .detailed-module-row:hover .module-link i {
  color: inherit;
}

.theme-dw .data-sources span {
  background: var(--dw-lavender);
  border-color: var(--dw-border);
  color: #52617a;
  border-radius: 6px;
}

.theme-dw .data-sources span:hover {
  background: var(--dw-lavender-2);
  border-color: var(--dw-violet);
  color: var(--dw-blue-800);
  transform: none;
  box-shadow: none;
}

.theme-dw .module-subfeatures {
  border-left-color: var(--dw-border);
}

.theme-dw .subfeature h4 {
  color: var(--dw-blue-800);
  letter-spacing: 0;
}

.theme-dw .subfeature h4::before {
  background: var(--dw-accent);
}

/* ---------- Beneficios ---------- */
.theme-dw .features {
  background: #fff;
}

.theme-dw .feature-list {
  margin-top: 2.5rem;
}

.theme-dw .feature-list li:hover {
  background: var(--dw-lavender);
}

.theme-dw .feature-list-icon {
  background: var(--dw-lavender-2);
  color: var(--dw-indigo);
  border-radius: 10px;
}

.theme-dw .feature-list strong {
  color: var(--dw-blue-800);
}

.theme-dw .feature-list-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.theme-dw .feature-mockup {
  background: linear-gradient(160deg, var(--dw-navy-900), var(--dw-navy-700));
  border: 0;
  border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(13, 28, 119, 0.6);
}

.theme-dw .feature-mockup::before {
  background: radial-gradient(circle, rgba(143, 139, 255, 0.35) 0%, rgba(0, 17, 51, 0) 70%);
}

.theme-dw .central-node {
  background: linear-gradient(135deg, var(--dw-violet), var(--dw-indigo));
  box-shadow: 0 0 0 20px rgba(143, 139, 255, 0.15);
}

.theme-dw .orbit-node {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--dw-accent);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

/* ---------- Testimonios ---------- */
.theme-dw .testimonials {
  background: var(--dw-lavender);
  padding: 6rem 0;
}

.theme-dw .testimonial-card {
  border: 1px solid var(--dw-border);
  border-radius: 12px;
  box-shadow: none;
}

.theme-dw .testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--dw-violet);
  box-shadow: var(--shadow-md);
}

.theme-dw .quote-icon {
  color: var(--dw-violet);
  opacity: 1;
}

.theme-dw .testimonial-content p {
  font-style: normal;
  color: var(--dw-navy-900);
}

.theme-dw .testimonial-author {
  border-top-color: var(--dw-border);
}

.theme-dw .author-avatar {
  background: var(--dw-lavender-2);
  color: var(--dw-indigo);
}

.theme-dw .author-info strong {
  color: var(--dw-blue-800);
}

/* ---------- CTA + formulario ---------- */
.theme-dw .cta-section {
  background: linear-gradient(to left bottom, var(--dw-violet), var(--dw-indigo));
  padding: 6rem 0;
}

.theme-dw .cta-section::before {
  background: radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
  animation: none;
}

.theme-dw .cta-text h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

.theme-dw .cta-benefits i {
  color: var(--dw-accent);
}

.theme-dw .cta-form-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0, 17, 51, 0.5);
}

.theme-dw .cta-form-box h3 {
  color: var(--dw-blue-800);
}

.theme-dw .form-group label {
  color: var(--dw-blue-800);
}

.theme-dw .form-group input,
.theme-dw .form-group select {
  border: 1px solid var(--dw-border);
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  color: var(--dw-navy-900);
}

.theme-dw .form-group input:focus,
.theme-dw .form-group select:focus {
  border-color: var(--dw-indigo);
  box-shadow: 0 0 0 3px rgba(58, 78, 242, 0.15);
  transform: none;
}

.theme-dw .phone-row {
  display: flex;
  gap: 8px;
}

.theme-dw .phone-row select {
  width: 110px;
  flex-shrink: 0;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.theme-dw .phone-row input {
  flex-grow: 1;
  min-width: 0;
}

.theme-dw .form-status {
  display: none;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.theme-dw .footer {
  background: var(--dw-navy-900);
}

.theme-dw .footer-col h4 {
  color: #fff;
  letter-spacing: 0.02em;
}

.theme-dw .footer-col ul li a:hover {
  color: var(--dw-accent);
}

.theme-dw .footer-col ul li {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.theme-dw .footer-social {
  margin-top: 1.5rem;
  display: flex;
  gap: 15px;
  align-items: center;
}

.theme-dw .footer-social a {
  color: #fff;
  font-size: 1.25rem;
}

.theme-dw .footer-social .footer-whatsapp {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-dw .footer-social .footer-whatsapp:hover {
  opacity: 0.8;
}

.theme-dw .footer-social .footer-whatsapp i {
  font-size: 1.25rem;
  color: #25d366;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .theme-dw .video-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .theme-dw .video-features {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .theme-dw .navbar {
    background: var(--dw-navy-900);
    padding: 0.75rem 0;
  }

  .theme-dw .navbar .container {
    padding: 0 1.25rem;
  }

  .theme-dw .nav-links {
    background: var(--dw-navy-900);
    gap: 0;
  }

  .theme-dw .nav-links li a.btn {
    margin: 1rem 0;
    display: flex;
  }

  .theme-dw .dropdown-content {
    background: transparent;
    border: 0;
  }

  .theme-dw .mega-text h4 {
    color: #fff;
  }

  .theme-dw .mega-text p {
    color: rgba(255, 255, 255, 0.65);
  }

  .theme-dw .hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .theme-dw .float-badge {
    display: none;
  }

  .theme-dw .video-features {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Módulos con imagen de apoyo ---------- */
.theme-dw .detailed-modules {
  max-width: 1120px;
  gap: 2rem;
}

.theme-dw .detailed-module-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem 3.5rem;
  align-items: center;
  padding: 2rem;
}

.theme-dw .module-visual {
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
}

.theme-dw .module-visual img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.theme-dw .detailed-module-row:hover .module-visual img {
  transform: scale(1.03);
}

.theme-dw .module-visual { grid-column: 1; grid-row: 1; }
.theme-dw .module-main { grid-column: 2; grid-row: 1; }
.theme-dw .module-subfeatures { grid-row: 2; }

.theme-dw .detailed-module-row.is-reverse {
  grid-template-columns: 1fr 1.05fr;
}

.theme-dw .detailed-module-row.is-reverse .module-visual { grid-column: 2; }
.theme-dw .detailed-module-row.is-reverse .module-main { grid-column: 1; }

.theme-dw .module-main {
  flex: none;
}

.theme-dw .module-subfeatures {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 2rem;
  padding: 1.5rem 0 0;
  border-left: 0;
  border-top: 1px solid var(--dw-border);
}

.theme-dw .module-subfeatures .subfeature {
  flex: 1;
}

@media (max-width: 900px) {
  .theme-dw .detailed-module-row {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .theme-dw .detailed-module-row.is-reverse {
    grid-template-columns: 1fr;
  }

  .theme-dw .module-visual,
  .theme-dw .module-main,
  .theme-dw .module-subfeatures,
  .theme-dw .detailed-module-row.is-reverse .module-visual,
  .theme-dw .detailed-module-row.is-reverse .module-main {
    grid-column: 1;
    grid-row: auto;
  }

  .theme-dw .module-subfeatures {
    flex-direction: column;
    gap: 1.25rem;
  }
}

/* ---------- Hero: efectos y elementos flotantes ---------- */
.theme-dw .hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.theme-dw .hero-chips {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.theme-dw .hero-chip {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
  animation: chipFloat 7s ease-in-out infinite;
}

.theme-dw .hero-chip i { color: var(--dw-accent); }

.theme-dw .chip-1 { top: 22%; left: 6%;  animation-duration: 6s; }
.theme-dw .chip-2 { top: 14%; right: 9%; animation-duration: 8s; animation-delay: -2s; width: 46px; height: 46px; }
.theme-dw .chip-3 { top: 46%; left: 3%;  animation-duration: 9s; animation-delay: -4s; width: 44px; height: 44px; }
.theme-dw .chip-4 { top: 40%; right: 4%; animation-duration: 7s; animation-delay: -1s; }
.theme-dw .chip-5 { top: 8%;  left: 22%; animation-duration: 10s; animation-delay: -3s; width: 42px; height: 42px; }
.theme-dw .chip-6 { top: 30%; right: 22%; animation-duration: 8.5s; animation-delay: -5s; width: 40px; height: 40px; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}

.theme-dw .badge-3 { top: 28%; left: -70px; animation: floatObj 6s ease-in-out infinite; animation-delay: -1s; }
.theme-dw .badge-4 { bottom: 14%; right: -60px; animation: floatObj 8s ease-in-out infinite; animation-delay: -3s; }

.theme-dw .badge-icon-ok { background: #e3f7ec; color: #1d9a5f; }
.theme-dw .badge-icon-alert { background: #fff3d6; color: #c98a0b; }

/* El contenido del hero queda por encima del canvas y los chips */
.theme-dw .hero .container { z-index: 2; }

@media (max-width: 1100px) {
  .theme-dw .badge-3,
  .theme-dw .badge-4 { display: none; }
}

@media (max-width: 768px) {
  .theme-dw .hero-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-dw .hero-chip,
  .theme-dw .float-badge { animation: none; }
}

/* ---------- Carrusel de clientes (cantidad dinámica, vía --count) ---------- */
.theme-dw .carousel-track {
  --slide-w: 220px;
  width: calc(var(--slide-w) * var(--count, 7) * 2);
  animation: clientsScroll calc(var(--count, 7) * 4s) linear infinite;
}

.theme-dw .carousel-slide {
  width: var(--slide-w);
}

.theme-dw .carousel-slide img {
  height: 70px;
  max-width: 150px;
}

.theme-dw .clients-carousel:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes clientsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(var(--slide-w) * var(--count, 7) * -1)); }
}

@media (prefers-reduced-motion: reduce) {
  .theme-dw .carousel-track { animation: none; }
}

/* ==========================================================================
   Secciones inferiores del home
   ========================================================================== */

/* ---------- Clientes: bordes con desvanecido ---------- */
.theme-dw .clients-container {
  position: relative;
}

.theme-dw .clients-container::before,
.theme-dw .clients-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.theme-dw .clients-container::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.theme-dw .clients-container::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }

/* ---------- Video / GRC ---------- */
.theme-dw .video-section {
  background: linear-gradient(180deg, #fff 0%, var(--dw-lavender) 100%);
}

.theme-dw .video-container {
  position: relative;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px var(--dw-border), 0 40px 80px -30px rgba(13, 28, 119, 0.45);
}

.theme-dw .video-grid { position: relative; }

.theme-dw .video-grid::before {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 139, 255, 0.28), transparent 70%);
  z-index: -1;
}

/* ---------- Cifras ---------- */
.theme-dw .stats-band {
  padding: 0;
  background: linear-gradient(120deg, var(--dw-navy-900), var(--dw-navy-700));
  position: relative;
  overflow: hidden;
}

.theme-dw .stats-band::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 139, 255, 0.3), transparent 70%);
}

.theme-dw .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  position: relative;
}

.theme-dw .stat {
  text-align: center;
  padding: 0 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.theme-dw .stat:first-child { border-left: 0; }

.theme-dw .stat strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff 30%, var(--dw-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-dw .stat span {
  display: block;
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* ---------- Módulos: tabs ---------- */
.theme-dw .solutions {
  background: linear-gradient(180deg, #dde1fd 0%, #f8f9ff 45%, #fff 100%);
  padding-top: 6rem;
}

.theme-dw .module-tabs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto 2.5rem;
  max-width: 900px;
}

.theme-dw .module-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--dw-border);
  border-radius: 10px;
  background: #fff;
  color: var(--dw-blue-800);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-dw .module-tab i {
  color: var(--dw-indigo);
  transition: color 0.25s ease;
}

.theme-dw .module-tab:hover {
  border-color: var(--dw-violet);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -12px rgba(58, 78, 242, 0.5);
}

.theme-dw .module-tab.active {
  background: linear-gradient(135deg, var(--dw-accent-dark), var(--dw-indigo));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(58, 78, 242, 0.7);
}

.theme-dw .module-tab.active i { color: #fff; }

.theme-dw .module-tab:focus-visible {
  outline: 3px solid rgba(58, 78, 242, 0.4);
  outline-offset: 2px;
}

.theme-dw .module-panels {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.theme-dw .module-panels.tabs-ready .module-panel { display: none; }

.theme-dw .module-panels.tabs-ready .module-panel.active {
  display: grid;
  animation: panelIn 0.45s ease both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.theme-dw .module-panel {
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(13, 28, 119, 0.25);
}

.theme-dw .module-panel:hover { transform: none; }

.theme-dw .module-panel .module-visual { grid-column: 1; grid-row: 1; }
.theme-dw .module-panel .module-main { grid-column: 2; grid-row: 1; }

.theme-dw .module-panel .module-main h3 {
  font-size: 1.8rem;
}

/* ---------- Beneficios ---------- */
.theme-dw .features { padding: 6rem 0; }

.theme-dw .features-content h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }

.theme-dw .feature-list li {
  border: 1px solid transparent;
}

.theme-dw .feature-list li:hover {
  background: #fff;
  border-color: var(--dw-border);
  box-shadow: 0 14px 30px -18px rgba(13, 28, 119, 0.35);
}

/* ---------- Testimonios ---------- */
.theme-dw .testimonials {
  position: relative;
  background: linear-gradient(180deg, var(--dw-lavender), #fff);
}

.theme-dw .testimonial-card {
  position: relative;
  overflow: hidden;
}

.theme-dw .testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--dw-accent), var(--dw-indigo));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.theme-dw .testimonial-card:hover::before { transform: scaleX(1); }

/* ---------- FAQ ---------- */
.theme-dw .faq {
  background: #fff;
  padding: 6rem 0;
}

.theme-dw .faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.theme-dw .faq-intro h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.theme-dw .faq-list {
  display: grid;
  gap: 0.75rem;
}

.theme-dw .faq-item {
  border: 1px solid var(--dw-border);
  border-radius: 12px;
  background: #fff;
  transition: all 0.25s ease;
}

.theme-dw .faq-item[open] {
  background: var(--dw-lavender);
  border-color: var(--dw-violet);
  box-shadow: 0 16px 30px -22px rgba(58, 78, 242, 0.6);
}

.theme-dw .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.25rem 1.15rem 1.4rem;
  font-weight: 700;
  color: var(--dw-blue-800);
  position: relative;
}

.theme-dw .faq-item summary::-webkit-details-marker { display: none; }

.theme-dw .faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dw-lavender-2);
  color: var(--dw-indigo);
  font-size: 1.2rem;
  font-weight: 600;
}

.theme-dw .faq-item[open] summary::after {
  content: '\2212';
  background: var(--dw-indigo);
  color: #fff;
}

.theme-dw .faq-item p {
  padding: 0 1.4rem 1.3rem;
  margin: 0;
  font-size: 1rem;
}

/* ---------- CTA: detalle decorativo ---------- */
.theme-dw .cta-section::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .theme-dw .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .theme-dw .stat:nth-child(3) { border-left: 0; }
  .theme-dw .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  /* En móvil todos los módulos quedan a la vista (grilla de 2 columnas, sin scroll horizontal) */
  .theme-dw .module-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.75rem;
  }

  .theme-dw .module-tab {
    justify-content: flex-start;
    padding: 0.7rem 0.75rem;
    font-size: 0.85rem;
    line-height: 1.25;
    white-space: normal;
    text-align: left;
  }

  .theme-dw .module-tab i {
    flex-shrink: 0;
    width: 1.1em;
    text-align: center;
  }

  /* Si la cantidad es impar, el último ocupa el ancho completo */
  .theme-dw .module-tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .theme-dw .module-tab:hover { transform: none; }
  .theme-dw .module-panel { padding: 1.5rem; }

  .theme-dw .module-panel .module-visual,
  .theme-dw .module-panel .module-main { grid-column: 1; grid-row: auto; }
}

@media (max-width: 520px) {
  .theme-dw .clients-container::before,
  .theme-dw .clients-container::after { width: 50px; }
}

/* ==========================================================================
   Tipografía unificada (mismo sistema que el hero) + iconos de apoyo
   ========================================================================== */

/* Títulos: ligero + palabra clave en negrita, igual que el h1 del hero */
.theme-dw h2 {
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.theme-dw h2 strong,
.theme-dw h1 strong {
  font-weight: 800;
}

.theme-dw h3 {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.theme-dw .section-header h2,
.theme-dw .video-content h2,
.theme-dw .features-content h2,
.theme-dw .faq-intro h2,
.theme-dw .cta-text h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}

.theme-dw .eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

/* ---------- Iconos: baldosa con degradado y brillo ---------- */
.theme-dw .video-feature-icon,
.theme-dw .module-icon,
.theme-dw .feature-list-icon {
  position: relative;
  background: linear-gradient(135deg, var(--dw-accent-dark) 0%, var(--dw-indigo) 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 24px -10px rgba(58, 78, 242, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.theme-dw .video-feature-icon::after,
.theme-dw .module-icon::after,
.theme-dw .feature-list-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
  opacity: 1;
  z-index: auto;
}

.theme-dw .detailed-module-row:hover .module-icon {
  background: linear-gradient(135deg, var(--dw-accent-dark) 0%, var(--dw-indigo) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 18px 30px -10px rgba(58, 78, 242, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.theme-dw .module-icon { border-radius: 14px; }

/* Video: iconos como tarjetas */
.theme-dw .video-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.theme-dw .video-feature {
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--dw-border);
  border-radius: 14px;
  box-shadow: 0 10px 24px -18px rgba(13, 28, 119, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.theme-dw .video-feature:hover {
  transform: translateY(-3px);
  border-color: var(--dw-violet);
  box-shadow: 0 18px 34px -18px rgba(58, 78, 242, 0.55);
}

.theme-dw .video-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.35rem;
}

.theme-dw .video-feature span {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.theme-dw .video-feature small {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

/* Beneficios: iconos más grandes */
.theme-dw .feature-list-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  font-size: 1.1rem;
}

/* Mega menú: iconos con brillo sutil */
.theme-dw .mega-icon {
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

@media (max-width: 1024px) {
  .theme-dw .video-features {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .theme-dw .video-features { grid-template-columns: 1fr; }
}

/* ---------- Beneficios: imagen de fondo ---------- */
.theme-dw .features {
  background: #fff url('../img/bg-tecnologia.svg') center / cover no-repeat;
}

/* ==========================================================================
   Hero: video central + personas de apoyo
   ========================================================================== */
.theme-dw .hero {
  padding-bottom: 0;
}

.theme-dw .hero .container {
  gap: 3rem;
}

.theme-dw .hero-visual {
  position: relative;
  max-width: 1180px;
  padding-top: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Arco luminoso detrás del escenario */
.theme-dw .hero-visual::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 120%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 50% 40%, rgba(143, 139, 255, 0.35), rgba(143, 139, 255, 0) 55%);
  pointer-events: none;
  z-index: 0;
}

.theme-dw .hero-video {
  position: relative;
  z-index: 3;
  width: 60%;
  padding: 12px 12px 0;
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -20px 80px -20px rgba(143, 139, 255, 0.6);
}

.theme-dw .video-lite,
.theme-dw .hero-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.theme-dw .video-lite {
  position: relative;
  padding: 0;
  cursor: pointer;
  background: var(--dw-navy-900);
}

.theme-dw .video-lite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.theme-dw .video-lite:hover img {
  transform: scale(1.03);
  filter: brightness(0.9);
}

.theme-dw .video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--dw-accent-dark), var(--dw-indigo));
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.18), 0 20px 40px -10px rgba(0, 17, 51, 0.6);
  transition: transform 0.3s ease;
}

.theme-dw .video-play i { margin-left: 6px; }

.theme-dw .video-play::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: playPulse 2.2s ease-out infinite;
}

.theme-dw .video-lite:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }

@keyframes playPulse {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}

/* Personas a los lados (las interiores quedan parcialmente detrás del video) */
.theme-dw .hero-person {
  position: absolute;
  bottom: 0;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 0;
}

.theme-dw .hero-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-dw .person-1 { left: 2%;  width: 15%; height: 62%; z-index: 1; }
.theme-dw .person-2 { left: 12%; width: 16%; height: 80%; z-index: 2; }
.theme-dw .person-3 { right: 12%; width: 16%; height: 80%; z-index: 2; }
.theme-dw .person-4 { right: 2%;  width: 15%; height: 62%; z-index: 1; }

.theme-dw .hero-person-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.35), transparent 60%),
    linear-gradient(160deg, #2a3b9a, var(--dw-navy-900));
}

.theme-dw .hero-person-placeholder i {
  font-size: 2rem;
  color: var(--dw-accent);
}

.theme-dw .hero-person-placeholder span {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.85;
}

/* Badges flotantes en los costados (sin tapar el video) */
.theme-dw .hero-visual .float-badge { z-index: 4; }
.theme-dw .hero-visual .badge-3 { top: 6%;    left: -2%;  right: auto; bottom: auto; }
.theme-dw .hero-visual .badge-1 { bottom: 10%; left: -1%;  right: auto; top: auto; }
.theme-dw .hero-visual .badge-2 { top: 12%;   right: -2%; left: auto;  bottom: auto; }
.theme-dw .hero-visual .badge-4 { bottom: 16%; right: -1%; left: auto;  top: auto; }

/* Texto de las tarjetas de relleno hacia el lado visible */
.theme-dw .person-2 .hero-person-placeholder { align-items: flex-start; padding-right: 45%; text-align: left; }
.theme-dw .person-3 .hero-person-placeholder { align-items: flex-end; padding-left: 45%; text-align: right; }

/* Sección inferior: captura del software en lugar del video */
.theme-dw .video-container img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1100px) {
  .theme-dw .hero-video { width: 68%; }
  .theme-dw .person-1,
  .theme-dw .person-4 { display: none; }
  .theme-dw .person-2 { left: 0; }
  .theme-dw .person-3 { right: 0; }
}

@media (max-width: 768px) {
  .theme-dw .hero-visual { padding-top: 0; }
  .theme-dw .hero-video { width: 100%; padding: 8px 8px 0; }
  .theme-dw .hero-person { display: none; }
  .theme-dw .video-play { width: 68px; height: 68px; font-size: 1.4rem; }
}

/* ---------- Clientes: grilla de logos (reemplaza el carrusel) ---------- */
.theme-dw .clients {
  background: #fff;
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--dw-border);
}

.theme-dw .clients-title {
  max-width: 820px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 300;
  color: #52617a;
  line-height: 1.35;
}

.theme-dw .clients-title strong {
  color: var(--dw-blue-800);
  font-weight: 800;
}

.theme-dw .clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1120px;
  margin: 0 auto;
  row-gap: 1.5rem;
}

.theme-dw .clients-grid li {
  flex: 0 0 calc(100% / 7);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 0 0.85rem;
}

.theme-dw .clients-grid img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.theme-dw .clients-grid li:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .theme-dw .clients-grid li { flex-basis: calc(100% / 4); }
}

@media (max-width: 640px) {
  .theme-dw .clients { padding: 3.5rem 0; }
  .theme-dw .clients-grid li { flex-basis: calc(100% / 3); height: 64px; padding: 0 0.75rem; }
  .theme-dw .clients-grid img { max-height: 44px; }
}

/* ==========================================================================
   Páginas de módulo (/<slug>/)
   ========================================================================== */

/* ---------- Hero en dos columnas ---------- */
.theme-dw .hero--module {
  padding-top: 9rem;
  padding-bottom: 6rem;
}

.theme-dw .hero--module .container {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 4rem;
}

.theme-dw .hero--module .hero-content {
  flex: 1 1 0;
  max-width: 560px;
}

.theme-dw .hero--module h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.25rem);
}

.theme-dw .hero--module p {
  margin-left: 0;
  font-size: 1.125rem;
}

.theme-dw .hero--module .hero-cta {
  justify-content: flex-start;
}

.theme-dw .hero-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease, gap 0.2s ease;
}

.theme-dw .hero-back:hover {
  color: #fff;
  gap: 0.75rem;
}

.theme-dw .hero--module .hero-tag {
  display: flex;
  width: fit-content;
}

.theme-dw .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.theme-dw .hero-tags li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
}

.theme-dw .hero-tags i {
  color: var(--dw-accent);
  margin-right: 0.35rem;
}

.theme-dw .hero--module .hero-visual {
  flex: 1 1 0;
  max-width: 600px;
  padding-top: 0;
  display: block;
}

.theme-dw .hero--module .hero-visual::before {
  bottom: auto;
  top: 50%;
  width: 140%;
  transform: translate(-50%, -50%);
  border: 0;
}

.theme-dw .module-hero-frame {
  position: relative;
  z-index: 2;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -30px rgba(143, 139, 255, 0.6);
}

.theme-dw .module-hero-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.theme-dw .hero--module .hero-visual .badge-1 { bottom: -24px; left: -40px; top: auto; right: auto; }
.theme-dw .hero--module .hero-visual .badge-2 { top: 40px; right: -40px; left: auto; bottom: auto; }

/* ---------- Características ---------- */
.theme-dw .module-details {
  padding: 6rem 0;
  background: #fff url('../img/bg-tecnologia.svg') center / cover no-repeat;
}

.theme-dw .detail-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.theme-dw .detail-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--dw-border);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(13, 28, 119, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.theme-dw .detail-card:hover {
  transform: translateY(-6px);
  border-color: var(--dw-violet);
  box-shadow: 0 24px 48px -20px rgba(58, 78, 242, 0.35);
}

.theme-dw .detail-card-icon {
  position: relative;
  width: 54px;
  height: 54px;
  margin-bottom: 1.5rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--dw-accent-dark) 0%, var(--dw-indigo) 100%);
  box-shadow: 0 12px 24px -10px rgba(58, 78, 242, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.theme-dw .detail-card-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 55%);
}

.theme-dw .detail-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.theme-dw .detail-card p {
  font-size: 1rem;
  margin: 0;
}

.theme-dw .module-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--dw-navy-900), var(--dw-navy-700));
}

.theme-dw .module-highlight {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.theme-dw .module-highlight > i {
  color: var(--dw-accent);
  font-size: 1.3rem;
  margin-top: 2px;
}

.theme-dw .module-highlight h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  letter-spacing: 0;
}

.theme-dw .module-highlight p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Otros módulos ---------- */
.theme-dw .related-modules {
  padding: 6rem 0;
  background: var(--dw-lavender);
}

.theme-dw .related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.theme-dw .related-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 3rem 1.4rem 1.4rem;
  background: #fff;
  border: 1px solid var(--dw-border);
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.theme-dw .related-card:hover {
  transform: translateY(-4px);
  border-color: var(--dw-violet);
  box-shadow: 0 18px 34px -20px rgba(58, 78, 242, 0.5);
}

.theme-dw .related-card h4 {
  color: var(--dw-blue-800);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0;
}

.theme-dw .related-card p {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
}

.theme-dw .related-arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dw-indigo);
  opacity: 0.4;
  transition: opacity 0.25s ease, right 0.25s ease;
}

.theme-dw .related-card:hover .related-arrow {
  opacity: 1;
  right: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .theme-dw .hero--module .container {
    flex-direction: column;
    text-align: center;
  }

  .theme-dw .hero--module .hero-content { max-width: 680px; }
  .theme-dw .hero--module .hero-tag { margin-left: auto; margin-right: auto; }
  .theme-dw .hero--module .hero-cta,
  .theme-dw .hero-tags { justify-content: center; }
  .theme-dw .hero--module .hero-visual { width: 100%; }
  .theme-dw .detail-cards,
  .theme-dw .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .theme-dw .hero--module { padding-top: 7rem; padding-bottom: 4rem; }
  .theme-dw .detail-cards,
  .theme-dw .related-grid,
  .theme-dw .module-highlights { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Páginas internas (nosotros, contacto, IA, integraciones, privacidad)
   ========================================================================== */
.theme-dw {
  --color-border: var(--dw-border);
  --color-secondary: var(--dw-indigo);
  --color-text-dark: var(--dw-navy-900);
}

.theme-dw .hero--page {
  padding-top: 10rem;
  padding-bottom: 6rem;
}

.theme-dw .hero--page .container > div {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.theme-dw .hero--page h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 300;
}

.theme-dw .hero--page h1 strong {
  font-weight: 800;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #fff;
}

.theme-dw .hero--page p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.theme-dw .hero--page .hero-cta {
  justify-content: center;
}

/* ---------- Hero: legibilidad del texto sobre la red animada ---------- */
/* La red se desvanece detrás del bloque de texto para que no "ensucie" las letras */
.theme-dw .hero-canvas {
  opacity: 0.75;
  -webkit-mask-image: radial-gradient(ellipse 48% 38% at 50% 30%, transparent 0%, transparent 55%, #000 100%);
  mask-image: radial-gradient(ellipse 48% 38% at 50% 30%, transparent 0%, transparent 55%, #000 100%);
}

/* Halo central más suave: aclaraba el fondo y bajaba el contraste del texto */
.theme-dw .hero::before {
  background: radial-gradient(circle, rgba(143, 139, 255, 0.16) 0%, rgba(0, 17, 51, 0) 65%);
}

.theme-dw .hero h1,
.theme-dw .hero h1 strong {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 17, 51, 0.55);
}

.theme-dw .hero h1 {
  font-weight: 400;
}

.theme-dw .hero-content p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 12px rgba(0, 17, 51, 0.6);
}

/* En páginas con hero en dos columnas, la red se desvanece detrás del texto (izquierda) */
.theme-dw .hero--module .hero-canvas {
  -webkit-mask-image: radial-gradient(ellipse 40% 55% at 25% 50%, transparent 0%, transparent 50%, #000 100%);
  mask-image: radial-gradient(ellipse 40% 55% at 25% 50%, transparent 0%, transparent 50%, #000 100%);
}

/* El contenido del hero se muestra de inmediato (sin esperar al observer del scroll):
   evita que el texto se vea "lavado" mientras carga y mejora el LCP. */
.theme-dw .hero .fade-in {
  opacity: 1;
  transform: none;
  transition: none;
  animation: heroIn 0.6s ease-out both;
}

.theme-dw .hero .hero-visual.fade-in {
  animation-delay: 0.15s;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-dw .hero .fade-in { animation: none; }
}

/* Hero más oscuro y sin destello detrás del texto */
.theme-dw .hero {
  background: linear-gradient(180deg, #000c26 0%, #0a1850 100%);
}

.theme-dw .hero::before {
  display: none;
}

.theme-dw .hero-canvas {
  opacity: 0.55;
}

.theme-dw .hero-visual::before {
  background: radial-gradient(circle at 50% 60%, rgba(143, 139, 255, 0.12), rgba(143, 139, 255, 0) 50%);
  border-color: rgba(255, 255, 255, 0.06);
}

.theme-dw .hero::after {
  opacity: 0.5;
}

/* Campo trampa anti-bots: fuera de la vista y del lector de pantalla */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
