/* Yamibellezaa · escuela online (21-10-2026).
   Piezas comunes a todas las páginas: cabecera, menú lateral, pie y ramas que muestra u oculta escuela.js.
   El resto del estilo de cada página va en su propio <style>, copiado de la maqueta aprobada (v31). */

[data-if] { display: contents; }
[hidden] { display: none !important; }

.y-body { margin: 0; background: #111111; color: #f7f1ea; font-family: Inter, Arial, sans-serif; }
.y-body a { color: #e0c9a8; }
.y-body a:hover { color: #f7f1ea; }
.y-body button { cursor: pointer; }
.y-body a:focus-visible, .y-body button:focus-visible, .y-body summary:focus-visible, .y-body input:focus-visible,
.y-body select:focus-visible, .y-body textarea:focus-visible { outline: 2px solid #b89672; outline-offset: 3px; }

/* Inicio: un diseño para escritorio y otro para móvil, los dos aprobados */
.y-mob, .y-mob-footer { display: none !important; }
@media (max-width: 640px) {
  .y-desk, .y-desk-footer { display: none !important; }
  .y-mob { display: block !important; }
  .y-mob-footer { display: flex !important; }
}

/* Cabecera */
.y-skip { position: absolute; left: 16px; top: -80px; z-index: 30; padding: 12px 16px; border-radius: 12px; background: #f7f1ea; color: #211a17 !important; font: 600 14px Inter, Arial, sans-serif; text-decoration: none; }
.y-skip:focus { top: 12px; }
.y-header { font-family: Inter, Arial, sans-serif; }
.y-header .y-bar { transform-origin: left center; }
.y-brand { display: inline-flex; align-items: center; font-family: Inter, Arial, sans-serif; font-style: italic; font-weight: 500; line-height: 1; font-size: 24px; color: #f7f1ea !important; text-decoration: none; filter: drop-shadow(0 1px 8px rgba(0,0,0,.34)); }
.y-flower { width: 22px; height: 22px; display: inline-grid; place-items: center; margin-left: 4px; overflow: hidden; transition: width 420ms cubic-bezier(.22,1,.36,1), opacity 260ms ease, transform 420ms cubic-bezier(.22,1,.36,1), margin 420ms ease; }
.y-rest { max-width: 0; opacity: 0; overflow: hidden; margin-left: .05em; transform: translateX(-1px); white-space: nowrap; transition: max-width 520ms cubic-bezier(.22,1,.36,1), opacity 220ms ease, transform 520ms cubic-bezier(.22,1,.36,1); }
.y-brand:hover .y-flower, .y-brand:focus .y-flower { width: 0; margin-left: 0; opacity: 0; transform: rotate(45deg) scale(.58); }
.y-brand:hover .y-rest, .y-brand:focus .y-rest { max-width: 120px; opacity: 1; transform: none; }
.y-loop .y-flower { animation: footerFlowerLoop 5.6s cubic-bezier(.22,1,.36,1) infinite; }
.y-loop .y-rest { animation: footerWordmarkLoop 5.6s cubic-bezier(.22,1,.36,1) infinite; }
.y-loop.y-brand { font-size: 25px; }
@keyframes footerFlowerLoop { 0%, 18%, 86%, 100% { width: 22px; margin-left: 4px; opacity: 1; transform: rotate(0) scale(1); } 34%, 68% { width: 0; margin-left: 0; opacity: 0; transform: rotate(45deg) scale(.58); } }
@keyframes footerWordmarkLoop { 0%, 18%, 86%, 100% { max-width: 0; opacity: 0; transform: translateX(-1px); } 34%, 68% { max-width: 120px; opacity: 1; transform: translateX(0); } }
.y-acc { transition: background-color 180ms ease, transform 180ms ease; }
.y-acc:active { transform: scale(.97); }
.y-menu { transition: transform 220ms ease; cursor: pointer; }
.y-menu:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .y-acc:hover { background: rgba(255,255,255,.12); }
  .y-menu:hover { transform: scale(1.06); }
}
@media (max-width: 640px) {
  .y-header .y-bar { padding: 4px 4px 4px 16px !important; }
  .y-header .y-acc { padding: 0 12px 0 10px !important; }
}

/* La barra acompaña al scroll, fija arriba como la cabecera de Lienzo v2. Al bajar se oscurece para
   leerse sobre el papel claro; en las páginas que no empiezan con foto (legales, Aromaterapia) va oscura desde el principio */
.y-header { position: fixed !important; top: 18px !important; left: 0 !important; right: 0 !important; z-index: 50 !important; padding: 0 16px !important; background: transparent !important; pointer-events: none; }
.y-header .y-bar { pointer-events: auto; transition: background-color 320ms ease, box-shadow 320ms ease; }
.y-header.is-scrolled .y-bar, .y-header:not([style*="position: absolute"]) .y-bar { background: rgba(28, 23, 20, .78) !important; }
.y-header:not([style*="position: absolute"]) + * { padding-top: 118px !important; }
.y-header:not([style*="position: absolute"]) + .legal-page { padding-top: calc(96px + clamp(48px, 7vw, 80px)) !important; }
/* En el aula, el índice lateral se queda pegado justo debajo de la barra */
.y-header ~ * .courses-sidebar { top: 92px; }
@media (max-width: 640px) {
  .y-header { top: 12px !important; padding: 0 12px !important; }
  .y-header:not([style*="position: absolute"]) + * { padding-top: 100px !important; }
  .y-header:not([style*="position: absolute"]) + .legal-page { padding-top: calc(80px + 40px) !important; }
}

/* Menú lateral: el mismo panel de cristal de Lienzo v2, ahora con los cursos */
.y-menu-root { font-family: Inter, Arial, sans-serif; }
.m-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(17,17,17,.24); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity 280ms ease; }
.m-side { position: fixed; top: 24px; right: 24px; bottom: 24px; z-index: 61; width: 560px; max-width: calc(100vw - 48px); box-sizing: border-box; padding: 24px 28px; display: grid; grid-template-rows: auto 1fr auto; gap: 28px; background: rgba(255,255,255,.13); color: #f7f1ea; border-radius: 30px; box-shadow: -18px 20px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.24); backdrop-filter: blur(30px) saturate(140%); -webkit-backdrop-filter: blur(30px) saturate(140%); transform: translateX(calc(100% + 40px)) scale(.98); opacity: 0; visibility: hidden; transition: transform 520ms cubic-bezier(.22,1,.36,1), opacity 320ms ease, visibility 0s linear 520ms; overflow-y: auto; }
.m-open .m-backdrop { opacity: 1; pointer-events: auto; }
.m-open .m-side { transform: none; opacity: 1; visibility: visible; transition: transform 520ms cubic-bezier(.22,1,.36,1), opacity 320ms ease, visibility 0s; }
.m-side .y-brand { filter: drop-shadow(0 1px 8px rgba(0,0,0,.36)); font-size: 22px; }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.m-close { position: relative; width: 42px; height: 42px; border: 0; background: transparent; color: #f7f1ea; cursor: pointer; transition: transform 220ms ease; }
.m-close:hover { transform: rotate(90deg) scale(1.05); }
.m-close:active { transform: rotate(90deg) scale(.94); }
.m-close::before, .m-close::after { content: ""; position: absolute; top: 50%; left: 10px; width: 22px; height: 2px; border-radius: 999px; background: currentColor; }
.m-close::before { transform: rotate(45deg); }
.m-close::after { transform: rotate(-45deg); }
.m-nav { display: grid; align-content: start; gap: 18px; padding-top: 4px; }
.m-group { display: grid; gap: 0; }
.m-group h2 { margin: 0 0 8px; color: rgba(247,241,234,.72); font: 700 12px/1 Inter, Arial, sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.m-nav a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.09); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; line-height: 1.05; color: rgba(247,241,234,.74); text-decoration: none; opacity: 0; transform: translateX(16px); transition: color 180ms ease, transform 300ms cubic-bezier(.22,1,.36,1), opacity 260ms ease; }
.m-nav a:hover { color: #fff; }
.m-open .m-nav a { opacity: 1; transform: none; }
.m-open .m-nav a:hover { transform: translateX(6px); }
.m-nav .m-parent { font-size: 31px; }
.m-sub { position: relative; display: grid; margin: 0 0 4px 18px; padding-left: 18px; }
.m-sub::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 10px; width: 1px; background: linear-gradient(180deg, rgba(247,241,234,.34), rgba(247,241,234,.06)); }
.m-nav .m-sub a { padding: 12px 0; font: 700 13px/1.2 Inter, Arial, sans-serif; letter-spacing: .02em; color: rgba(247,241,234,.78); }
.m-nav .m-sub a:hover { color: #fff; }
.m-tag { font: 600 12px/1 Inter, Arial, sans-serif; letter-spacing: .04em; color: rgba(247,241,234,.72); }
.m-tag-oro { color: #e0c9a8; }
.m-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.m-nav .m-pills a { min-height: 34px; box-sizing: border-box; padding: 8px 13px; display: inline-flex; align-items: center; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(247,241,234,.72); font: 600 12px/1 Inter, Arial, sans-serif; backdrop-filter: blur(12px); }
.m-open .m-nav .m-pills a:hover { color: #fff; background: rgba(255,255,255,.15); transform: translateY(-1px); }
.m-note { max-width: 340px; color: rgba(247,241,234,.74); font: 400 13px/1.7 Inter, Arial, sans-serif; }
.m-note p { margin: 0 0 12px; }
.m-note a, .m-note span { display: block; color: rgba(247,241,234,.78); text-decoration: none; }
.m-note a:hover { color: #fff; }
.m-open .m-d1 { transition-delay: 60ms; } .m-open .m-d2 { transition-delay: 85ms; } .m-open .m-d3 { transition-delay: 110ms; }
.m-open .m-d4 { transition-delay: 135ms; } .m-open .m-d5 { transition-delay: 160ms; } .m-open .m-d6 { transition-delay: 185ms; }
.m-open .m-d7 { transition-delay: 210ms; } .m-open .m-d8 { transition-delay: 235ms; } .m-open .m-d9 { transition-delay: 260ms; }
.m-open .m-d10 { transition-delay: 285ms; }
.m-side:hover .m-nav a { transition-delay: 0ms; }
body.m-open { overflow: hidden; }
@media (max-width: 640px) {
  .m-side { left: 10px; right: 10px; top: 10px; bottom: 10px; width: auto; max-width: none; padding: 20px; }
  .m-nav { gap: 12px; }
  .m-nav a { font-size: 24px; }
  .m-nav .m-parent { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .y-body *, .y-menu-root * { animation: none !important; transition: none !important; }
  .y-body .reveal { opacity: 1; transform: none; }
  .y-body .y-firma, .y-body .y-firma-in { clip-path: none; }
}

/* Cursos del inicio: desplazamiento nativo, flechas y un avance por tarjeta. */
.y-course-carousel { min-width: 0; width: 100%; }
.y-course-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 3.2); gap: 22px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: none; scrollbar-width: none; padding: 8px 0 20px; scroll-padding-inline: 0; }
.y-course-track::-webkit-scrollbar { display: none; }
.y-course-track.is-auto-moving { scroll-snap-type: none; scroll-behavior: auto; }
[data-course-stat] { font-variant-numeric: tabular-nums; }
.y-stat-free { color: #3e654d; }
.y-stat-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.y-course-track > .y-card { min-width: 0; scroll-snap-align: start; scroll-snap-stop: normal; }
.y-course-track .y-card { box-shadow: inset 0 1px 0 rgba(255,255,255,.18) !important; }
.y-course-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; color: #d9bf9f; font: 400 13px/1.5 Inter, Arial, sans-serif; }
.y-course-controls > div { display: flex; gap: 10px; }
.y-course-controls button { width: 48px; height: 48px; border: 1px solid rgba(247,241,234,.28); border-radius: 50%; background: rgba(255,255,255,.07); color: #f7f1ea; font-size: 24px; transition: background-color 180ms ease, transform 180ms ease; }
.y-course-controls button:disabled { opacity: .3; cursor: default; }
.y-course-controls button[data-carousel-toggle] { width: auto; min-width: 94px; padding: 0 16px; border-radius: 24px; font: 500 13px Inter, Arial, sans-serif; }
.y-course-controls button:active:not(:disabled) { transform: scale(.94); }
.y-course-track:focus-visible { outline: 2px solid #b89672; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .y-course-controls button:hover:not(:disabled) { background: rgba(184,150,114,.25); } }
@media (min-width: 641px) and (max-width: 940px) { .y-course-track { grid-auto-columns: calc((100% - 44px) / 2.2); } }
@media (max-width: 640px) {
 .y-course-track { grid-auto-columns: 84%; gap: 14px; }
 .y-course-track .y-card > div:first-child { height: 220px !important; }
 .y-course-track .y-card h3 { font-size: 30px !important; }
 .y-course-track .y-card > div:last-child { padding: 20px !important; }
}

/* Catalogue cards: one renderer for the home carousel and catalogue. */
.y-catalog-card{display:flex;flex-direction:column;border-radius:30px;overflow:hidden;background:rgba(255,255,255,.05);box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 26px 78px rgba(0,0,0,.3);color:#f7f1ea;text-decoration:none}
.y-catalog-photo{height:260px;overflow:hidden;position:relative}.y-catalog-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 40%}.y-catalog-photo>span{position:absolute;left:16px;top:16px;padding:6px 12px;border-radius:999px;background:#f2ebe2;color:#211a17;font:700 12px Inter,sans-serif}
.y-catalog-copy{padding:24px;display:flex;flex-direction:column;gap:12px;flex:1}.y-catalog-copy h3{margin:0;font:500 34px/1 'Cormorant Garamond',Georgia,serif}.y-catalog-copy p{margin:0;color:rgba(247,241,234,.72)}.y-catalog-copy small{font-size:13px;color:rgba(247,241,234,.6)}.y-catalog-copy strong{font:500 28px/1.2 'Cormorant Garamond',Georgia,serif;color:#e0c9a8;margin-top:auto}.y-catalog-cta{align-self:flex-start;padding:12px 20px;border-radius:999px;background:rgba(255,255,255,.1);box-shadow:0 0 0 1px rgba(255,255,255,.22) inset;font:600 13px Inter,sans-serif}
[data-course-grid]{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))!important}
