:root {
  --bg: #ffffff;
  --bg-alt: #f0f7ff;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.08);
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --radius: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}


main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  min-width: 0;
}

/* Header: mismo blanco que el body */
.site-header {
  width: 100%;
  max-width: 100%;
  padding: 0.9rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo alineado con el texto del hero */
.header-inner .logo {
  margin-left: -120px;
}


.logo {
  text-decoration: none;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}

.logo img {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: 60px;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--primary);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.15rem;
  text-decoration: none;
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.cta:hover {
  background: #1d4ed8;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}

.cta.ghost {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}

.cta.ghost:hover {
  background: var(--primary-soft);
  color: var(--primary-hover) !important;
  border-color: var(--primary-hover);
}

.cta-primary {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  gap: 0.5rem;
}

.cta-primary::after {
  content: "→";
  font-weight: 400;
  opacity: 0.9;
}

/* Hero: estilo Sibila - dos columnas, mockup tipo notebook */
.hero {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 75vh;
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.hero-tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.hero-copy {
  color: var(--text-soft);
  margin: 1.25rem 0 1.75rem;
  line-height: 1.65;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-mockup-inner {
  position: relative;
  width: 100%;
  max-width: 640px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Orbes flotantes al estilo Sibila */
.float-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.float-orb-1 {
  width: 70px;
  height: 70px;
  background: rgba(37, 99, 235, 0.15);
  top: -10%;
  left: -5%;
  animation: float-1 6s ease-in-out infinite;
}

.float-orb-2 {
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.25);
  top: 15%;
  right: -8%;
  animation: float-2 5s ease-in-out infinite 0.5s, orb-pulse 3s ease-in-out infinite;
}

.float-orb-3 {
  width: 36px;
  height: 36px;
  background: rgba(37, 99, 235, 0.2);
  bottom: 20%;
  left: -12%;
  animation: float-3 7s ease-in-out infinite 1s;
}

.float-orb-4 {
  width: 24px;
  height: 24px;
  background: rgba(96, 165, 250, 0.35);
  bottom: -5%;
  right: 10%;
  animation: float-2 4.5s ease-in-out infinite 0.3s;
}

.float-orb-5 {
  width: 44px;
  height: 44px;
  background: rgba(37, 99, 235, 0.12);
  top: 40%;
  right: -15%;
  animation: float-1 5.5s ease-in-out infinite 1.5s;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8px, -12px) scale(1.05); }
  66% { transform: translate(-5px, 8px) scale(0.98); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, -8px); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) translateY(0); }
  25% { transform: translate(6px, 10px); }
  75% { transform: translate(-8px, -6px); }
}

.mockup-frame {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: visible;
  position: relative;
  z-index: 1;
  animation: mockup-float 5s ease-in-out infinite;
  background: transparent;
}

.mockup-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.15));
}

.mockup-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.mockup-placeholder.show {
  display: flex;
}

@keyframes mockup-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes orb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .float-orb,
  .mockup-frame {
    animation: none;
  }
  .float-orb-2 {
    animation: none;
  }
}

/* Stats / números (estilo Stripe/Sibila) */
.section-numbers {
  padding: 4rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.section-numbers .kicker {
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 2rem;
  color: var(--text);
  font-weight: 700;
}

.section-desc {
  color: var(--muted);
  margin: -1rem 0 2rem;
  max-width: 50ch;
  font-size: 0.98rem;
}

.stats-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat:hover {
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

.stat-value {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* Secciones */
.section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 4.5rem 0;
  background: var(--bg);
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* SIO Intelligence — 3 pilares, elegante */
.section-intelligence {
  padding: 3rem 0;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.intelligence-hero {
  text-align: center;
  margin-bottom: 2.25rem;
}

.intelligence-hero .intelligence-icon {
  font-size: 2rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.intelligence-title {
  margin: 0 0 0.35em;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.intelligence-tagline {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.intelligence-desc {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.intelligence-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.intelligence-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.intelligence-pillar:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
}

.intelligence-pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.intelligence-pillar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Carousel de capacidades */
.intelligence-carousel {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.intelligence-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f8faff 0%, #eff6ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.intelligence-carousel-track {
  display: flex;
  width: 400%;
  transition: transform 0.4s ease;
  will-change: transform;
}

.intelligence-slide {
  flex: 0 0 25%;
  width: 25%;
  min-width: 25%;
  padding: 2rem 2.5rem;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.intelligence-slide h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.intelligence-slide p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.intelligence-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.intelligence-carousel-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.intelligence-carousel-btn:hover:not(:disabled) {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.intelligence-carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.intelligence-carousel-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.intelligence-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.intelligence-carousel-dots button:hover {
  background: var(--muted);
}

.intelligence-carousel-dots button[aria-selected="true"] {
  background: var(--primary);
  transform: scale(1.2);
}

/* Feature cards carousel */
.feature-cards-carousel {
  position: relative;
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.feature-cards-viewport {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.feature-cards-track {
  display: flex;
  width: 800%;
  transition: transform 0.4s ease;
  will-change: transform;
}

.feature-cards-slide {
  flex: 0 0 12.5%;
  width: 12.5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  box-sizing: border-box;
  padding: 0 0.125rem;
}

.feature-cards-slide .feature-card {
  min-width: 0;
}

.feature-cards-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-cards-dots-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.feature-cards-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.feature-cards-btn:hover:not(:disabled) {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.feature-cards-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.feature-cards-dots {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.feature-cards-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.feature-cards-dots button:hover {
  background: var(--muted);
}

.feature-cards-dots button[aria-selected="true"] {
  background: var(--primary);
  transform: scale(1.2);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Benefit cards */
.benefit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.benefit-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
}

.benefit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Plans section */
.section-plans {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.section-desc-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;
  align-items: stretch;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.plan-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
}

.plan-starter {
  border-color: var(--border);
}

.plan-starter .plan-header h3 { color: var(--text); }

.plan-professional {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.15);
}

.plan-professional:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.25);
}

.plan-enterprise {
  border-color: rgba(124, 58, 237, 0.2);
}

.plan-enterprise:hover {
  border-color: rgba(124, 58, 237, 0.4);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.plan-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.plan-professional .plan-header h3 { color: var(--primary); }
.plan-enterprise .plan-header h3 { color: #7c3aed; }

.plan-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.plan-enterprise .plan-features li::before {
  color: #7c3aed;
}

.cta-plan {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1rem;
}

.cta-plan.cta-secondary {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}

.cta-plan.cta-secondary:hover {
  background: var(--primary-soft);
  color: var(--primary-hover) !important;
}

.plan-enterprise .cta-plan:not(.cta-secondary) {
  background: #7c3aed;
}

.plan-enterprise .cta-plan:not(.cta-secondary):hover {
  background: #6d28d9;
}

.plan-enterprise .cta-plan.cta-secondary {
  border-color: #7c3aed;
  color: #7c3aed !important;
}

.plan-enterprise .cta-plan.cta-secondary:hover {
  background: rgba(124, 58, 237, 0.1);
}

@media (max-width: 1100px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Contact */
.section-contact {
  padding: 4rem 0 5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1000px;
}

.contact-intro h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--text);
  font-weight: 700;
}

.contact-intro p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  margin-bottom: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.form-feedback {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}
.form-feedback.success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--text);
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.form-feedback.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.contact-form .cta {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem;
}

/* Footer */
.site-footer {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 1.5rem 1.5rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* WhatsApp click-to-chat */
.contact-whatsapp {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
.whatsapp-link {
  color: #25D366;
  font-weight: 600;
  text-decoration: none;
}
.whatsapp-link:hover {
  text-decoration: underline;
}

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff;
}

/* IA Instrumental */
.section-instrumental-ia {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border-bottom: 1px solid var(--border);
}

.instrumental-ia-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.instrumental-ia-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 3rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.ia-step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ia-step:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

.ia-step-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.ia-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.ia-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.ia-step-arrow {
  flex: 0 0 auto;
  font-size: 1.4rem;
  color: var(--primary);
  opacity: 0.5;
  padding: 0 0.5rem;
  align-self: center;
  font-weight: 300;
  padding-bottom: 2rem;
}

.instrumental-ia-capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.ia-capability {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.25rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ia-capability:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.07);
}

.ia-capability-badge {
  flex: 0 0 auto;
  font-size: 0.65rem;
  margin-top: 0.3rem;
  line-height: 1;
}

.ia-badge-red   { color: #ef4444; }
.ia-badge-orange { color: #f97316; }
.ia-badge-yellow { color: #eab308; }
.ia-badge-blue  { color: var(--primary); }

.ia-capability h4 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.ia-capability p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.instrumental-ia-cta-wrap {
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .site-header,
  .header-inner {
    width: 100%;
    max-width: 100%;
  }

  .header-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-inner .logo {
    margin-left: 0;
  }

  .site-nav {
    margin-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 1rem 4rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .hero-content {
    max-width: none;
    width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-mockup {
    order: -1;
    width: 100%;
    max-width: 100%;
  }

  .mockup-frame {
    max-width: 100%;
  }

  .section,
  .section-numbers,
  .section-alt,
  .section-contact {
    width: 100%;
    max-width: 100%;
  }

  .section .container,
  .section-numbers .container,
  .section-contact .container {
    width: 100%;
    max-width: 100%;
  }

  .section-intelligence {
    padding: 2rem 0;
  }

  .intelligence-hero {
    margin-bottom: 1.5rem;
  }

  .intelligence-title {
    font-size: 1.4rem;
  }

  .intelligence-pillars {
    grid-template-columns: 1fr;
  }

  .intelligence-carousel {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .intelligence-slide {
    padding: 1.5rem 1.25rem;
    min-height: 100px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-cards-carousel {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }

  .feature-cards-slide {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-cards {
    grid-template-columns: 1fr;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .instrumental-ia-capabilities {
    grid-template-columns: repeat(2, 1fr);
  }

  .instrumental-ia-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .ia-step-arrow {
    display: none;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
    position: relative;
    max-width: 100%;
  }

  .site-nav {
    margin-left: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.6rem 0;
  }

  .cta-nav {
    margin-top: 0.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .feature-cards-carousel {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }

  .feature-cards-slide {
    grid-template-columns: 1fr;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    max-width: 100%;
  }

  .header-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .instrumental-ia-capabilities {
    grid-template-columns: 1fr;
  }

  /* Orbes más pequeños o ocultos en móvil para no saturar */
  .float-orb {
    width: 40px !important;
    height: 40px !important;
  }

  .float-orb-4 {
    width: 20px !important;
    height: 20px !important;
  }
}
