/* popl-chile.css
 * Popl Chile section components.
 * Assumes the base .ship-* styles (nav, hero, section, body, footer, eyebrow,
 * h2/h3) are inlined in each page's <style> block, matching the rest of the site.
 * Colors use rgba() literals (true black/white) plus a single restrained brand
 * accent (--popl-accent), per the "subtle Popl accent" design decision.
 */
@import url('/ship-scale.css');

:root {
    /* Tech blue accent. Used ONLY for the buy CTA fill, step numbers, the
     * active FAQ marker, and list bullets. Everything else stays black / white / grey. */
    --popl-accent: #2563EB;
    --popl-accent-ink: #ffffff;     /* readable text on the blue fill */
    --popl-accent-dim: rgba(37, 99, 235, 0.14);
}

/* ---------- CTA buttons ---------- */

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border: 1px solid rgba(255,255,255,0.22);
    background: #fff;
    color: #000;
    text-decoration: none;
    font-family: 'Geist', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    transition: opacity 180ms ease, background-color 180ms ease;
    border-radius: 3px;
}

.cta-button:hover { opacity: 0.88; }

.cta-button--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.22);
}

.cta-button--ghost:hover {
    background: rgba(255,255,255,0.04);
    opacity: 1;
}

/* Primary "Comprar" action. Intentionally NOT mint-filled: it shares the base
 * .cta-button (white on dark / black on light). Do NOT re-add a same-specificity
 * `.cta-button--buy { background: mint }` rule — it ties the button's color to
 * CSS source order, and asesorias.css's identical `.cta-button` (merged into the
 * same chunk) wins, so the button flashes mint then settles white. The --buy
 * class is kept on the markup only as a tracking/styling hook. */

section.light .cta-button {
    background: #000;
    color: #fff;
    border-color: rgba(0,0,0,0.10);
}
section.light .cta-button--ghost {
    background: transparent;
    color: #000;
    border-color: rgba(0,0,0,0.22);
}
section.light .cta-button--ghost:hover { background: rgba(0,0,0,0.04); }

/* Quiet CTA link (lower visual weight than .cta-button) */
.cta-quiet {
    display: inline-block;
    text-decoration: none;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255,255,255,0.50);
    padding: 8px 4px;
    transition: color 180ms ease;
}
.cta-quiet:hover { color: #fff; }
section.light .cta-quiet { color: rgba(0,0,0,0.55); }
section.light .cta-quiet:hover { color: #000; }

/* ---------- Section head (eyebrow + title + lead) ---------- */

.section-head {
    margin-bottom: 36px;
    max-width: 720px;
}
.section-head.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head .lead {
    margin: 16px 0 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.70);
    letter-spacing: -0.011em;
}
.section-head--center .lead { margin-left: auto; margin-right: auto; }
section.light .section-head .lead { color: rgba(0,0,0,0.65); }

/* ---------- Feature grid (hairline cells, non-clickable) ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-left: 1px solid rgba(255,255,255,0.10);
    margin-top: 36px;
}

.feature-card {
    padding: 32px 28px;
    border-right: 1px solid rgba(255,255,255,0.10);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-card__id {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255,255,255,0.40);
    margin: 0;
}

.feature-card__title {
    font-family: 'Geist', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.012em;
    color: #fff;
    margin: 0;
}

.feature-card__body {
    font-family: 'Geist', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.65);
    letter-spacing: -0.005em;
    margin: 0;
}

section.light .feature-grid {
    border-top-color: rgba(0,0,0,0.10);
    border-left-color: rgba(0,0,0,0.10);
}
section.light .feature-card {
    border-right-color: rgba(0,0,0,0.10);
    border-bottom-color: rgba(0,0,0,0.10);
}
section.light .feature-card__id { color: rgba(0,0,0,0.40); }
section.light .feature-card__title { color: #000; }
section.light .feature-card__body { color: rgba(0,0,0,0.65); }

@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 24px 20px; }
}

/* ---------- How-it-works steps (numbered, accent index) ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--popl-accent-dim);
    color: var(--popl-accent);
    font-family: 'Geist Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    flex-shrink: 0;
}

.step__title {
    font-family: 'Geist', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.012em;
    color: #fff;
    margin: 0;
}

.step__body {
    font-family: 'Geist', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.65);
    letter-spacing: -0.005em;
    margin: 0;
}

section.light .step__title { color: #000; }
section.light .step__body { color: rgba(0,0,0,0.65); }

@media (max-width: 900px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}
@media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; }
}

/* ---------- Product card (price + included + buy) ---------- */

.product {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 0;
    margin-top: 36px;
    border: 1px solid rgba(0,0,0,0.10);
}

.product__media {
    position: relative;
    background: #f3f3ef;
    border-right: 1px solid rgba(0,0,0,0.10);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder shown until the owner drops in a real product photo. */
.product__media-placeholder {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(0,0,0,0.32);
    text-align: center;
    padding: 24px;
    line-height: 1.8;
}

.product__info {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product__name {
    font-family: 'Geist', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.2;
    color: #000;
    margin: 0;
}

.product__price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.product__price {
    font-family: 'Geist', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #000;
    line-height: 1;
}

.product__price-note {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(0,0,0,0.45);
}

.product__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 4px;
}

.product__badge {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0,0,0,0.62);
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 999px;
    padding: 5px 10px;
}

.product__list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product__list li {
    position: relative;
    padding-left: 24px;
    font-family: 'Geist', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(0,0,0,0.72);
    letter-spacing: -0.005em;
}

.product__list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--popl-accent);
}

.product__cta { margin-top: 8px; }

@media (max-width: 768px) {
    .product { grid-template-columns: 1fr; }
    .product__media { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.10); min-height: 240px; }
    .product__info { padding: 32px 24px; }
}

/* ---------- Audience ticker (auto-scroll marquee) ---------- */

.audience-ticker { margin-top: 40px; position: relative; }

.audience-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.audience-track {
    display: flex;
    width: max-content;
    gap: 14px;
    padding: 6px 0;
    will-change: transform;
    animation: audience-scroll 40s linear infinite;
}
.audience-marquee:hover .audience-track,
.audience-marquee:focus-within .audience-track { animation-play-state: paused; }

@keyframes audience-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.audience-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    padding: 13px 22px 13px 16px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    background: rgba(255,255,255,0.012);
    white-space: nowrap;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.audience-pill:hover,
.audience-pill:focus-visible {
    border-color: rgba(37,99,235,0.55);
    background: rgba(37,99,235,0.06);
    transform: translateY(-2px);
    outline: none;
}

.audience-idx {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(37,99,235,0.30);
    border-radius: 999px;
    background: rgba(37,99,235,0.14);
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #2563EB;
}

.audience-body { display: inline-flex; flex-direction: column; gap: 3px; min-width: 0; }
.audience-name {
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.014em;
    color: #fff;
    line-height: 1.1;
}
.audience-val {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255,255,255,0.45);
    line-height: 1.1;
}

.audience-foot { margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.audience-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563EB;
    flex: 0 0 auto;
    animation: audience-pulse 2.4s ease infinite;
}
@keyframes audience-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.audience-foot-label {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.40);
}

@media (max-width: 768px) {
    .audience-name { font-size: 14px; }
    .audience-track { gap: 12px; }
    .audience-pill { padding: 12px 18px 12px 14px; }
}
@media (max-width: 480px) {
    .audience-track { animation-duration: 30s; }
    .audience-marquee {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    }
    .audience-idx { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .audience-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .audience-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
    .audience-track .audience-dup { display: none; }
    .audience-dot { animation: none; opacity: 1; }
    .audience-pill:hover,
    .audience-pill:focus-visible { transform: none; }
}

/* ---------- FAQ accordion (native details/summary) ---------- */

.faq-list { margin-top: 32px; }

.faq-item {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: 0;
}
.faq-item:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.10); }

.faq-item summary {
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    font-family: 'Geist', sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -0.012em;
    color: #fff;
    line-height: 1.4;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    font-family: 'Geist Mono', monospace;
    font-size: 20px;
    line-height: 1;
    color: rgba(255,255,255,0.45);
    transition: color 180ms ease;
}

.faq-item[open] summary::after { content: '−'; color: var(--popl-accent); }

.faq-item__answer {
    padding: 0 0 24px;
    font-family: 'Geist', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.72);
    letter-spacing: -0.005em;
    max-width: 720px;
    margin: 0;
}

.faq-item__answer strong { color: #fff; font-weight: 600; }
.faq-item__answer a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.30);
    transition: border-color 180ms ease;
}
.faq-item__answer a:hover { border-bottom-color: #fff; }

section.light .faq-item,
section.light .faq-item:last-of-type { border-color: rgba(0,0,0,0.10); }
section.light .faq-item summary { color: #000; }
section.light .faq-item summary::after { color: rgba(0,0,0,0.45); }
section.light .faq-item[open] summary::after { color: var(--popl-accent); }
section.light .faq-item__answer { color: rgba(0,0,0,0.72); }
section.light .faq-item__answer strong { color: #000; }
section.light .faq-item__answer a { color: #000; border-bottom-color: rgba(0,0,0,0.30); }

/* ---------- Editorial figure (product / lifestyle photo) ---------- */

.popl-figure {
    margin: 40px auto 0;
    max-width: 900px;
}

.popl-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(255,255,255,0.10);
    background: #f3f3ef;
}

/* Square / portrait subject — narrower so it doesn't dominate the column. */
.popl-figure--portrait { max-width: 460px; }

.popl-figure__caption {
    margin: 14px 0 0;
    text-align: center;
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.40);
}

section.light .popl-figure img { border-color: rgba(0,0,0,0.10); }
section.light .popl-figure__caption { color: rgba(0,0,0,0.45); }

@media (max-width: 480px) {
    .popl-figure { margin-top: 32px; }
}
