/* ===== Variables ===== */
:root {
  --blue-dark: #0c1222;
  --blue-mid: #1e293b;
  --blue-soft: #334155;
  --blue-card: #0f172a;
  --yellow: #facc15;
  --yellow-hover: #eab308;
  --yellow-soft: #fef08a;
  --yellow-glow: rgba(250, 204, 21, 0.35);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.15);
  --red-soft: #f87171;
  --red-soft-bg: rgba(248, 113, 113, 0.12);
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.06);
  --shadow-btn: 0 4px 14px 0 var(--yellow-glow);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-btn: 14px;
  --transition: 0.3s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
html, body {
  background: radial-gradient(1200px 600px at 20% 10%, rgba(0, 140, 255, 0.18), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(255, 200, 0, 0.10), transparent 55%),
              linear-gradient(180deg, #060b16 0%, #050915 45%, #040814 100%);
  background-attachment: fixed;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Scroll reveal ===== */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header / Navbar ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}
.header.scrolled {
  background: rgba(12, 18, 34, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.2);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.header.scrolled .logo-wrap { color: var(--white); }
.logo-img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
}
.logo-text { white-space: nowrap; }
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}
.header.scrolled .nav a { color: rgba(255, 255, 255, 0.9); }
.nav a:hover { color: var(--white); }
.btn-header {
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  box-shadow: 0 2px 12px var(--yellow-glow);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-header:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--yellow-glow);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: var(--transition);
}
.header.scrolled .menu-toggle span { background: var(--blue-dark); }

/* ===== Hero WhatsApp button ===== */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  box-shadow: 0 4px 16px var(--yellow-glow);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-whatsapp:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--yellow-glow);
}
.btn-whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-whatsapp-icon svg { flex-shrink: 0; }
.hero-btns {
  justify-content: left;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn-primary {
  background: var(--yellow);
  color: var(--blue-dark);
  box-shadow: 0 4px 14px 0 var(--yellow-glow);
}
.btn-primary:hover {
  background: var(--yellow-hover);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px 0 var(--yellow-glow);
}
.btn-secondary {
  background: var(--white);
  color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
}
.btn-secondary:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.btn-block { width: 100%; }
.btn-cta {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
  background: var(--yellow);
  color: var(--blue-dark);
  border-radius: var(--radius-btn);
  font-weight: 700;
  box-shadow: 0 6px 20px 0 var(--yellow-glow);
}
.btn-cta:hover {
  background: var(--yellow-hover);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px 0 var(--yellow-glow);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--blue-dark) 0%, #0f172a 40%, #1a2744 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 80%;
  height: 120%;
  background: radial-gradient(ellipse 60% 50% at 60% 30%, rgba(250, 204, 21, 0.18) 0%, transparent 55%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content {
  max-width: 560px;
}
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 2rem;
  line-height: 1.6;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mockup {
  width: 100%;
  max-width: 750px;
  height: auto;
  animation: floatMockup 6s ease-in-out infinite;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6));
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.hero-mockup.visible {
  opacity: 1;
  transform: translateY(0);
  animation: floatMockup 6s ease-in-out 1s infinite;
}
@keyframes floatMockup {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}
.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.hero .btn-secondary:hover {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
}

.container-wide {
  width: 100%;
  padding: 0 1.5rem;
}

/* ===== Product showcase ===== */
.product-showcase {
  background: radial-gradient(circle at center, #0e1a3a 0%, #070f23 70%);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.product-showcase::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.product-showcase-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.product-showcase-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}
.product-showcase-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 2.5rem;
}
.product-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.product-panel:last-of-type { margin-bottom: 2rem; }
.product-panel-reverse .product-panel-text { order: 2; }
.product-panel-reverse .product-panel-img-wrap { order: 1; }
.product-panel-text h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.product-panel-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  line-height: 1.6;
}
.product-panel-img-wrap {
  position: relative;
}
.product-panel-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-panel-img-wrap::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.product-panel:hover .product-panel-img {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}
.product-showcase-close {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.product-showcase-cta-wrap {
  margin-top: 2rem;
  text-align: center;
}
.btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  box-shadow: 0 4px 20px var(--yellow-glow);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-demo:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--yellow-glow);
}
.btn-demo-lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

/* ===== Chatbot conversacional ===== */
.section-chatbot {
  background: linear-gradient(180deg, #0a0f1a 0%, var(--blue-dark) 50%, #0a0f1a 100%);
  padding: 5rem 1.5rem;
  position: relative;
}
.section-chatbot .container {
  max-width: 1100px;
}

/* ============================== */
/* SECCIÓN CHATBOT */
/* ============================== */

.demo-chatbot-section {
    padding: 120px 0;
}

.demo-chatbot-section .container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================== */
/* SECCIÓN PANEL CLIENTE */
/* ============================== */

.demo-panel-section {
    padding: 120px 0;
}

.demo-panel-section .container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.chatbot-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.chatbot-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.chatbot-sub {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}
.chatbot-bullets {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.chatbot-bullets li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
}
.chatbot-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
}
.chatbot-cta-wrap {
  margin-top: 1rem;
}
.chatbot-visual {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.chatbot-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.chatbot-img-wrap::after {
  content: '';
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.chatbot-img-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 30px -5px rgba(59, 130, 246, 0.25);
}
.chatbot-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* ===== Botones demo diferenciados ===== */
.btn-demo-chatbot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(6, 182, 212, 0.45), 0 0 40px -8px rgba(6, 182, 212, 0.35);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, background 0.35s ease;
}
.btn-demo-chatbot:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.5), 0 0 56px -4px rgba(6, 182, 212, 0.45);
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}
.btn-demo-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--blue-dark);
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  box-shadow: 0 4px 20px var(--yellow-glow);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, background 0.35s ease;
}
.btn-demo-panel:hover {
  background: var(--yellow-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--yellow-glow);
}

/* ===== Demo Panel Cliente ===== */
.section-demo-panel {
  background: linear-gradient(180deg, var(--blue-dark) 0%, #0a1020 100%);
  padding: 4rem 1.5rem;
  position: relative;
}
.section-demo-panel .section-title {
  margin-bottom: 0.75rem;
}
.demo-panel-desc {
  text-align: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 1.5rem;
  max-width: 520px;
  line-height: 1.6;
}
.demo-panel-credentials {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  max-width: 320px;
  margin: 0 auto 1.75rem;
  text-align: center;
}
.demo-panel-cred-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}
.demo-panel-cred-line {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0.25rem 0;
}
.demo-panel-cta-wrap {
  text-align: center;
}

/* ===== Portafolio premium ===== */
.section-portfolio-premium {
  background: linear-gradient(180deg, #060b14 0%, #0a1020 40%, #080d18 100%);
  padding: 5rem 1.5rem;
  position: relative;
}
.container-portfolio {
  max-width: 1000px;
  margin: 0 auto;
}
.portfolio-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.portfolio-hero-avatar {
  position: relative;
  flex-shrink: 0;
}
.portfolio-avatar {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(250, 204, 21, 0.45);
  box-shadow: 0 0 32px -6px rgba(59, 130, 246, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.2), 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.portfolio-hero-avatar:hover .portfolio-avatar {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 48px -4px rgba(59, 130, 246, 0.4), 0 0 0 2px rgba(250, 204, 21, 0.3);
}
.portfolio-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.portfolio-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1rem;
  font-weight: 500;
}
.portfolio-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.5rem;
  line-height: 1.65;
}
.portfolio-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-portfolio-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}
.btn-portfolio-outline:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 24px -4px rgba(59, 130, 246, 0.3);
  color: var(--white);
}
.portfolio-stack-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}
.stack-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.stack-premium-box {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.stack-premium-box:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 40px -12px rgba(59, 130, 246, 0.25);
  border-color: rgba(255, 255, 255, 0.12);
}
.stack-premium-box h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}
.stack-premium-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stack-premium-box li {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.35rem 0;
}
.portfolio-differential-premium {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 0 60px -16px rgba(59, 130, 246, 0.35), 0 8px 32px rgba(0, 0, 0, 0.2);
}
.portfolio-diff-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.portfolio-diff-text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  line-height: 1.6;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 1.5rem;
}
.section-alt {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  color: var(--text);
}
.section-dark {
  background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue-card) 100%);
  padding: 5.5rem 1.5rem;
  position: relative;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--blue-dark);
  text-align: center;
  margin: 0 0 3rem;
  letter-spacing: -0.03em;
}
.section-title-light {
  color: var(--white);
}

/* ===== Problema ===== */
.problem-list {
  max-width: 580px;
  margin: 0 auto;
}
.problem-list li {
  position: relative;
  padding: 1.125rem 1.25rem 1.125rem 2.75rem;
  font-size: 1.0625rem;
  color: var(--blue-soft);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: color var(--transition), background var(--transition);
}
.problem-list li:last-child { border-bottom: none; }
.problem-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 700;
}
.problem-list li:hover {
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.7);
}

/* ===== Solución – 2 columnas, tarjetas grandes ===== */
.section-solucion {
  padding: 5.5rem 1.5rem;
  color: white;
}
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.solution-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.15);
}
.solution-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform var(--transition);
}
.solution-card:hover .solution-card-icon {
  transform: scale(1.06);
}
.solution-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.solution-card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
.step-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-dark);
  background: var(--yellow-soft);
  border-radius: 20px;
}

/* ===== Resultados / Stats ===== */
.section-stats {
  background: linear-gradient(180deg, var(--blue-dark) 0%, #0a0f1a 100%);
  padding: 5.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.section-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.stat-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.stat-block:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 40px -10px rgba(250, 204, 21, 0.2);
}
.stat-prefix,
.stat-number,
.stat-suffix {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.stat-prefix {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.stat-label {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.section-stats .section-title-light {
  margin-bottom: 2.5rem;
}

/* ===== Por qué Sialweb es diferente ===== */
.section-diferente {
  background: linear-gradient(180deg, var(--blue-dark) 0%, #0a0f1a 50%, #0c1222 100%);
  padding: 5.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.section-diferente::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 80% 50% at 50% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.container-wide-diferente {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-diferente .section-title {
  margin-bottom: 2rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.4;

}
.feature-spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.feature-spotlight-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 2.5vw, 32px);
  align-items: stretch;
}
.feature-spotlight-duo .feature-spotlight {
  min-height: 100%;
}
.feature-spotlight-icon-euro {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}
.feature-spotlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.feature-spotlight:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 0 40px -8px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}
.feature-spotlight-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.feature-spotlight:hover .feature-spotlight-icon {
  transform: scale(1.05);
}
.feature-spotlight-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.feature-spotlight-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  line-height: 1.55;
}
.feature-spotlight-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-dark);
  background: var(--yellow);
  border-radius: 20px;
}
.section-diferente-close {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin: 2.5rem 0 0;
  letter-spacing: -0.01em;
}

/* ===== Precio ===== */
.pricing-intro {
  text-align: center;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--text-muted);
  margin: -0.5rem auto 1.5rem;
  max-width: 480px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}
.pricing-card {
  position: relative;
  background: var(--white);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12);
}
.pricing-card-featured {
  border: 2px solid var(--yellow);
  box-shadow: 0 8px 32px -8px var(--yellow-glow);
}
.pricing-card-featured:hover {
  box-shadow: 0 20px 48px -12px var(--yellow-glow);
}
.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px var(--yellow-glow);
}
.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0 0 0.5rem;
}
.price {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}
.amount { font-size: 2.25rem; }
.price-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.pricing-renewal-note {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin: 0 0 1.25rem;
  padding: 0.5rem 0.75rem;
  background: rgba(250, 204, 21, 0.12);
  border-radius: var(--radius);
  border-left: 3px solid var(--yellow);
}
.price-iva {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-features {
  margin: 0 0 1.5rem;
}
.pricing-features li {
  padding: 0.45rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--blue-soft);
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ===== CTA ===== */
.section-cta {
  background: linear-gradient(180deg, var(--blue-dark) 0%, #0a0f1a 100%);
  padding: 5.5rem 1.5rem;
  position: relative;
}
.section-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(250, 204, 21, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 1.75rem;
  letter-spacing: -0.03em;
}
.section-cta .btn-cta {
  background: var(--yellow);
  color: var(--blue-dark);
}
.section-cta .btn-cta:hover {
  background: var(--yellow-hover);
  color: var(--blue-dark);
}
.cta-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.cta-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.cta-checkbox-label a {
  color: var(--yellow-soft);
  text-decoration: underline;
}
.cta-checkbox-label a:hover {
  color: var(--yellow);
}
.cta-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--yellow);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow var(--transition), transform var(--transition);
}
.faq-item:hover {
  box-shadow: var(--shadow-lg);
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--blue-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--yellow);
  font-weight: 700;
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item[open] summary {
  border-bottom: 1px solid var(--bg-alt);
}
.faq-item p {
  padding: 1rem 1.5rem 1.25rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  background: var(--blue-mid);
  color: var(--white);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.25rem;
}
.footer-legal {
  font-size: 0.875rem;
  opacity: 0.85;
  margin: 0 0 1rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}
.footer-nav a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--white);
}
.footer-copy {
  font-size: 0.8125rem;
  opacity: 0.7;
  margin: 0;
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 1.5rem;
  background: var(--white);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.12);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-banner p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
  min-width: 260px;
}
.cookie-banner a {
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: underline;
}
.cookie-banner-btns {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.btn-cookie-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .solution-grid {
    grid-template-columns: 1fr;
  }
  .product-panel,
  .product-panel-reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  .product-panel-reverse .product-panel-text,
  .product-panel-reverse .product-panel-img-wrap {
    order: unset;
  }
  .product-panel-text { text-align: center; }
  .chatbot-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .chatbot-visual { order: -1; }
  .chatbot-text { text-align: center; }
  .chatbot-cta-wrap { text-align: center; }
  .btn-demo-chatbot { width: 100%; max-width: 280px; }
  .portfolio-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .portfolio-hero-avatar { order: -1; justify-self: center; }
  .portfolio-avatar { width: 130px; height: 130px; }
  .portfolio-social { justify-content: center; }
  .btn-portfolio-outline { flex: 1 1 auto; min-width: 120px; }
  .stack-premium {
    grid-template-columns: 1fr;
  }
  .feature-spotlight-duo {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .demo-panel-cta-wrap .btn-demo-panel { width: 100%; max-width: 320px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header-inner:has(.nav) .btn-header { display: none; }
  .header-inner:has(.nav) .menu-toggle { display: flex; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 1rem;
  }
  .hero-content { max-width: none; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-content { order: 0; }
  .hero-visual {
    order: 1;
    max-width: 95%;
    margin: 0 auto;
  }
  .hero-mockup {
    max-width: 95%;
  }
  .hero {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }
  .hero .btn-whatsapp {
    width: auto;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 8px;
    box-shadow: none;
  }
  .hero-visual {
    order: 1;
    max-width: 100%;
    margin: 30px auto 0;
  }
  .hero .hero-mockup {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
  .product-showcase {
    padding: 3.5rem 1rem;
  }
  .product-panel-img-wrap { max-width: 95%; margin: 0 auto; }
  .feature-spotlight {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .feature-spotlight-duo {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .section,
  .section-stats,
  .section-solucion,
  .section-chatbot,
  .section-portfolio-premium,
  .section-demo-panel {
    padding: 3.5rem 1.5rem;
  }
  .chatbot-img-wrap { max-width: 260px; margin: 0 auto; }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns .btn { width: 100%; }
}

/* ===== Nav móvil ===== */
.nav.open {
  display: flex;
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  bottom: auto;
  flex-direction: column;
  background: rgba(12, 18, 34, 0.98);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeDown 0.25s ease;
}
.nav.open a { color: var(--white); }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================= */
/* TÍTULOS PÁGINAS LEGALES */
/* ============================= */

.legal-page h1,
.legal-page h2 {
  color: #ffffff !important;
}

/* ============================= */
/* COOKIE BANNER AVANZADO */
/* ============================= */

#cookie-banner.cookie-banner {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transform: none;
}

.cookie-box {
  background: #0b1220;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cookie-box h3 {
  margin: 0 0 15px;
  font-size: 1.25rem;
  font-weight: 700;
}

.cookie-box p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-box a {
  color: #facc15;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-options {
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-options label {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-options input[type="checkbox"] {
  cursor: pointer;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font);
  font-size: 0.9375rem;
}

#accept-all {
  background: #facc15;
  color: #000;
}

.cookie-buttons button.secondary {
  background: #1f2937;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
