/* ============================================================
   campana.css — Campaign landing page
   Design tokens from design.css
   ============================================================ */


/* ── Layout wrapper ──────────────────────────────────────── */

.cp-page {
    font-family: var(--font-ui, roboto, sans-serif);
}


/* ============================================================
   HERO
   ============================================================ */

.cp-hero {
    position: relative;
    background-color: var(--c-dark, #0f172a);
    background-size: cover;
    background-position: center top;
    overflow: hidden;
    /* Pull to edges of .center_div */
    margin-left: calc(-1 * ((100vw - 1300px) / 2));
    margin-right: calc(-1 * ((100vw - 1300px) / 2));
}

/* Dark gradient overlay so text is always readable over images */
.cp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(15, 23, 42, 0.94) 0%,
        rgba(30, 58, 95, 0.80) 55%,
        rgba(15, 23, 42, 0.60) 100%
    );
    z-index: 1;
}

/* Diagonal orange slash accent */
.cp-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c44409 0%, #e8530e 45%, #ff7e3f 70%, #e8530e 100%);
    z-index: 3;
}

.cp-hero__inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-w, 1100px);
    margin: 0 auto;
    padding: 56px 28px 64px;
}

.cp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fb923c;
    background: rgba(232, 83, 14, .12);
    border: 1px solid rgba(232, 83, 14, .35);
    padding: .3rem .85rem;
    border-radius: 999px;
    margin-bottom: 1.4rem;
}
.cp-hero__eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e8530e;
    flex-shrink: 0;
    box-shadow: 0 0 6px #e8530e;
}

.cp-hero__title {
    font-family: var(--font-display, Boldy, 'Arial Black', sans-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 .6rem;
    line-height: 1.05;
    letter-spacing: -.03em;
    max-width: 18ch;
}

.cp-hero__title-accent {
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #e8530e, #ff7e3f);
    border-radius: 3px;
    margin-top: .7rem;
    margin-bottom: 1.4rem;
}

.cp-hero__desc {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 52ch;
    margin: 0 0 2rem;
}

.cp-hero__countdown {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: .65rem 1.25rem;
    border-radius: 12px;
    color: #fff;
    font-size: .82rem;
    font-weight: 500;
}
.cp-hero__countdown-icon {
    font-size: 1.05rem;
    opacity: .75;
    flex-shrink: 0;
}
.cp-hero__countdown-label {
    color: #94a3b8;
    white-space: nowrap;
}
.cp-hero__countdown-timer {
    font-family: var(--font-display, 'Arial Black', sans-serif);
    font-size: .97rem;
    font-weight: 700;
    color: #fb923c;
    letter-spacing: .04em;
    white-space: nowrap;
}


/* ============================================================
   PAGE BODY
   ============================================================ */

.cp-body {
    max-width: calc(var(--max-w, 1100px) + 56px);
    margin: 0 auto;
    padding: 0 28px 72px;
}


/* ── Section ─────────────────────────────────────────────── */

.cp-section {
    margin-top: 3rem;
}

.cp-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--c-border, #e2e8f0);
}

.cp-section-title {
    font-family: var(--font-display, Boldy, 'Arial Black', sans-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--c-dark, #0f172a);
    margin: 0;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: .55rem;
    line-height: 1.15;
}
.cp-section-title::before {
    content: '';
    flex-shrink: 0;
    width: 5px;
    height: 1.1em;
    background: var(--c-orange, #e8530e);
    border-radius: 3px;
    display: inline-block;
}

.cp-section-link {
    font-size: .78rem;
    font-weight: 600;
    color: var(--c-orange, #e8530e);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .15s;
}
.cp-section-link:hover { color: var(--c-orange-h, #c44409); text-decoration: underline; }


/* ============================================================
   PRODUCT GRID & CARDS
   ============================================================ */

.cp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}

.cp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .22s, transform .22s, border-color .22s;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.cp-card:hover {
    box-shadow: 0 8px 32px rgba(15, 23, 42, .12);
    transform: translateY(-4px);
    border-color: #cbd5e1;
}

.cp-card__img-wrap {
    aspect-ratio: 1;
    background: #f8fafc;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.cp-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .32s ease;
}
.cp-card:hover .cp-card__img-wrap img {
    transform: scale(1.06);
}

/* Sale badge */
.cp-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--c-orange, #e8530e);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .22rem .55rem;
    border-radius: 5px;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
}
.cp-card__badge--oferta { background: var(--c-orange, #e8530e); }
.cp-card__badge--nuevo  { background: #0ea5e9; }

/* Savings sticker */
.cp-card__savings {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #16a34a;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    padding: .2rem .5rem;
    border-radius: 5px;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    letter-spacing: -.01em;
}

.cp-card__body {
    padding: .65rem .8rem .8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cp-card__name {
    font-size: .875rem;
    font-weight: 600;
    color: var(--c-dark, #0f172a);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 auto;
    padding-bottom: .6rem;
    transition: color .15s;
}
.cp-card:hover .cp-card__name { color: var(--c-orange, #e8530e); }

.cp-card__prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .3rem .55rem;
    margin-top: .4rem;
}
.cp-card__price-compare {
    font-size: .75rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 400;
}
.cp-card__price-final {
    font-family: maven-bold, 'Arial Black', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-orange, #e8530e);
    line-height: 1;
}

.cp-card__stock {
    margin-top: .45rem;
    font-size: .7rem;
    font-weight: 500;
    color: #16a34a;
}
.cp-card__stock--out { color: #dc2626; }


/* ============================================================
   COLLECTION CHIPS (from coleccion_shelves)
   ============================================================ */

.cp-collections-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.cp-col-chip {
    display: inline-flex;
    align-items: center;
    padding: .5rem 1.1rem;
    font-size: .84rem;
    font-weight: 600;
    color: var(--c-dark, #0f172a);
    background: var(--c-surface, #f8fafc);
    border: 1.5px solid var(--c-border, #e2e8f0);
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
}
.cp-col-chip:hover {
    background: var(--c-orange, #e8530e);
    border-color: var(--c-orange, #e8530e);
    color: #fff;
    box-shadow: 0 3px 10px rgba(232, 83, 14, .3);
}


/* ============================================================
   TRUST MESSAGES
   ============================================================ */

.cp-trust {
    margin-top: 3.5rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--c-border, #e2e8f0);
    border-bottom: 1px solid var(--c-border, #e2e8f0);
}

.cp-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem 2rem;
}

.cp-trust-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.cp-trust-item__icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: .1rem;
}

.cp-trust-item__body {}

.cp-trust-item__titulo {
    font-size: .82rem;
    font-weight: 700;
    color: var(--c-dark, #0f172a);
    margin: 0 0 .2rem;
    line-height: 1.3;
}

.cp-trust-item__cuerpo {
    font-size: .76rem;
    color: var(--c-muted, #64748b);
    margin: 0;
    line-height: 1.5;
}


/* ============================================================
   LEGAL TERMS
   ============================================================ */

.cp-terms {
    margin-top: 2.5rem;
}

.cp-terms details {
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
}

.cp-terms summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.25rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--c-muted, #64748b);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color .15s, background .15s;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.cp-terms summary::-webkit-details-marker { display: none; }
.cp-terms summary::after {
    content: '›';
    font-size: 1.2rem;
    line-height: 1;
    transition: transform .2s;
    opacity: .5;
}
.cp-terms details[open] summary::after { transform: rotate(90deg); }
.cp-terms summary:hover { color: var(--c-dark, #0f172a); background: var(--c-surface, #f8fafc); }

.cp-terms__content {
    padding: 1rem 1.25rem 1.25rem;
    font-size: .82rem;
    color: var(--c-text, #334155);
    line-height: 1.75;
    border-top: 1px solid var(--c-border, #e2e8f0);
}


/* ============================================================
   CAMPAIGN STUDIO BLOCKS
   ============================================================ */

.cp-page--studio {
    background: var(--cp-theme-bg, #ffffff);
    color: var(--cp-theme-text, var(--c-dark, #0f172a));
}

.cp-body--studio {
    padding-top: .5rem;
}

.cp-section-subtitle {
    margin: .35rem 0 0;
    color: var(--c-muted, #64748b);
    font-size: .92rem;
    line-height: 1.55;
    max-width: 68ch;
}

.cp-hero__cta,
.cp-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: .72rem 1.05rem;
    border-radius: 8px;
    background: var(--cp-theme-accent, var(--c-orange, #e8530e));
    color: #fff;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.cp-hero__cta:hover,
.cp-button:hover {
    filter: brightness(.95);
}

.cp-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
    gap: 1.25rem;
    align-items: center;
    background: var(--cp-theme-surface, #f8fafc);
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 8px;
    padding: clamp(1.2rem, 3vw, 2.2rem);
    overflow: hidden;
}

.cp-banner--bank {
    background: #eef7f5;
    border-color: #bfded7;
}

.cp-banner--urgent {
    background: #fff4ec;
    border-color: #fed7aa;
}

.cp-banner--quiet {
    background: #f8fafc;
}

.cp-banner__body {
    min-width: 0;
}

.cp-banner__eyebrow,
.cp-coupon__eyebrow {
    display: inline-flex;
    margin-bottom: .55rem;
    color: var(--cp-theme-accent, var(--c-orange, #e8530e));
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 900;
}

.cp-banner h2,
.cp-coupon h2 {
    margin: 0;
    color: var(--c-dark, #0f172a);
    font-family: var(--font-display, Boldy, 'Arial Black', sans-serif);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.12;
}

.cp-banner p,
.cp-coupon p {
    margin: .75rem 0 1rem;
    color: var(--c-text, #334155);
    line-height: 1.65;
    max-width: 62ch;
}

.cp-banner img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
}

.cp-coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.2rem;
    align-items: center;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fffaf3;
    padding: clamp(1rem, 3vw, 1.75rem);
}

.cp-coupon small {
    display: block;
    color: var(--c-muted, #64748b);
    line-height: 1.5;
}

.cp-coupon__code {
    min-width: 180px;
    border: 1px dashed var(--c-orange, #e8530e);
    border-radius: 8px;
    padding: .85rem;
    background: #fff;
    display: grid;
    gap: .5rem;
    text-align: center;
}

.cp-coupon__code strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.25rem;
    letter-spacing: .08em;
}

.cp-coupon__code button {
    border: 0;
    border-radius: 7px;
    min-height: 34px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.cp-rubro-grid,
.cp-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: .9rem;
}

.cp-rubro,
.cp-link-card {
    min-height: 112px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: .85rem;
    align-items: center;
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 8px;
    padding: .85rem;
    color: inherit;
    background: #fff;
    text-decoration: none;
    transition: border-color .16s, box-shadow .16s, transform .16s;
}

.cp-link-card {
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: start;
}

.cp-rubro:hover,
.cp-link-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .09);
    transform: translateY(-2px);
}

.cp-rubro img,
.cp-link-card img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 8px;
}

.cp-link-card img {
    width: 74px;
    height: 74px;
    object-fit: cover;
}

.cp-rubro span,
.cp-link-card span {
    display: block;
    color: var(--c-dark, #0f172a);
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.25;
}

.cp-rubro small,
.cp-link-card small {
    display: block;
    grid-column: 2;
    margin-top: .28rem;
    color: var(--c-muted, #64748b);
    font-size: .76rem;
    line-height: 1.45;
}

.cp-mechanics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .9rem;
}

.cp-mechanics article {
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
}

.cp-mechanics h3 {
    margin: 0 0 .65rem;
    font-size: 1rem;
    color: var(--c-dark, #0f172a);
}

.cp-mechanics ul {
    margin: .45rem 0 0;
    padding-left: 1.1rem;
    color: var(--c-text, #334155);
    line-height: 1.6;
    font-size: .86rem;
}

.cp-trust--studio {
    margin-top: 0;
}

.cp-faq {
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.cp-faq details + details {
    border-top: 1px solid var(--c-border, #e2e8f0);
}

.cp-faq summary {
    cursor: pointer;
    padding: 1rem 1.15rem;
    color: var(--c-dark, #0f172a);
    font-size: .95rem;
    font-weight: 800;
    list-style: none;
}

.cp-faq summary::-webkit-details-marker {
    display: none;
}

.cp-faq details[open] summary {
    background: #f8fafc;
}

.cp-faq details > div,
.cp-rich {
    padding: 0 1.15rem 1.15rem;
    color: var(--c-text, #334155);
    line-height: 1.7;
    font-size: .9rem;
}

.cp-rich {
    max-width: 760px;
    padding: 0;
}

.cp-rich a,
.cp-terms__content a {
    color: var(--cp-theme-accent, var(--c-orange, #e8530e));
    font-weight: 700;
}

.cp-page--preview [data-campaign-section] {
    cursor: pointer;
}

.cp-page--preview [data-campaign-section]:hover {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .cp-hero {
        margin-left: 0;
        margin-right: 0;
    }
    .cp-hero__inner {
        padding: 40px 20px 48px;
    }
    .cp-body {
        padding: 0 16px 48px;
    }
    .cp-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: .75rem;
    }
}

@media (max-width: 650px) {
    .cp-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .6rem;
    }
    .cp-hero__title {
        font-size: 2.1rem;
    }
    .cp-trust-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cp-section-header {
        flex-wrap: wrap;
    }
    .cp-banner,
    .cp-coupon {
        grid-template-columns: 1fr;
    }
    .cp-coupon__code {
        width: 100%;
    }
    .cp-rubro-grid,
    .cp-link-grid {
        grid-template-columns: 1fr;
    }
}
