/* ─── landing.css — funciona en tema OSCURO y CLARO ──────── */

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(13,15,20,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,168,76,0.08);
  transition: padding 0.3s ease, background 0.3s ease;
}
.navbar.scrolled { padding: 14px 60px; }

/* Navbar en tema claro — fondo blanco semitransparente */
[data-theme="light"] .navbar,
[data-theme="system"] .navbar {
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 20px rgba(0,0,0,0.07);
}
[data-theme="light"] .nav-links a,
[data-theme="system"] .nav-links a { color: #6b7280; }
[data-theme="light"] .nav-links a:hover,
[data-theme="system"] .nav-links a:hover { color: #1a1d27; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--clr-muted);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--clr-text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 9px 22px; font-size: 0.85rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-text);
  font-size: 1.4rem;
}

/* ─── Logo ───────────────────────────────────────────────── */
.logo-container { display: flex; align-items: center; }
.logo-main-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #c7bdb9;
  text-transform: uppercase;
  letter-spacing: 2px;
}
[data-theme="light"] .logo-main-text,
[data-theme="system"] .logo-main-text { color: #374151; }

.logo-main-text2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--clr-accent);
  letter-spacing: 2px;
}
.logo-sub-text {
  font-weight: 300;
  font-size: 0.8rem;
  color: #c7bdb9;
  text-transform: uppercase;
  letter-spacing: 1px;
}
[data-theme="light"] .logo-sub-text,
[data-theme="system"] .logo-sub-text { color: #9ca3af; }

.logo-text-group { display: flex; flex-direction: column; }
.logo-img { max-height: 60px; width: auto; margin-right: 15px; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 200px;
  overflow: hidden;
  clip-path: ellipse(140% 100% at 50% 0%);
}
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Overlay oscuro en dark mode */
.hero-bg {
  position: absolute;
  inset: 0;
  background: rgba(10,15,25,0.82);
  z-index: 1;
  pointer-events: none;
  transition: background 0.4s ease;
}
/* Overlay más claro en light mode — deja ver el video pero legible */
[data-theme="light"] .hero-bg,
[data-theme="system"] .hero-bg {
  background: rgba(255,255,255,0.55);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  z-index: 2;
}
.hero-orb {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-orb 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes pulse-orb {
  0%,100% { transform: translate(-50%,-50%) scale(1);    opacity: 1; }
  50%      { transform: translate(-50%,-50%) scale(1.08); opacity: 0.7; }
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 32px;
  animation: fadeUp 0.5s ease both;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  animation: blink 1.4s ease infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 24px;
  color: #ffffff;
  animation: fadeUp 0.5s 0.1s ease both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
[data-theme="light"] .hero-title,
[data-theme="system"] .hero-title { color: #0f172a; text-shadow: 0 2px 12px rgba(255,255,255,0.6); }

.hero-title em { font-style: italic; color: var(--clr-accent); }

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.75;
  animation: fadeUp 0.5s 0.2s ease both;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
[data-theme="light"] .hero-desc,
[data-theme="system"] .hero-desc { color: #374151; text-shadow: none; }

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.5s 0.3s ease both;
}
.hero-cta .btn { padding: 15px 32px; font-size: 0.95rem; }

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: rgba(201,168,76,0.08);
}
[data-theme="light"] .btn-outline,
[data-theme="system"] .btn-outline {
  color: #1a1d27;
  border-color: #d0d4de;
}

/* ─── Sección base ───────────────────────────────────────── */
section { padding: 100px 60px; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--clr-text);
}
.section-title em { font-style: italic; color: var(--clr-accent); }
.section-desc {
  color: var(--clr-muted);
  font-size: 0.98rem;
  max-width: 520px;
  line-height: 1.75;
}

/* ─── Cómo funciona ──────────────────────────────────────── */
.how-section {
  padding: 150px 60px 120px;
  background: var(--clr-surface);
}
.how-inner  { max-width: 1100px; margin: 0 auto; }
.how-header { text-align: center; margin-bottom: 72px; }
.how-header .section-desc { margin: 0 auto; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step-card {
  background: var(--clr-surface);
  padding: 44px 36px;
  position: relative;
  transition: background var(--transition);
}
.step-card:hover { background: var(--clr-surface-2); }

/* En claro: sombra suave al hover */
[data-theme="light"] .step-card:hover,
[data-theme="system"] .step-card:hover {
  box-shadow: inset 0 0 0 1px rgba(201,168,76,0.25);
}

.step-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(201,168,76,0.14);
  line-height: 1;
  margin-bottom: 20px;
  transition: color var(--transition);
}
.step-card:hover .step-number { color: rgba(201,168,76,0.28); }
.step-icon  { font-size: 2rem; margin-bottom: 16px; display: block; }
.step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--clr-text);
}
.step-desc { color: var(--clr-muted); font-size: 0.9rem; line-height: 1.7; }

/* ─── Features ───────────────────────────────────────────── */
.features-section { background: var(--clr-bg); }
.features-inner   { max-width: 1100px; margin: 0 auto; }
.features-layout  {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all var(--transition);
  cursor: default;
}
.feature-card:hover {
  border-color: var(--clr-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.12);
}
[data-theme="light"] .feature-card,
[data-theme="system"] .feature-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
[data-theme="light"] .feature-card:hover,
[data-theme="system"] .feature-card:hover {
  box-shadow: 0 8px 28px rgba(184,146,10,0.15);
}
.feature-icon  { font-size: 1.6rem; margin-bottom: 12px; display: block; }
.feature-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--clr-text); }
.feature-desc  { font-size: 0.82rem; color: var(--clr-muted); line-height: 1.6; }

/* Preview card */
.features-preview { position: relative; }
.preview-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
[data-theme="light"] .preview-card,
[data-theme="system"] .preview-card {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 0 40px rgba(184,146,10,0.08);
}
.preview-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--clr-border);
}
.preview-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  color: #0d0f14;
  font-family: var(--font-display);
}
.preview-name { font-weight: 600; font-size: 1rem; color: var(--clr-text); }
.preview-role { font-size: 0.8rem; color: var(--clr-muted); }
.preview-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.match-label { font-size: 0.82rem; color: var(--clr-muted); }
.match-score {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-success);
}
.preview-bar-bg {
  height: 6px;
  background: var(--clr-surface-2);
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}
.preview-bar-fill {
  height: 100%;
  width: 87%;
  background: linear-gradient(90deg, var(--clr-accent-dim), var(--clr-accent));
  border-radius: 3px;
  animation: grow-bar 1.5s 0.5s ease both;
}
@keyframes grow-bar { from { width: 0; } to { width: 87%; } }

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tag {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--clr-accent);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}
.tag.neutral {
  background: var(--clr-surface-2);
  border-color: var(--clr-border);
  color: var(--clr-muted);
}
.preview-ai-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(76,175,132,0.08);
  border: 1px solid rgba(76,175,132,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--clr-success);
}

/* ─── Roles ──────────────────────────────────────────────── */
.roles-section { background: var(--clr-surface); }
.roles-inner   { max-width: 1100px; margin: 0 auto; }
.roles-header  { text-align: center; margin-bottom: 60px; }
.roles-header .section-desc { margin: 0 auto; }
.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.role-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .role-card,
[data-theme="system"] .role-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.role-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.role-card:hover::before { opacity: 1; }
.role-card:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(201,168,76,0.12);
}
[data-theme="light"] .role-card:hover,
[data-theme="system"] .role-card:hover {
  box-shadow: 0 16px 48px rgba(184,146,10,0.15);
}
.role-emoji { font-size: 3rem; margin-bottom: 20px; display: block; }
.role-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--clr-text);
}
.role-desc { color: var(--clr-muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 28px; }
.role-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.role-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--clr-text);
}
.role-perks li::before {
  content: '✓';
  width: 20px; height: 20px;
  background: rgba(201,168,76,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: var(--clr-accent);
  flex-shrink: 0;
}

/* ─── CTA Final ──────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 120px 60px;
  position: relative;
  overflow: hidden;
  background: var(--clr-bg);
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-inner .section-title { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 20px; }
.cta-inner .section-desc  { margin: 0 auto 44px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-buttons .btn { padding: 15px 36px; font-size: 0.95rem; }

.cta-bg {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}
[data-theme="light"] .cta-bg,
[data-theme="system"] .cta-bg { opacity: 0.06; }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--clr-text);
}
.footer-brand-name span { color: var(--clr-accent); }
.footer-copy  { font-size: 0.8rem;  color: var(--clr-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.82rem; color: var(--clr-muted); }
.footer-links a:hover { color: var(--clr-accent); }

/* ─── Animaciones ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Dropdown ───────────────────────────────────────────── */
.nav-item-dropdown { position: relative; padding: 10px 0; }
.nav-link-dropdown { display: flex; align-items: center; gap: 6px; }
.nav-link-dropdown .arrow { font-size: 0.7rem; transition: transform var(--transition); }
.nav-item-dropdown:hover .nav-link-dropdown .arrow {
  transform: rotate(180deg);
  color: var(--clr-accent);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  min-width: 170px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 1000;
}
[data-theme="light"] .dropdown-menu,
[data-theme="system"] .dropdown-menu {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--clr-muted);
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
  text-align: left;
}
.dropdown-menu a:hover {
  background: rgba(201,168,76,0.08);
  color: var(--clr-accent);
}

/* ─── Bubbles decorativas ────────────────────────────────── */
.bubbles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.03;
  background: var(--clr-accent);
  animation: float-bubble linear infinite;
}
[data-theme="light"] .bubble,
[data-theme="system"] .bubble { opacity: 0.06; }
.bubble-lg { width: 300px; height: 300px; }
.bubble-md { width: 180px; height: 180px; }
.bubble-sm { width: 80px;  height: 80px; }
.bubble:nth-child(1)  { left: 5%;  animation-duration: 22s; animation-delay: 0s; }
.bubble:nth-child(2)  { left: 15%; animation-duration: 18s; animation-delay: 3s; }
.bubble:nth-child(3)  { left: 30%; animation-duration: 25s; animation-delay: 1s; }
.bubble:nth-child(4)  { left: 50%; animation-duration: 20s; animation-delay: 5s; }
.bubble:nth-child(5)  { left: 65%; animation-duration: 16s; animation-delay: 2s; }
.bubble:nth-child(6)  { left: 80%; animation-duration: 28s; animation-delay: 7s; }
.bubble:nth-child(7)  { left: 90%; animation-duration: 19s; animation-delay: 4s; }
.bubble:nth-child(8)  { left: 40%; animation-duration: 23s; animation-delay: 6s; }
.bubble:nth-child(9)  { left: 70%; animation-duration: 21s; animation-delay: 1s; }
@keyframes float-bubble {
  0%   { transform: translateY(110vh) scale(0.8); opacity: 0; }
  10%  { opacity: 0.04; }
  90%  { opacity: 0.04; }
  100% { transform: translateY(-20vh) scale(1.1); opacity: 0; }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-layout { grid-template-columns: 1fr; gap: 48px; }
  .features-preview { display: none; }
}
@media (max-width: 860px) {
  .navbar { padding: 18px 24px; }
  .navbar.scrolled { padding: 14px 24px; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  section { padding: 72px 24px; }
  .steps-grid { grid-template-columns: 1fr; gap: 2px; }
  .features-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; padding: 32px 24px; }
  .cta-section { padding: 80px 24px; }
  .how-section { padding: 100px 24px 80px; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 300px; }
}