/**
 * Portada home — misma geometría en index.html y admin (preview).
 * Admin: .portada-studio__shell.landing-layout-host (+ .is-mobile / .is-desktop)
 * Web:   main.landing
 */
.landing,
.portada-studio__shell.landing-layout-host {
  --ll-rojo: #E30613;
  --ll-beige: #EEE4CD;
  /* Celular: botones grandes, casi de esquina a esquina */
  --ll-gutter: 2vw;
  --ll-stack-w: calc(100vw - 2 * var(--ll-gutter));
  --ll-nav-w: min(168px, 44vw);
  --ll-logo-h: 46px;
  --ll-quote-max: min(92vw, 420px);
  --ll-quote-fs: clamp(14px, 3.8vw, 17px);
  --ll-ui-pad-bottom: max(42px, calc(36px + env(safe-area-inset-bottom, 0px)));
  --ll-actions-gap: 6px;
  --ll-tile-min: clamp(84px, 26vw, 128px);
  --ll-tile-accent-min: clamp(88px, 27vw, 132px);
  --ll-tile-label: clamp(13px, 3.8vw, 17px);
  --ll-tile-label-accent: clamp(14px, 4.1vw, 18px);
}

/* Celular: dock a ancho completo (márgenes solo en landing-ui) */
@media (max-width: 899px) {
  .landing {
    --ll-gutter: max(10px, 3vw);
    --ll-stack-w: 100%;
    --ll-actions-gap: 10px;
    --ll-ui-pad-bottom: max(36px, calc(28px + env(safe-area-inset-bottom, 0px)));
    --ll-tile-min: clamp(92px, 30vw, 140px);
    --ll-tile-accent-min: clamp(96px, 31vw, 144px);
    --ll-tile-label: clamp(14px, 4vw, 18px);
    --ll-tile-label-accent: clamp(15px, 4.3vw, 19px);
  }

  .landing .landing-ui {
    align-items: stretch;
  }

  .landing .landing-dock,
  .landing .landing-stack,
  .landing .landing-actions {
    width: 100%;
    max-width: none;
  }
}

.portada-studio__shell.landing-layout-host.is-mobile {
  --ll-gutter: max(10px, 3cqw);
  --ll-stack-w: 100%;
  --ll-actions-gap: 10px;
  --ll-tile-min: clamp(92px, 30cqw, 140px);
  --ll-tile-accent-min: clamp(96px, 31cqw, 144px);
  --ll-tile-label: clamp(14px, 4cqw, 18px);
  --ll-tile-label-accent: clamp(15px, 4.3cqw, 19px);
}

.portada-studio__shell.landing-layout-host.is-mobile .landing-ui {
  align-items: stretch;
}

.portada-studio__shell.landing-layout-host.is-mobile .landing-dock,
.portada-studio__shell.landing-layout-host.is-mobile .landing-stack,
.portada-studio__shell.landing-layout-host.is-mobile .landing-actions {
  width: 100%;
  max-width: none;
}

.portada-studio__shell.landing-layout-host {
  --ll-gutter: 2cqw;
  --ll-stack-w: calc(100cqw - 2 * var(--ll-gutter));
  --ll-nav-w: min(168px, 44cqw);
  --ll-quote-max: min(92cqw, 420px);
  --ll-quote-fs: clamp(14px, 3.8cqw, 17px);
  --ll-ui-pad-bottom: max(36px, 8cqh);
  --ll-tile-min: clamp(84px, 26cqw, 128px);
  --ll-tile-accent-min: clamp(88px, 27cqw, 132px);
  --ll-tile-label: clamp(13px, 3.8cqw, 17px);
  --ll-tile-label-accent: clamp(14px, 4.1cqw, 18px);
  --ll-actions-gap: 8px;
  font-family: 'Antonio', sans-serif;
  color: var(--ll-beige);
  display: flex;
  flex-direction: column;
}

/* PC: defaults hasta que landing-buttons.js aplique --ll-stack-w / --ll-gutter */
@media (min-width: 900px) {
  .landing {
    --ll-gutter: 6vw;
    --ll-stack-w: 100%;
    --ll-nav-w: min(340px, 46vw);
    --ll-logo-h: clamp(58px, 5.8vh, 76px);
    --ll-quote-fs: clamp(17px, 1.45vw, 26px);
    --ll-ui-pad-bottom: 56px;
    --ll-actions-gap: 8px;
    --ll-tile-min: 64px;
    --ll-tile-accent-min: 68px;
    --ll-tile-label: 13px;
    --ll-tile-label-accent: 14px;
  }

  .landing .landing-ui {
    align-items: center;
  }
}

.portada-studio__shell.landing-layout-host.is-desktop {
  --ll-gutter: 6cqw;
  --ll-stack-w: 100%;
  --ll-nav-w: min(340px, 46cqw);
  --ll-logo-h: clamp(58px, 5.8cqh, 76px);
  --ll-quote-fs: clamp(17px, 1.45cqw, 26px);
  --ll-ui-pad-bottom: 56px;
  --ll-actions-gap: 8px;
  --ll-tile-min: 64px;
  --ll-tile-accent-min: 68px;
  --ll-tile-label: 13px;
  --ll-tile-label-accent: 14px;
}

.portada-studio__shell.landing-layout-host.is-desktop .landing-ui {
  align-items: center;
}

.landing-place-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.landing-place-layer .nav,
.landing-place-layer .landing-quote,
.landing-place-layer .landing-ig-btn {
  position: absolute;
  pointer-events: auto;
}

/* Punto de anclaje = esquina (logo arriba-izq, frase arriba-der) */
#landing-place-logo,
.landing-place-layer > .nav {
  transform: translate(0, 0);
}

#landing-place-frase,
.landing-place-layer > .landing-quote {
  transform: translate(-100%, 0);
}

.landing-place-layer .nav {
  width: var(--ll-nav-w);
  padding: 0;
  background: none;
  pointer-events: none;
}

.landing-place-layer .nav-logo {
  pointer-events: auto;
  display: block;
  text-decoration: none;
  line-height: 0;
  width: 100%;
}

.landing-place-layer .nav-logo__frame {
  position: relative;
  overflow: visible;
  display: block;
  width: 100%;
  height: var(--ll-logo-h);
}

.landing-place-layer .nav-logo__img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100%;
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  user-select: none;
}

.landing-quote {
  width: max-content;
  max-width: var(--ll-quote-max);
  margin: 0;
  text-align: right;
}

.landing-quote p {
  font-size: var(--ll-quote-fs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.28;
  font-weight: 700;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.9);
  white-space: pre-line;
}

#landing-place-ig,
#portada-pick-ig,
.landing-place-layer > .landing-ig-btn {
  transform: translate(0, 0);
}

.landing-ig-btn {
  --ll-ig-size: clamp(32px, 9vw, 44px);
  --ll-ig-font: clamp(9px, 2.6vw, 12px);
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55em;
  width: auto;
  height: auto;
  max-width: min(92vw, 320px);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(238, 228, 205, 0.82);
  text-decoration: none;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.85));
  line-height: 1.2;
  text-align: right;
}

.landing-ig-btn:hover {
  color: var(--ll-beige);
}

.landing-ig-btn__icon {
  display: block;
  width: var(--ll-ig-size);
  height: var(--ll-ig-size);
  flex-shrink: 0;
  line-height: 0;
}

.landing-ig-btn__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.landing-ig-btn__label {
  display: block;
  font-size: var(--ll-ig-font);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.landing-ig-btn.is-icon-only {
  width: var(--ll-ig-size);
  height: var(--ll-ig-size);
  justify-content: center;
  gap: 0;
}

.landing-ig-btn.is-icon-only .landing-ig-btn__label {
  display: none;
}

.landing-ig-btn.is-text-only .landing-ig-btn__icon {
  display: none;
}

@media (min-width: 900px) {
  .landing-ig-btn {
    --ll-ig-size: clamp(34px, 2.4vw, 48px);
  }
}

.portada-studio__shell .landing-ig-btn {
  --ll-ig-size: clamp(28px, 8cqw, 44px);
}

.portada-studio__shell.landing-layout-host.is-desktop .landing-ig-btn {
  --ll-ig-size: clamp(32px, 2.4cqw, 48px);
}

.landing-quote .acc,
.portada-studio__shell .acc {
  color: var(--ll-rojo);
}

.landing-ui {
  position: relative;
  z-index: 4;
  width: 100%;
  margin-top: auto;
  padding: 0 var(--ll-gutter) var(--ll-ui-pad-bottom);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.portada-studio__shell .landing-ui {
  flex-shrink: 0;
}

.landing-dock {
  width: 100%;
  max-width: var(--ll-stack-w);
  margin: 0 auto;
  pointer-events: none;
}

.landing-stack {
  width: 100%;
}

.landing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ll-actions-gap);
  width: 100%;
  pointer-events: none;
}

.landing-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ll-tile-min);
  box-sizing: border-box;
  padding: 10px 6px;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(238, 228, 205, 0.32);
  background: transparent;
  color: var(--ll-beige);
  pointer-events: none;
}

.landing-tile--accent {
  color: var(--ll-rojo);
  border-color: var(--ll-rojo);
  min-height: var(--ll-tile-accent-min);
}

.landing-tile__label {
  font-size: var(--ll-tile-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0 6px;
  line-height: 1.15;
}

.landing-tile--accent .landing-tile__label {
  font-size: var(--ll-tile-label-accent);
}

.landing a.landing-tile {
  pointer-events: auto;
  transition: background 0.15s ease;
}

.landing a.landing-tile:hover {
  background: rgba(238, 228, 205, 0.04);
}

/* Admin: arrastre logo / frase */
.portada-studio__pick {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  border: 2px solid transparent;
  border-radius: 6px;
  margin: 0;
}

#portada-pick-logo {
  transform: translate(0, 0);
}

#portada-pick-frase {
  transform: translate(-100%, 0);
}

.portada-studio__pick.is-selected {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.portada-studio__pick.is-dragging {
  cursor: grabbing;
}

.portada-studio__badge {
  position: absolute;
  top: -10px;
  left: 6px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #3b82f6;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
}

.portada-studio__pick.is-selected .portada-studio__badge {
  opacity: 1;
}

.portada-studio__pick .nav {
  position: static;
  transform: none;
  width: var(--ll-nav-w);
  pointer-events: none;
}

.portada-studio__pick .nav-logo__frame {
  pointer-events: none;
}
