/* Playa Records — web del estudio
   Paleta y tipografía: ver ../BRAND.md */

:root {
  --cream: #edeae2;
  --cream-2: #d9d4c7;
  --black: #0b0b0b;
  --ink: #141414;
  --sea: #2d718e;
  --sky: #52b0d1;
  --sunset: #d3673d;
  --sunset-hot: #e5764a;
  --grey: #3f3f3f;
  --muted: #a39e93;
  --gradient: linear-gradient(90deg, var(--sea), var(--sunset));

  --f-display: "Archivo", system-ui, sans-serif;
  --f-text: "Inter", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --topbar-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font: 400 16px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Grano de película sobre toda la web */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-stretch: 112%; line-height: 1.02; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 700;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sky);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 15px/1 var(--f-display); font-stretch: 110%;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn--wa { background: var(--sunset); color: var(--black); }
.btn--wa:hover { background: var(--sunset-hot); }
.btn--ghost { border-color: rgba(237,234,226,.55); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 17px; }

/* ---------- Barra superior ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.topbar.is-solid { background: rgba(11,11,11,.88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(237,234,226,.08); }
.topbar__logo img { height: 44px; width: auto; }
.topbar__nav { display: flex; gap: 28px; margin-left: auto; }
.topbar__nav a { text-decoration: none; font: 600 14px var(--f-display); font-stretch: 112%; opacity: .85; }
.topbar__nav a:hover { opacity: 1; color: var(--sky); }
.topbar__actions { display: flex; align-items: center; gap: 12px; }

.burger {
  width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%;
  background: rgba(237,234,226,.1); cursor: pointer;
  display: grid; place-content: center; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menú desplegable ---------- */
.topbar__actions { position: relative; }
.menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  width: 232px; padding: 8px;
  background: rgba(20,20,20,.96); backdrop-filter: blur(12px);
  border: 1px solid rgba(237,234,226,.14); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  transform-origin: top right;
  animation: menu-in .16s ease-out;
}
.menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .menu { animation: none; } }
.menu__links { display: grid; }
.menu__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 8px;
  font: 600 15px var(--f-display); font-stretch: 110%; text-decoration: none;
}
.menu__links a::after { content: "→"; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; color: var(--sunset); }
.menu__links a:hover, .menu__links a:focus-visible { background: rgba(237,234,226,.07); }
.menu__links a:hover::after, .menu__links a:focus-visible::after { opacity: 1; transform: none; }
.menu__foot { margin-top: 6px; padding: 8px 12px 6px; border-top: 1px solid rgba(237,234,226,.1); }
.menu__foot { display: grid; gap: 4px; }
.menu__academy { font-size: 13px; color: var(--muted); text-decoration: none; }
.menu__academy:hover { color: var(--cream); }

/* ---------- Portada ---------- */
.hero {
  position: relative; min-height: max(100svh, 760px);
  display: flex; align-items: flex-end;
  padding: calc(var(--topbar-h) + 40px) 0 clamp(48px, 9vh, 96px);
  overflow: hidden; isolation: isolate;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,11,11,.55) 0%, rgba(11,11,11,0) 22%),
    linear-gradient(0deg, rgba(11,11,11,.92) 0%, rgba(11,11,11,.55) 38%, rgba(11,11,11,0) 70%); }
.hero__content { display: grid; gap: 18px; }
.hero__title {
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(48px, 7.4vw, 112px); line-height: .92;
  text-transform: uppercase; letter-spacing: -.02em;
}
.hero__lead { max-width: 34ch; font-size: clamp(16px, 2vw, 19px); color: var(--cream-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Cinta ---------- */
.tape { background: var(--black); padding: 26px 0; overflow: hidden; border-block: 1px solid rgba(237,234,226,.08); }
.tape__stripes { display: grid; gap: 5px; margin-bottom: 18px; }
.tape__stripes i { display: block; height: 5px; }
.tape__stripes i:nth-child(1) { background: var(--sea); }
.tape__stripes i:nth-child(2) { background: var(--sky); }
.tape__stripes i:nth-child(3) { background: var(--sunset); }
.tape__track { display: flex; width: max-content; animation: tape 38s linear infinite; }
.tape__row { display: flex; }
.tape__row span {
  font: 800 clamp(20px, 3vw, 30px)/1 var(--f-display); font-stretch: 125%;
  text-transform: uppercase; white-space: nowrap; padding-right: 1.4em;
}
.tape__row span::after { content: ""; display: inline-block; width: 1.25em; height: .95em; margin-left: 1.4em; background: url("assets/icons/sol.svg") center / contain no-repeat; vertical-align: -.02em; }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape__track { animation: none; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 11vw, 132px) 0; }
.section--tight { padding-top: 0; }
.section--light { background: var(--cream); color: var(--ink); }
.section--light .eyebrow { color: var(--sea); }
.section__head { display: grid; gap: 12px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section__title { font-weight: 900; font-stretch: 125%; font-size: clamp(29px, 5.4vw, 64px); text-transform: uppercase; overflow-wrap: anywhere; }
.section__lead { color: var(--grey); font-size: 17px; }

/* ---------- Lanzamientos ---------- */
.releases {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 26vw, 300px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 12px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: thin; scrollbar-color: var(--grey) transparent;
}
.releases:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
.release { scroll-snap-align: start; text-decoration: none; color: inherit; display: block; }
.release__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.release:hover .release__cover img { transform: scale(1.04); }
.release__play { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sunset); color: var(--black); opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.release:hover .release__play, .release:focus-visible .release__play { opacity: 1; transform: none; }
.release:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; border-radius: 12px; }
.release__date { font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--sky) !important; margin-top: 6px !important; }
.releases__more { justify-self: start; font: 700 14px var(--f-display); font-stretch: 110%; color: var(--sky); text-decoration: none; }
.releases__more:hover { color: var(--cream); }
@media (hover: none) { .release__play { opacity: 1; transform: none; width: 38px; height: 38px; } }
.release__cover {
  aspect-ratio: 1; border-radius: 12px; margin-bottom: 14px;
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.release__cover span { font: 700 11px var(--f-display); font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase; color: rgba(237,234,226,.75); }
.release__cover--a { background: var(--gradient); }
.release__cover--b { background: repeating-linear-gradient(180deg, var(--sea) 0 14px, var(--sky) 14px 28px, var(--sunset) 28px 42px, var(--cream) 42px 56px); }
.release__cover--b span { background: var(--black); padding: 6px 10px; border-radius: 4px; }
.release__cover--c { background: radial-gradient(circle at 50% 62%, var(--sunset) 0 30%, transparent 31%), linear-gradient(180deg, #1d4a5d, var(--sea)); }
.release__cover--d { background: var(--grey); }
.release h3 { font-size: 18px; font-weight: 800; }
.release p { color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.4; }

/* ---------- Servicios ---------- */
.group-title { font-size: 15px; font-weight: 800; font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.group-title span { color: var(--grey); font-weight: 600; letter-spacing: .02em; text-transform: none; font-stretch: 100%; font-family: var(--f-text); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 48px; }
.services--3 { grid-template-columns: repeat(3, 1fr); }
.services.services--1 { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
.services-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.services-pair .service { height: 100%; }
.services-pair > div { display: flex; flex-direction: column; }
.services-pair .services--1 { flex: 1; }
.services:last-child { margin-bottom: 0; }
.service {
  background: #fff8ec; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 5px 5px 0 var(--ink);
}
.service h4 { font-size: 22px; font-weight: 900; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.service > p:not(.price__incl) { color: var(--grey); font-size: 15px; flex: 1; }
.tag { font: 700 12px/1 var(--f-display); font-stretch: 110%; padding: 5px 8px; border-radius: 999px; background: var(--ink); color: var(--cream); }
.price { font: 900 34px/1 var(--f-display); font-stretch: 112%; margin-top: 6px; }
.price small { font-size: 14px; font-weight: 700; color: var(--grey); }
.price__from { font-size: 14px; font-weight: 700; color: var(--grey); }
.price__incl { font-size: 13px; color: var(--grey); }
.service__cta { margin-top: 6px; font: 800 15px var(--f-display); font-stretch: 110%; color: #a9461f; text-decoration: none; }
.service__cta:hover { text-decoration: underline; text-underline-offset: 4px; }
.service--feature { background: var(--ink); color: var(--cream); }
.service--feature > p:not(.price__incl), .service--feature .price small, .service--feature .price__from, .service--feature .price__incl { color: var(--cream-2); }
.service--feature .tag { background: var(--sunset); color: var(--black); }
.service--feature .service__cta { color: var(--sunset-hot); }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { border-top: 2px solid var(--cream); padding-top: 22px; display: grid; gap: 10px; }
.steps__n { font: 900 56px/1 var(--f-display); font-stretch: 125%; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 24px; font-weight: 900; text-transform: uppercase; font-stretch: 125%; }
.steps p { color: var(--cream-2); max-width: 32ch; }

/* ---------- Estudios ---------- */
.studios { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.studio { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px; display: flex; align-items: flex-end; isolation: isolate; }
.studio img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.studio:hover img { transform: scale(1.03); }
.studio::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11,11,11,.9) 0%, rgba(11,11,11,.2) 60%, rgba(11,11,11,0) 100%); }
.studio--soon img { filter: grayscale(.6) brightness(.8); }
.studio__body { padding: 28px; display: grid; gap: 8px; }
.studio h3 { font-size: clamp(32px, 4vw, 48px); font-weight: 900; text-transform: uppercase; font-stretch: 125%; }
.studio__place { font: 700 14px var(--f-display); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); }
.studio p:last-child { color: var(--cream-2); max-width: 40ch; }
.badge { justify-self: start; font: 800 11px/1 var(--f-display); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(237,234,226,.16); backdrop-filter: blur(6px); }
.badge--open { background: var(--sunset); color: var(--black); }

/* ---------- Géneros ---------- */
.genres { display: grid; gap: 8px; }
.chips.genres__list { max-width: 980px; margin-bottom: 40px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 14px; font-weight: 600; padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: 999px; }
.chips--lg li { font: 800 clamp(16px, 1.8vw, 20px)/1 var(--f-display); padding: 12px 18px; background: #fff8ec; box-shadow: 3px 3px 0 var(--ink); border-width: 2px; }
.btn--dark { justify-self: start; background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #000; }

/* ---------- Llamada final ---------- */
.cta { position: relative; min-height: 92svh; display: flex; align-items: flex-end; text-align: center; overflow: hidden; isolation: isolate; padding: 96px 0 clamp(56px, 9vh, 96px); }
.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.cta__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11,11,11,.95) 0%, rgba(11,11,11,.7) 32%, rgba(11,11,11,0) 62%), linear-gradient(180deg, rgba(11,11,11,.6), rgba(11,11,11,0) 18%); }
.cta__content { display: grid; justify-items: center; gap: 18px; }
.cta h2 { font-weight: 900; font-stretch: 125%; font-size: clamp(40px, 7vw, 92px); line-height: .95; text-transform: uppercase; }
.cta p { color: var(--cream-2); font-size: 18px; }
.cta .btn { margin-top: 8px; }
.cta__alt { font-size: 14px !important; color: var(--muted) !important; }

/* ---------- Pie ---------- */
.footer { padding: 56px 0 32px; border-top: 1px solid rgba(237,234,226,.08); }
.footer__grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.footer__logo { width: 170px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.footer__nav a { text-decoration: none; font: 600 14px var(--f-display); font-stretch: 112%; opacity: .8; }
.footer__nav a:hover { opacity: 1; }
.footer__academy { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer__academy a { text-decoration: none; }
.footer__academy a:hover { color: var(--cream); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; font-size: 13px; color: var(--muted); }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--cream); }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services:not(.services--1) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .services--3, .services-pair { grid-template-columns: 1fr; }
  .services-pair { gap: 48px; }
  .topbar__nav { display: none; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .studios { grid-template-columns: 1fr; }
  .studio { min-height: 360px; }
  .footer__grid { grid-template-columns: 1fr; justify-items: start; }
  .footer__nav { justify-content: flex-start; }
}
@media (max-width: 560px) {
  :root { --topbar-h: 64px; }
  .topbar__logo img { height: 38px; }
  .btn--sm span { display: none; }
  .btn--sm { width: 44px; padding: 0; }
  .services:not(.services--1), .services--3 { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .hero { min-height: 100svh; }
  .hero__img { height: 62%; object-position: 62% 50%; }
  .hero__shade { background:
    linear-gradient(180deg, rgba(11,11,11,.55) 0%, rgba(11,11,11,0) 16%),
    linear-gradient(0deg, var(--black) 0%, var(--black) 40%, rgba(11,11,11,0) 62%); }
}

/* ---------- Páginas legales ---------- */
.legal-page .topbar { justify-content: space-between; }
.legal { padding: calc(var(--topbar-h) + clamp(40px, 6vw, 72px)) var(--gutter) clamp(64px, 8vw, 96px); max-width: 760px; }
.legal h1 { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(32px, 5vw, 52px); line-height: 1; margin: 12px 0 8px; }
.legal__date { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font: 800 20px/1.2 var(--f-display); font-stretch: 112%; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--cream-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin-top: 10px; }
.legal b { color: var(--cream); }
