/* ==========================================================================
   Home Premium Redesign - Arquitecto
   ========================================================================== */

/* -----------------------------
 * BASE & CONSTANTS
 * ----------------------------- */
.landing-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.marketing-body {
  background: var(--bg-body);
  overflow-x: hidden;
  /* Subtly dark baseline */
  color: var(--text-main);
}

.leading-lead, .lead-light, .lead-text {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* -----------------------------
 * PREMIUM TOPBAR
 * ----------------------------- */
.premium-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glow-text {
  transition: text-shadow 0.3s ease;
}

.glow-text:hover {
  text-shadow: 0 4px 12px rgba(16, 181, 130, 0.3);
}

.neon-mark {
  background: linear-gradient(135deg, #10b582, #0ea5e9);
  box-shadow: 0 4px 16px rgba(16, 181, 130, 0.25);
}

.nav-link-hover {
  position: relative;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link-hover:hover {
  color: var(--text-main);
}

.nav-link-hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav-link-hover:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.home-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.home-language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.home-language-option:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.05);
}

.home-language-option.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #10b582, #0ea5e9);
  box-shadow: 0 10px 24px rgba(16, 181, 130, 0.24);
}

/* -----------------------------
 * PREMIUM BUTTONS
 * ----------------------------- */
.button-glow-primary {
  background: linear-gradient(135deg, #10b582, #0d9668);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(16, 181, 130, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-glow-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 181, 130, 0.6);
  color: #fff;
}

.button-glow-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.button-glow-secondary:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.button-secondary-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.button-secondary-outline:hover {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.02);
}

.button-outline-dark {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--line-strong);
}

.button-outline-dark:hover {
  border-color: var(--text-main);
}

.button-large {
  padding: 0 28px;
  min-height: 48px;
  font-size: 1.05rem;
  border-radius: 12px;
}

.button-xl {
  padding: 0 32px;
  min-height: 56px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 14px;
}

.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.02);
}

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

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

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  max-width: 1200px;
  max-height: 1200px;
  background: radial-gradient(circle, rgba(16, 181, 130, 0.08) 0%, rgba(14, 165, 233, 0.05) 40%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
}

.badge-pulse {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(16, 185, 130, 0.1);
  color: #0d9668;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 130, 0.2);
  margin-bottom: 24px;
  animation: pulse-badge 2.5s infinite;
}

@keyframes pulse-badge {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 130, 0.2); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 130, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 130, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.gradient-text {
  background: linear-gradient(135deg, #10b582, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.center-cta {
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 48px;
}

/* -----------------------------
 * HERO ABSTRACT MOCKUP
 * ----------------------------- */
.hero-mockup-wrapper {
  margin: 0 auto;
  max-width: 720px;
  width: 100%;
}

.floating-mockup {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transform: perspective(1000px) rotateX(4deg) translateY(0);
  animation: float-mockup 6s ease-in-out infinite;
}

@keyframes float-mockup {
  0%, 100% { transform: perspective(1000px) rotateX(4deg) translateY(0); }
  50% { transform: perspective(1000px) rotateX(4deg) translateY(-12px); }
}

.mockup-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}
.mockup-dots span:nth-child(1) { background: #ff5f56; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #27c93f; }

.mockup-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.mockup-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  height: 300px;
  text-align: left;
}

.mockup-sidebar {
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.line {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}
.line.short { width: 40%; }
.line.medium { width: 70%; }
.line.long { width: 90%; }
.line.active { background: var(--accent); opacity: 0.4; }

.mockup-content {
  padding: 24px;
  background: #fdfdfd;
}

.line.title {
  height: 16px;
  width: 60%;
  margin-bottom: 24px;
  background: #cbd5e1;
}

.mockup-box {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #ffffff;
}

.mockup-box.active {
  border-color: rgba(16, 185, 130, 0.3);
  box-shadow: 0 4px 12px rgba(16, 185, 130, 0.05);
}

.box-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.icon-square {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}
.icon-square.green { background: #10b582; }
.icon-square.blue { background: #0ea5e9; }

.line.code {
  width: 100%;
  margin-bottom: 8px;
  height: 6px;
}
.line.fade {
  background: #e2e8f0;
}

/* -----------------------------
 * SECTION GLOBALS
 * ----------------------------- */
.landing-section {
  padding: 80px 20px;
}

.landing-section-head {
  max-width: 680px;
  margin-bottom: 60px;
}
.landing-section-head.text-center {
  margin-inline: auto;
}

.landing-section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.neon-eyebrow { color: #f43f5e; }
.emerald-eyebrow { color: #10b582; }
.vibrant-eyebrow { color: #8b5cf6; }
.theme-eyebrow { color: #0ea5e9; }

/* -----------------------------
 * DARK SECTION (El Problema)
 * ----------------------------- */
.dark-section {
  background: #0f172a;
  color: #fff;
}

.dark-section .landing-section-head h2 {
  color: #fff;
}
.dark-section .light-text {
  color: #f8fafc;
}
.dark-section .lead-light {
  color: #94a3b8;
}

.pain-points-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.glass-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 63, 94, 0.3);
}

.danger-icon {
  width: 48px;
  height: 48px;
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.glass-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.glass-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
}

/* -----------------------------
 * SOLUTION SECTION
 * ----------------------------- */
.solution-section {
  background: #ffffff;
}

.solution-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.solution-text-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.glow-emerald { background: rgba(16, 181, 130, 0.1); color: #10b582; }
.glow-blue { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.glow-purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.feature-item h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.premium-card-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 460px;
  margin: 0 auto;
}

.card-layer {
  position: absolute;
  border-radius: 16px;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card-stack:hover .back { transform: translateY(-20px) scale(0.9) rotate(-6deg); opacity: 0.6; }
.premium-card-stack:hover .mid { transform: translateY(-10px) scale(0.95) rotate(-3deg); opacity: 0.8; }
.premium-card-stack:hover .front { transform: translateY(0) scale(1.02); }

.back { background: #e2e8f0; transform: translateY(-12px) scale(0.9) rotate(-4deg); opacity: 0.4; }
.mid { background: #cbd5e1; transform: translateY(-6px) scale(0.95) rotate(-2deg); opacity: 0.6; }
.front { 
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 185, 130, 0.2);
  transform: translateY(0) scale(1); 
  z-index: 3;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.glass-header {
  height: 40px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
  background: rgba(0,0,0,0.02);
}

.glass-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.glass-dot.red { background: #ff5f56; }
.glass-dot.yellow { background: #ffbd2e; }
.glass-dot.green { background: #27c93f; }

.glass-content {
  padding: 32px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glass-content h3 { font-family: monospace; font-size: 1.1rem; color: #10b582; margin-bottom: 16px; }
.glass-content p { font-family: monospace; font-size: 0.9rem; color: #475569; margin-bottom: 10px; line-height: 1.4; }

.glass-button {
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 16px;
  background: #10b582;
  color: #fff;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* -----------------------------
 * PROCESS SECTION
 * ----------------------------- */
.landing-process {
  background: #f8fafc;
}

.process-steps-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.process-connector {
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, #10b582, #0ea5e9, #8b5cf6);
  opacity: 0.3;
  z-index: 0;
}

@media (max-width: 768px) { .process-connector { display: none; } }

.process-step {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-8px);
}

.step-orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.gradient-emerald { background: linear-gradient(135deg, #10b582, #059669); }
.gradient-blue { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.gradient-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

.process-step h3 { font-size: 1.25rem; margin-bottom: 12px; }

/* -----------------------------
 * PRICING SECTION
 * ----------------------------- */
.landing-pricing {
  background: #ffffff;
}

.premium-pricing-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scale-on-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.price-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.price-card h3 {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.price-strike { color: #94a3b8; text-decoration: line-through; font-weight: 700; font-size: 1.2rem;}
.price-main { font-size: 3rem; font-weight: 800; color: #0f172a; line-height: 1;}
.price-period { color: #64748b; font-weight: 600; }

.price-desc {
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-features li {
  position: relative;
  padding-left: 24px;
  color: #334155;
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b582;
  font-weight: 800;
}

.price-cta {
  width: 100%;
}

/* Featured Price Card */
.featured-card {
  padding: 48px 32px;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #10b582, #0ea5e9) border-box;
  box-shadow: 0 24px 48px rgba(16, 185, 130, 0.1);
  transform: translateY(-16px);
}

.featured-card.glow-hover:hover {
  transform: translateY(-24px);
  box-shadow: 0 32px 64px rgba(16, 185, 130, 0.2);
}

.price-badge-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #10b582, #0ea5e9);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(16, 185, 130, 0.4);
}

.featured-icon {
  background: rgba(16, 185, 130, 0.1);
  color: #10b582;
}

.pricing-footnote {
  margin-top: 40px;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* -----------------------------
 * BOTTOM CTA (Glass Style)
 * ----------------------------- */
.bottom-cta-section {
  position: relative;
  overflow: hidden;
}

.bottom-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* -----------------------------
 * FOOTER
 * ----------------------------- */
.landing-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 40px 20px;
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.small-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.fw-bold { font-weight: 700; }

.landing-footer-actions {
  display: flex;
  gap: 24px;
}

.landing-footer-actions a {
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s;
}

.landing-footer-actions a:hover {
  color: var(--text-main);
}

.text-accent {
  color: #10b582 !important;
}

/* -----------------------------
 * REVEAL ANIMATIONS
 * ----------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------
 * RESPONSIVE ADJUSTMENTS
 * ----------------------------- */
@media (max-width: 1024px) {
  .solution-grid { grid-template-columns: 1fr; gap: 48px; }
  .premium-pricing-grid { grid-template-columns: 1fr; max-width: 500px; }
  .featured-card { transform: none; }
  .featured-card.glow-hover:hover { transform: translateY(-8px); }
  .price-badge-glow { top: -14px; }
}

@media (max-width: 768px) {
  .home-language-switch { order: 10; }
  .pain-points-grid { grid-template-columns: 1fr; }
  .process-steps-container { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .landing-cta-row { flex-direction: column; width: 100%; }
  .button-large { width: 100%; justify-content: center; }
  .landing-hero { min-height: auto; padding-top: 60px; }
  .landing-footer-inner { flex-direction: column; gap: 24px; }
}
