/* ══════════════════════════════════════════════
   MASERAL — Landing Page Styles
   Dark theme with dynamic elements
   ══════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --color-bg: #ffffff;
  --color-bg-elevated: #f7f7f9;
  --color-bg-card: #ffffff;
  --color-bg-card-hover: #f5f5f7;
  --color-accent: #d7b029;
  --color-accent-light: #e0c04a;
  --color-accent-glow: rgba(215, 176, 41, 0.3);
  --color-accent-subtle: rgba(215, 176, 41, 0.08);
  --color-green: #d7b029;
  --color-green-glow: rgba(215, 176, 41, 0.25);
  --color-text: #333333;
  --color-text-secondary: rgba(51, 51, 51, 0.65);
  --color-text-muted: rgba(51, 51, 51, 0.4);
  --color-border: rgba(0, 0, 0, 0.1);
  --color-border-hover: rgba(0, 0, 0, 0.18);
  --font-sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', cursive;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  font-size: 16px;
}

body,
body.maseral-landing,
.maseral-landing {
  font-family: var(--font-sans) !important;
  background: var(--color-bg) !important;
  background-color: var(--color-bg) !important;
  color: var(--color-text) !important;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Override Astra wrapper styles only */
.maseral-landing .site-content,
.maseral-landing #content,
.maseral-landing #page,
.maseral-landing #primary,
.maseral-landing .ast-container,
.maseral-landing .content-area,
.maseral-landing .ast-separate-container,
.maseral-landing .ast-separate-container .ast-article-single,
.maseral-landing .ast-separate-container .ast-article-post,
.maseral-landing .ast-plain-container,
.maseral-landing .entry-content,
.maseral-landing .page,
.maseral-landing article {
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  border: none !important;
  box-shadow: none !important;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

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

.text-accent { color: var(--color-accent-light); }

/* ── Glass Card ── */
.glass-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1), 0 0 40px var(--color-accent-glow);
}

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}

.logo:hover { opacity: 0.8; }

.logo-img {
  height: 220px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.main-nav a:hover { color: var(--color-text); }
.main-nav a:hover::after { width: 100%; }

.btn-header { font-size: 0.875rem !important; padding: 10px 20px !important; }

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-arrow {
  font-size: 0.7rem;
  transition: transform var(--transition);
}

.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--color-text);
}

.nav-dropdown-menu a::after { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333333;
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  box-shadow: 0 6px 30px var(--color-accent-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
  background: rgba(0,0,0,0.03);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-outline:hover {
  background: var(--color-accent-subtle);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-badge {
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  background: rgba(0,0,0,0.03);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.typewriter-wrapper {
  display: inline;
}

.cursor {
  animation: blink 0.7s steps(1) infinite;
  color: var(--color-accent);
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-sub strong { color: var(--color-text); font-weight: 600; }

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Orbital Animations */
.hero-orbitals {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-spin linear infinite;
}

.orbit-lg {
  width: 700px;
  height: 700px;
  animation-duration: 30s;
}

.orbit-md {
  width: 500px;
  height: 500px;
  animation-duration: 22s;
  animation-direction: reverse;
}

.orbit-sm {
  width: 300px;
  height: 300px;
  animation-duration: 15s;
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px var(--color-accent-glow), 0 0 40px var(--color-accent-glow);
}

@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hero Glows */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 246, 0.12);
  top: 20%;
  left: 30%;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(34, 197, 94, 0.08);
  bottom: 10%;
  right: 20%;
  animation: glow-pulse 8s ease-in-out infinite alternate-reverse;
}

@keyframes glow-pulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.15); }
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ══════════════════════════════════════════════
   SECTIONS (shared)
   ══════════════════════════════════════════════ */
.section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  color: var(--color-accent-light);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.section-intro {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ══════════════════════════════════════════════
   IMPACTO
   ══════════════════════════════════════════════ */
.section-impacto {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 50%, var(--color-bg) 100%);
}

.section-impacto .container { text-align: center; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.metric-card {
  padding: 36px 24px;
  text-align: center;
  position: relative;
}

.metric-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
  opacity: 0;
  transition: opacity var(--transition);
}

.metric-card:hover .metric-glow { opacity: 1; }

.metric-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.metric-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-accent-light);
  line-height: 1;
}

.metric-symbol {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent-light);
}

.metric-prefix {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent-light);
  margin-right: 4px;
}

.metric-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 12px;
}

.metric-detail {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Ticker */
.ticker-wrapper {
  margin: 64px 0;
  text-align: center;
  overflow: hidden;
}

.ticker-label {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  color: var(--color-accent-light);
  margin-bottom: 24px;
  text-transform: none;
  letter-spacing: 0;
}

.ticker {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  will-change: transform;
}

.ticker-item {
  flex-shrink: 0;
  padding: 0 40px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticker-item img {
  height: 220px;
  width: auto;
  max-width: 350px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition), transform var(--transition);
}

.ticker-item:hover img {
  opacity: 1;
  transform: scale(1.05);
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Testimonial highlight */
.testimonial-highlight {
  padding: 48px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-glow {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(ellipse at center, var(--color-accent-glow), transparent 70%);
  filter: blur(60px);
  opacity: 0.3;
}

.testimonial-highlight p {
  font-size: 1.2rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.testimonial-highlight cite {
  display: block;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: normal;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════
   ¿TE SUENA? (Problems)
   ══════════════════════════════════════════════ */
.section-problems {
  background: var(--color-bg);
}

.section-problems .container { text-align: center; }

.problems-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.problem-card {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  transform: rotate(var(--rotation, 0deg));
  transition: all var(--transition);
  cursor: default;
}

.problem-card:hover {
  transform: rotate(0deg) scale(1.05);
  border-color: rgba(239, 68, 68, 0.3);
  background: var(--color-bg-card-hover);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.1);
}

.problem-icon {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  line-height: 1;
}

.problem-card p {
  font-size: 1rem;
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   ¿QUÉ HACEMOS? (System)
   ══════════════════════════════════════════════ */
.section-system {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
}

.section-system .container { text-align: center; }

.system-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  text-align: left;
}

.pillar {
  padding: 40px 32px;
}

.pillar-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(215, 176, 41, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.pillar h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.pillar-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: var(--color-accent-subtle);
  color: var(--color-accent-light);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ══════════════════════════════════════════════
   SOLUCIONES
   ══════════════════════════════════════════════ */
.section-solutions {
  background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 100%);
}

.section-solutions .container { text-align: center; }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
  text-align: left;
}

.solution-card {
  padding: 40px 32px;
}

.solution-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.solution-glow {
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--color-accent-glow), transparent);
  filter: blur(20px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.solution-icon {
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
}

.solution-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.solution-card ul {
  margin-bottom: 24px;
}

.solution-card li {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.solution-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent-light);
}

/* ══════════════════════════════════════════════
   ¿POR QUÉ MASERAL?
   ══════════════════════════════════════════════ */
.section-why {
  background: var(--color-bg);
}

.section-why .container { text-align: center; }

.diff-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  text-align: left;
}

.diff-card {
  padding: 40px 32px;
}

.diff-check {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(215, 176, 41, 0.1);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.diff-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.diff-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   CÓMO EMPEZAMOS (Steps)
   ══════════════════════════════════════════════ */
.section-steps {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
}

.section-steps .container { text-align: center; }

.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  position: relative;
}

.step {
  position: relative;
  padding-left: 48px;
  padding-bottom: 40px;
}

.step:last-child { padding-bottom: 0; }

.step-connector {
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), rgba(215, 176, 41, 0.1));
}

.step:last-child .step-connector { display: none; }

.step-dot {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  z-index: 2;
}

.step-dot-ping {
  position: absolute;
  top: -4px; right: -4px; bottom: -4px; left: -4px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: dot-ping 2s ease-out infinite;
  opacity: 0;
}

@keyframes dot-ping {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

.step-content {
  padding: 28px 32px;
}

.step-number {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  line-height: 28px;
  margin-bottom: 12px;
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* ══════════════════════════════════════════════
   CASO REAL
   ══════════════════════════════════════════════ */
.section-case {
  background: var(--color-bg-elevated);
}

.section-case .container { text-align: center; }

.case-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.case-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(215, 176, 41, 0.15), transparent 70%);
  filter: blur(60px);
  top: -50px;
  right: -50px;
}

.case-header {
  padding: 40px 40px 0;
  position: relative;
  z-index: 1;
}

.case-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(215, 176, 41, 0.1);
  color: var(--color-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.case-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.case-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.case-body {
  padding: 32px 40px;
  position: relative;
  z-index: 1;
}

.case-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 32px;
}

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

.case-stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.case-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.case-body blockquote {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  font-style: italic;
  line-height: 1.7;
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  text-align: left;
}

.case-footer {
  padding: 24px 40px 40px;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════
   CONTACTO
   ══════════════════════════════════════════════ */
.section-contact {
  background: linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.contact-desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.contact-feature-icon {
  font-size: 1.2rem;
}

/* Form */
.contact-form {
  padding: 40px;
  position: relative;
}

.form-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
  filter: blur(80px);
  top: -40px;
  right: -40px;
  opacity: 0.4;
}

.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #f7f7f9;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-checkbox a {
  color: var(--color-accent) !important;
  text-decoration: underline;
  margin-left: -3px;
}

.form-checkbox a:hover {
  color: var(--color-accent-light) !important;
}

.form-group select option {
  background: #ffffff;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--color-border);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* footer-brand removed */

.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  width: 100%;
  text-align: left;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #333333;
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.85rem;
  white-space: nowrap;
  color: rgba(51, 51, 51, 0.65);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--color-accent-light); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: #fff;
}

.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  margin-top: 8px;
}

.footer-col-brand {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-logo-main {
  max-width: 220px;
  height: auto;
  opacity: 0.85;
  clip-path: inset(25% 2% 28% 2%);
  margin: -50px -5px -55px 0;
}

.footer-seo {
  font-size: 0.85rem;
  white-space: nowrap;
  color: rgba(51, 51, 51, 0.45);
  line-height: 1.7;
}

.footer-bottom {
  text-align: center;
  width: 100%;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(51, 51, 51, 0.4);
}

/* ══════════════════════════════════════════════
   PÁGINAS LEGALES
   ══════════════════════════════════════════════ */
.section-legal {
  padding-top: 180px;
}

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-content a {
  color: var(--color-accent) !important;
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--color-accent-light) !important;
}

/* ══════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-down"] {
  transform: translateY(-20px);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
/* ── Tablet (max 1024px) ── */
@media (max-width: 1024px) {
  .logo-img { height: 140px; }

  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .system-pillars { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .solutions-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .diff-cards { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }

  .ticker-item img { height: 120px; max-width: 200px; }
  .ticker-track { gap: 32px; }

  .footer-columns { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col a { white-space: normal; }
  .footer-seo { white-space: normal; }
  .footer-col-brand { align-items: flex-start; text-align: left; }
  .footer-logo-main { max-width: 180px; }
}

/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {
  .logo-img { height: 140px; }
  .site-header.scrolled .logo-img { height: 140px !important; }
  .site-header.scrolled { padding: 4px 0 !important; }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 10000;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .main-nav a { font-size: 1.1rem; }

  /* Mobile dropdown — show items inline */
  .nav-dropdown { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: auto;
    background: none;
    border: none;
    padding: 0;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .nav-dropdown-menu a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding: 3px 12px;
  }
  .nav-arrow { display: none; }

  .hamburger { display: flex; z-index: 10001; }
  .btn-header { display: none; }
  .hero { padding-top: 200px !important; }

  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-badge { font-size: 0.75rem; padding: 6px 14px; margin-bottom: 24px; }

  .orbit-lg { width: 350px; height: 350px; }
  .orbit-md { width: 240px; height: 240px; }
  .orbit-sm { width: 150px; height: 150px; }

  .section { padding: 64px 0; }
  .section h2 { font-size: 1.6rem; }
  .section-intro { font-size: 1rem; }

  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .metric-card { padding: 24px 16px; }
  .metric-number { font-size: 2.2rem; }
  .metric-symbol { font-size: 1.5rem; }
  .metric-prefix { font-size: 1.8rem; transform: translateX(calc(-50% - 45px)); }
  .metric-label { font-size: 0.85rem; }
  .metric-detail { font-size: 0.75rem; }

  .ticker-item img { height: 130px; max-width: 220px; }
  .ticker-item { padding: 0 20px; }
  .ticker-track { gap: 24px; }

  .testimonial-highlight { padding: 28px 20px; }
  .testimonial-highlight p { font-size: 0.95rem; }

  .problems-grid { gap: 10px; }
  .problem-card { padding: 14px 18px; width: 100%; }
  .problem-card p { font-size: 0.9rem; }

  .pillar { padding: 28px 24px; }
  .pillar-number { font-size: 2.2rem; }

  .solution-card { padding: 28px 24px; }

  .diff-card { padding: 28px 24px; }

  .step-content { padding: 20px 24px; }

  .case-stats { gap: 20px; flex-wrap: wrap; }
  .case-stat-number { font-size: 1.8rem; }
  .case-header, .case-body, .case-footer { padding-left: 20px; padding-right: 20px; }

  .contact-form { padding: 24px; }
  .contact-desc { font-size: 0.95rem; }

  .footer-columns { grid-template-columns: 1fr; gap: 32px; }
  .footer-col a { white-space: normal; }
  .footer-seo { white-space: normal; }
  .footer-col-brand { align-items: center; text-align: center; }
  .footer-logo-main { max-width: 160px; margin: -40px 0 -45px 0; }
  .footer-bottom { padding-top: 24px; }
}

/* ── Small mobile (max 480px) ── */
@media (max-width: 480px) {
  .logo-img { height: 120px; }
  .site-header.scrolled .logo-img { height: 120px !important; }
  .site-header.scrolled { padding: 4px 0 !important; }

  .hero h1 { font-size: 1.7rem; }
  .hero { padding: 90px 16px 50px; }

  .metrics-grid { grid-template-columns: 1fr; }
  .metric-prefix { position: static; transform: none; display: inline; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .case-stats { flex-direction: column; gap: 16px; }

  .section h2 { font-size: 1.4rem; }

  .orbit-lg { width: 280px; height: 280px; }
  .orbit-md { width: 190px; height: 190px; }
  .orbit-sm { width: 120px; height: 120px; }
}
