* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --detail-bg: #f5f1eb;
    --detail-surface: #fffdf9;
    --detail-text: #27231f;
    --detail-muted: #81766b;
    --detail-accent: #947b60;
    --detail-line: rgba(39, 35, 31, 0.16);
    --detail-font: "DM Sans", Arial, sans-serif;
    --detail-display: "Playfair Display", Georgia, serif;
}

body {
    margin: 0;
    background: var(--detail-bg);
    color: var(--detail-text);
    font-family: var(--detail-font);
    line-height: 1.6;
}

body.detail-theme--forma {
    color-scheme: dark;
    --detail-bg: #111;
    --detail-surface: #1d1d1d;
    --detail-text: #f3f3f3;
    --detail-muted: #b3b3b3;
    --detail-accent: #D9F23F;
    --detail-line: rgba(255, 255, 255, 0.14);
    --detail-display: "Barlow Condensed", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--detail-accent);
    outline-offset: 4px;
}

.product-navbar,
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px clamp(22px, 6vw, 90px);
    border-bottom: 1px solid var(--detail-line);
}

.product-logo {
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.back-link,
.product-footer p,
.product-footer > span {
    color: var(--detail-muted);
    font-size: 12px;
}

.product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    min-height: 720px;
    padding: 0;
}

/* Media pantalla: el preview sangra al borde izquierdo y ocupa toda
   la altura del hero. Es el elemento dominante, como una ventana al
   gimnasio. */
.hero-preview {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: #0c0c0c;
}

.hero-preview .preview-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #111;
}

.hero-preview .preview-viewport iframe {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 1360px;
    height: 900px;
    border: 0;
    background: #111;
    transform-origin: top left;
}

.preview-tag {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(17, 17, 17, 0.82);
    border: 1px solid rgba(217, 242, 63, 0.5);
    color: #D9F23F;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.preview-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D9F23F;
    box-shadow: 0 0 0 0 rgba(217, 242, 63, 0.6);
    animation: forma-pulse 1.8s infinite;
}

@keyframes forma-pulse {
    0% { box-shadow: 0 0 0 0 rgba(217, 242, 63, 0.5); }
    70% { box-shadow: 0 0 0 9px rgba(217, 242, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 242, 63, 0); }
}

.product-hero-content {
    align-self: center;
    max-width: 560px;
    padding: 80px clamp(22px, 5vw, 80px);
}

.product-category,
.section-header > span,
.product-cta > div > span {
    color: var(--detail-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.product-hero h1 {
    margin: 18px 0;
    font-family: var(--detail-display);
    font-size: clamp(64px, 9vw, 112px);
    letter-spacing: -5px;
    line-height: 0.95;
}

.detail-theme--forma .product-hero h1 {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -2px;
}

.detail-theme--forma .section-header h2,
.detail-theme--forma .product-cta h2 {
    text-transform: uppercase;
    font-weight: 600;
}

.detail-theme--forma .btn-primary {
    color: #111111;
}

.product-description {
    max-width: 500px;
    color: var(--detail-muted);
    font-size: 16px;
}

/* Marcador deportivo: cifras grandes condensadas separadas por filetes. */
.score-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--detail-line);
    border-bottom: 1px solid var(--detail-line);
}

.score-strip li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 14px 22px 14px 0;
    margin-right: 22px;
    border-right: 1px solid var(--detail-line);
    color: var(--detail-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.score-strip li:last-child {
    border-right: 0;
    margin-right: 0;
}

.score-strip b {
    color: var(--detail-accent);
    font-family: var(--detail-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
}

.product-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid var(--detail-accent);
    font-size: 12px;
    font-weight: 700;
    transition: transform 180ms ease, background-color 180ms ease;
}

.btn-primary {
    background: var(--detail-accent);
    color: #fff;
}

.btn-secondary {
    color: var(--detail-text);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: var(--detail-surface);
}

.product-features,
.product-process {
    padding: 90px clamp(22px, 8vw, 120px);
}

.product-features {
    background: var(--detail-surface);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-header h2,
.product-cta h2 {
    margin: 14px 0 0;
    font-family: var(--detail-display);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 500;
    line-height: 1.08;
}

.section-header h2 span,
.product-cta h2 span {
    color: var(--detail-accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--detail-line);
}

.feature-number,
.process-item > span {
    color: var(--detail-accent);
    font-size: 11px;
    font-weight: 700;
}

.feature-card h3,
.process-item h3 {
    margin: 30px 0 10px;
    font-size: 17px;
}

.feature-card p,
.process-item p,
.detail-demo-note {
    color: var(--detail-muted);
    font-size: 13px;
}

.process-list {
    max-width: 800px;
    margin: 0 auto;
}

.process-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--detail-line);
}

.process-item h3 {
    margin: 0 0 6px;
}

.process-item p {
    margin: 0;
}

.detail-demo-note {
    max-width: 800px;
    margin: 26px auto 0;
}

.product-cta {
    padding: 85px 24px;
    background: var(--detail-surface);
    text-align: center;
}

.product-cta > div {
    max-width: 760px;
    margin: 0 auto;
}

.product-cta p {
    margin: 20px auto 26px;
    color: var(--detail-muted);
}

.product-footer {
    flex-wrap: wrap;
    border-top: 1px solid var(--detail-line);
    border-bottom: 0;
}

.product-footer p {
    margin: 0;
}

.product-footer > span {
    text-align: right;
}

@media (max-width: 900px) {
    .product-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-preview {
        order: -1;
        min-height: 0;
        height: 520px;
    }

    .product-hero-content {
        max-width: 700px;
        padding: 56px clamp(22px, 5vw, 80px) 72px;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .product-navbar,
    .product-footer {
        align-items: flex-start;
        padding: 18px 20px;
    }

    .back-link {
        max-width: 150px;
        text-align: right;
    }

    .hero-preview {
        height: 440px;
    }

    .product-hero-content {
        padding: 44px 20px 60px;
    }

    .product-hero h1 {
        font-size: 68px;
        letter-spacing: -3px;
    }

    .product-description {
        font-size: 14px;
    }

    .score-strip li {
        padding: 12px 16px 12px 0;
        margin-right: 16px;
    }

    .score-strip b {
        font-size: 24px;
    }

    .product-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .product-features,
    .product-process {
        padding: 68px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 0;
    }

    .feature-card h3 {
        margin-top: 20px;
    }

    .product-footer {
        flex-direction: column;
        gap: 10px;
    }

    .product-footer > span {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
