@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Roboto:wght@300;400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: #f5f5f5;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    background: linear-gradient(180deg, #0a0a0a 85%, #080808);
    border-bottom: 2px solid #e50914;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.6rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}
.nav-logo i {
    font-size: 1.6rem;
    color: #e50914;
    filter: drop-shadow(0 0 6px rgba(229,9,20,0.6));
}
.nav-logo h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 1px;
}

.nav-links a {
    color: #cfcfcf;
    text-decoration: none;
    margin: 0 0.6rem;
    font-weight: 700;
    transition: color 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active {
    color: #e50914;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.carrito-icon {
    background: #e50914;
    color: #fff;
    padding: 0.5rem 0.85rem;
    border-radius: 28px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.carrito-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(229,9,20,0.25);
}
#contadorCarrito {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #fff;
    color: #e50914;
    border-radius: 50%;
    font-size: 0.75rem;
    padding: 2px 6px;
    font-weight: 700;
}

main {
    margin-top: 82px;
}

.hero-section {
    height: 70vh;
    background: url('../img/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.7));
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 1rem;
}
.hero-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.6rem;
    color: #fff;
    margin-bottom: 0.6rem;
}
.hero-content p {
    color: #d1d1d1;
    margin-bottom: 1rem;
}
.btn-hero {
    background: #e50914;
    color: #fff;
    padding: 0.7rem 1.8rem;
    border-radius: 24px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background 0.25s ease;
}
.btn-hero:hover {
    background: #b1070f;
}

.catalogo-section {
    padding: 3.2rem 1.6rem;
    text-align: center;
}
.catalogo-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: #fff;
    border-bottom: 2px solid #e50914;
    display: inline-block;
    padding-bottom: 0.4rem;
    margin-bottom: 1.6rem;
}

.filtros {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}
.filtro-btn {
    background: transparent;
    color: #ddd;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.filtro-btn:hover {
    transform: translateY(-3px);
}
.filtro-btn.active {
    background: rgba(229,9,20,0.12);
    color: #fff;
    border-color: rgba(229,9,20,0.28);
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    justify-items: center;
    gap: 1.6rem;
    padding: 0 1rem;
}

.producto-card {
    width: 100%;
    max-width: 280px;
    background: #111;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(229,9,20,0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.4s;
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(18px);
}
.producto-card.in-view {
    opacity: 1;
    transform: translateY(0);
}
.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.producto-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}
.producto-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: #fff;
}
.producto-card .precio {
    color: #e50914;
    font-weight: 800;
    margin-bottom: 0.6rem;
}
.btn-agregar {
    background: linear-gradient(180deg,#e50914,#b1070f);
    color: #fff;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease;
}
.btn-agregar:active {
    transform: translateY(1px);
}

.contacto-section {
    padding: 3rem 1.6rem;
    margin-top: 1.2rem;
    background: linear-gradient(180deg,#070707,#0b0b0b);
}
.contacto-form {
    max-width: 560px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}
.contacto-form input,
.contacto-form textarea {
    background: #0a0a0a;
    border: 1px solid #222;
    color: #fff;
    padding: 0.7rem;
    border-radius: 8px;
}
.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: #e50914;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(8,8,8,0.9);
    backdrop-filter: blur(6px);
    padding: 2rem 1rem;
}
.modal[aria-hidden="false"] {
    display: block;
}
.modal-contenido {
    background: #111;
    margin: 0 auto;
    padding: 1.4rem;
    border-radius: 12px;
    max-width: 640px;
    border: 1px solid rgba(229,9,20,0.08);
    max-height: 82vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(229,9,20,0.05);
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
}
.cerrar-modal {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #fff;
    cursor: pointer;
}

.item-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    background: #0a0a0a;
    padding: 0.7rem;
    border-radius: 8px;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255,255,255,0.02);
}
.item-carrito h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.item-carrito p {
    font-size: 0.9rem;
    color: #d0d0d0;
}

.resumen {
    margin-top: 0.8rem;
    background: linear-gradient(180deg,#070707,#0b0b0b);
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(229,9,20,0.04);
    text-align: center;
}
.total-final {
    color: #e50914;
    font-weight: 800;
    font-size: 1.15rem;
    margin-top: 0.4rem;
}

.btn-primario,
.btn-secundario {
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 800;
}
.btn-primario {
    background: linear-gradient(180deg,#e50914,#b1070f);
    color: #fff;
}
.btn-secundario {
    background: #222;
    color: #ddd;
    border: 1px solid rgba(255,255,255,0.03);
}


.mensaje {
    margin-top: 0.6rem;
    color: #d1d1d1;
    font-weight: 600;
    text-align: center;
}

footer {
    text-align: center;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(229,9,20,0.06);
    color: #999;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms ease, transform 600ms ease;
}
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h2 { font-size: 1.8rem; }
    .producto-card img { height: 140px; }
    .grid-productos { gap: 1rem; }
}
