﻿* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    color: #181818;
}

button,
input {
    font: inherit;
}

.oculto {
    display: none !important;
}


/* PORTADA */

.portada {
    min-height: 100vh;
    background: #000;
}

.video-box {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.video-intro {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.portada-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    padding: 30px 22px 50px;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.05),
            rgba(0,0,0,0.15),
            rgba(0,0,0,0.82)
        );
}

.logo-portada {
    width: min(230px, 70vw);
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 28px;
}

.btn-entrar {
    width: min(420px, 100%);
    min-height: 58px;

    border: 0;
    border-radius: 16px;

    font-weight: 800;
    font-size: 17px;

    cursor: pointer;
}


/* APP */

.app {
    min-height: 100vh;
    padding-bottom: 90px;
}

.header-nexus {
    position: sticky;
    top: 0;
    z-index: 50;

    min-height: 68px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding:
        max(9px, env(safe-area-inset-top))
        12px
        9px;

    background: #111;
    color: #fff;

    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.logo-header {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.header-texto {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header-texto strong {
    font-size: 16px;
}

.header-texto span {
    margin-top: 3px;
    font-size: 12px;
    opacity: .78;
}

.carrito-mini {
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
}

.contenido {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 14px;
}

.promo {
    min-height: 155px;

    display: flex;
    align-items: flex-end;

    border-radius: 20px;
    padding: 22px;

    background: #202020;
    color: #fff;

    overflow: hidden;
}

.promo small {
    font-weight: 700;
}

.promo h2 {
    margin: 6px 0;
}

.promo p {
    margin: 0;
    opacity: .82;
}

.busqueda {
    margin: 16px 0;
}

.busqueda input {
    width: 100%;
    min-height: 52px;

    border: 1px solid #d5d5d5;
    border-radius: 14px;

    padding: 0 16px;

    background: #fff;
}

.titulo-seccion {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.titulo-seccion h2 {
    margin: 4px 0 12px;
}

.titulo-seccion span {
    font-size: 13px;
    color: #666;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}

.producto {
    background: #fff;
    border-radius: 16px;
    padding: 12px;

    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.foto-producto {
    aspect-ratio: 1 / 1;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: #ececec;
    color: #777;
    font-size: 12px;
}

.producto h3 {
    min-height: 42px;
    margin: 10px 0 6px;
    font-size: 14px;
}

.precio {
    font-size: 19px;
    font-weight: 800;
}

.btn-agregar {
    width: 100%;
    min-height: 42px;

    border: 0;
    border-radius: 11px;

    font-weight: 700;
    cursor: pointer;
}

.barra-inferior {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;

    min-height: 67px;

    display: grid;
    grid-template-columns: repeat(4,1fr);

    background: #fff;
    border-top: 1px solid #ddd;

    padding-bottom: env(safe-area-inset-bottom);
}

.barra-inferior button {
    border: 0;
    background: transparent;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 3px;
}

.barra-inferior span {
    font-size: 11px;
}


@media (min-width: 720px) {

    .productos-grid {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }

}

/* ==========================================================
   NEXUS PEDIDOS V1 - AJUSTE VISUAL R2
   ========================================================== */

.portada {
    min-height: 100vh;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-box {
    position: relative;

    width: min(430px, 92vw);
    height: auto;
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 24px;
    overflow: hidden;

    box-shadow: 0 18px 55px rgba(0,0,0,.55);
}

.video-intro {
    display: block;

    width: 100%;
    height: auto;
    max-height: 78vh;

    object-fit: contain;

    background: #000;
}

.portada-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: transparent;

    pointer-events: none;
}

.logo-portada {
    width: min(175px, 44%);
    max-height: 110px;

    object-fit: contain;

    opacity: .96;

    filter: drop-shadow(0 4px 10px rgba(0,0,0,.55));
}


/* PRODUCTOS */

.descripcion-producto {
    min-height: 34px;
    margin: 4px 0 8px;

    font-size: 12px;
    line-height: 1.35;

    color: #666;
}

.contenido-bulto {
    margin: 7px 0;

    font-size: 13px;
    font-weight: 700;

    color: #333;
}

.opciones-bulto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;

    margin: 10px 0;
}

.opcion-bulto {
    min-height: 40px;

    border: 1px solid #cfcfcf;
    border-radius: 10px;

    background: #fff;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.opcion-bulto.activa {
    background: #181818;
    color: #fff;
    border-color: #181818;
}

.btn-agregar {
    margin-top: 4px;
}

.producto-foto-real {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: #f0f0f0;
}

.selector-cantidad {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0;
}

.selector-cantidad button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #181818;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.selector-cantidad .valor-cantidad {
    flex: 1;
    min-height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    font-weight: 700;
    background: #fff;
}

.variantes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.variantes button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.variantes button.activa {
    background: #181818;
    color: #fff;
    border-color: #181818;
}

.subtotal-producto {
    margin: 8px 0 12px;
    font-size: 13px;
    color: #444;
    font-weight: 700;
}

.producto-foto-real {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: #f0f0f0;
}

.selector-cantidad {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0;
}

.selector-cantidad button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #181818;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.selector-cantidad .valor-cantidad {
    flex: 1;
    min-height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    font-weight: 700;
    background: #fff;
}

.variantes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.variantes button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.variantes button.activa {
    background: #181818;
    color: #fff;
    border-color: #181818;
}

.subtotal-producto {
    margin: 8px 0 12px;
    font-size: 13px;
    color: #444;
    font-weight: 700;
}

/* ==========================================================
   NEXUS PEDIDOS - ACCESO R3
   ========================================================== */

.pantalla-video {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    background: #050505;
}

.video-contenedor {
    width: min(390px, 92vw);

    border-radius: 22px;

    overflow: hidden;

    background: #000;

    box-shadow:
        0 18px 50px rgba(0,0,0,.55);
}

.video-contenedor .video-intro {
    display: block;

    width: 100%;
    height: auto;

    max-height: 75vh;

    object-fit: contain;
}


.pantalla-acceso {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: #f2f3f5;
}


.tarjeta-acceso {
    width: min(430px, 100%);

    background: #fff;

    border-radius: 22px;

    padding: 24px 20px;

    box-shadow:
        0 8px 35px rgba(0,0,0,.12);

    text-align: center;
}


.logo-acceso {
    width: 115px;
    height: 115px;

    object-fit: contain;

    border-radius: 20px;

    margin-bottom: 12px;
}


.tarjeta-acceso h1 {
    margin: 5px 0;
}


.subtitulo-acceso {
    color: #666;

    margin-top: 4px;
    margin-bottom: 25px;
}


.selector-acceso {
    display: grid;
    gap: 11px;
}


.formulario {
    text-align: left;
}


.formulario h2 {
    text-align: center;

    margin-top: 8px;
}


.formulario label {
    display: block;

    margin: 13px 0;

    font-weight: 700;

    font-size: 13px;
}


.formulario input {
    width: 100%;

    min-height: 48px;

    margin-top: 6px;

    border: 1px solid #ccc;

    border-radius: 11px;

    padding: 0 13px;

    background: #fff;
}


.btn-principal,
.btn-secundario,
.btn-ubicacion,
.btn-volver {
    width: 100%;

    min-height: 50px;

    border-radius: 12px;

    font-weight: 800;

    cursor: pointer;
}


.btn-principal {
    border: 0;

    background: #101c3a;

    color: #fff;
}


.btn-secundario {
    border: 1px solid #101c3a;

    background: #fff;

    color: #101c3a;
}


.btn-ubicacion {
    border: 0;

    background: #e9edf5;

    color: #101c3a;

    margin: 4px 0;
}


.btn-volver {
    margin-top: 9px;

    border: 0;

    background: transparent;

    color: #666;
}


.estado-ubicacion {
    margin: 8px 0 14px;

    padding: 10px;

    border-radius: 9px;

    background: #fff2d8;

    color: #735000;

    font-size: 12px;
}


.estado-ubicacion.ok {
    background: #e1f5e7;

    color: #145c2b;
}


.zona-asignada {
    padding: 12px;

    margin: 13px 0;

    border-radius: 10px;

    background: #edf1fa;

    text-align: center;
}

.btn-link-recuperacion {
    width: 100%;
    margin: 14px 0 2px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #101c3a;
    text-decoration: underline;
    font-weight: 700;
    cursor: pointer;
}

.texto-ayuda {
    text-align: center;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}


.carrito-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,.55);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.carrito-panel {
    width: min(520px,100%);
    max-height: 88vh;
    overflow: auto;
    background: #fff;
    padding: 18px;
    border-radius: 22px 22px 0 0;
}

.carrito-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrito-titulo button {
    border: 0;
    background: transparent;
    font-size: 22px;
}

.carrito-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #ddd;
}

.carrito-item small {
    display: block;
    margin-top: 4px;
    color: #666;
}

.quitar-item {
    display: block;
    margin-top: 7px;
    border: 0;
    background: transparent;
    color: #a00000;
    cursor: pointer;
}

.carrito-total {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 20px;
}


.nexus-whatsapp-activo {
    display:block;
    width:100%;
    box-sizing:border-box;
    min-height:50px;
    margin:10px 0;
    padding:14px;
    border-radius:12px;
    text-align:center;
    text-decoration:none;
    font-weight:bold;
    background:#20b358;
    color:white;
}

