/* Showcase público: composición y marcos; no modifica las pantallas internas. */
.landing-showcase {
    --showcase-surface: #eaf3ef;
    position: relative;
    isolation: isolate;
    margin-top: 3.5rem;
    padding: 3.5rem 0 3rem;
    background: var(--showcase-surface);
    box-shadow: 0 0 0 100vmax var(--showcase-surface);
    clip-path: inset(0 -100vmax);
}

.landing-showcase .showcase-heading { max-width: 38rem; }
.landing-page .landing-showcase h2 {
    margin: 0;
    color: #193f38;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.025em;
}
.landing-showcase .showcase-intro {
    max-width: 35rem;
    text-wrap: balance;
    margin: 1rem 0 0;
    color: #465e57;
    font-size: 1.125rem;
    line-height: 1.6;
}
.landing-showcase .showcase-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
    margin-top: 2.5rem;
}
.landing-showcase .showcase-device { min-width: 0; margin: 0; }
.landing-showcase .showcase-screen {
    position: relative;
    display: block;
    color: inherit;
    background: #293b35;
    border: 1px solid #293b35;
    box-shadow: 0 28px 42px -24px rgba(30, 61, 50, 0.42), 0 3px 8px rgba(30, 61, 50, 0.08);
}
.landing-page .landing-showcase .showcase-screen:focus-visible {
    outline: 3px solid #244fa3;
    outline-offset: 5px;
}
.landing-showcase .showcase-screen img { display: block; width: 100%; height: auto; }

/* En móvil se muestra un detalle legible, sin simular una notebook diminuta. */
.landing-showcase .showcase-laptop {
    overflow: hidden;
    border-color: #c9d9d2;
    border-radius: 0.75rem;
    background: #fff;
}
.landing-showcase .showcase-laptop picture { position: relative; display: block; aspect-ratio: 8 / 15; }
.landing-showcase .showcase-laptop img { position: absolute; inset: 0; height: 100%; object-fit: contain; }
.landing-showcase .showcase-phone {
    width: 100%;
    max-width: 17rem;
    aspect-ratio: 9 / 19;
    margin: 0 auto;
    overflow: hidden;
    border: 8px solid #293b35;
    border-radius: 2.125rem;
    background: #fff;
}
.landing-showcase .showcase-phone img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: contain;
    background: #f8f9fc;
}
.landing-showcase figcaption { margin-top: 1.5rem; }
.landing-showcase .showcase-create figcaption,
.landing-showcase .showcase-records figcaption { max-width: 17rem; margin-right: auto; margin-left: auto; }
.landing-page .landing-showcase h3 {
    margin: 0 0 0.625rem;
    color: #193f38;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
}
.landing-showcase figcaption > p:last-child {
    margin: 0;
    color: #465e57;
    font-size: 1rem;
    line-height: 1.6;
}
.landing-showcase .showcase-note {
    margin: 2.5rem 0 0;
    color: #586e65;
    font-size: 0.875rem;
    line-height: 1.65;
}

/* Una sola imagen responsive; cada enlace amplía la variante que se muestra. */
.landing-showcase .showcase-enlarge {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.landing-showcase .showcase-enlarge--mobile { display: none; }
.landing-page .landing-showcase .showcase-enlarge:focus-visible { outline: 0; border-radius: inherit; }
.landing-page .landing-showcase .showcase-laptop:has(.showcase-enlarge:focus-visible) {
    outline: 3px solid #244fa3;
    outline-offset: 5px;
}

@media (max-width: 599px) {
    .landing-showcase .showcase-evolution .showcase-laptop {
        width: 100%;
        max-width: 17rem;
        aspect-ratio: 9 / 19.5;
        margin: 0 auto;
        border: 8px solid #293b35;
        border-radius: 2.125rem;
        background: #fff;
    }
    .landing-showcase .showcase-laptop picture { position: absolute; inset: 0; aspect-ratio: auto; }
    .landing-showcase .showcase-laptop img { background: #f8f9fc; }
    .landing-showcase .showcase-evolution figcaption { max-width: 17rem; margin-right: auto; margin-left: auto; }
    .landing-showcase .showcase-enlarge--desktop { display: none; }
    .landing-showcase .showcase-enlarge--mobile { display: block; }
}

@media (min-width: 600px) {
    .landing-showcase .showcase-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2rem; }
    .landing-showcase .showcase-evolution { grid-column: 1 / -1; }
    .landing-showcase .showcase-laptop {
        max-width: 52rem;
        margin: 0 auto 0.625rem;
        overflow: visible;
        /* La base decorativa conserva su tamaño sin ampliar el área desplazable. */
        contain: layout;
        padding: 12px 8px 8px;
        border-color: #293b35;
        border-radius: 12px 12px 3px 3px;
        background: #293b35;
    }
    .landing-showcase .showcase-laptop picture { aspect-ratio: 16 / 10; }
    .landing-showcase .showcase-laptop img { border-radius: 3px; }
    .landing-showcase .showcase-laptop::before {
        content: '';
        position: absolute;
        top: 4px;
        left: calc(50% - 1.5px);
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: #81938b;
    }
    .landing-showcase .showcase-laptop::after {
        content: '';
        position: absolute;
        right: -3.3%;
        bottom: -10px;
        left: -3.3%;
        height: 11px;
        border: 1px solid #b9c7c0;
        border-radius: 2px 2px 50% 50% / 2px 2px 8px 8px;
        background: linear-gradient(#d9e1dd, #b7c4bc);
        box-shadow: 0 8px 14px -7px rgba(30, 61, 50, 0.28);
    }
    .landing-showcase .showcase-evolution figcaption { max-width: 36rem; }
}

@media (min-width: 1200px) {
    .landing-showcase { padding-top: 4rem; padding-bottom: 3.5rem; }
    .landing-showcase .showcase-stage {
        grid-template-columns: minmax(0, 3.15fr) repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto;
        gap: 1.75rem 2rem;
        margin-top: 2.25rem;
    }
    /* Filas compartidas: bases de los dispositivos y comienzo de los epígrafes. */
    .landing-showcase .showcase-device {
        display: grid;
        grid-row: 1 / 3;
        grid-template-rows: subgrid;
    }
    .landing-showcase .showcase-evolution { grid-column: 1; }
    .landing-showcase .showcase-create { grid-column: 2; }
    .landing-showcase .showcase-records { grid-column: 3; }
    .landing-showcase .showcase-screen { align-self: end; }
    .landing-showcase .showcase-laptop { width: 100%; }
    .landing-showcase figcaption { margin-top: 0; }
    .landing-showcase .showcase-note { margin-top: 3rem; }
}

@media (min-width: 1280px) {
    .landing-showcase { width: calc(100% + 8rem); margin-right: -4rem; margin-left: -4rem; }
}
