* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #f5f5f5;
}

header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 5px 5%;
    background-color: #111827;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo{
     width: auto;
    display: flex;
    align-items: center;
}

.logo img{
    width: 300px;
    height: auto;

}


nav{
    display: flex;
    gap: 60px;
}

nav a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: #e50914;
}

.icons{
    display: flex;
    gap: 30px;
    font-size: 20px;
}


.hero{
    height: calc(100dvh - var(--altura-encabezado, 110px));
    min-height: 0;

    background-image: url("https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=2000&auto=format&fit=crop");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

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

    position: relative;
}

.overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-content{
    position: relative;
    z-index: 2;

    text-align: center;
    color: white;

    max-width: 800px;
    padding: 20px;
}

.hero-content h1{
    font-size: 70px;
    margin-bottom: 20px;
}

.hero-content p{
    font-size: 20px;
    margin-bottom: 30px;
}

img {
    max-width: 100%;
    height: auto;
}


.categorias {
    padding: 60px 8%;
}

.categorias h2 {
    margin-bottom: 30px;
}

.contenedor-categorias {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card-categoria {
    background-color: #e5e7eb;
    padding: 40px;
    flex: 1;
    min-width: 200px;
    text-align: center;
    border-radius: 15px;
    transition: 0.3s;
}

.card-categoria:hover {
    transform: translateY(-10px);
}

.card-categoria i {
    font-size: 40px;
    color: #2563eb;
    margin-bottom: 15px;
}

.productos {
    padding: 60px 8%;
}

body.home .productos {
    display: none;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.grid-productos.busqueda-activa {
    grid-template-columns: repeat(auto-fill, var(--ancho-tarjeta-original, 280px));
    justify-content: start;
}

.card-producto {
    background-color: #e5e7eb;
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
    
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.card-producto:hover {
    transform: scale(1.03);
}

.card-producto img {
    width: 100%;
    height: 220px; 
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card-producto h3 {
    margin: 15px 0;
}

.card-producto p {
    color: gray;
    
    flex-grow: 1; 
}

.card-producto span {
    display: block;
    margin: 15px 0;
    color: #e50914;
    font-weight: bold;
    font-size: 20px;
}

.card-producto button {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #334155;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.card-producto button:hover {
    background-color: #475569;
    transform: translateY(-2px);
}

.oferta-producto {
    position: relative;
}

.card-producto .badge-oferta {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.25);
}

.card-producto .precio-original {
    color: #64748b;
    font-size: 13px;
    text-decoration: line-through;
    margin: 10px 0 0;
}

.card-producto .precio-oferta {
    display: block;
    margin-top: 4px;
    color: #b91c1c;
    font-size: 20px;
    font-weight: 700;
}


.ofertas{
    background-color: #111827;
    color: white;
    text-align: center;
    padding: 70px 8%;
}

.ofertas-encabezado {
    max-width: 650px;
    margin: 0 auto 34px;
}

.ofertas-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: #f87171;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ofertas-encabezado h2 {
    margin-bottom: 8px;
    font-size: clamp(28px, 4vw, 42px);
}

.ofertas-encabezado p {
    color: #aeb8c8;
}

.ofertas-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
}

.oferta-card {
    position: relative;
    padding: 30px 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: linear-gradient(145deg, #1e293b, #111827);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.oferta-card:hover {
    transform: translateY(-6px);
    border-color: rgba(248, 113, 113, 0.45);
}

.oferta-icono {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: 13px;
    color: #ffffff;
    background: #dc2626;
    font-size: 21px;
}

.oferta-descuento {
    display: inline-block;
    margin-bottom: 10px;
    color: #fca5a5;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.oferta-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.oferta-card p {
    min-height: 72px;
    margin-bottom: 22px;
    color: #aeb8c8;
    line-height: 1.55;
}

.oferta-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.oferta-card a:hover {
    color: #f87171;
}

@media (max-width: 800px) {
    .ofertas-grid {
        grid-template-columns: 1fr;
    }

    .oferta-card p {
        min-height: 0;
    }
}

.tabla-section {
    padding: 60px 8%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background-color: white;
}

th {
    background-color: #111827;
    color: white;
}

th,
td {
    padding: 15px;
    border: 1px solid #ddd;
}


.video-section {
    padding: 60px 8%;
    text-align: center;
}

video {
    width: 70%;
    margin-top: 30px;
    border-radius: 20px;
}


.contacto {
    padding: 60px 8%;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

input,
textarea {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

textarea {
    height: 150px;
}

form button {
    padding: 15px;
    border: none;
    background-color: #e50914;
    color: white;
    border-radius: 10px;
}

.btn-hero {
    display: inline-block;
    padding: 12px 25px;
    background-color: #e50914;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
}

.btn-hero:hover {
    transform: scale(1.05);
}

footer {
    background-color: #111827;
    color: white;
    text-align: center;
    padding: 30px;
}

.redes {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 25px;
}

@media(max-width:768px) {

    header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }

    .logo {
        flex: 0 0 100%;
        justify-content: center;
    }

    .logo img {
        width: 220px;
    }

    .buscador {
        flex: 0 0 100%;
    }

    nav {
        flex: 1 1 auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }

    .icons {
        flex: 0 0 auto;
        justify-content: center;
        gap: 18px;
    }

    .hero {
        flex-direction: column;
    }

    .hero-text {
        width: 100%;
        text-align: center;
    }

    .hero-img img {
        width: 100%;
    }

    .grid-productos {
        grid-template-columns: 1fr;
    }

    .grid-productos.busqueda-activa {
        grid-template-columns: 1fr;
    }

    video {
        width: 100%;
    }

}
.buscador{
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.buscador input{
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
}

.resultados-buscador {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 1000;
    display: none;
    width: min(500px, calc(100vw - 32px));
    max-height: 430px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
    transform: translateX(-50%);
}

.resultados-buscador.visible {
    display: block;
    animation: mostrar-resultados 0.16s ease-out;
}

.resultado-buscador {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto 16px;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.resultado-buscador:last-child {
    border-bottom: 0;
}

.resultado-buscador:hover,
.resultado-buscador:focus {
    outline: none;
    background: #eff6ff;
}

.resultado-buscador img {
    width: 52px;
    height: 52px;
    border-radius: 9px;
    object-fit: contain;
    background: #f8fafc;
}

.resultado-buscador-info {
    min-width: 0;
}

.resultado-buscador-info strong,
.resultado-buscador-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resultado-buscador-info strong {
    font-size: 14px;
}

.resultado-buscador-info small {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.resultado-buscador-precio {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

.resultado-buscador > i {
    color: #94a3b8;
    font-size: 12px;
}

.card-producto.producto-destacado {
    animation: destacar-producto 1.8s ease;
}

@keyframes mostrar-resultados {
    from { opacity: 0; transform: translate(-50%, -6px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes destacar-producto {
    0%, 100% { box-shadow: inherit; }
    25%, 75% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3), 0 14px 30px rgba(37, 99, 235, 0.2); }
}

@media (max-width: 600px) {
    .resultado-buscador {
        grid-template-columns: 44px minmax(0, 1fr) auto;
    }

    .resultado-buscador img {
        width: 44px;
        height: 44px;
    }

    .resultado-buscador > i,
    .resultado-buscador-precio {
        display: none;
    }
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #111827;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
    z-index: 101;
    border-radius: 8px;
    top: 100%; 
    overflow: hidden;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: 0.3s;
    border-bottom: 1px solid #1f2937;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown:hover .dropdown-content {
    display: block; 
}

.dropdown-content a:hover {
    background-color: #1f2937;
    color: #e50914;
    padding-left: 20px;
}

.ofertas-link {
    color: #e50914 !important;
    font-weight: 600;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
}

.section-header h2 {
    margin-bottom: 0;
    color: #111827;
}

.ver-mas {
    text-decoration: none;
    color: #2563eb;
    font-weight: 500;
    transition: 0.3s;
}

.ver-mas:hover {
    color: #e50914;
    text-decoration: underline;
}

.btn-comprar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.btn-comprar:hover {
    background-color: #e50914;
}

.contenedor-carrito {
    padding: 60px 8%;
    min-height: 100vh;
    background-image: linear-gradient(to bottom, #181a1d, #101a2b, #081a39, #081745, #16114e);
}

.contenedor-carrito h2 {
    margin-bottom: 30px;
    color: #ffffff;
}

#mensaje-carrito {
    color: #cbd5e1;
}

#mensaje-carrito:empty {
    display: none;
}

#mensaje-carrito.estado-vacio {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 0 0 30px;
    padding: 28px 20px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 16px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
    text-align: center;
}

#mensaje-carrito.estado-vacio i {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 4px;
    border-radius: 50%;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.14);
    font-size: 24px;
}

#mensaje-carrito.estado-vacio strong {
    color: #ffffff;
    font-size: 20px;
}

#mensaje-carrito.estado-vacio span {
    color: #94a3b8;
    font-size: 14px;
}

.layout-carrito {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contenido-carrito {
    flex: 2;
    min-width: 0;
}

.lista-carrito {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item-carrito {
    display: flex;
    align-items: center;
    background-color: #e5e7eb;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    gap: 20px;
}

.item-carrito img {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    border-radius: 8px;
    object-fit: contain;
    background-color: #f8fafc;
}

.info-item {
    flex: 1;
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-item p {
    color: gray;
    font-size: 14px;
}

.precio-carrito-oferta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.precio-carrito-original {
    color: #64748b;
    text-decoration: line-through;
}

.precio-carrito-oferta strong {
    color: #b91c1c;
    font-size: 16px;
}

.precio-carrito-oferta em {
    padding: 3px 7px;
    border-radius: 999px;
    color: #ffffff;
    background: #dc2626;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.controles-cantidad {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.btn-cantidad {
    background-color: #f3f4f6;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
}

.input-cantidad {
    width: 40px;
    text-align: center;
    border: none;
    padding: 8px 0;
    font-family: inherit;
    outline: none;
}

.precio-item {
    font-weight: bold;
    font-size: 18px;
    color: #111827;
    width: 100px;
    text-align: right;
}

.btn-eliminar {
    background-color: transparent;
    color: #e50914;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-eliminar:hover {
    transform: scale(1.1);
}

@media (max-width: 700px) {
    .layout-carrito {
        flex-direction: column;
    }

    .contenido-carrito,
    .resumen-compra {
        width: 100%;
    }

    .item-carrito {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .item-carrito img {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
        grid-row: span 2;
    }

    .controles-cantidad {
        width: max-content;
    }

    .precio-item {
        width: auto;
        text-align: left;
    }
}

.resumen-compra {
    flex: 1;
    background-color: #e5e7eb;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.resumen-compra h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

.fila-resumen {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #4b5563;
}

.fila-resumen.total {
    font-size: 20px;
    font-weight: bold;
    color: #e50914;
    margin-top: 15px;
}

.btn-pagar {
    width: 100%;
    background-color: #334155;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-pagar:hover {
    background-color: #475569;
}

.btn-pagar:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.btn-pagar:disabled:hover {
    background-color: #334155;
}

.acciones-carrito {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.btn-seguir-comprando,
.btn-cerrar-sesion {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease,
        color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-seguir-comprando {
    background-color: #fff;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-seguir-comprando:hover {
    background-color: #f8fafc;
    border-color: #64748b;
    color: #0f172a;
    transform: translateY(-1px);
}

.btn-cerrar-sesion {
    background-color: transparent;
    color: #b91c1c;
}

.btn-cerrar-sesion:hover {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.btn-seguir-comprando:focus-visible,
.btn-cerrar-sesion:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}

.btn-cerrar-sesion:focus-visible {
    outline-color: rgba(185, 28, 28, 0.25);
}

.btn-seguir-comprando:active,
.btn-cerrar-sesion:active {
    transform: translateY(0);
}

.pagina-acceso {
    background-color: #000000;
    background-image: linear-gradient(to bottom, #000000, #161415, #242124, #312e34, #3d3d45, #4f5159, #62656d, #767a82, #9799a0, #b9babe, #dcdcde, #ffffff);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
}

.contenedor-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px 20px;
    background-color: #000000;
    background-image: linear-gradient(to bottom, #000000, #161415, #242124, #312e34, #3d3d45, #4f5159, #62656d, #767a82, #9799a0, #b9babe, #dcdcde, #ffffff);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.caja-login {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background-color: #080808;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.38);
}

.logo-login {
    font-size: 60px;
    color: #ffffff;
    margin-bottom: 10px;
}

.caja-login h2 {
    color: #ffffff;
    margin-bottom: 5px;
}

.caja-login p {
    color: #b8bec9;
    margin-bottom: 25px;
    font-size: 14px;
}

.formulario-login {
    text-align: left;
}

.caja-login .grupo-input label {
    color: #e5e7eb;
}

.mensaje-formulario {
    min-height: 20px;
    color: #dc2626 !important;
    margin-bottom: 10px !important;
}

.producto-oculto,
.productos.seccion-sin-resultados {
    display: none;
}

.sin-resultados-busqueda {
    display: none;
    padding: 70px 20px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
}

.sin-resultados-busqueda.visible {
    display: block;
}

.sin-resultados-busqueda i {
    margin-bottom: 16px;
    color: #94a3b8;
    font-size: 42px;
}

.sin-resultados-busqueda h3 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 22px;
}

.sin-resultados-busqueda p {
    margin: 0;
}

body.modal-abierto {
    overflow: hidden;
}

.modal-sesion-fondo {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 15, 29, 0.72);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.modal-sesion-fondo.modal-sesion-visible {
    opacity: 1;
}

.modal-sesion-fondo.modal-sesion-saliendo {
    opacity: 0;
}

.modal-sesion {
    width: min(420px, 100%);
    padding: 34px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: translateY(16px) scale(0.96);
    transition: transform 0.2s ease;
}

.modal-sesion-visible .modal-sesion {
    transform: translateY(0) scale(1);
}

.modal-sesion-icono {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #dc2626;
    background: #fee2e2;
    font-size: 27px;
}

.modal-sesion h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 25px;
}

.modal-sesion p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.modal-sesion p strong {
    color: #334155;
}

.modal-sesion-acciones {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.modal-sesion-acciones button {
    flex: 1;
    padding: 12px 18px;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-sesion-acciones button:hover {
    transform: translateY(-1px);
}

.btn-modal-cancelar {
    border: 1px solid #cbd5e1;
    color: #334155;
    background: #ffffff;
}

.btn-modal-cancelar:hover {
    background: #f8fafc;
}

.modal-yape {
    width: min(460px, 100%);
}

.modal-yape-icono {
    color: #6d28d9;
    background: #ede9fe;
    box-shadow: 0 0 0 8px rgba(109, 40, 217, 0.08);
}

.yape-pago {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.yape-pago img {
    width: min(220px, 100%);
    aspect-ratio: 1;
    justify-self: center;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    object-fit: contain;
    background: #ffffff;
}

.comprobante-pago {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border: 1px dashed #7c3aed;
    border-radius: 10px;
    color: #5b21b6;
    background: #f5f3ff;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.comprobante-pago:hover {
    border-color: #6d28d9;
    background: #ede9fe;
}

.comprobante-pago input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.nombre-comprobante {
    color: #475569;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.error-comprobante {
    min-height: 18px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
}

.btn-modal-cerrar {
    border: 1px solid #dc2626;
    color: #ffffff;
    background: #dc2626;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.22);
}

.btn-modal-cerrar:hover {
    background: #b91c1c;
}

.modal-producto-icono {
    color: #16a34a;
    background: #dcfce7;
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.08);
}

.modal-acceso-icono {
    color: #1d4ed8;
    background: #dbeafe;
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.08);
}

.modal-producto-resumen {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    text-align: left;
}

.modal-producto-resumen img {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 9px;
    object-fit: contain;
    background: #ffffff;
}

.modal-producto-nombre {
    color: #1e293b;
    font-size: 14px;
    line-height: 1.4;
}

.btn-modal-carrito {
    border: 1px solid #2563eb;
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.btn-modal-carrito:hover {
    background: #1d4ed8;
}

@media (max-width: 480px) {
    .modal-sesion {
        padding: 28px 22px;
    }

    .modal-sesion-acciones {
        flex-direction: column-reverse;
    }
}

.grupo-input {
    margin-bottom: 20px;
}

.grupo-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
}

.grupo-input input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #111827;
    background-color: #d1d5db;
    outline: none;
    transition: 0.3s;
}

.grupo-input input::placeholder {
    color: #5b6472;
}

.grupo-input input:focus {
    border-color: #2563eb;
}

.opciones-login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 20px;
}

.opciones-login a {
    color: #2563eb;
    text-decoration: none;
}

.btn-ingresar {
    width: 100%;
    background-color: #111827;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-ingresar:hover {
    background-color: #1f2937;
}

.registro-link {
    margin-top: 20px;
    font-size: 14px;
}

.registro-link a {
    color: #2563eb;
    font-weight: bold;
    text-decoration: none;
}

.registro-link a:hover {
    color: #3b82f6;
}

@media(max-width: 900px) {
   
    header{
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
        padding: 15px 5%;
    }

    .logo{
        width: auto;
        flex: 0 0 100%;
        justify-content: center;
    }

    .logo img{
        width: 220px;
        transform: none;
    }

    .buscador{
        width: 100%;
        flex: 0 0 100%;
    }

    .buscador input{
        width: 100%;
        max-width: 500px;
    }

    nav{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        flex: 1 1 auto;
    }

    .icons{
        justify-content: center;
        gap: 18px;
        flex: 0 0 auto;
    }
    
}
