@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Jost:wght@300;400;500&display=swap');

/* ============================================================
   Yuly Danza 9 — diseño nuevo de cabecera y home
   Marcado: templates/_partials/header.tpl e templates/index.tpl
   Todas las clases llevan el prefijo yh- para no chocar con yuly-danza.css.
   ============================================================ */
:root {
  --yh-ink: #2b2528;
  --yh-ink-soft: #6f6367;
  --yh-pink: #c36975;
  --yh-pink-line: #e6c3c8;
  --yh-bar: #f6f1ee;
  --yh-card: #fbf7f6;
  --yh-trust: #fcf6f6;
  --yh-wa: #2f9e50;
  --yh-serif: "Cormorant Garamond", "Cinzel", Georgia, serif;
  --yh-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --yh-wrap: 1180px;
}

.yh-topbar, .yh-head, .yh-menu, .yh-home {
  font-family: var(--yh-sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--yh-ink);
}
.yh-topbar a, .yh-head a, .yh-menu a, .yh-home a { color: inherit; text-decoration: none; }
.yh-topbar ul, .yh-menu ul { list-style: none; margin: 0; padding: 0; }
.yh-head button, .yh-menu button { font-family: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.yh-head img, .yh-menu img, .yh-home img { display: block; max-width: 100%; }
svg.yh-i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Ancho completo dentro del .container de PrestaShop (mismo recurso que usaba .yuly-hero) */
.yh-full {
  width: calc(100vw - var(--sbw, 0px));
  max-width: 100vw;
  margin-left: calc(50% - 50vw + (var(--sbw, 0px) / 2));
  margin-right: calc(50% - 50vw + (var(--sbw, 0px) / 2));
}
.yh-wrap { max-width: var(--yh-wrap); margin: 0 auto; padding: 0 20px; }
body.page-index #wrapper { padding-top: 0; padding-bottom: 0; background: #fff; }

/* ---------- Barra superior ---------- */
.yh-topbar { background: var(--yh-bar); font-size: 12px; }
.yh-topbar-in { display: flex; justify-content: space-between; align-items: center; height: 46px; max-width: 1360px; margin: 0 auto !important; padding: 0 20px !important; }
.yh-topbar-in li { display: flex; align-items: center; gap: 10px; flex: 1; }
.yh-topbar-in li:nth-child(2) { justify-content: center; }
.yh-topbar-in li:nth-child(3) { justify-content: flex-end; }
.yh-topbar svg.yh-i { font-size: 24px; color: var(--yh-ink-soft); }

/* ---------- Cabecera ---------- */
.yh-head { position: relative; background: #fff; }
.yh-head-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1360px; margin: 0 auto; padding: 14px 20px 4px; }
.yh-burger { justify-self: start; font-size: 30px; }
.yh-logo img { width: 372px; height: auto; }
.yh-tools { justify-self: end; display: flex; align-items: center; gap: 22px; font-size: 27px; }
.yh-tools a, .yh-tools button { position: relative; display: inline-flex; font-size: inherit; color: var(--yh-ink); }
.yh-tools a:hover, .yh-tools button:hover { color: var(--yh-pink); }
.yh-tools .yh-wa, .yh-menu-foot .yh-wa { color: var(--yh-wa); }
.yh-wa svg.yh-i { fill: currentColor; stroke: none; }
.yh-cart-n { position: absolute; top: -8px; right: -9px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--yh-pink); color: #fff; font-family: var(--yh-sans); font-size: 8.5px; line-height: 15px; text-align: center; }

.yh-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 58px; padding: 22px 20px 20px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid #f1eaea; }
.yh-nav a { padding: 2px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.yh-nav a:hover { color: var(--yh-pink); border-color: var(--yh-pink); }

/* Buscador desplegable */
.yh-search[hidden] { display: none; }
.yh-search { border-top: 1px solid #f1eaea; background: var(--yh-card); }
.yh-search form { display: flex; max-width: 640px; margin: 0 auto; padding: 12px 20px; gap: 8px; }
.yh-search input[type="search"] { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--yh-pink-line); border-radius: 2px; background: #fff; font: inherit; color: var(--yh-ink); }
.yh-search input[type="search"]:focus { outline: 2px solid var(--yh-pink-line); }
.yh-search button { width: 44px; height: 42px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; border: 1px solid var(--yh-pink-line) !important; border-radius: 2px; background: #fff !important; }

/* ---------- Menú a pantalla completa (móvil) ---------- */
.yh-menu { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: linear-gradient(180deg, #fff 0%, #fbf3f2 100%); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s; }
.yh-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .28s ease, transform .28s ease; }
.yh-menu-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 20px; }
.yh-menu-close { justify-self: start; font-size: 28px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.yh-menu-top img { width: 170px; height: auto; }
.yh-menu-links { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 32px; }
.yh-menu-links a { display: block; padding: 16px 4px; text-align: center; font-family: var(--yh-serif); font-size: 24px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--yh-pink-line); transition: color .2s; }
.yh-menu-links a:last-child { border-bottom: 0; }
.yh-menu-links a:hover, .yh-menu-links a:focus-visible { color: var(--yh-pink); }
.yh-menu-foot { display: flex; justify-content: center; gap: 30px; padding: 22px 20px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--yh-pink-line); font-size: 26px; }
.yh-menu-foot a { display: inline-flex; }
body.yh-menu-lock { overflow: hidden; }
/* En escritorio el menú es la barra .yh-nav: la hamburguesa se oculta pero
   conserva su columna en la grilla para que el logo siga centrado. */
@media (min-width: 761px) { .yh-burger { visibility: hidden; pointer-events: none; } .yh-menu { display: none; } }
@media (max-height: 560px) { .yh-menu-links a { padding: 9px 4px; font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .yh-menu, .yh-menu.open { transition: none; transform: none; } }

/* ---------- Hero ---------- */
.yh-hero { margin: 6px auto 0; max-width: 1360px; padding: 0 20px; }
.yh-hero-box { position: relative; overflow: hidden; border-radius: 14px; background: linear-gradient(90deg, #f9efee, #f8ecec); aspect-ratio: 1026 / 236; box-shadow: 0 1px 0 #f1e6e6 inset, 0 8px 22px -14px rgba(120,60,70,.25); }
.yh-hero-box > img { position: absolute; top: 0; right: 0; height: 100%; width: 52%; object-fit: cover; object-position: right center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%); mask-image: linear-gradient(90deg, transparent, #000 14%); }
.yh-btn-ghost { position: absolute; left: 6%; top: 46%; display: inline-block; padding: 14px 32px; border: 1px solid #8d8487; background: rgba(255,255,255,.35); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transition: background .2s, color .2s; }
.yh-btn-ghost:hover { background: var(--yh-ink); color: #fff !important; }
.yh-dots { position: absolute; left: 42%; bottom: 8%; display: flex; gap: 14px; transform: translateX(-50%); }
.yh-dots span { width: 11px; height: 11px; border-radius: 50%; background: #c8c4c4; }
.yh-dots span.on { background: #d4787d; }

/* ---------- Títulos de sección ---------- */
.yh-sec-title { display: flex; align-items: center; gap: 24px; margin: 0; }
.yh-sec-title::before, .yh-sec-title::after { content: ""; flex: 1; height: 1px; background: var(--yh-pink-line); }
.yh-sec-title h2 { margin: 0; padding: 0; font-family: var(--yh-serif); font-weight: 500; font-size: 25px; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: var(--yh-ink); }
.yh-sec-title.yh-small h2 { font-size: 18.5px; }
.yh-sec-title .yh-all { order: 3; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.yh-sec-title.yh-small::after { order: 2; }
.yh-sec-title .yh-all svg.yh-i { font-size: 15px; stroke-width: 2; }

/* ---------- Compra por disciplina ---------- */
.yh-disc { padding-top: 34px; }
.yh-disc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; margin-top: 26px; }
.yh-disc-card { display: block; background: var(--yh-card); border: 1px solid #f0e6e6; box-shadow: 0 6px 16px -12px rgba(120,60,70,.4); transition: transform .25s, box-shadow .25s; }
.yh-disc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -12px rgba(120,60,70,.45); }
.yh-disc-img { position: relative; display: block; width: 100%; aspect-ratio: 146 / 110; background: var(--yh-card) center top / cover no-repeat; overflow: hidden; }
.yh-disc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.yh-disc-label { display: block; margin: 0 4px 4px; padding: 9px 4px; text-align: center; border: 1px solid #ece2e2; background: #fff; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; }
/* No son "disciplinas": solo salen en el menú */
.yh-disc-card[data-slug*="novedad"], .yh-disc-card[data-slug*="complement"] { display: none; }
/* Foto de cada disciplina según el nombre de la categoría */
.yh-disc-card[data-slug*="ballet"] .yh-disc-img { background-image: url(/themes/yuly-danza-9/assets/img/home/cat-ballet.png); }
.yh-disc-card[data-slug*="flamenc"] .yh-disc-img { background-image: url(/themes/yuly-danza-9/assets/img/home/cat-flamenco.png); }
.yh-disc-card[data-slug*="danza"] .yh-disc-img, .yh-disc-card[data-slug*="jazz"] .yh-disc-img { background-image: url(/themes/yuly-danza-9/assets/img/home/cat-danza.png); }
.yh-disc-card[data-slug*="latin"] .yh-disc-img { background-image: url(/themes/yuly-danza-9/assets/img/home/cat-latino.png); }
.yh-disc-card[data-slug*="calzado"] .yh-disc-img, .yh-disc-card[data-slug*="zapat"] .yh-disc-img { background-image: url(/themes/yuly-danza-9/assets/img/home/cat-calzado.png); }
.yh-disc-card[data-slug*="regional"] .yh-disc-img, .yh-disc-card[data-slug*="folk"] .yh-disc-img { background-image: url(/themes/yuly-danza-9/assets/img/home/cat-regional.png); }

/* ---------- Novedades ---------- */
.yh-news { padding-top: 40px; }
.yh-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 26px; }
.yh-loading { grid-column: 1 / -1; margin: 0; padding: 24px 0; text-align: center; color: var(--yh-ink-soft); }
.yh-prod { position: relative; display: block; background: #fff; border: 1px solid #ece2e2; box-shadow: 0 6px 16px -12px rgba(120,60,70,.4); transition: transform .25s, box-shadow .25s; }
.yh-prod:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -12px rgba(120,60,70,.45); }
.yh-prod img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--yh-card); mix-blend-mode: multiply; }
.yh-prod .yh-tag { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 4px 9px; background: var(--yh-pink); color: #fff; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; border-radius: 2px; }
.yh-prod .yh-prod-info { padding: 12px 10px 14px; text-align: center; font-size: 12.5px; line-height: 1.45; border-top: 1px solid #ece2e2; }
.yh-prod .yh-prod-name { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.yh-prod .yh-price { display: block; margin-top: 8px; font-size: 14px; font-weight: 500; }

/* ---------- Confianza ---------- */
.yh-trust { margin-top: 26px; margin-bottom: 0; background: var(--yh-trust); }
.yh-trust-in { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; padding-top: 30px; padding-bottom: 30px; }
.yh-trust-item { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 4px 16px; }
.yh-trust-item + .yh-trust-item { border-left: 1px solid var(--yh-pink-line); }
.yh-trust-item svg.yh-i { font-size: 52px; color: var(--yh-pink); stroke-width: 1.2; }
.yh-trust-item b { display: block; font-weight: 400; font-size: 14.5px; }
.yh-trust-item small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--yh-ink-soft); }

/* =========================== MÓVIL =========================== */
@media (max-width: 760px) {
  .yh-topbar, .yh-head, .yh-home { font-size: 11px; }
  .yh-wrap { padding: 0 14px; }
  .yh-topbar { font-size: 10px; }
  .yh-topbar-in { height: 40px; padding: 0 14px !important; }
  .yh-topbar-in li:nth-child(3) { display: none; }
  .yh-topbar-in li:nth-child(2) { justify-content: flex-end; }
  .yh-topbar svg.yh-i { font-size: 20px; }
  .yh-topbar-in li { gap: 8px; }

  .yh-head-in { padding: 8px 14px 10px; gap: 6px; grid-template-columns: 26px 1fr auto; }
  .yh-burger { font-size: 26px; }
  .yh-logo { justify-self: center; }
  .yh-logo img { width: min(205px, 50vw); }
  .yh-tools { gap: 11px; font-size: 20px; }
  .yh-cart-n { top: -6px; right: -7px; min-width: 12px; height: 12px; font-size: 8px; line-height: 12px; }
  .yh-nav { display: none; }

  .yh-hero { padding: 0; margin-top: 0; }
  .yh-hero-box { border-radius: 0; aspect-ratio: 429 / 178; }
  .yh-hero-box > img { width: 66%; }
  .yh-btn-ghost { left: 6%; top: 52%; padding: 10px 16px; font-size: 10.5px; letter-spacing: .1em; }
  .yh-dots { left: 27%; bottom: 10%; gap: 9px; }
  .yh-dots span { width: 8px; height: 8px; }

  .yh-sec-title { gap: 12px; }
  .yh-sec-title h2 { font-size: 15px; letter-spacing: .12em; }
  .yh-sec-title.yh-small h2 { font-size: 13px; }
  .yh-sec-title .yh-all { font-size: 10px; gap: 3px; }
  .yh-sec-title .yh-all svg.yh-i { font-size: 11px; }

  .yh-disc { padding-top: 22px; }
  .yh-disc-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
  .yh-disc-label { padding: 6px 2px; font-size: 10px; margin: 0 2px 2px; }

  .yh-news { padding-top: 22px; }
  .yh-news-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 16px; }
  .yh-prod img { aspect-ratio: 1 / 1.05; }
  .yh-prod .yh-tag { top: 4px; left: 4px; padding: 2px 4px; font-size: 6px; }
  .yh-prod .yh-prod-info { padding: 7px 3px 8px; font-size: 8px; line-height: 1.4; }
  .yh-prod .yh-price { margin-top: 5px; font-size: 9px; }

  .yh-trust { margin-top: 18px; }
  .yh-trust-in { padding-top: 14px; padding-bottom: 14px; }
  .yh-trust-item { gap: 7px; padding: 2px 4px; justify-content: flex-start; }
  .yh-trust-item svg.yh-i { font-size: 26px; }
  .yh-trust-item b { font-size: 8px; }
  .yh-trust-item small { font-size: 8px; margin-top: 2px; }
}

/* ---------- Pie de página: letras un poco más chicas ---------- */
.yuly-footer-brand p { font-size: .81rem; }
.yuly-footer-col-title, .yuly-footer-extra-title { font-size: .74rem; }
.yuly-footer-col ul a { font-size: .81rem; }
.yuly-footer-contact-list span, .yuly-footer-contact-list a { font-size: .79rem; }
.yuly-footer-bottom { font-size: .7rem; }
