/* ==========================================================================
   CONSULTORÍA ESTRATÉGICA DIGITAL — Peak Site Studio
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }

/* ===== VARIABLES ===== */
:root {
  --primary: #0a0f2c;
  --accent: #00d4ff;
  --accent2: #0099ff;
  --bg-light: #f8fafd;
  --bg-dark: #0a0f2c;
  --text-light: #1e2937;
  --text-dark: #f1f5f9;
  --text-soft-light: #64748b;
  --text-soft-dark: #94a3b8;
  --card-bg-light: #ffffff;
  --card-bg-dark: rgba(255,255,255,0.06);
  --border-light: #e2e8f0;
  --border-dark: rgba(255,255,255,0.12);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  font-weight: 400;
}
body.dark { background: var(--bg-dark); color: var(--text-dark); }

.container { width: 90%; max-width: 1100px; margin: auto; }
section { padding: 80px 0; }

/* ===== HEADER / NAV ===== */
.header {
  position: sticky; top: 0; z-index: 9999;
  background: rgba(255,255,255,0.95);
  padding: 15px 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}
body.dark .header {
  background: rgba(10,15,44,0.95);
  border-bottom: 1px solid var(--border-dark);
}
.nav { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 15px; }
nav { display: flex; align-items: center; gap: 15px; flex: 1; justify-content: flex-end; }
nav a { text-decoration: none; color: var(--primary); font-weight: 600; }
body.dark nav a { color: #fff; }

.logo { height: 28px; width: auto; flex-shrink: 0; transition: transform 0.3s ease; }
.logo:hover { transform: scale(1.05); }
.brand { display: flex; align-items: center; gap: 5px; text-decoration: none; color: inherit; }
.brand-name {
  font-weight: 700; font-size: 16px; letter-spacing: 0; line-height: 1; color: inherit;
}
body.dark .brand-name {
  background: linear-gradient(90deg,#ffffff,#a0b8ff);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ===== THEME BUTTON ===== */
.theme-toggle {
  height: 32px; width: 32px;
  border: 1px solid var(--border-light);
  border-radius: 6px; background: none; cursor: pointer;
  transition: 0.3s; color: var(--primary);
}
body.dark .theme-toggle { border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.theme-toggle:hover { background: rgba(0,212,255,0.08); }

/* ===== LANG SWITCH ===== */
.lang-switch { position: relative; display: inline-block; margin-left: 12px; z-index: 100; }
.lang-current {
  display: flex !important; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 10px;
  background: #0f1629; color: #fff;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  border: 2px solid transparent !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
  transition: all 0.2s ease !important; outline: none !important;
}
.lang-current:hover {
  background: #1a2338 !important;
  border: 2px solid #00d4ff !important;
  box-shadow: 0 0 0 4px rgba(0,212,255,0.25), 0 6px 20px rgba(0,212,255,0.45) !important;
}
.lang-switch:hover .lang-current { border: 2px solid transparent !important; box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important; }
.lang-menu {
  position: absolute; top: 100%; right: 0; margin-top: 0;
  background: #1f252f; border: 1px solid #444; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: none; min-width: 180px; padding: 8px 0; z-index: 9999;
}
.lang-switch:hover .lang-menu { display: block; }
.flag-wrapper { display: inline-flex; padding: 2px; background: transparent; border: none; }
.lang-current img, .lang-option img { width: 26px; height: 17px; object-fit: cover; border-radius: 3px; }
.arrow { font-size: 19px; line-height: 1; color: #fff; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; color: #eee; text-decoration: none; font-size: 15px;
}
.lang-option:hover { background: #2a323f; }

/* ===== MEGA MENU ===== */
.desktop-nav { flex: 1; display: flex; gap: 10px; justify-content: flex-end; }
.nav-right { display: flex; align-items: center; gap: 15px; }
.nav-item { position: relative; display: inline-block; }
.nav-link {
  text-decoration: none; color: inherit; font-weight: 600;
  padding: 12px 14px !important; border-radius: 8px;
  transition: background 0.25s ease;
  display: inline-flex; align-items: center; gap: 4px;
  height: 46px; line-height: 1;
}
.nav-link:hover { background: rgba(0,212,255,0.08); }
.chevron { font-size: 0.68em; transition: transform 0.3s ease; position: relative; top: -1px; }
.desktop-nav a {
  display: inline-flex !important; align-items: center !important;
  height: 46px !important; padding: 12px 14px !important;
}
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 15px; opacity: 0; visibility: hidden;
  transition: all 0.3s ease; z-index: 10000; pointer-events: none; width: 100vw;
}
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; }
.mega-menu-content {
  background: white; border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.22);
  border: 1px solid #e2e8f0;
  margin: 0 auto; max-width: 1180px; width: 95%; padding: 50px 48px;
}
body.dark .mega-menu-content { background: #0f1629; border-color: rgba(255,255,255,0.09); }
.mega-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 52px; }
.mega-column { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mega-column h4 {
  font-size: 14.8px; font-weight: 700; color: #00d4ff;
  margin-bottom: 28px; letter-spacing: 0.5px;
  text-transform: uppercase; line-height: 1.25; flex-shrink: 0;
}
.mega-column a {
  display: block; padding: 2px 6px;
  color: var(--text-light); text-decoration: none;
  font-size: 15.4px; line-height: 1.4; flex-shrink: 0;
}
body.dark .mega-column a { color: var(--text-dark); }
.mega-column a:hover { color: #00d4ff; padding-left: 12px; }
@media (max-width: 991px) { .mega-menu { display: none !important; } }

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 34px; color: var(--primary); cursor: pointer; padding: 5px 10px;
}
body.dark .mobile-menu-btn { color: #fff; }
.mobile-menu {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  z-index: 9999999; display: none; justify-content: flex-end;
}
.mobile-menu.active { display: flex; }
.mobile-menu-links {
  position: fixed !important; top: 0 !important; right: 0 !important;
  width: 82vw !important; max-width: 300px !important; height: 100vh !important;
  padding: 80px 25px 40px 30px !important;
  background: #0a0f2c !important; z-index: 9999999999 !important;
}
.close-menu-btn {
  position: fixed; top: 18px; right: 18px; font-size: 32px; color: #fff;
  background: rgba(0,0,0,0.4); border: none; border-radius: 8px;
  padding: 6px 10px; cursor: pointer; z-index: 9999999999 !important;
}
.mobile-link {
  display: block; color: #fff; font-size: 1.1rem; padding: 16px 0;
  text-align: left; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:active { background: rgba(0,212,255,0.12); }

@media (max-width: 991px) {
  .desktop-nav, .nav-right, .header .lang-switch { display: none !important; }
  .mobile-menu-btn { display: block; }
  .header { position: relative; z-index: 100; }
  .mobile-menu { z-index: 999999 !important; }
  .mobile-menu-links { z-index: 1000000 !important; box-shadow: -15px 0 40px rgba(0,0,0,0.5); }
  .close-menu-btn { z-index: 1000001 !important; }
  body.menu-open { overflow: hidden; }
  .mobile-theme-btn {
    display: block !important; height: 38px; width: 38px;
    font-size: 1.2rem; margin-left: 8px;
    position: relative !important; z-index: 999999 !important; pointer-events: auto !important;
  }
  .desktop-only.nav-right { display: none !important; }
  .theme-toggle.mobile-theme-btn {
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1); color: #fff;
  }
  body.light .theme-toggle.mobile-theme-btn {
    border-color: var(--border-light); background: rgba(0,0,0,0.08); color: var(--primary);
  }
}
@media (min-width: 992px) {
  .mobile-menu, .mobile-menu-btn, .mobile-theme-btn { display: none !important; }
}

/* Mobile lang */
@media (max-width: 991px) {
  .mobile-lang-container { margin-top: 35px; padding-top: 25px; border-top: 1px solid rgba(128,128,128,0.15); display: flex; justify-content: center; }
  .mobile-lang-switch { position: relative; width: 100%; max-width: 200px; }
  .mobile-lang-switch .lang-current {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 12px 20px;
    background: rgba(128,128,128,0.08); border-radius: 10px;
    font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.3s ease;
  }
  body.dark .mobile-lang-switch .lang-current { background: rgba(255,255,255,0.06); }
  .mobile-lang-switch .arrow { font-size: 0.8rem; transition: transform 0.3s ease; }
  .mobile-lang-switch.active .arrow { transform: rotate(180deg); }
  .mobile-lang-switch .lang-menu {
    display: none; background: rgba(128,128,128,0.05); border-radius: 10px;
    margin-top: 8px; overflow: hidden; border: 1px solid rgba(128,128,128,0.1);
  }
  body.dark .mobile-lang-switch .lang-menu { background: rgba(255,255,255,0.03); }
  .mobile-lang-switch.active .lang-menu { display: block; }
  .mobile-lang-switch .lang-option {
    display: flex; align-items: center; gap: 12px; padding: 14px 20px;
    color: inherit; text-decoration: none; font-size: 0.95rem; font-weight: 500;
    transition: background 0.2s ease;
  }
  .mobile-lang-switch .lang-option:not(:last-child) { border-bottom: 1px solid rgba(128,128,128,0.08); }
  .mobile-lang-switch .lang-option:hover { background: rgba(128,128,128,0.12); }
  .mobile-lang-switch .flag-wrapper { display: inline-flex; align-items: center; width: 20px; }
  .mobile-lang-switch .flag-wrapper img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
}

/* Lang light mode */
body:not(.dark) .header .lang-current {
  background: #fff !important; color: #0a0f2c !important;
  border: 2px solid transparent !important;
  box-shadow: 0 8px 25px rgba(10,15,44,0.08) !important;
  transition: all 0.3s ease !important;
}
body:not(.dark) .header .lang-current .arrow { color: #0a0f2c !important; }
body:not(.dark) .lang-current:hover,
body:not(.dark) .lang-switch:hover .lang-current {
  background: #fff !important; border: 2px solid #00d4ff !important;
  box-shadow: 0 0 0 4px rgba(0,212,255,0.2), 0 10px 30px rgba(0,212,255,0.35) !important;
}
body:not(.dark) .lang-menu {
  background: #fff !important; border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 15px 40px rgba(10,15,44,0.1) !important; padding: 6px 0 !important;
}
body:not(.dark) .lang-menu .lang-option { color: #1e2937 !important; font-weight: 500 !important; }
body:not(.dark) .lang-menu .lang-option:hover { background: #f1f5f9 !important; color: #0099ff !important; }

/* ===== FOOTER ===== */
.footer-pro {
  background: #080b14; color: #aaa;
  padding: 80px 0 40px; margin: 0;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 40px; margin-bottom: 50px;
}
.footer-pro h4 { color: white; margin-bottom: 15px; font-size: 14px; }
.footer-pro a {
  display: block; text-decoration: none; color: #888;
  font-size: 14px; margin-bottom: 10px; transition: 0.3s;
}
.footer-pro a:hover { color: #00d4ff; }
.footer-bottom {
  border-top: 1px solid #222; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}
body:not(.dark) .footer-pro { background: #f8fafd !important; color: #475569 !important; }
body:not(.dark) .footer-pro h4 { color: #1e2937 !important; }
body:not(.dark) .footer-pro a { color: #64748b !important; }
body:not(.dark) .footer-pro a:hover { color: #0f172a !important; }
body:not(.dark) .footer-bottom { border-top-color: #e2e8f0 !important; color: #64748b !important; }

/* ===== SCROLL REVEAL ===== */
.fade-up, .fade-left, .fade-right {
  opacity: 0; transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25,0.1,0.25,1);
}
.fade-up.visible, .fade-left.visible, .fade-right.visible {
  opacity: 1; transform: translateY(0);
}
.fade-left { transform: translateX(-60px); }
.fade-right { transform: translateX(60px); }
.fade-up.delay { transition-delay: 0.1s; }
.fade-up.delay2 { transition-delay: 0.2s; }
.fade-up.delay3 { transition-delay: 0.3s; }

/* ==========================================================================
   ESTILOS EXCLUSIVOS PÁGINA CONSULTORÍA ESTRATÉGICA DIGITAL
   ========================================================================== */

.ced-gradient-text {
  background: linear-gradient(90deg, #00d4ff, #0099ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== HERO ===== */
.ced-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #050820 0%, #0a0f2c 50%, #0d1a3d 100%);
  color: #fff; padding: 160px 20px 130px; text-align: center;
}
.ced-hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.ced-orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  animation: cedFloat 14s ease-in-out infinite;
}
.ced-orb-1 { width: 480px; height: 480px; background: #00d4ff; top: -180px; left: -140px; }
.ced-orb-2 { width: 520px; height: 520px; background: #0099ff; bottom: -220px; right: -160px; animation-delay: -7s; }
@keyframes cedFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(30px,-40px) scale(1.08); }
}
.ced-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
.ced-hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.ced-badge {
  display: inline-block;
  padding: 8px 20px; border-radius: 50px;
  background: rgba(0,212,255,0.1); color: #00d4ff;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.5px;
  border: 1px solid rgba(0,212,255,0.3);
  margin-bottom: 28px; backdrop-filter: blur(10px);
}
.ced-hero h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 4rem; line-height: 1.05; font-weight: 700;
  color: #fff; margin: 0 0 24px;
}
.ced-hero-sub {
  font-size: 1.25rem; line-height: 1.6;
  color: #cbd5e1 !important; max-width: 700px; margin: 0 auto 40px;
}
.ced-hero-ctas {
  display: flex; gap: 18px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 70px;
}
.btn-primary {
  background: linear-gradient(90deg,#00f5ff,#0099ff);
  color: #0a0f2c; padding: 18px 44px; border-radius: 60px;
  font-size: 1.05rem; font-weight: 700; text-decoration: none;
  display: inline-block; transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,212,255,0.35);
}
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,245,255,0.45); }
.ced-ghost-btn {
  padding: 17px 32px; border-radius: 60px;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff; text-decoration: none; font-weight: 600;
  transition: all 0.3s ease; backdrop-filter: blur(10px);
}
.ced-ghost-btn:hover { border-color: #00d4ff; color: #00d4ff; transform: translateY(-3px); }
.ced-hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 30px;
  max-width: 700px; margin: 0 auto;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1);
}
.ced-hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.ced-hero-stats strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem; font-weight: 700;
  background: linear-gradient(90deg,#00d4ff,#0099ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ced-hero-stats span { color: #94a3b8; font-size: 0.9rem; }

/* ===== INTRO ===== */
.ced-intro { padding: 100px 0 40px; }
.ced-intro-wrap { max-width: 880px; margin: 0 auto; text-align: center; }
.ced-intro h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem; line-height: 1.2; margin-bottom: 24px; font-weight: 700;
}
.ced-intro p { font-size: 1.15rem; line-height: 1.75; }

/* ===== SECTIONS ===== */
.ced-section { padding: 90px 0; }
.ced-alt { background: rgba(0,212,255,0.03); }
body.dark .ced-alt { background: rgba(0,212,255,0.04); }

.ced-section-head { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.ced-eyebrow {
  display: inline-block; font-size: 0.85rem;
  font-weight: 700; color: #00d4ff;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.ced-section-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem; line-height: 1.2; font-weight: 700; margin-bottom: 18px;
}
.ced-lead { font-size: 1.1rem; line-height: 1.7; }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 70px; align-items: center;
}
.split h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.3rem; line-height: 1.2; margin-bottom: 20px; font-weight: 700;
}
.split p { margin-bottom: 16px; font-size: 1.05rem; }

/* Visual card estrategia */
.ced-visual-card {
  background: linear-gradient(145deg, #0f1629 0%, #0a0f2c 100%);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 20px; padding: 30px;
  box-shadow: 0 30px 70px -20px rgba(0,212,255,0.25);
  position: relative; overflow: hidden;
}
.ced-visual-card::before {
  content: ""; position: absolute; top: -50%; right: -50%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.15), transparent 60%);
}
.ced-visual-header {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 18px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.ced-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.ced-dot:first-child { background: #ff5f57; }
.ced-dot:nth-child(2) { background: #febc2e; }
.ced-dot:nth-child(3) { background: #28c840; }
.ced-visual-title {
  margin-left: 12px; color: #94a3b8;
  font-size: 0.85rem; font-family: "Space Grotesk", monospace;
}
.ced-checklist { list-style: none; padding: 0; margin: 0; position: relative; }
.ced-checklist li {
  color: #cbd5e1; padding: 12px 0; font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease, color 0.3s ease;
}
.ced-checklist li:last-child { border-bottom: none; }
.ced-checklist li:hover { color: #00d4ff; transform: translateX(6px); }

/* ===== FEATURES SEO ===== */
.ced-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; margin-bottom: 50px;
}
.ced-feature {
  background: var(--card-bg-light);
  border: 1px solid var(--border-light);
  border-radius: 18px; padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.25,0.1,0.25,1);
  position: relative; overflow: hidden;
}
body.dark .ced-feature { background: var(--card-bg-dark); border-color: var(--border-dark); }
.ced-feature::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 18px; padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(0,212,255,0.4), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s ease;
}
.ced-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -15px rgba(0,212,255,0.25);
  border-color: rgba(0,212,255,0.4);
}
.ced-feature:hover::after { opacity: 1; }
.ced-feature-icon {
  font-size: 2rem; margin-bottom: 18px;
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(0,153,255,0.08));
  border: 1px solid rgba(0,212,255,0.2);
}
.ced-feature h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem; margin-bottom: 10px; font-weight: 700;
}
.ced-feature p { font-size: 0.98rem; line-height: 1.6; margin: 0; }

.ced-result-banner {
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(0,153,255,0.05));
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 16px; padding: 26px 34px; text-align: center;
}
.ced-result-banner p { margin: 0; font-size: 1.08rem; color: var(--text-light); }
body.dark .ced-result-banner p { color: var(--text-dark); }
.ced-result-banner strong { color: #00d4ff; }

/* ===== SECURITY GRID ===== */
.ced-security-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
}
.ced-sec-card {
  position: relative;
  background: var(--card-bg-light); border: 1px solid var(--border-light);
  border-radius: 18px; padding: 34px 28px 28px;
  transition: all 0.4s ease; overflow: hidden;
}
body.dark .ced-sec-card { background: var(--card-bg-dark); border-color: var(--border-dark); }
.ced-sec-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg,#00d4ff,#0099ff);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s ease;
}
.ced-sec-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px -15px rgba(0,212,255,0.22); }
.ced-sec-card:hover::before { transform: scaleY(1); }
.ced-sec-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem; font-weight: 700; color: #00d4ff;
  letter-spacing: 1px; margin-bottom: 12px; display: inline-block;
}
.ced-sec-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem; margin-bottom: 10px; font-weight: 700;
}
.ced-sec-card p { font-size: 0.97rem; line-height: 1.6; margin: 0; }

/* ===== FUNNEL VISUAL ===== */
.ced-journey-visual { display: flex; justify-content: center; }
.ced-funnel {
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 12px;
}
.ced-funnel-step {
  padding: 22px 26px; border-radius: 14px; color: #fff;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}
.ced-funnel-step:hover { transform: translateX(8px); box-shadow: 0 12px 30px rgba(0,212,255,0.3); }
.ced-funnel-step span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 1.1rem; letter-spacing: 1px;
}
.ced-funnel-step small { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.ced-tofu  { background: linear-gradient(135deg,#00d4ff,#0099ff); width: 100%; }
.ced-mofu  { background: linear-gradient(135deg,#0099ff,#0066cc); width: 88%; margin-left: 6%; }
.ced-bofu  { background: linear-gradient(135deg,#0066cc,#0a4b8f); width: 76%; margin-left: 12%; }
.ced-loyal { background: linear-gradient(135deg,#0a4b8f,#0a0f2c); width: 64%; margin-left: 18%; }

/* ===== TIMELINE ===== */
.ced-timeline {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 30px; position: relative;
}
.ced-timeline::before {
  content: ""; position: absolute;
  top: 26px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.4), transparent);
}
.ced-tl-item { text-align: center; position: relative; z-index: 1; }
.ced-tl-num {
  width: 54px; height: 54px; margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg,#00d4ff,#0099ff);
  color: #0a0f2c; font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(0,212,255,0.35);
  transition: transform 0.3s ease;
}
.ced-tl-item:hover .ced-tl-num { transform: scale(1.12) rotate(6deg); }
.ced-tl-item h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem; margin-bottom: 8px; font-weight: 700;
}
.ced-tl-item p { font-size: 0.95rem; line-height: 1.55; margin: 0; }

/* ===== FINAL CTA ===== */
.final-cta {
  background: #ffffff; padding: 120px 20px;
  text-align: center; margin: 60px 0 0;
}
body.dark .final-cta {
  background: linear-gradient(135deg,#0d153a,#0a0f2c);
  border-top: 1px solid var(--border-dark);
}
.final-cta-content { max-width: 780px; margin: 0 auto; }
.final-cta h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem; line-height: 1.2; margin-bottom: 24px;
  color: #0a0f2c; font-weight: 700;
}
body.dark .final-cta h2 { color: #fff; }
.final-cta p {
  font-size: 1.2rem; line-height: 1.6;
  color: #475569; max-width: 680px; margin: 0 auto 40px;
}
body.dark .final-cta p { color: #94a3b8; }
.btn-big {
  display: inline-block;
  padding: 18px 44px; font-size: 1.1rem; font-weight: 700;
  border-radius: 50px;
  background: linear-gradient(135deg,#00d4ff,#0099ff);
  color: #0a0f2c; text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,212,255,0.3);
}
.btn-big:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,212,255,0.45); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .ced-features, .ced-security-grid { grid-template-columns: repeat(2,1fr); }
  .ced-timeline { grid-template-columns: repeat(2,1fr); gap: 40px; }
  .ced-timeline::before { display: none; }
  .split { grid-template-columns: 1fr; gap: 45px; }
}
@media (max-width: 768px) {
  .ced-hero { padding: 110px 20px 80px; }
  .ced-hero h1 { font-size: 2.4rem; }
  .ced-hero-sub { font-size: 1.05rem; }
  .ced-hero-stats { grid-template-columns: 1fr; gap: 20px; }
  .ced-hero-stats strong { font-size: 1.8rem; }
  .ced-intro { padding: 60px 0 20px; }
  .ced-intro h2, .ced-section-head h2, .split h2, .final-cta h2 { font-size: 1.75rem !important; }
  .ced-section { padding: 60px 0; }
  .ced-features, .ced-security-grid, .ced-timeline { grid-template-columns: 1fr; }
  .ced-hero-ctas { flex-direction: column; align-items: stretch; }
  .btn-primary, .ced-ghost-btn, .btn-big {
    width: 100%; max-width: 340px; margin: 8px auto; text-align: center; box-sizing: border-box;
  }
  .ced-funnel-step, .ced-tofu, .ced-mofu, .ced-bofu, .ced-loyal { width: 100% !important; margin-left: 0 !important; }
  .final-cta { padding: 70px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 35px !important; }
  .footer-pro { padding: 60px 20px 40px !important; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ==========================================================================
   AJUSTES ESPECÍFICOS PARA MODO CLARO (WHITE THEME)
   ========================================================================== */

/* 1. Ajuste del HERO para fondo claro */
body:not(.dark) .ced-hero {
    background: #ffffff !important;
    color: #1e2937 !important;
}

body:not(.dark) .ced-hero h1 {
    color: #0a0f2c !important;
}

body:not(.dark) .ced-hero-sub {
    color: #475569 !important;
}

/* Ajuste de colores en estadísticas del Hero */
body:not(.dark) .ced-hero-stats {
    border-top: 1px solid #e2e8f0 !important;
}

body:not(.dark) .ced-hero-stats strong {
    background: linear-gradient(90deg, #0099ff, #0055ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body:not(.dark) .ced-hero-stats span {
    color: #64748b !important;
}

/* Ajuste botones Hero para modo claro */
body:not(.dark) .ced-ghost-btn {
    border: 1.5px solid #cbd5e1 !important;
    color: #1e2937 !important;
}

body:not(.dark) .ced-ghost-btn:hover {
    border-color: #0099ff !important;
    color: #0099ff !important;
}

/* 2. Ajuste del CTA FINAL para fondo claro */
body:not(.dark) .final-cta {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

body:not(.dark) .final-cta h2 {
    color: #0a0f2c !important;
}

body:not(.dark) .final-cta p {
    color: #475569 !important;
}

/* 3. Asegurar contraste en tarjetas generales en modo claro */
body:not(.dark) .ced-feature,
body:not(.dark) .ced-sec-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

body:not(.dark) .ced-feature h3,
body:not(.dark) .ced-sec-card h3 {
    color: #0a0f2c !important;
}

body:not(.dark) .ced-feature p,
body:not(.dark) .ced-sec-card p {
    color: #475569 !important;
}