/* =============================================================
   MantizIS - Product Pages
   Estilos alineados con el nuevo sistema visual del sitio
   ============================================================= */

body.product-page {
    background:
        radial-gradient(circle at top right, rgba(0, 154, 118, 0.1), transparent 28%),
        linear-gradient(180deg, #fcfdfc 0%, #f7f8f5 100%);
}

body.product-page main {
    overflow: clip;
}

body.product-page .hero {
    padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
    position: relative;
}

body.product-page .hero::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 50%;
    width: min(760px, 88vw);
    height: 520px;
    transform: translateX(-10%);
    background: radial-gradient(circle, rgba(0, 154, 118, 0.12), transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.product-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--sp-6);
    align-items: center;
}

@media (min-width: 980px) {
    .product-hero__inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
        gap: var(--sp-8);
    }
}

.product-hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.product-hero__title {
    font-size: clamp(2.35rem, 4vw + 1rem, 5rem);
    line-height: 0.97;
    letter-spacing: -0.04em;
    max-width: 11ch;
}

.product-hero__sub {
    font-size: var(--fs-body-lg);
    line-height: var(--lh-relaxed);
    color: var(--ink-mute);
    max-width: 62ch;
}

.product-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-2);
}

.product-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-2);
}

.product-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(0, 110, 84, 0.14);
    box-shadow: var(--shadow-sm);
    font-size: var(--fs-small);
    color: var(--ink-soft);
}

.product-hero__note {
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--ink-faint);
}

.product-hero__note a {
    color: var(--brand-deep);
}

.product-hero__media {
    position: relative;
}

.product-hero__visual {
    position: relative;
    background:
        linear-gradient(135deg, rgba(0, 154, 118, 0.14), rgba(255, 255, 255, 0.98)),
        var(--surface);
    border: 1px solid rgba(0, 110, 84, 0.14);
    border-radius: 28px;
    padding: clamp(0.9rem, 1.2vw, 1.2rem);
    box-shadow: var(--shadow-lg);
}

.product-hero__visual::after {
    content: "";
    position: absolute;
    inset: auto 1.2rem -1rem 1.2rem;
    height: 32px;
    background: rgba(10, 31, 26, 0.1);
    filter: blur(22px);
    z-index: -1;
}

.product-hero__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    background: var(--surface-stone);
}

.product-hero__caption {
    margin-top: var(--sp-3);
    font-size: var(--fs-small);
    color: var(--ink-mute);
}

.product-section-intro {
    max-width: 66ch;
}

.product-grid {
    align-items: stretch;
}

.product-card {
    border-color: rgba(0, 110, 84, 0.12);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 110, 84, 0.22);
}

.product-card__eyebrow {
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--brand);
}

.product-card h3 {
    font-size: clamp(1.2rem, 1.4vw + 0.7rem, 1.6rem);
    line-height: var(--lh-snug);
}

.product-card p {
    color: var(--ink-mute);
    line-height: var(--lh-relaxed);
}

.product-checks {
    display: grid;
    gap: var(--sp-3);
}

.product-checks li {
    position: relative;
    padding-left: 1.55rem;
    color: var(--ink-soft);
    line-height: var(--lh-relaxed);
}

.product-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 0 0 5px rgba(0, 154, 118, 0.12);
}

.product-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-2);
}

.product-card__actions .btn {
    padding-inline: 22px;
}

.product-note {
    font-size: var(--fs-small);
    color: var(--ink-mute);
}

.product-faq {
    position: relative;
    overflow: hidden;
}

.product-faq::after {
    content: "";
    position: absolute;
    inset: auto -10% -220px auto;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 199, 155, 0.22), transparent 70%);
    pointer-events: none;
}

.product-faq__wrap {
    position: relative;
    z-index: 1;
}

.product-faq__items {
    display: grid;
    gap: var(--sp-3);
    max-width: 900px;
}

.product-page details {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: var(--sp-4) var(--sp-5);
}

.product-page summary {
    font-family: var(--font-display);
    font-size: var(--fs-headline);
    font-weight: var(--fw-medium);
    cursor: pointer;
    list-style: none;
}

.product-page summary::-webkit-details-marker {
    display: none;
}

.product-page details p {
    margin-top: var(--sp-3);
    color: rgba(255, 255, 255, 0.82);
    line-height: var(--lh-relaxed);
}

.product-cta {
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.product-cta__panel {
    background:
        linear-gradient(135deg, rgba(0, 154, 118, 0.14), rgba(6, 20, 16, 0.96) 58%),
        var(--surface-dark);
    color: white;
    border-radius: 28px;
    padding: clamp(1.5rem, 2.2vw, 2.5rem) clamp(1.1rem, 1.8vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.product-cta__panel h2,
.product-cta__panel p {
    max-width: 52ch;
    margin-inline: auto;
}

.product-cta__panel h2 {
    color: white;
    max-width: 20ch;
}

.product-cta__panel p {
    margin-top: var(--sp-4);
    color: rgba(255, 255, 255, 0.78);
    line-height: var(--lh-relaxed);
    max-width: 64ch;
}

.product-cta__panel .eyebrow {
    color: var(--brand-bright);
}

.product-cta__panel .btn--ghost {
    color: white;
    border-color: rgba(255, 255, 255, 0.24);
}

.product-cta__panel .btn--ghost:hover {
    background: white;
    color: var(--ink);
    border-color: white;
}

.product-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
    justify-content: center;
}

.product-page .section--dark .card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.product-page .section--dark .card h3,
.product-page .section--dark .card p,
.product-page .section--dark .product-checks li,
.product-page .section--dark .product-note {
    color: white;
}

.product-page .section--dark summary {
    color: white;
}

.product-page .section--dark .product-card__eyebrow {
    color: var(--brand-bright);
}

.product-page .section--dark .product-checks li::before {
    background: var(--brand-bright);
    box-shadow: 0 0 0 5px rgba(0, 199, 155, 0.16);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity var(--duration-medium) var(--ease),
        transform var(--duration-medium) var(--ease);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 979px) {
    .product-hero__title {
        max-width: none;
    }

    .product-hero__media {
        order: -1;
    }
}

@media (max-width: 767px) {
    .product-hero__actions,
    .product-card__actions,
    .product-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-hero__actions .btn,
    .product-card__actions .btn,
    .product-cta__actions .btn {
        width: 100%;
    }

    .product-hero__visual {
        border-radius: 22px;
    }

    .product-hero__image {
        aspect-ratio: 4 / 3;
    }
}
