/*
 * Estilo «Cristyle»: composición editorial y luminosa (fotos grandes y
 * redondas, titulares serif grandes, columnas centradas, botones de píldora,
 * tarjetas con fotos a sangre y título encima). Usa los mismos colores y
 * tipografías que el estilo clásico; solo se carga cuando está activo.
 */
.theme-cristyle {
  --cs-bg: var(--paper);
  --cs-card: #fff;
  --cs-band: var(--cream);
  --cs-border: var(--line);
  --cs-btn: var(--cocoa-2);
  --cs-btn-hover: var(--cocoa);
  --cs-r: 28px;
  --cs-col: 1000px;
  --radius: 22px;
}

/* ---------- Base ---------- */
body.theme-cristyle { background: var(--cs-bg); background-image: none; font-size: 16.5px; }
.theme-cristyle h1, .theme-cristyle h2 { font-weight: 800; letter-spacing: -.01em; }
.theme-cristyle .display { text-transform: none; letter-spacing: -.01em; }
.theme-cristyle .sprig, .theme-cristyle .heart-rule { display: none; }
.theme-cristyle .with-sprigs { display: block; }
.theme-cristyle .section { padding: 56px 0; }
.theme-cristyle .section--tight { padding: 32px 0; }
.theme-cristyle main > .section > .container,
.theme-cristyle main > section > .container,
.theme-cristyle main > article.container { max-width: calc(var(--cs-col) + 40px); }

/* Titulares de página: alineados a la izquierda, grandes, con una línea gris debajo */
.theme-cristyle .title-block { text-align: left; margin-bottom: 1.6rem; }
.theme-cristyle .title-block h1, .theme-cristyle .title-block h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05; }
.theme-cristyle .title-block .script { display: block; font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--muted); margin-top: .35rem; }
.theme-cristyle .title-block p { margin: .9rem 0 0; max-width: 720px; }
.theme-cristyle .center { text-align: left; }

/* ---------- Encabezado ---------- */
.theme-cristyle .site-header { position: relative; background: transparent; backdrop-filter: none; border-bottom: 0; }
.theme-cristyle .site-header::after { display: none; }
.theme-cristyle .header-inner { max-width: none; padding: 0 clamp(20px, 4vw, 60px); min-height: 84px; }
.theme-cristyle .brand img { width: 58px; height: 58px; object-fit: cover; border-radius: 50%; filter: none; background: #fff; }
.theme-cristyle .brand-name { font-size: 1.35rem; }
.theme-cristyle .brand-tag { display: none; }
.theme-cristyle .main-nav { gap: clamp(4px, 1.6vw, 22px); }
.theme-cristyle .main-nav > a, .theme-cristyle .main-nav .nav-menu > summary {
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--muted); padding: .4rem .2rem; border-radius: 0; background: none;
}
.theme-cristyle .main-nav > a:hover, .theme-cristyle .main-nav .nav-menu > summary:hover { color: var(--cocoa); background: none; }
.theme-cristyle .main-nav > a.is-active, .theme-cristyle .nav-menu.is-active > summary { color: var(--cocoa); }
.theme-cristyle .main-nav a.is-active::after { display: none; }
.theme-cristyle .nav-actions > a:not(.btn) { font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--cocoa-2); background: var(--cs-band); border-radius: 999px; padding: .3rem .8rem; }
.theme-cristyle .nav-menu-panel { border-radius: 22px; border-color: var(--cs-border); }
@media (min-width: 1121px) and (max-width: 1320px) {
  .theme-cristyle .header-inner { gap: 14px; padding: 0 24px; }
  .theme-cristyle .brand-name { font-size: 1.2rem; }
  .theme-cristyle .main-nav { gap: 6px; }
  .theme-cristyle .main-nav > a, .theme-cristyle .main-nav .nav-menu > summary { font-size: .95rem; }
  .theme-cristyle .nav-actions { gap: 6px; margin-left: 6px; }
}
@media (max-width: 1120px) {
  .theme-cristyle .main-nav { background: var(--cs-card); border-radius: 0 0 24px 24px; }
  .theme-cristyle .main-nav > a, .theme-cristyle .main-nav .nav-menu > summary { padding: .8rem 1rem; font-size: 1.1rem; }
  .theme-cristyle .nav-toggle { border-radius: 50%; }
}

/* ---------- Botones: píldoras ---------- */
.theme-cristyle .btn {
  --btn-bg: var(--cs-btn); --btn-bd: var(--cs-btn); --btn-fg: #fff;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0; box-shadow: none; border-width: 1px;
}
.theme-cristyle .btn:hover { --btn-bg: var(--cs-btn-hover); --btn-bd: var(--cs-btn-hover); transform: none; box-shadow: none; }
.theme-cristyle .btn--lg { padding: 1.15rem 2.2rem; font-size: 1.02rem; }
.theme-cristyle .btn--sage { --btn-bg: var(--sage-dark, #5f6c41); --btn-bd: var(--sage-dark, #5f6c41); }
.theme-cristyle .btn--ghost { --btn-bg: var(--cs-band); --btn-fg: var(--cocoa-2); --btn-bd: var(--cs-border); font-family: var(--font-body); font-weight: 800; }
.theme-cristyle .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--cocoa); --btn-bd: var(--line-strong); }
.theme-cristyle .btn--danger { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: #e3b2ad; font-family: var(--font-body); }
.theme-cristyle .btn--danger:hover { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.theme-cristyle .btn--live { --btn-bg: var(--live); --btn-bd: var(--live); }
.cs-btn-wide { min-width: min(100%, 380px); }
.cs-btn-soft { margin-top: 26px; }

/* ---------- Cintas → etiquetas sobrias ---------- */
.theme-cristyle .ribbon { clip-path: none; border-radius: 999px; padding: .42rem .9rem; font-size: .72rem; letter-spacing: .08em; }
.theme-cristyle .card-media .ribbon { background: rgba(255, 255, 255, .92); color: var(--cocoa); left: 14px; top: 14px; bottom: auto; }

/* ---------- Paneles: tarjetas blancas redondeadas ---------- */
.theme-cristyle .panel { background: var(--cs-card); border-color: var(--cs-border); border-radius: var(--cs-r); box-shadow: none; padding: 30px; }
.theme-cristyle .panel::after { display: none; }
.theme-cristyle .panel--tinted, .theme-cristyle .panel--rose, .theme-cristyle .panel--sagebg { background: var(--cs-band); border-color: var(--cs-border); }
.theme-cristyle .panel--labeled { padding-top: 26px; margin-top: 0; }
.theme-cristyle .panel-label {
  position: static; transform: none; display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem;
  background: none; color: var(--cocoa); clip-path: none; padding: 0;
  font: 800 1.45rem/1.15 var(--font-display); letter-spacing: -.01em; text-transform: none;
}
.theme-cristyle .panel-label svg { width: 20px; height: 20px; color: var(--rose); }

/* ---------- Tarjetas con foto: imagen a sangre y título encima ---------- */
.theme-cristyle .card { border-radius: var(--cs-r); box-shadow: none; background: var(--cs-card); border-color: var(--cs-border); }
.theme-cristyle a.card:hover { transform: none; box-shadow: none; }
.theme-cristyle a.card { border: 0; aspect-ratio: 400 / 322; justify-content: flex-end; background: var(--cream-2); isolation: isolate; }
.theme-cristyle a.card .card-media { position: absolute; inset: 0; aspect-ratio: auto; z-index: -1; }
.theme-cristyle a.card .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(40, 24, 16, .72)); }
.theme-cristyle a.card .card-placeholder { background: var(--cream-2); }
.theme-cristyle a.card .card-body { flex: 0; padding: 18px 20px; gap: .2rem; color: #fff; }
.theme-cristyle a.card .card-body h3 { color: #fff; font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.theme-cristyle a.card .card-body h3 .script { display: inline; font-family: var(--font-display); font-size: 1em; color: #fff; font-weight: 700; }
.theme-cristyle a.card .card-body p, .theme-cristyle a.card .card-foot { display: none; }
.theme-cristyle a.card .eyebrow { color: rgba(255, 255, 255, .85); font-size: .7rem; }
.theme-cristyle a.card .badge { background: rgba(255, 255, 255, .92); color: var(--cocoa); border: 0; }
.theme-cristyle a.card .card-media .lock { top: 14px; right: 14px; }
/* Cuadrícula de recetas: cuatro columnas de fotos verticales */
.theme-cristyle .recipe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.theme-cristyle .recipe-grid a.card { aspect-ratio: 230 / 276; }
.theme-cristyle .recipe-grid a.card .card-body h3 { font-size: 1.05rem; }
@media (max-width: 980px) { .theme-cristyle .recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .theme-cristyle .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .theme-cristyle .recipe-grid a.card .card-body { padding: 14px; } }
.theme-cristyle .recipe-group-title .ribbon { background: none; color: var(--cocoa); padding: 0; font: 700 1.25rem/1.2 var(--font-display); letter-spacing: 0; text-transform: none; }
.theme-cristyle .recipe-group-title .ribbon svg { display: none; }
/* Tarjetas de producto (con botón): foto arriba, texto abajo */
.theme-cristyle article.card:not(.program-row) .card-media { aspect-ratio: 400 / 300; }
.theme-cristyle article.card:not(.program-row) .card-media .ribbon { top: auto; bottom: 14px; }

/* ---------- Filtros y buscador ---------- */
.theme-cristyle .filter-chips { justify-content: flex-start; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.theme-cristyle .filter-chips a { flex: none; font-family: var(--font-display); font-weight: 700; font-size: .85rem; background: var(--cs-band); border: 0; color: var(--cocoa-2); padding: .45rem 1rem; box-shadow: none; }
.theme-cristyle .filter-chips a.is-active { background: var(--cs-btn); color: #fff; }
.theme-cristyle .filter-chips + p.center { text-align: left; margin-top: 0 !important; }
.cs-search { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; padding: 0 16px; border: 1px solid var(--cs-border); border-radius: 999px; background: var(--cs-card); }
.cs-search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.cs-search input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: .7rem 0 !important; width: 100%; font-size: .95rem; }
.cs-search input:focus { outline: none; }
.cs-search:focus-within { border-color: var(--line-strong); }

/* ---------- Formularios ---------- */
.theme-cristyle input:not([type=checkbox]):not([type=radio]):not([type=file]), .theme-cristyle select, .theme-cristyle textarea { border-radius: 12px; background: var(--cs-bg); }
.theme-cristyle fieldset { border-radius: 18px; border-style: solid; }
.theme-cristyle .form-actions .btn { min-width: min(100%, 300px); }

/* ---------- Ficha de receta: tarjeta dividida ---------- */
.theme-cristyle .recipe-hero {
  grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; margin-top: 24px; padding: 0;
  background: var(--cs-band); border: 1px solid var(--cs-border); border-radius: var(--cs-r); overflow: hidden;
}
.theme-cristyle .recipe-hero > div:first-child { padding: 34px; display: flex; flex-direction: column; gap: 10px; }
.theme-cristyle .recipe-title { text-transform: none; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; }
.theme-cristyle .recipe-title .script { display: block; font-family: var(--font-display); font-weight: 600; font-size: .62em; color: var(--muted); margin-top: .3em; }
.theme-cristyle .recipe-tagline { border: 0; background: none; padding: 0; margin-top: .4rem; color: var(--muted); }
.theme-cristyle .recipe-tagline svg { display: none; }
.theme-cristyle .facts { background: var(--cs-card); border-color: var(--cs-border); margin-top: auto !important; }
.theme-cristyle .fact { border-right-color: var(--cs-border); }
.theme-cristyle .fact svg { color: var(--cocoa-2); }
.theme-cristyle .recipe-photo { min-height: 360px; }
.theme-cristyle .recipe-photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.theme-cristyle .recipe-photo .stamp-note { left: auto; right: 16px; bottom: 16px; transform: none; outline: 0; font-family: var(--font-body); font-size: .9rem; background: rgba(255, 255, 255, .92); color: var(--cocoa); border-radius: 16px; }
@media (max-width: 900px) { .theme-cristyle .recipe-hero { grid-template-columns: 1fr; } .theme-cristyle .recipe-photo { order: -1; min-height: 280px; } }

/* ---------- Programa ---------- */
.theme-cristyle .program-cover { border: 0; box-shadow: none; border-radius: var(--cs-r); }
.theme-cristyle .module { background: var(--cs-card); border-radius: 22px; }
.theme-cristyle .module-num, .theme-cristyle .module:nth-child(3n+2) .module-num, .theme-cristyle .module:nth-child(3n) .module-num { background: var(--cs-band); color: var(--cocoa); box-shadow: none; }
.theme-cristyle .date-chip { box-shadow: none; border-radius: 14px; }
.theme-cristyle .date-chip b { background: var(--cs-btn); }

/* ---------- Especialidades ---------- */
.theme-cristyle .spec-card { border-radius: var(--cs-r); box-shadow: none; background: var(--cs-card); }
.theme-cristyle .spec-card:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }

/* ---------- Banda final ---------- */
.theme-cristyle .cta-band { background: var(--cs-band); color: var(--cocoa); box-shadow: none; border: 0; border-radius: var(--cs-r); }
.theme-cristyle .cta-band::after { display: none; }
.theme-cristyle .cta-band h2, .theme-cristyle .cta-band p { color: var(--cocoa); }
.theme-cristyle .cta-band .script { color: var(--muted); font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.theme-cristyle .cta-band .btn { --btn-bg: var(--cs-btn); --btn-fg: #fff; --btn-bd: var(--cs-btn); }

/* ---------- Pedidos ---------- */
.theme-cristyle .order-jump { justify-content: flex-start; }
.theme-cristyle .order-jump a { background: var(--cs-band); border: 0; font-family: var(--font-display); }
.theme-cristyle .kind-option > span, .theme-cristyle .order-items { background: var(--cs-bg); border-radius: 18px; }
.theme-cristyle .kind-option input:checked + span { background: var(--cs-band); border-color: var(--cs-btn); box-shadow: none; }

/* ---------- Panel y aula ---------- */
.theme-cristyle .sidenav { border-radius: var(--cs-r); box-shadow: none; background: var(--cs-card); }
.theme-cristyle .sidenav::after { display: none; }
.theme-cristyle .sidenav a.is-active { background: var(--cs-band); color: var(--cocoa); }
.theme-cristyle .sidenav-title { font-family: var(--font-display); font-weight: 800; color: var(--cocoa); }
.theme-cristyle .table-wrap { border: 1px solid var(--cs-border); border-radius: 22px; background: var(--cs-card); }
.theme-cristyle .tabs a { font-family: var(--font-display); border: 0; background: var(--cs-band); }
.theme-cristyle .tabs a.is-active { background: var(--cs-btn); }
.theme-cristyle .flash { border-radius: 18px; box-shadow: none; }

/* ========================= Portada ========================= */
.cs-narrow { max-width: 760px; text-align: center; }
.cs-col { max-width: calc(var(--cs-col) + 40px); }
.cs-hero { padding: 16px 0 30px; }
.cs-hero-photo { width: min(360px, 76vw); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto; background: var(--cream-2); }
.cs-hero-title { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; margin: 28px auto 10px; max-width: 900px; }
.cs-hero-lead { font-size: 1.15rem; color: var(--ink); max-width: 620px; margin: 0 auto 26px; }
.cs-hero-login { margin: 16px 0 0; font-size: .92rem; color: var(--ink); }
.cs-hero-login a { color: var(--cocoa); font-weight: 800; margin-left: .6rem; }
.cs-social { display: flex; justify-content: center; gap: 16px; margin-top: 22px; }
.cs-social a { color: var(--cocoa); display: grid; place-items: center; width: 34px; height: 34px; }
.cs-social a:hover { color: var(--rose-dark); }
.cs-social svg { width: 22px; height: 22px; }
.cs-scroll { display: inline-grid; place-items: center; margin-top: 28px; color: var(--cocoa); }
.cs-scroll svg { width: 40px; height: 40px; stroke-width: 1.4; }

.cs-section { padding: 64px 0; }
.cs-section--tight { padding: 28px 0; }
.cs-h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.05; margin: 0; }
.cs-count { margin: .3rem 0 0; color: var(--muted); font-size: 1rem; }
.cs-prose { max-width: none; color: var(--muted); margin-top: 18px; }
.cs-prose p { margin: 0 0 1em; }
.cs-circle { width: 190px; height: 190px; object-fit: cover; border-radius: 50%; margin-bottom: 26px; background: var(--cream-2); }
.cs-band { background: var(--cs-band); padding: 64px 0; margin-top: 30px; }

/* Carrusel de fotos */
.cs-carousel { position: relative; margin-top: 28px; }
.cs-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(400px, 78%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 2px; }
.cs-track::-webkit-scrollbar { display: none; }
.cs-arrow { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--cs-border); background: #fff; color: var(--cocoa); cursor: pointer; box-shadow: 0 3px 6px rgba(0, 0, 0, .13); }
.cs-arrow svg { width: 20px; height: 20px; }
.cs-arrow--prev { left: -20px; }
.cs-arrow--next { right: -20px; }
.cs-arrow[hidden] { display: none; }
@media (max-width: 720px) { .cs-arrow { display: none; } }
.cs-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 400 / 322; border-radius: var(--cs-r); overflow: hidden; scroll-snap-align: start; background: var(--cream-2); color: #fff; text-decoration: none; isolation: isolate; }
.cs-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.cs-tile:hover > img { transform: scale(1.03); }
.cs-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 50%, rgba(40, 24, 16, .7)); }
.cs-tile-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-strong); z-index: -2; }
.cs-tile-empty svg { width: 56px; height: 56px; }
.cs-tile-text { display: flex; flex-direction: column; gap: 2px; padding: 20px 22px; }
.cs-tile-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.cs-tile-meta { font-size: .82rem; opacity: .9; }
.cs-tile:hover { color: #fff; }
.cs-tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 4px; padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--cocoa); font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.cs-tag svg { width: 12px; height: 12px; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.cs-tile--wide { aspect-ratio: 16 / 10; }

/* Tarjeta «Clases en vivo» */
.cs-card { background: var(--cs-card); border: 1px solid var(--cs-border); border-radius: var(--cs-r); padding: 40px 32px; margin-top: 22px; }
.cs-card--center { text-align: center; }
.cs-kicker { font-style: italic; color: var(--muted); margin: 0 0 .4rem; font-size: .95rem; }
.cs-card-title { font-size: clamp(1.6rem, 3vw, 2.1rem); text-transform: uppercase; margin: 0 0 .6rem; }
.cs-card-when { font-size: 1.15rem; color: var(--ink); margin: 1rem 0 1.6rem; }
.cs-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--cocoa); font-weight: 700; font-size: .92rem; text-decoration: none; }
.cs-link svg { width: 16px; height: 16px; }
.cs-card--center .cs-link { display: flex; justify-content: center; }

/* Especialidades en píldoras */
.cs-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cs-pills a { display: inline-flex; align-items: center; gap: 8px; padding: .7rem 1.2rem; border-radius: 999px; background: var(--cs-card); border: 1px solid var(--cs-border); color: var(--cocoa); font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.cs-pills a:hover { border-color: var(--line-strong); background: var(--cs-band); }
.cs-pills svg { width: 18px; height: 18px; color: var(--rose); }

/* ---------- Pie de página ---------- */
.cs-footer { margin-top: 60px; background: var(--cs-card); border-top: 1px solid var(--cs-border); padding: 46px 0 34px; text-align: center; }
.cs-footer-name { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--cocoa); text-decoration: none; }
.cs-footer .cs-social { margin-top: 14px; }
.cs-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 22px auto 0; max-width: 720px; }
.cs-footer-links a { color: var(--cocoa-2); text-decoration: none; font-size: .92rem; font-weight: 700; }
.cs-footer-links a:hover { color: var(--rose-dark); }
.cs-footer-note { display: inline-block; margin: 26px 0 0; padding: .55rem 1.4rem; border-radius: 999px; background: var(--cs-band); font-size: .85rem; color: var(--cocoa-2); }
.cs-footer-copy { margin: 22px 0 0; font-size: .82rem; font-style: italic; color: var(--muted); }

@media (max-width: 640px) {
  .cs-section { padding: 44px 0; }
  .cs-card { padding: 30px 20px; }
  .cs-hero-title { margin-top: 22px; }
  .theme-cristyle .panel { padding: 22px; }
}
.cs-hero-photo[src$="logo.png"] { object-fit: contain; padding: 18px; background: #fff; border: 1px solid var(--cs-border); }
@media (max-width: 640px) { .cs-tile--wide { aspect-ratio: 4 / 3; } }
.theme-cristyle .main-nav a.btn, .theme-cristyle .main-nav a.btn:hover { color: var(--btn-fg); padding: .55rem 1rem; }
.theme-cristyle .program-row { border-radius: var(--cs-r); }
.theme-cristyle a.card .card-media { aspect-ratio: auto !important; height: auto; }
.theme-cristyle .program-row .card-media { aspect-ratio: auto; min-height: 300px; }
.theme-cristyle .program-row .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
