/* Estudios Védicos, circulo v2: the Círculo Ayurveda sales page's own layer, on page/v2-base.css and the locked
   page/v2-sections.css (build 9, 26 Nov 2026). The programme page skeleton of the Reto and the Diploma, on Ben's
   round 2 notes 28 to 41: the programme hero with the price as its own fourth row; the icons band (#por-que), the
   earn steps (#mes), the offer card (#precio) and the belly stack are the locked designs; the split band (#vasiliy)
   is the Reto's guide band, flipped so the photograph sits on the right after the icons band; past workshops are the
   library's class cards on the library shelf (the locked plain carousel); the two ways in are the Diploma's two
   photo tiles. One size per role, centred heads and showpieces, the copy column of the split band left. Every
   section keeps its own short entrance. Every colour is a token from v2-base.css. Mobile first. */

.ci { --ci-ease: var(--ease); }
/* Centred ledes of this page's own heads break in even lines, no lone last words (note 33) */
#talleres .band__lede, #con-diploma .band__lede, #precio .band__lede { text-wrap: balance; }

/* ---------------------------------------------------------------- 1. Hero: the live room comes into view */
/* The base hero (v2-base .hero) over the workshop photograph, centred at every width like the Reto's hero: the
   headline, the standfirst, the two buttons, then the price as its own fourth row at the lead size, 30 EUR carried by
   weight and the line that draws under it (notes 35, 36). */
.ci-hero { isolation: isolate; text-align: center; --hlc: var(--saffron); }
.ci-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 35%; z-index: -3; filter: sepia(.14) saturate(.9); transform-origin: 84% 42%; }
.ci-hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 62% at 50% 50%, color-mix(in srgb, var(--noche) 88%, transparent) 0%, color-mix(in srgb, var(--noche) 80%, transparent) 55%, transparent 100%),
    color-mix(in srgb, var(--noche) 52%, transparent);
}
.ci-hero__inner > * { margin-left: auto; margin-right: auto; }
.ci-hero__title { font-variation-settings: "opsz" 144; }
.ci-hero__title em { display: inline-block; }
.ci-hero__price { margin-top: var(--g2); margin-bottom: 0; font-size: var(--fs-lead); line-height: 1.45; color: var(--sage-l); text-align: center; }
.ci-hero__price .hl { --k: 3; color: var(--paper); }
@media (min-width: 768px) {
  .ci-hero__ctas { justify-content: center; }
}
/* Entrance, this section's own: the photograph starts close on the screen of students joining from home and pulls
   back to the whole room as it comes into focus; the headline rises, its last words a beat later, then the line,
   the buttons and the price. */
@media (prefers-reduced-motion: no-preference) {
  .ci-hero__img { animation: ci-pull 2.6s var(--ease) both; }
  .ci-hero__title { animation: ci-up .9s var(--ease) .15s both; }
  .ci-hero__title em { animation: ci-up .9s var(--ease) .5s both; }
  .ci-hero__lead { animation: ci-fade .7s var(--ease) .75s both; }
  .ci-hero__ctas { animation: ci-fade .7s var(--ease) .9s both; }
  .ci-hero__price { animation: ci-fade .7s var(--ease) 1.05s both; }
}
@keyframes ci-pull { from { transform: scale(1.18); filter: sepia(.14) saturate(.9) blur(6px); } to { transform: none; filter: sepia(.14) saturate(.9) blur(0); } }
@keyframes ci-up { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
@keyframes ci-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- 3. My path: now the shared timeline (v2-sections.css, 8a; rows 98 and 99, locked 27 Nov 2026) */

/* ---------------------------------------------------------------- 4. How a month runs (#mes): the locked earn steps, styled by v2-sections.css only */

/* ---------------------------------------------------------------- 5. Past workshops: the library shelf */
/* The locked plain carousel as the library's shelf (biblioteca-v2.css .lib-car): three cards at a time (two under
   1100 px, one on a phone), the arrows outside the strip where the page has room and beside it where it has not,
   level with the pictures, the bar centred under. Every card centred, its picture, title, line and lock on lines
   shared with its neighbours (subgrid). On this dark band the cards wear the library's dark band colours (its most
   watched band): titles in paper, lines in sage, the lock in saffron. */
#talleres .ci-car { container-type: inline-size; --cols: 1; --by: calc((100cqw - (var(--cols) - 1) * var(--g2)) / var(--cols) * 9 / 32) !important; }
#talleres .car.ci-car .car__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--g2)) / var(--cols)); grid-template-rows: repeat(4, auto); column-gap: var(--g2); row-gap: 0; }
#talleres .ci-car__track > li { display: grid; grid-row: span 4; grid-template-rows: subgrid; min-width: 0; }
#talleres .ccard { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; gap: 0; height: auto; text-align: center; color: var(--paper); }
#talleres .ccard__body { display: contents; }
#talleres .ccard__media { border-radius: var(--rm); box-shadow: var(--pop); background: var(--ink); }
#talleres .ccard__title { margin-top: var(--g2); font-size: var(--fs-h3); line-height: var(--lh-snug); text-wrap: balance; color: var(--paper); }
#talleres .ccard:hover .ccard__title { text-decoration-color: var(--saffron); }
#talleres .ccard__meta { margin-top: 6px; color: var(--sage-l); }
#talleres .ccard__access { justify-content: center; margin-top: var(--g1); color: var(--paper); }
#talleres .ccard__icon { color: var(--saffron); }
#talleres .ccard__icon svg [stroke] { stroke-width: 1.5; }
@media (min-width: 768px) { #talleres .ci-car { --cols: 2; } }
@media (min-width: 1100px) { #talleres .ci-car { --cols: 3; } }
/* On a phone one card shows at a time: each card keeps its own lines, and the media shadow is drawn inside the
   picture's width (the phone track has no side room), as on the library shelf. */
@media (max-width: 767.98px) {
  #talleres .car.ci-car .car__track { grid-template-rows: none; align-items: start; }
  #talleres .ci-car__track > li { display: block; grid-row: auto; }
  #talleres .ccard { display: flex; flex-direction: column; grid-row: auto; }
  #talleres .ccard__media { box-shadow: 0 24px 32px -30px var(--shadow-ink); }
}
/* Entrance, this section's own: the workshops in view slide in from the right one after another, each picture
   coming into focus as it lands. */
#talleres .ci-car__track > li:nth-child(2) { --k: 1; } #talleres .ci-car__track > li:nth-child(3) { --k: 2; } #talleres .ci-car__track > li:nth-child(4) { --k: 3; }
@media (prefers-reduced-motion: no-preference) {
  .js #talleres:not(.is-in) .ccard { opacity: 0; }
  .js #talleres.is-in .ccard { animation: ci-shelf .7s var(--ease) calc(var(--k, 0) * 110ms) backwards; }
  .js #talleres.is-in .ccard__media img { animation: ci-focus 1s var(--ease) calc(.15s + var(--k, 0) * 110ms) backwards; }
}
@keyframes ci-shelf { from { opacity: 0; transform: translateX(56px); } }
@keyframes ci-focus { from { filter: blur(8px); transform: scale(1.06); } }

/* ---------------------------------------------------------------- 6. With or without the Diploma: two photo tiles */
/* The Diploma's two ways in (diploma-v5.css .who): each a photograph under a shade that deepens to the bottom, its
   drawn icon, title, sentence and button centred on it (a short block on a showpiece). From 768 px the two tiles
   share every line by subgrid (the open space, the icon, the title, the sentence, the button). */
#con-diploma { overflow-x: clip; }
.ci-two__grid { display: grid; gap: 16px; }
.ci-tile { --icc: var(--saffron); --hlc: var(--saffron); position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; overflow: hidden; border-radius: var(--rm); background: var(--ink); color: var(--paper); isolation: isolate; box-shadow: var(--pop); }
.ci-tile > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ci-tile:hover > img { transform: scale(1.04); }
.ci-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(19,26,21,.94) 0%, rgba(19,26,21,.86) 42%, rgba(19,26,21,.5) 62%, rgba(19,26,21,0) 86%); }
.ci-tile__body { padding: 28px 24px; text-align: center; }
.ci-tile__body .ico { --isz: 56px; --isw: 1.6; }
.ci-tile__body h3 { margin-top: var(--g1); color: var(--paper); text-wrap: balance; }
.ci-tile__body p { margin: var(--g1) auto 0; color: var(--sage-l); max-width: 520px; text-wrap: pretty; }
.ci-tile__body .btn { margin-top: var(--g2); }
/* On a phone the tile stands 600 px tall, so the open photograph above the words keeps Vasiliy's face clear of the
   icon and the title (at 520 px the icon landed on his chin) */
@media (max-width: 767.98px) { .ci-tile { min-height: 600px; } }
@media (min-width: 768px) {
  .ci-two__grid { grid-template-columns: 1fr 1fr; grid-template-rows: clamp(160px, 17vw, 260px) auto auto auto auto; column-gap: var(--g2); row-gap: 0; }
  .ci-tile { min-height: 0; grid-row: span 5; display: grid; grid-template-rows: subgrid; padding: 0 36px 36px; }
  .ci-tile__body { display: contents; }
  .ci-tile__body > * { grid-column: 1; justify-self: center; }
  .ci-tile__body .ico { grid-row: 2; }
  .ci-tile__body h3 { grid-row: 3; }
  .ci-tile__body p { grid-row: 4; }
  .ci-tile__body .btn { grid-row: 5; align-self: end; }
}
/* Entrance, this section's own (the Diploma's two ways in): the two tiles arrive from their own sides, each
   photograph drifting the other way as it lands; on a phone they rise instead. */
@media (prefers-reduced-motion: no-preference) {
  .js #con-diploma .ci-tile { opacity: 0; transition: opacity .8s var(--ease), transform .9s var(--ease); }
  .js #con-diploma .ci-tile:nth-child(1) { transform: translateX(-56px); }
  .js #con-diploma .ci-tile:nth-child(2) { transform: translateX(56px); transition-delay: .09s; }
  .js #con-diploma .ci-tile:nth-child(1) > img { transform: translateX(28px) scale(1.08); }
  .js #con-diploma .ci-tile:nth-child(2) > img { transform: translateX(-28px) scale(1.08); }
  .js #con-diploma .ci-tile > img { transition: transform 1.4s var(--ease); }
  .js #con-diploma.is-in .ci-tile, .js #con-diploma.is-in .ci-tile > img { opacity: 1; transform: none; }
  .js #con-diploma.is-in .ci-tile:hover > img { transform: scale(1.04); transition: transform .8s var(--ease); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 767.98px) {
  .js #con-diploma:not(.is-in) .ci-tile:nth-child(1), .js #con-diploma:not(.is-in) .ci-tile:nth-child(2) { transform: translateY(28px); }
}

/* ---------------------------------------------------------------- 7. The offer: the Círculo on the locked offer card */
/* The Círculo card of the locked pair (system-v2 #offer: photo, name, price at the lead size with its line, the five
   drawn points, the button), one card on its own, centred, as the Reto's offer stands. The id lifts the column over
   the locked pair's 1fr 1fr (v2-sections.css loads after this file). The pay note sits under the button. */
#precio { overflow-x: clip; }
#precio .ci-offer__grid { grid-template-columns: minmax(0, 640px); justify-content: center; }
.ci-offer__card .plan2__acts { flex-direction: column; align-items: center; }
.ci-offer__pay { margin: 0; max-width: 46ch; font-size: var(--fs-small); line-height: 1.5; color: var(--sage-l); text-align: center; }
/* Entrance, this section's own: the card grows up into place from a little smaller, then its photograph opens from
   the middle outwards; the points draw their icons (the shared set) and the line draws under 30 EUR. */
@media (prefers-reduced-motion: no-preference) {
  .js #precio .ci-offer__card { opacity: 0; transform: translateY(32px) scale(.96); transition: opacity .8s var(--ease), transform 1s var(--ease); }
  .js #precio.is-in .ci-offer__card { opacity: 1; transform: none; }
  .js #precio .plan2__img { clip-path: inset(0 50% 0 50%); transition: clip-path 1.1s var(--ease) .35s; }
  .js #precio.is-in .plan2__img { clip-path: inset(0); }
}

/* ---------------------------------------------------------------- Under reduced motion every piece is still and shown at once */
@media (prefers-reduced-motion: reduce) {
  .ci-hero__img, .ci-hero__title, .ci-hero__title em, .ci-hero__lead, .ci-hero__ctas, .ci-hero__price { animation: none; }
}
