/* =========================================================
   PanamaBy — Design System
   Editorial menswear · Originally designed; not a clone.
   Réplica fiel del diseño de Claude Design.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
    --gold: #C9A84C;
    --gold-deep: #B0902E;
    --gold-soft: #E6D49A;
    --black: #1A1A1A;
    --ink: #2A2A28;
    --cream: #FFFFFF;
    --cream-deep: #FFFFFF;
    --white: #FFFFFF;
    --line: rgba(26,26,26,0.12);
    --line-soft: rgba(26,26,26,0.06);
    --muted: #6B6B66;

    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --sans: "Inter", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --script: "Pinyon Script", "Dancing Script", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    background: var(--white);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
ul, ol { list-style: none; }

/* Bilingüe */
.pby-lang { display: none; }
html[data-lang="es"] .pby-lang-es,
html:not([data-lang="en"]) .pby-lang-es { display: inline; }
html[data-lang="en"] .pby-lang-en { display: inline; }

/* Skiplink */
.pby-skiplink {
    position: absolute; left: -9999px; top: 0;
    padding: 12px 18px;
    background: var(--black); color: var(--white);
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
    z-index: 9999;
}
.pby-skiplink:focus { left: 0; }

/* ---------- Type scale ---------- */
.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
}
.eyebrow-gold { color: var(--gold-deep); }

.h-display {
    font-family: var(--serif);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 0.95;
}

.h-section {
    font-family: var(--serif);
    font-weight: 300;
    letter-spacing: -0.005em;
    line-height: 1.05;
}

.body-l { font-size: 17px; line-height: 1.55; font-weight: 400; }
.body-m { font-size: 15px; line-height: 1.6; }
.body-s { font-size: 13px; line-height: 1.5; color: var(--muted); }

em { font-style: italic; }

/* ---------- Layout ---------- */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 56px;
}
.container-narrow {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 56px;
}
@media (max-width: 720px) {
    .container, .container-narrow { padding: 0 24px; }
}

.rule { height: 1px; background: var(--line); width: 100%; }
.rule-gold { height: 1px; background: var(--gold); width: 100%; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
}
.btn-gold {
    background: var(--gold);
    color: var(--black);
}
.btn-gold:hover {
    background: var(--gold-deep);
    transform: translateY(-1px);
}
.btn-outline {
    border-color: currentColor;
    background: transparent;
    color: var(--black);
}
.btn-outline:hover {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}
.btn-outline-light {
    border-color: rgba(255,255,255,0.6);
    background: transparent;
    color: var(--white);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}
.btn .arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn:hover .arrow { transform: translateX(4px); }

/* Link with underline reveal */
.link-underline {
    position: relative;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding-bottom: 4px;
    color: var(--ink);
}
.link-underline::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: currentColor;
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.link-underline:hover::after { transform: scaleX(1.05); }

/* Page transitions */
.page-enter { animation: pageIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   NAV
   ========================================================= */
.pby-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    transition: background 0.4s, border-color 0.4s, color 0.3s;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
}
.pby-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 18px 56px;
    gap: 32px;
}
.pby-nav__lang {
    display: flex; gap: 14px; align-items: center;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.pby-nav__lang button { opacity: 0.6; transition: color 0.2s, opacity 0.2s; }
.pby-nav__lang button:hover { opacity: 1; }
.pby-nav__lang button.is-active { color: var(--gold); opacity: 1; }
.pby-nav__lang-sep { opacity: 0.3; }

.pby-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    /* sin line-height fijo para no recortar la altura intrínseca de la imagen */
}
.pby-nav__brand-tree {
    height: 52px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
    object-position: center;
    display: block;
    flex-shrink: 0;
    transition: filter 0.3s;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35));
}
.pby-nav__brand-text {
    font-family: var(--script);
    font-size: 38px;
    line-height: 1;
    color: var(--gold);
    letter-spacing: 0.005em;
    text-shadow: 0 1px 14px rgba(0,0,0,0.35);
    transition: text-shadow 0.3s;
    /* alineación visual con la base del árbol */
    transform: translateY(2px);
}

.pby-nav__menu-wrap {
    display: flex; justify-content: flex-end; align-items: center; gap: 28px;
}
.pby-nav__menu {
    display: flex; gap: 26px; list-style: none; margin: 0; padding: 0;
}
.pby-nav__menu a, .pby-nav__menu button, .pby-nav__menu .menu-item > a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    color: inherit;
    transition: color 0.2s, border-color 0.2s;
}
.pby-nav__menu a:hover, .pby-nav__menu button:hover { color: var(--gold); }
.pby-nav__menu .current-menu-item > a,
.pby-nav__menu li.is-active > a,
.pby-nav__menu li.is-active > button {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.pby-nav__cta {
    padding: 12px 18px;
    background: var(--gold);
    color: var(--black);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s;
    line-height: 1;
}
.pby-nav__cta:hover { background: var(--gold-deep); transform: translateY(-1px); }

.pby-nav__burger {
    display: none;
    width: 32px; height: 32px;
    flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.pby-nav__burger span {
    width: 22px; height: 1.5px; background: currentColor;
    transition: all 0.25s;
}

/* Nav scrolled / inner pages */
.pby-nav.is-dark {
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom-color: var(--line);
    color: var(--black);
}
.pby-nav.is-dark .pby-nav__brand-tree { filter: none; }
.pby-nav.is-dark .pby-nav__brand-text { text-shadow: none; }

/* Mobile drawer */
.pby-mobile {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--white);
    z-index: 49;
    padding: 40px 24px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 320ms cubic-bezier(.4,0,.2,1), opacity 320ms;
    overflow-y: auto;
}
.pby-mobile.is-open { transform: translateY(0); opacity: 1; }
.pby-mobile__list { display: flex; flex-direction: column; gap: 22px; }
.pby-mobile__list a, .pby-mobile__list button {
    font-family: var(--serif); font-size: 32px; font-weight: 300;
    color: var(--black); letter-spacing: -0.005em;
}
.pby-mobile__list a:hover, .pby-mobile__list button:hover { color: var(--gold); }
.pby-mobile__lang {
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex; gap: 18px;
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
}

/* =========================================================
   HERO
   ========================================================= */
.hero-shell {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 760px;
    overflow: hidden;
    background: var(--black);
}
.hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.78) contrast(1.05);
    animation: kenburns 20s ease-out infinite alternate;
}
@keyframes kenburns {
    from { transform: scale(1.0); }
    to   { transform: scale(1.08); }
}
.hero-vignette {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.7) 100%),
        radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.35) 100%);
}

.hero-edition {
    position: absolute; top: 110px; left: 56px;
    color: var(--white);
    display: flex; align-items: center; gap: 12px;
}
.hero-edition__rule { width: 32px; height: 1px; background: var(--gold); }
.hero-edition__label {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold-soft);
}

.hero-content {
    position: absolute; left: 56px; right: 56px; bottom: 96px;
    color: var(--white);
}
.hero-content__inner {
    display: grid; grid-template-columns: 1fr auto;
    align-items: end; gap: 48px;
}
.hero-title {
    font-family: var(--serif);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 0.95;
    font-size: clamp(56px, 9vw, 132px);
    color: var(--white);
    margin-bottom: 28px;
}
.hero-title em { font-style: italic; color: var(--gold); font-weight: 300; }
.hero-sub {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    max-width: 480px;
    animation-delay: 0.15s;
}
.hero-cta {
    display: flex; gap: 12px;
    animation-delay: 0.3s;
}

.hero-scroll {
    position: absolute; right: 32px; bottom: 96px;
    color: var(--white);
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    opacity: 0.7;
}
.hero-scroll__label {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.3em; text-transform: uppercase;
    writing-mode: vertical-rl;
}
.hero-scroll__rail {
    width: 1px; height: 56px;
    background: rgba(255,255,255,0.5);
    position: relative; overflow: hidden;
}
.hero-scroll__rail::after {
    content: ""; position: absolute; top: 0; left: 0;
    width: 1px; height: 16px; background: var(--gold);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { top: -16px; }
    100% { top: 56px; }
}

@media (max-width: 720px) {
    .hero-edition { left: 24px; top: 96px; }
    .hero-content { left: 24px; right: 24px; bottom: 56px; }
    .hero-content__inner { grid-template-columns: 1fr; gap: 32px; }
    .hero-cta { flex-wrap: wrap; }
    .hero-scroll { right: 16px; bottom: 32px; }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
}
.marquee-track {
    display: flex;
    gap: 64px;
    padding: 18px 0;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
    align-items: center;
}
.marquee-track .dot { color: var(--gold); }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding: 120px 0; background: var(--white); }
.section-head {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 56px; align-items: end;
    margin-bottom: 64px;
}
.section-head__intro p { color: var(--muted); max-width: 460px; }
.section-head--split {
    display: flex; justify-content: space-between; align-items: end;
    margin-bottom: 56px; gap: 32px; flex-wrap: wrap;
}
.section-h {
    font-family: var(--serif);
    font-weight: 300;
    letter-spacing: -0.005em;
    line-height: 1.05;
    font-size: clamp(40px, 5vw, 72px);
}
.section-h em { font-style: italic; color: var(--gold); }

@media (max-width: 880px) {
    .section { padding: 80px 0; }
    .section-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
}

/* =========================================================
   PRODUCT CARDS
   ========================================================= */
.product-frame {
    position: relative;
    background: var(--black);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-frame .stripes {
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255,255,255,0.025) 0,
        rgba(255,255,255,0.025) 1px,
        transparent 1px,
        transparent 14px
    );
}
.product-frame .ph-label {
    position: absolute; bottom: 22px; left: 0; right: 0;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
    color: rgba(230,212,154,0.7); text-transform: uppercase;
    text-align: center; padding: 0 24px;
}
.product-frame .ph-tree {
    position: relative; width: 38%;
    opacity: 0.95;
    transition: transform 0.6s ease, opacity 0.6s ease;
    display: flex; align-items: center; justify-content: center;
}
.product-card:hover .ph-tree { transform: scale(1.04); }
.product-frame.has-photo { background: transparent; }
.product-frame.has-photo .stripes,
.product-frame.has-photo .ph-tree,
.product-frame.has-photo .ph-label { display: none; }
.product-frame .ph-photo {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .ph-photo { transform: scale(1.04); }

.product-card {
    cursor: pointer;
    transition: transform 0.4s ease;
    display: block;
    color: inherit;
}
.product-card .meta {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.product-card .name {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--black);
    letter-spacing: -0.01em;
}
.product-card .price {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--ink);
}
.product-card .sub {
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--muted);
    text-transform: uppercase;
}

.products-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.products-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; row-gap: 56px; }
@media (max-width: 1024px) {
    .products-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .products-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .products-grid-4, .products-grid-3 { grid-template-columns: 1fr; }
}

/* =========================================================
   DESIGNER EDITION (split)
   ========================================================= */
.designer-edition {
    background: var(--white);
    padding: 120px 0;
    position: relative;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.designer-edition__inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center;
}
.designer-edition__media { position: relative; }
.designer-edition__badge {
    position: absolute; bottom: -28px; right: -28px;
    background: var(--white);
    padding: 20px 24px;
    border-left: 2px solid var(--gold);
    max-width: 240px;
}
.designer-edition__badge-text {
    font-family: var(--serif);
    font-size: 22px;
    font-style: italic;
    line-height: 1.2;
    margin-top: 6px;
}
.designer-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-bottom: 36px;
    padding-top: 32px; border-top: 1px solid var(--line);
}
.stat__label { margin-bottom: 8px; }
.stat__value {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 300;
    color: var(--black);
    line-height: 1.1;
}
@media (max-width: 880px) {
    .designer-edition { padding: 80px 0; }
    .designer-edition__inner { grid-template-columns: 1fr; gap: 48px; }
    .designer-edition__badge { right: 24px; bottom: -20px; }
    .designer-stats { grid-template-columns: 1fr; }
}

/* =========================================================
   MIRAFLORES BLOCK
   ========================================================= */
.miraflores {
    position: relative;
    height: 85vh;
    min-height: 620px;
    overflow: hidden;
    background: var(--black);
}
.miraflores__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}
.miraflores__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 60%);
}
.miraflores__inner {
    position: relative;
    height: 100%;
    display: flex; align-items: center;
}
.miraflores__body {
    color: var(--white);
    max-width: 540px;
}
.miraflores__title {
    font-family: var(--serif); font-weight: 300;
    letter-spacing: -0.005em; line-height: 1.05;
    font-size: clamp(36px, 4.5vw, 64px);
    color: var(--white);
    margin-bottom: 24px;
}
.miraflores__title em { color: var(--gold); font-style: italic; }
.miraflores__lead {
    font-size: 17px; line-height: 1.55;
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
}

/* =========================================================
   STORIES PREVIEW (Home grid)
   ========================================================= */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.story-card { cursor: pointer; display: block; color: inherit; }
.story-card__media {
    overflow: hidden; aspect-ratio: 4/5; margin-bottom: 22px;
    background: var(--black);
}
.story-card__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.story-card:hover .story-card__media img { transform: scale(1.04); }
.story-card__title {
    font-family: var(--serif);
    font-size: 28px; font-weight: 300; line-height: 1.15;
    margin-bottom: 14px; letter-spacing: -0.005em;
    color: var(--black);
}
.story-card .eyebrow { margin-bottom: 12px; }
@media (max-width: 1024px) { .stories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .stories-grid { grid-template-columns: 1fr; } }

/* =========================================================
   ABOUT TEASER (Home, dark)
   ========================================================= */
.about-teaser {
    background: var(--black);
    color: var(--white);
    padding: 120px 0;
}
.about-teaser__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}
.about-teaser__title {
    font-family: var(--serif); font-weight: 300;
    letter-spacing: -0.005em; line-height: 1.05;
    font-size: clamp(36px, 4.5vw, 64px);
    color: var(--white);
    margin-bottom: 28px;
}
.about-teaser__title em { color: var(--gold); font-style: italic; }
.about-teaser__lead {
    color: rgba(255,255,255,0.78);
    margin-bottom: 36px;
    max-width: 540px;
}
@media (max-width: 880px) {
    .about-teaser { padding: 80px 0; }
    .about-teaser__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================
   PAGE: Shop
   ========================================================= */
.page-pad-top { padding-top: 120px; }
.page-pad-bottom { padding-bottom: 120px; }

.page-h1 {
    font-family: var(--serif); font-weight: 300;
    letter-spacing: -0.005em; line-height: 1.05;
    font-size: clamp(48px, 6vw, 96px);
    margin-bottom: 36px;
}
.page-h1 em { font-style: italic; color: var(--gold); }

.shop-toolbar {
    display: flex; gap: 8px;
    margin-top: 32px; padding-top: 28px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.shop-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-filter {
    padding: 12px 22px;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    border: 1px solid var(--line);
    background: transparent; color: var(--ink);
    transition: all 0.2s;
}
.shop-filter:hover { border-color: var(--ink); }
.shop-filter.is-active {
    background: var(--black); color: var(--white); border-color: var(--black);
}

/* =========================================================
   PAGE: Stories
   ========================================================= */
.stories-cats {
    display: flex; gap: 8px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.stories-cat {
    padding: 10px 18px;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
    transition: all 0.2s;
}
.stories-cat:hover { border-color: var(--gold); color: var(--gold-deep); }
.stories-cat.is-active {
    border-color: var(--gold);
    color: var(--gold-deep);
    background: rgba(201,168,76,0.08);
}

.stories-featured {
    display: grid; grid-template-columns: 1.3fr 1fr;
    gap: 56px; align-items: center;
    margin-top: 56px;
}
.stories-featured__media {
    aspect-ratio: 5/4; overflow: hidden;
}
.stories-featured__media img { width: 100%; height: 100%; object-fit: cover; }
.stories-featured__title {
    font-family: var(--serif); font-weight: 300;
    line-height: 1.1; letter-spacing: -0.005em;
    font-size: clamp(32px, 3.5vw, 52px);
    margin-bottom: 24px;
}
.stories-featured__excerpt {
    color: var(--muted); margin-bottom: 28px;
}
@media (max-width: 880px) {
    .stories-featured { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   PAGE: About
   ========================================================= */
.about-founder {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: 64px; align-items: center;
}
.about-founder__title {
    font-family: var(--serif); font-weight: 300;
    line-height: 1.05; letter-spacing: -0.005em;
    font-size: clamp(32px, 3.6vw, 52px);
    margin-bottom: 24px;
}
.about-founder__lead { color: var(--muted); margin-bottom: 22px; }

.values {
    background: var(--white);
    padding: 120px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.values-h {
    font-family: var(--serif); font-weight: 300;
    line-height: 1.05; letter-spacing: -0.005em;
    font-size: clamp(36px, 4.5vw, 64px);
    margin-bottom: 64px; max-width: 800px;
}
.values-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.value {
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.value__num {
    font-family: var(--mono); font-size: 12px;
    letter-spacing: 0.2em; color: var(--gold-deep);
    margin-bottom: 24px;
}
.value__title {
    font-family: var(--serif); font-size: 26px; font-weight: 300;
    line-height: 1.15; margin-bottom: 16px;
}
@media (max-width: 1024px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .values-grid { grid-template-columns: 1fr; } }

.about-ligia {
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: 64px; align-items: center;
}
@media (max-width: 880px) {
    .about-founder, .about-ligia { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================
   PAGE: Contact
   ========================================================= */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}
.contact-row {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.contact-row__label { margin-bottom: 8px; }
.contact-row__value {
    font-family: var(--serif); font-size: 22px; font-weight: 300;
    color: var(--black);
}
.contact-list {
    display: flex; flex-direction: column; gap: 28px;
}
.contact-form {
    background: var(--white);
    padding: 48px;
    border: 1px solid var(--gold);
}
.contact-form__success {
    text-align: center;
    padding: 60px 0;
}
.contact-form__success svg {
    margin: 0 auto 24px;
    display: block;
}
.contact-form__success-title {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 300;
    line-height: 1.1;
    margin: 0 0 12px;
    color: var(--black);
}
.field { margin-bottom: 24px; }
.field label {
    display: block; margin-bottom: 8px;
}
.field label .req { color: var(--gold); }
.field input, .field textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--gold);
    background: transparent;
    font-family: var(--sans); font-size: 16px;
    color: var(--ink);
    outline: none;
    resize: none;
}
.field textarea { min-height: 120px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--gold-deep); }

@media (max-width: 880px) {
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-form { padding: 32px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.pby-footer {
    background: var(--black);
    color: var(--white);
    padding-top: 96px;
    padding-bottom: 48px;
}
.pby-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 72px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.pby-footer__brand {
    margin-bottom: 24px;
    display: inline-flex; align-items: center; gap: 14px;
}
.pby-footer__brand-tree {
    height: 72px;
    width: auto;
    max-width: 96px;
    object-fit: contain;
    object-position: center;
    display: block;
    flex-shrink: 0;
}
.pby-footer__brand-text {
    font-family: var(--script);
    font-size: 52px;
    color: var(--gold);
    line-height: 1;
    transform: translateY(3px);
}
.pby-footer__tagline {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 28px;
    max-width: 360px;
    color: var(--white);
}
.pby-footer__newsletter-eyebrow {
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
}
.pby-footer__newsletter {
    display: flex;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 8px;
    max-width: 340px;
}
.pby-footer__newsletter input[type="email"] {
    flex: 1; background: transparent; border: none;
    color: var(--white);
    font-family: var(--sans); font-size: 14px;
    outline: none;
}
.pby-footer__newsletter input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.pby-footer__newsletter button {
    color: var(--gold);
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
}
.pby-footer__newsletter button:hover { color: var(--gold-soft); }

.pby-footer__col-title {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
}
.pby-footer__col-list {
    display: flex; flex-direction: column; gap: 12px;
}
.pby-footer__col-list a, .pby-footer__col-list button {
    font-family: var(--sans); font-size: 14px;
    color: rgba(255,255,255,0.78);
    text-align: left;
    transition: color 0.2s;
}
.pby-footer__col-list a:hover, .pby-footer__col-list button:hover { color: var(--gold); }

.pby-footer__bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 40px;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap; gap: 20px;
}
.pby-footer__social { display: flex; gap: 24px; }
.pby-footer__social a { color: var(--gold); }
.pby-footer__social a:hover { color: var(--gold-soft); }

@media (max-width: 1024px) {
    .pby-footer__top { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 640px) {
    .pby-footer__top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 56px; }
    .pby-footer__brand-text { font-size: 40px; }
    .pby-footer__tagline { font-size: 19px; }
}

/* =========================================================
   Responsive — nav
   ========================================================= */
@media (max-width: 980px) {
    .pby-nav__inner {
        grid-template-columns: auto 1fr auto;
        padding: 14px 24px;
    }
    .pby-nav__lang { display: none; }
    .pby-nav__brand { justify-self: start; }
    .pby-nav__brand-text { font-size: 30px; }
    .pby-nav__brand-tree { height: 42px; max-width: 56px; }
    .pby-nav__menu, .pby-nav__cta { display: none; }
    .pby-nav__burger { display: inline-flex; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .hero-img { animation: none; }
    .marquee-track { animation: none; }
}

/* WordPress editor body */
body.wp-admin { background: var(--white); }
.editmode-on { outline: 1px dashed rgba(201,168,76,0.4); }

/* WooCommerce nudge */
.woocommerce ul.products li.product .price { color: var(--ink); font-family: var(--mono); }
.woocommerce ul.products li.product .button {
    background: var(--gold) !important; color: var(--black) !important;
    border-radius: 0 !important;
    font-family: var(--sans); font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase; font-size: 11px;
}
.woocommerce ul.products li.product .button:hover {
    background: var(--gold-deep) !important;
}

/* =========================================================
   v3 — Reenfoque Coming Soon (julio 2026)
   ========================================================= */

/* Logo nuevo (árbol bordado) — proporción más vertical */
.pby-nav__brand-tree { max-width: 64px; }
.pby-footer__brand-tree { max-width: 84px; }

/* ---------- Tienda: Coming Soon ---------- */
.coming-soon {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    overflow: hidden;
    padding: 160px 24px 120px;
}
.coming-soon__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(0.5) contrast(1.05);
}
.coming-soon__vignette {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.65) 100%),
        radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.45) 100%);
}
.coming-soon__content {
    position: relative;
    text-align: center;
    color: var(--white);
    max-width: 760px;
}
.coming-soon__title {
    font-family: var(--serif);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.0;
    font-size: clamp(44px, 7vw, 104px);
    color: var(--white);
    margin: 24px 0 28px;
}
.coming-soon__title em { font-style: italic; color: var(--gold); }
.coming-soon__lead {
    font-size: 17px; line-height: 1.6;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin: 0 auto 48px;
}

/* ---------- Formulario lista de espera ---------- */
.waitlist-form {
    display: flex;
    gap: 0;
    max-width: 460px;
    margin: 0 auto;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 10px;
    text-align: left;
}
.waitlist-form input[type="email"] {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: var(--sans);
    font-size: 16px;
    padding: 10px 0;
}
.waitlist-form input[type="email"]::placeholder { color: rgba(255,255,255,0.45); }
.waitlist-form button {
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 10px 0 10px 18px;
    white-space: nowrap;
    transition: color 0.2s;
}
.waitlist-form button:hover { color: var(--gold-soft); }
.waitlist-note {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 16px;
}
.waitlist-success {
    padding: 24px 0 8px;
    color: var(--white);
}
.waitlist-success__title {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 300;
    margin: 12px 0 8px;
    color: var(--white);
}
.waitlist-success p { color: rgba(255,255,255,0.75); }

/* Honeypot */
.pby-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Banda "en camino" (badge) ---------- */
.badge-soon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-soft);
}
.badge-soon .pulse {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
    animation: pbyPulse 1.6s ease-in-out infinite;
}
@keyframes pbyPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.7); }
}

/* ---------- Qué viene (tienda, bajo el hero) ---------- */
.upcoming { padding: 120px 0; background: var(--white); }
.upcoming-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
    margin-top: 56px;
}
.upcoming-card {
    border: 1px solid var(--line);
    padding: 44px 40px;
    position: relative;
}
.upcoming-card__num {
    font-family: var(--mono); font-size: 12px;
    letter-spacing: 0.2em; color: var(--gold-deep);
    margin-bottom: 22px;
}
.upcoming-card__title {
    font-family: var(--serif); font-size: 30px; font-weight: 300;
    line-height: 1.15; margin-bottom: 16px; color: var(--black);
}
.upcoming-card__tag {
    position: absolute; top: 44px; right: 40px;
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold-deep);
    border: 1px solid var(--gold);
    padding: 6px 12px; border-radius: 999px;
}
@media (max-width: 880px) {
    .upcoming { padding: 80px 0; }
    .upcoming-grid { grid-template-columns: 1fr; }
    .upcoming-card__tag { position: static; display: inline-block; margin-bottom: 18px; }
}

/* ---------- Home: historia de marca (texto + stats) ---------- */
.brand-story { padding: 120px 0; background: var(--white); }
.brand-story__grid {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 64px; align-items: start;
}
.brand-story__stats {
    display: flex; flex-direction: column; gap: 28px;
    padding-top: 8px;
}
.brand-story__stat {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
@media (max-width: 880px) {
    .brand-story { padding: 80px 0; }
    .brand-story__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Home: banda lista de espera ---------- */
.waitlist-band {
    background: var(--black);
    color: var(--white);
    padding: 110px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.waitlist-band__title {
    font-family: var(--serif); font-weight: 300;
    letter-spacing: -0.005em; line-height: 1.08;
    font-size: clamp(34px, 4.5vw, 60px);
    color: var(--white);
    margin: 22px auto 18px;
    max-width: 720px;
}
.waitlist-band__title em { font-style: italic; color: var(--gold); }
.waitlist-band__lead {
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    margin: 0 auto 44px;
}

/* ---------- Avisos de formulario (no-JS / redirect) ---------- */
.pby-notice {
    font-family: var(--mono); font-size: 12px;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 14px 18px; margin-bottom: 24px;
    border: 1px solid var(--gold);
    color: var(--gold-deep); background: rgba(201,168,76,0.07);
}
.pby-notice.is-error { border-color: #b0502e; color: #b0502e; background: rgba(176,80,46,0.07); }

/* Footer sin columna de productos: grid a 3 + contacto */
.pby-footer__top.cols-3 { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 1024px) { .pby-footer__top.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .pby-footer__top.cols-3 { grid-template-columns: 1fr; } }

/* Etiquetas solo para lectores de pantalla (equivalente WP) */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   v3.1 — Ajustes pre-deploy
   ========================================================= */

/* Stories: tarjetas sin enlace todavía — sin cursor de clic */
article.story-card { cursor: default; }

/* ---------- Bloque de video (clic para reproducir) ---------- */
.video-block {
    position: relative;
    margin-top: 72px;
    aspect-ratio: 16 / 9;
    background: var(--black);
    overflow: hidden;
}
.video-block video {
    width: 100%; height: 100%;
    display: block;
    object-fit: cover;
}
.video-block__overlay {
    position: absolute; inset: 0;
    width: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 18px;
    background: rgba(0,0,0,0.35);
    color: var(--white);
    cursor: pointer;
    transition: background 0.3s;
}
.video-block__overlay:hover { background: rgba(0,0,0,0.22); }
.video-block__play {
    width: 76px; height: 76px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    background: rgba(26,26,26,0.55);
    color: var(--gold);
    transition: transform 0.3s, background 0.3s, color 0.3s;
}
.video-block__play svg { display: block; margin-left: 4px; }
.video-block__overlay:hover .video-block__play {
    transform: scale(1.06);
    background: var(--gold);
    color: var(--black);
}
.video-block__label {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold-soft);
}
.video-block.is-playing .video-block__overlay { display: none; }

/* ---------- Tarjetas "Qué viene" con imagen ---------- */
.upcoming-card { padding: 0; display: flex; flex-direction: column; }
.upcoming-card__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--black);
}
.upcoming-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.6s ease;
}
.upcoming-card:hover .upcoming-card__media img { transform: scale(1.03); }
.upcoming-card__body { position: relative; padding: 40px; flex: 1; }
.upcoming-card__tag { top: 40px; right: 40px; }
@media (max-width: 880px) {
    .upcoming-card__body { padding: 32px 24px; }
    .upcoming-card__tag { top: 32px; right: 24px; }
}

/* =========================================================
   v3.2 — Artículo individual de Panama Stories
   ========================================================= */
.story-single__media { margin-bottom: 48px; }
.story-single__media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--black);
}
.story-single__head { margin-bottom: 40px; }
.story-single__head .eyebrow { margin-bottom: 16px; }
.story-single__title {
    font-family: var(--serif);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.005em;
    font-size: clamp(36px, 5vw, 68px);
    margin-bottom: 18px;
}
.story-single__body p {
    margin-bottom: 26px;
    max-width: 720px;
    color: var(--ink);
}
.story-single__foot {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
    .story-single__media { margin-bottom: 32px; }
    .story-single__media img { aspect-ratio: 4 / 3; }
}

/* Historias escritas desde el editor de WordPress (autoservicio) */
.story-single__wp p,
.story-single__wp ul,
.story-single__wp ol {
    margin-bottom: 26px;
    max-width: 720px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.55;
}
.story-single__wp ul, .story-single__wp ol { padding-left: 22px; }
.story-single__wp ul { list-style: disc; }
.story-single__wp ol { list-style: decimal; }
.story-single__wp h2, .story-single__wp h3 {
    font-family: var(--serif);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.005em;
    margin: 48px 0 20px;
}
.story-single__wp h2 { font-size: clamp(26px, 3vw, 38px); }
.story-single__wp h3 { font-size: clamp(22px, 2.4vw, 30px); }
.story-single__wp img { margin: 36px 0; width: 100%; height: auto; }
.story-single__wp a { color: var(--gold-deep); border-bottom: 1px solid var(--gold); }
.story-single__wp blockquote {
    border-left: 2px solid var(--gold);
    padding-left: 24px;
    margin: 36px 0;
    font-family: var(--serif);
    font-size: 22px;
    font-style: italic;
    color: var(--black);
}

/* Imagen intercalada dentro del cuerpo del artículo */
.story-single__inline {
    margin: 14px 0 40px;
    max-width: 720px;
}
.story-single__inline img {
    width: 100%;
    display: block;
}
