/* Variante Jonny Czar: base global.
 * Se carga exclusivamente desde jc-base.leaf, sin custom.css.
 * Tipografía, colores, contenedores y utilidades de esta variante.
 * Los componentes propios usan el prefijo jc- (por ejemplo jc-hero.css).
 * Las secciones glass siguen compartidas durante la migración gradual.
 */
body.jc-theme {
  --jc-background: #f3f3f3;
  --jc-hero-background: #fff;
  --jc-text: #333;
  --jc-content-width: 1100px;
  --jc-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  margin: 0;
  padding: 0;
  font-family: var(--jc-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--jc-text);
  background: var(--jc-background);
}

/* Utilidades de layout conservadas para las secciones existentes. */
:where(.jc-theme) .container {
  width: 100%;
  max-width: var(--jc-content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

:where(.jc-theme) .row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-left: -1rem;
  margin-right: -1rem;
}

:where(.jc-theme) [class*="col-"] {
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

:where(.jc-theme) .col-12 { flex: 0 0 100%; max-width: 100%; }
:where(.jc-theme) .col-6  { flex: 0 0 50%;  max-width: 50%; }

@media (max-width: 900px) {
  :where(.jc-theme) .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}


/* Contacto y footer: base clara de la variante. */
.jc-theme .contact-section {
  background: var(--jc-background);
  padding: 6rem 0;
  text-align: center;
}

:where(.jc-theme) .contact-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1.5rem;
}

:where(.jc-theme) .contact-text {
  color: rgba(0,0,0,0.7);
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 3rem;
}

:where(.jc-theme) .contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

:where(.jc-theme) .contact-primary {
  background: #000000;
  color: #ffffff;
  padding: 0.9rem 2rem;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

:where(.jc-theme) .contact-primary:hover { background: #2c2c2c; }

:where(.jc-theme) .contact-link {
  background: rgba(0,0,0,0.06);
  color: #000000;
  padding: 0.9rem 2rem;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.1);
  transition: all 0.25s ease;
}

:where(.jc-theme) .contact-link:hover {
  background: rgba(0,0,0,0.12);
  border-color: rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
  :where(.jc-theme) .contact-buttons { flex-direction: column; gap: 1rem; }
}

/* ----------------------------------------------------- */
/* FOOTER (light)                                        */
/* ----------------------------------------------------- */

.jc-theme .footer-section {
  background: var(--jc-background);
  padding: 4rem 0 3rem;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.06);
}

:where(.jc-theme) .footer-quote {
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(0,0,0,0.75);
  margin-bottom: 1.2rem;
  font-style: italic;
}

:where(.jc-theme) .footer-tech {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(0,0,0,0.65);
  margin-bottom: 1.4rem;
}

:where(.jc-theme) .footer-tech strong { font-weight: 600; color: #000; }

:where(.jc-theme) .footer-copy {
  font-size: 0.95rem;
  color: rgba(0,0,0,0.5);
}


/* Animaciones de entrada de las secciones. */
:where(.jc-theme) .section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}

:where(.jc-theme) .section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* (Optional utility) */
:where(.jc-theme) .parallax-card {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

@media (prefers-reduced-motion: reduce) {
  .jc-theme .section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* El menú forma parte de la cabecera blanca, sin margen gris superior. */
.jc-theme .nav-capsule-wrapper {
  margin-top: 0;
  padding-top: 2.5rem;
  /* El contenedor ocupa todo el ancho, pero deja ver el fondo del hero. */
  background: transparent;
  position: static;
}

/* El transform de la animación de entrada interfiere con position: sticky. */
.jc-theme .hero-jczar.section {
  transform: none;
  will-change: auto;
}

.jc-theme .interlude-section {
  background: var(--jc-background);
}
