/* Maqueta de iPhone Pro Max (Views/Shared/_IPhone.cshtml). Todas las medidas internas van en cqw (% del ancho del
   teléfono): basta darle un ancho (o un alto) al contenedor. --ml-iphone-header es el color de la barra de estado
   (el encabezado dorado de la app por defecto). */
.ml-iphone {
    /* Mismo dorado que el encabezado de las capturas de la app, para que no se note la unión. */
    --ml-iphone-header: linear-gradient(90deg, #c0a145 0%, #c9ab53 100%);
    --ml-iphone-screen-bg: #f4f1ea;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    /* Proporción a la medida de las capturas de la app (860x1600): entran completas, sin recortar los lados. */
    aspect-ratio: 476 / 930;
    container-type: inline-size;
    /* En el propio contenedor cqw no se resuelve contra él: porcentajes (15% del ancho = 7.68% del alto). */
    border-radius: 15% / 7.68%;
    background: #1c1c1e;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px rgba(0, 0, 0, .35);
}

.ml-iphone__bezel {
    position: absolute;
    inset: 1.5cqw;
    border-radius: 13.6cqw;
    background: #050505;
}

.ml-iphone__screen {
    position: absolute;
    inset: 1.4cqw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12.2cqw;
    background: var(--ml-iphone-screen-bg);
}

/* Reflejo suave sobre el vidrio. */
.ml-iphone__screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(118deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .04) 28%, rgba(255, 255, 255, 0) 45%);
}

.ml-iphone__status {
    position: relative;
    flex: 0 0 auto;
    height: 14cqw;
    background: var(--ml-iphone-header);
    color: #fff;
    font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.ml-iphone__time {
    position: absolute;
    left: 12.5cqw;
    top: 4.4cqw;
    font-size: 5.4cqw;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
}

.ml-iphone__icons {
    position: absolute;
    right: 9cqw;
    top: 5cqw;
    display: flex;
    align-items: center;
    gap: 1.6cqw;
    color: #fff;
}

.ml-iphone__icons svg {
    display: block;
    fill: currentColor;
}

.ml-iphone__signal { width: 5.2cqw; height: 3.2cqw; }
.ml-iphone__wifi { width: 4.6cqw; height: 3.4cqw; }
.ml-iphone__battery { width: 7.4cqw; height: 3.3cqw; }

.ml-iphone__island {
    position: absolute;
    top: 2.6cqw;
    left: 50%;
    z-index: 3;
    width: 29cqw;
    height: 8.4cqw;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #000;
    box-shadow: inset 0 0 0 .3cqw #0a0a0a;
}

.ml-iphone__screen img {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: auto;
    object-fit: cover;
    object-position: top center;
}

.ml-iphone__home {
    position: absolute;
    bottom: 2cqw;
    left: 50%;
    z-index: 3;
    width: 31cqw;
    height: 1.2cqw;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(15, 27, 36, .75);
}

.ml-iphone__btn {
    position: absolute;
    width: 1cqw;
    border-radius: .4cqw;
    background: #2a2a2d;
}

.ml-iphone__btn--action { left: -.9cqw; top: 23cqw; height: 6.5cqw; }
.ml-iphone__btn--volume-up { left: -.9cqw; top: 34cqw; height: 13cqw; }
.ml-iphone__btn--volume-down { left: -.9cqw; top: 50cqw; height: 13cqw; }
.ml-iphone__btn--power { right: -.9cqw; top: 40cqw; height: 21cqw; }
.ml-iphone__btn--camera { right: -.9cqw; top: 70cqw; height: 9cqw; }
