/* ==========================================================================
   Jobly — Design System v2 (light, clean)
   Se carga DESPUÉS de style.css: solo overridea, no rompe la base.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface-lowest: #ffffff;
  --surface-low: #f8f9fa;
  --surface: #ffffff;
  --surface-high: #f1f3f4;
  --surface-highest: #e8eaed;
  --on-surface: #202124;
  --on-surface-variant: #5f6368;
  --outline-variant: #dadce0;
  --primary: #0f9d58;
  --primary-container: #0f9d58;
  --on-primary: #ffffff;
  --warning: #f9ab00;
  --error: #d93025;
  --info: #1a73e8;

  --panel: #ffffff;
  --accent: #0f9d58;
  --text: #202124;
  --muted: #5f6368;
  --border: #dadce0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(32, 33, 36, 0.06), 0 1px 3px rgba(32, 33, 36, 0.04);
  --shadow-md: 0 4px 16px rgba(32, 33, 36, 0.08);
  --shadow-lg: 0 12px 40px rgba(32, 33, 36, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Topbar ---------- */
.topbar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid #eceef0;
  padding: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--on-surface);
  text-decoration: none;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}

.brand-name {
  line-height: 1;
}

.topbar-nav a {
  color: var(--on-surface-variant);
  font-weight: 500;
  border-radius: 999px;
  padding: 6px 10px;
}

.topbar-nav a:hover {
  color: var(--on-surface);
  background: var(--surface-high);
}

/* Enlaces de idioma del header: mismo alto que el boton de al lado, pero
   son <a> de verdad para que el crawler los siga (antes era un <select>). */
.lang-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--on-surface);
  text-decoration: none;
  white-space: nowrap;
}

.lang-nav a:hover {
  background: #f1f3f4;
}

.lang-nav a[aria-current="page"] {
  background: #e8f0fe;
  color: #1a73e8;
}

@media (max-width: 560px) {
  .lang-nav a {
    min-width: 28px;
    padding: 0 5px;
    font-size: 11px;
  }
}

.lang-selector {
  background: #fff;
  color: var(--on-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 34px;
  line-height: 34px;
  padding: 0 12px;
}

/* ---------- Botones ---------- */
.btn {
  background: #fff;
  border: 1px solid var(--border);
  color: #3c4043;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 500;
}

.btn:hover {
  background: var(--surface-low);
  border-color: #c6c9cc;
  color: var(--on-surface);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(32, 33, 36, 0.16);
}

.btn-primary:hover {
  background: #0b8043;
  border-color: #0b8043;
  color: #fff;
  transform: none;
  opacity: 1;
  box-shadow: 0 2px 6px rgba(11, 128, 67, 0.24);
}

.btn:focus-visible,
.btn-primary:focus-visible,
.topbar-nav a:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 72px auto 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -80px 0 auto;
  height: 420px;
  background:
    radial-gradient(520px 260px at 18% 10%, rgba(15, 157, 88, 0.1), transparent 70%),
    radial-gradient(480px 240px at 82% 0%, rgba(26, 115, 232, 0.08), transparent 70%);
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
}

.hero-copy h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--on-surface);
  margin-bottom: 22px;
}

.hero-copy p {
  color: var(--on-surface-variant);
  font-size: 18px;
  line-height: 1.65;
  max-width: 520px;
}

.hero-popup-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid #eceef0;
}

.glow-green {
  box-shadow: var(--shadow-lg);
}

/* ---------- Superficies / cards ---------- */
.bento-card,
.faq-item,
.carousel-slide,
.cta-card,
.demo-video,
.price-card {
  background: #fff;
  border: 1px solid #e8eaed;
  box-shadow: var(--shadow-sm);
}

.bento-card {
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bento-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  background: #e6f4ea;
  color: var(--primary);
  border-radius: 12px;
}

.bento-bar {
  background: var(--surface-high);
}

.bento-extension {
  background: linear-gradient(135deg, rgba(15, 157, 88, 0.07), rgba(255, 255, 255, 0));
}

.bento-extension-icon {
  color: rgba(15, 157, 88, 0.22);
}

.faq-item {
  border-radius: var(--radius-md);
}

.faq-item summary {
  color: var(--on-surface);
}

.faq-item p {
  color: var(--on-surface-variant);
}

.carousel-slide {
  border-radius: var(--radius-lg);
}

.cta-card {
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(15, 157, 88, 0.08), transparent 70%),
    #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Pricing ---------- */
.price-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.price-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.price-card.featured {
  border: 1.5px solid var(--primary);
  box-shadow: 0 8px 28px rgba(15, 157, 88, 0.14);
}

.price-card.featured:hover {
  box-shadow: 0 12px 36px rgba(15, 157, 88, 0.18);
}

.price-badge {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
}

.price-tier {
  color: var(--on-surface);
}

.price-amount {
  color: var(--on-surface);
}

.price-features li {
  color: var(--on-surface-variant);
}

.price-features li .material-symbols-outlined {
  color: var(--primary);
}

.price-card:not(.featured) button:not(:disabled) {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--on-surface);
}

/* ---------- Banner / avisos ---------- */
.bug-bounty-banner {
  background: linear-gradient(135deg, rgba(15, 157, 88, 0.08), rgba(26, 115, 232, 0.06));
  border: 1px solid rgba(15, 157, 88, 0.22);
  border-radius: var(--radius-md);
}

.notif-dropdown {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
}

.notif-header {
  color: var(--on-surface);
  border-bottom: 1px solid #eceef0;
}

.notif-item-text {
  color: var(--on-surface-variant);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #eceef0;
  color: var(--on-surface-variant);
}

.site-footer .brand {
  font-size: 15px;
}

.site-footer a {
  color: var(--on-surface-variant);
}

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

/* ---------- Detalles tipográficos ---------- */
h2 {
  letter-spacing: -0.02em;
}

.bento-intro h2,
.about h2,
.cta-card h2 {
  color: var(--on-surface);
}

.bento-intro p,
.about p,
.cta-card p {
  color: var(--on-surface-variant);
}

::selection {
  background: rgba(15, 157, 88, 0.18);
}

/* ---------- Secciones con fondo oscuro hardcodeado (ahora claras) ---------- */
.interviews-feature,
.practice-panel,
.practice-cost-details,
.profile-hero,
.profile-card,
.checkout-box,
.report-item,
.qa-card,
.eval-metric-card {
  background: #ffffff;
  border-color: #e8eaed;
}

.interviews-feature,
.profile-card,
.qa-card,
.eval-metric-card,
.report-item {
  box-shadow: var(--shadow-sm);
}

.interviews-feature:hover,
.report-item:hover {
  border-color: var(--border);
  background: var(--surface-low);
}

.coming-soon-badge {
  color: #0b8043;
  background: #e6f4ea;
  border-color: rgba(15, 157, 88, 0.25);
}

.interviews-email-input,
.practice-panel input[type="text"],
.practice-panel input[type="number"],
.practice-panel select,
.practice-panel textarea {
  background: #ffffff;
  border-color: var(--border);
  color: var(--on-surface);
}

.interviews-feature h3,
.profile-hero h2,
.profile-card h3,
.qa-card h3,
.eval-metric-card h3 {
  color: var(--on-surface);
}

/* ---------- Descarga Windows ---------- */
.download-section {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #e9f7ee 0%, #ffffff 62%);
  border: 1px solid #d5eadb;
  border-radius: 20px;
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
}

.download-copy {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.download-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 6px 16px rgba(15, 157, 88, 0.25);
}

.download-copy h2 {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.download-copy p {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 1.5;
  max-width: 560px;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.download-note {
  font-size: 12px;
  color: var(--on-surface-variant);
}

@media (max-width: 700px) {
  .download-card {
    padding: 22px;
  }
  .download-actions {
    align-items: stretch;
    width: 100%;
  }
  .download-actions .btn-primary {
    justify-content: center;
  }
}

/* ---------- Video de demostración (embed de YouTube) ---------- */
.demo-embed {
  max-width: 980px;
  margin: 0 auto;
}

.demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  background: #0b1119;
  box-shadow: var(--shadow-md, 0 18px 50px rgba(19, 39, 29, 0.16));
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-copy h1 {
    font-size: 40px;
  }

  .hero {
    margin: 40px auto 64px;
  }

  .topbar {
    padding: 10px 16px;
  }
}

@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: 34px;
  }

  .bento,
  .faq,
  .demo,
  .showcase,
  .cta {
    margin-top: 56px;
    margin-bottom: 56px;
  }
}
