/* Mixden sobre el sistema de la skill (assets/kit): los colores de siempre y lo que es solo de esta web.
   Las páginas públicas cargan, en orden: kit/system.css, kit/ui/cards.css, kit/motion/motion.css,
   kit/layout/layout.css, kit/icons/icon.css, el :root de la marca y este archivo.
   admin.html sigue con styles.css. */

/* Los nombres de antes, para shop.css, media.css y falcon/falcon.css (y lo que Ara pinta con clases). */
:root {
  --surface-2: #1E1A24;
  --surface-3: #2A2530;
  --text: #F4F1FA;
  --green: #3DD68C;
  --green-soft: #10331F;
  --green-text: #5BE3A0;
  --purple: #7C4DEB;
  --purple-soft: #2A1D47;
  --purple-text: #C4B0FF;
  --red: #D9201C;
  --panel: #141217;
  --raised: #1E1A24;
  --display: var(--font-display);
  --body: var(--font-text);
  /* la banda de la marca */
  --mx-band: #7C4DEB;
  --mx-band-ink: #FFFFFF;
}

/* El logo del canal: Ara pone dentro la imagen de YouTube ([data-yt-logo]). */
.logo-circle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: 999px; overflow: hidden; background: var(--purple-soft);
}
.logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.nav__logo .logo-circle { width: 32px; height: 32px; margin-right: 10px; }

/* ---------- Héroe: las piezas del collage ---------- */
.ly-piece img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mx-pc-logo { display: flex; align-items: center; justify-content: center; background: var(--surface-2); padding: 12%; }
.mx-pc-logo img { object-fit: contain; }
.mx-pc-logo--round { padding: 6%; background: var(--purple); }
.mx-pc-logo--round img { border-radius: 999px; aspect-ratio: 1; width: auto; height: 100%; }
.mx-pc-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 20px;
  background: var(--surface-2); color: var(--text);
}
.mx-pc-card strong { font: var(--display-weight) 22px/1.15 var(--font-display); letter-spacing: -0.01em; }
.mx-pc-card small { font-size: 14px; line-height: 1.45; color: var(--muted); }
.mx-pc-card .t-label { color: var(--green-text); }

/* ---------- Proyectos (las tarjetas las escribe Ara: comun-ara/portada.ara) ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* Tarjeta abierta (cards.md): el panel con el logo arriba y las palabras sobre el fondo de la página. */
.project {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease;
}
.project:hover { transform: translateY(-2px); }
.project-heading {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 280px; margin-bottom: 12px; background: var(--surface); border-radius: var(--r-lg);
  transition: background-color .2s ease;
}
.project:hover .project-heading { background: var(--surface-2); }
.project-heading .tag { position: absolute; top: 16px; left: 16px; }
.project-logo { width: 144px; height: 144px; object-fit: contain; border-radius: 20px; transition: transform .3s ease; }
.project:hover .project-logo { transform: scale(1.03); }
.project-logo-corefox { object-fit: cover; object-position: left top; }
.project h3, .project p, .project > a { margin: 0; }
.project h3 { font: var(--display-weight) 24px/1.2 var(--font-display); letter-spacing: -0.015em; }
.project h3 .project-title-link { color: var(--text); text-decoration: none; }
.project h3 .project-title-link::after { content: ""; position: absolute; inset: 0; }
.project p { color: var(--muted); font-size: 16px; line-height: 1.6; flex-grow: 1; }
.project > a { position: relative; z-index: 1; align-self: flex-start; color: var(--green-text); font-weight: 500; text-decoration: none; }
.project > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tag { display: inline-block; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; }
.tag.purple { background: var(--purple); color: #fff; }
.tag.green { background: var(--green); color: #000; }
.empty { color: var(--muted); }
@media (max-width: 1023px) { .projects { grid-template-columns: 1fr; } .project-heading { height: 160px; } .project-logo { width: 112px; height: 112px; } }

/* ---------- Banda morada (Falcon Engine) ---------- */
.mx-band { background: var(--mx-band); color: var(--mx-band-ink); }
.mx-band h2, .mx-band .muted { color: var(--mx-band-ink); }
.mx-band .muted { opacity: .82; }
.mx-band .btn--secondary { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.mx-band .btn--secondary:hover { background: rgba(255,255,255,.12); }
.mx-band :focus-visible { outline-color: #fff; }
.mx-shot {
  display: block; margin-top: 48px; aspect-ratio: 16 / 8.2; max-height: 560px; width: 100%;
  border-radius: var(--r-lg); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.mx-shot .frame__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .4s ease; }
.mx-shot:hover .frame__img { transform: scale(1.02); }
@media (max-width: 639px) { .mx-shot { margin-top: 32px; aspect-ratio: 4 / 3; } }

/* ---------- Tienda (Spreadshop la rellena; su alto no es fijo) ---------- */
/* la tienda crece con el catálogo de Spreadshop: nunca alto fijo (si no, la sección siguiente la tapa) */
main > section.shop { height: auto; min-height: calc(var(--h, 1) * 100svh); }
.shop .wrap { display: flex; flex-direction: column; gap: 32px; }
.shop-note { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; font-size: 16px; color: var(--text); max-width: 62ch; }
.shop-note svg { flex: none; margin-top: 2px; color: var(--green-text); }
#myShop { min-height: 300px; border-radius: var(--r-lg); overflow: hidden; }
.shop-placeholder { background: var(--surface); border-radius: var(--r-lg); padding: 32px; color: var(--muted); }
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.shop-help { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.shop-help a { color: var(--muted); text-decoration: none; }
.shop-help a:hover { color: var(--green-text); }
.collections-block { display: flex; flex-direction: column; gap: 16px; }
.collections-block h3 { font: var(--display-weight) 28px/1.2 var(--font-display); letter-spacing: -0.02em; }
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.collection {
  border-radius: var(--r-lg); overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column; background: var(--surface); color: var(--text);
  transition: transform .2s ease;
}
.collection:hover { transform: translateY(-2px); color: var(--text); }
.collection .cover {
  aspect-ratio: 4 / 3; position: relative; display: flex; align-items: center; justify-content: center;
  font: var(--display-weight) 96px/1 var(--font-display); letter-spacing: -0.04em; overflow: hidden;
}
.collection .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.collection:hover .cover img { transform: scale(1.03); }
.collection.purple .cover { background: var(--purple); color: #fff; }
.collection.green .cover { background: var(--green); color: #000; }
.collection.red .cover { background: var(--red); color: #fff; }
.collection .badge { position: absolute; top: 16px; left: 16px; z-index: 1; background: #000; color: var(--green-text); border-radius: 999px; padding: 6px 14px; font: 500 14px/1.4 var(--font-text); letter-spacing: 0; }
.collection .body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.collection .name { font: var(--display-weight) 24px/1.15 var(--font-display); letter-spacing: -0.015em; }
.collection .desc { color: var(--muted); margin: 0; flex-grow: 1; }
.collection .go { font-weight: 500; color: var(--green-text); }
.shop-information {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 48px;
  padding: 12px 20px; border: 1px solid var(--surface-3); border-radius: var(--r-md);
  background: var(--surface); color: var(--muted); font: 500 16px/1.5 var(--font-text); text-align: left; cursor: pointer;
}
.shop-information:hover, .shop-information[aria-expanded="true"] { border-color: var(--green); color: var(--text); }
.shop-information span { color: var(--green-text); font-size: 22px; line-height: 1; }
#myShop:not(.shop-details-open) #sprd-footer { display: none !important; }
#myShop #sprd-signup-banner, #myShop #buttonSpreadshirt, #myShop .sprd-info-footer__open-shop, #myShop .sprd-service-footer { display: none !important; }
#myShop #sprd-footer { margin: 20px 0 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: var(--muted) !important; font-family: var(--font-text) !important; }
#myShop .sprd-info-footer { display: flex !important; flex-wrap: wrap !important; justify-content: flex-start !important; gap: 20px 32px !important; padding: 22px !important; border: 1px solid var(--surface-3) !important; border-radius: var(--r-md) !important; background: var(--surface) !important; color: var(--muted) !important; }
#myShop .sprd-info-footer__col { flex: 1 1 160px !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
#myShop .sprd-info-footer__link, #myShop .sprd-info-footer button { color: var(--muted) !important; font-family: var(--font-text) !important; font-size: 14px !important; line-height: 1.7 !important; }
#myShop .sprd-info-footer a:hover, #myShop .sprd-info-footer button:hover { color: var(--green-text) !important; }
@media (max-width: 640px) { #myShop .sprd-info-footer { padding: 16px !important; gap: 16px !important; } #myShop .sprd-info-footer__col { flex-basis: 130px !important; } }

/* ---------- Vídeos y directos: tres tarjetas abiertas, cada una con su logo grande ---------- */
.media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.media-card { position: relative; display: flex; flex-direction: column; gap: 16px; color: var(--text); text-decoration: none; transition: transform .2s ease; }
.media-card:hover { transform: translateY(-2px); color: var(--text); }
.media-card__pic { display: flex; align-items: center; justify-content: center; height: 320px; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; transition: background-color .2s ease; }
.media-card:hover .media-card__pic { background: var(--surface-2); }
.yt .media-card__pic { background: var(--purple-soft); }
.media-card .logo-circle { width: 200px; height: 200px; box-shadow: 0 0 0 4px var(--purple); transition: transform .3s ease; }
.mx-brand { width: 112px; height: 112px; object-fit: contain; transition: transform .3s ease; }
.media-card:hover .logo-circle, .media-card:hover .mx-brand { transform: scale(1.03); }
.mx-kick { color: #53FC18; }
.media-card__text { display: flex; flex-direction: column; gap: 8px; }
.media-card .title { display: inline-flex; align-items: center; gap: 12px; font: var(--display-weight) 24px/1.2 var(--font-display); letter-spacing: -0.015em; }
.media-card .sub { color: var(--muted) !important; font-size: 16px; line-height: 1.5; }
.media-card .handle { color: var(--green-text); font-weight: 500; }
.status { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: 14px; }
.status[hidden] { display: none; }
.status .dot { width: 10px; height: 10px; border-radius: 999px; background: #6E6878; }
.status.is-live .dot { background: var(--green); animation: mx-live 1.6s infinite; }
@keyframes mx-live { 0% { box-shadow: 0 0 0 0 rgba(61,214,140,.7); } 70% { box-shadow: 0 0 0 10px rgba(61,214,140,0); } 100% { box-shadow: 0 0 0 0 rgba(61,214,140,0); } }
@media (prefers-reduced-motion: reduce) { .status.is-live .dot { animation: none; } }
@media (max-width: 1279px) { .media-card__pic { height: 240px; } .media-card .logo-circle { width: 144px; height: 144px; } .mx-brand { width: 88px; height: 88px; } }
@media (max-width: 1023px) { .media { grid-template-columns: 1fr; } .media-card__pic { height: 200px; } }
@media (max-width: 639px) { .media { gap: 32px; margin-top: 32px; } .media-card__pic { height: 168px; } .media-card .logo-circle { width: 112px; height: 112px; } .mx-brand { width: 72px; height: 72px; } }

/* ---------- Pie ---------- */
.footer-firma { display: inline-flex; flex-wrap: wrap; gap: 8px 16px; }
.hecho-con { color: var(--green-text); }
/* las letras bajas de «mixden» suben más que el .86 del kit: line-height 1 para que no se corten */
.close__word { color: var(--purple); line-height: 1; }
/* «Ver la tienda» con el mismo tamaño que en el héroe (el de la barra puede ser un paso menor) */
html:has(.hero--triptych) .close--word .btn--primary { height: 64px; padding-inline: var(--s-6); font-size: var(--t-lead); }
@media (max-width: 1023px) { html:has(.hero--triptych) .close--word .btn--primary { height: 56px; font-size: var(--t-body); } }

/* El botón secundario sobre el negro: con fondo, para que se vea como botón. */
.btn--secondary { background: var(--surface-2); }

/* La tienda mientras carga o si falla: texto sobre el fondo, en la línea izquierda. */
.shop-placeholder { background: none; padding: 0; border-radius: 0; }
.shop .shop-help { justify-content: flex-start; padding: 0; }

/* Alturas por pantalla (layout-v4.md): a 1024 todo cabe en una; en tableta proyectos y redes ocupan dos. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .project-heading { height: 168px; }
  .mx-shot { max-height: 420px; }
}
@media (min-width: 640px) and (max-width: 1023px) { #proyectos, #redes-sociales { --h: 2 } }

/* El logo llena su panel (con aire alrededor): el panel entero es la imagen de la tarjeta. */
.project-logo { width: 100%; height: 100%; padding: 64px; border-radius: var(--r-lg); }
.project-logo-corefox { object-fit: contain; }
.mx-brand { width: 100%; height: 100%; padding: 88px; }
.media-card .logo-circle { width: auto; height: 72%; aspect-ratio: 1; }
@media (max-width: 1279px) { .project-logo { padding: 40px; } .mx-brand { padding: 64px; } }
.project > a { display: inline-flex; align-items: center; min-height: 44px; }

/* CraftSnap solo tiene un PNG de 128 px: se muestra a su tamaño, nunca ampliado. */
.project-logo[src$="craftsnap.png"] { width: 128px; height: 128px; padding: 0; border-radius: 0; }

/* Móvil: proyectos y redes ocupan dos pantallas cada una, con paneles más altos. */
@media (max-width: 639px) {
  #redes-sociales { --hm: 2; }
  .project-heading { height: 220px; }
  .media-card__pic { height: 272px; }
  .media-card .logo-circle { height: 80%; }
  .mx-brand { padding: 44px; }
}

/* ---------- Pantallas anchas y bajas (18:9, 2:1: 1440x720, 1280x640) ----------
   Los paneles se encogen con el alto de la pantalla, y una sección nunca corta lo que lleva: mide al menos una
   pantalla (o dos) pero crece si su contenido no cabe, en vez de montarse sobre la siguiente. */
@media (min-width: 640px) {
  main > :is(section, .section):not(.hero), footer.closing { height: auto; min-height: calc(var(--h, 1) * 100svh); }
}
@media (min-width: 1024px) {
  .project-heading { height: clamp(150px, calc(100svh - 520px), 280px); }
  .media-card__pic { height: clamp(150px, calc(100svh - 480px), 320px); }
}
/* Héroe en pantallas anchas (16:9, 18:9, 2:1): el texto y el botón juntos a la izquierda, el collage grande a la
   derecha (la misma composición que el kit usa en tableta), en vez de un botón suelto en el borde derecho. */
@media (min-width: 1024px) and (min-aspect-ratio: 16/9) {
  .hero--triptych .hero__grid { grid-template-rows: 1fr auto 1fr; }
  .hero--triptych .hero__grid > :first-child { grid-column: 1 / span 4; grid-row: 1; align-self: end; }
  .hero--triptych .ly-collage { grid-column: 6 / span 7; grid-row: 1 / span 3; }
  .hero--triptych .hero__cta { grid-column: 1 / span 4; grid-row: 2; justify-content: flex-start; margin-top: var(--s-6); }
  .hero--triptych .hero__cta .btn { height: 56px; font-size: var(--t-body); }
  html:has(.hero--triptych) .close--word .btn--primary { height: 56px; font-size: var(--t-body); }
  /* la captura de Falcon Engine en la banda morada cabe en la pantalla */
  .mx-shot { aspect-ratio: auto; height: clamp(220px, calc(100svh - 380px), 560px); }
}
/* el logo de Falcon en el collage, más grande dentro de su pieza */
.mx-pc-logo { padding: 6%; }
.ly-collage .mx-pc-logo > img { object-fit: contain; }
/* pantallas bajas: menos aire arriba y abajo de cada sección */
@media (min-width: 1024px) and (max-height: 820px) { :root { --padt: 88px; --padb: 56px; } }
