/* =====================================
   DUZ PROTEIN
   DISEÑO PRINCIPAL
===================================== */

:root {
    --rojo: #e50914;
    --rojo-oscuro: #b20710;
    --negro: #080808;
    --gris: #151515;
    --gris-claro: #252525;
    --blanco: #ffffff;
    --texto-gris: #aaaaaa;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--negro);
    color: var(--blanco);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* =====================================
   BARRA SUPERIOR
===================================== */

.top-bar {
    background: var(--rojo);
    color: white;
    text-align: center;
    padding: 9px 15px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

/* =====================================
   ENCABEZADO
===================================== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 22px 6%;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid #292929;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    color: #dedede;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--rojo);
}

.cart-button {
    background: var(--rojo);
    color: white;
    border: none;
    padding: 13px 19px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.cart-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#cart-count {
    background: white;
    color: black;
    padding: 3px 7px;
    border-radius: 50%;
    margin-left: 8px;
}

/* =====================================
   PORTADA PRINCIPAL
===================================== */

.hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 90px 8%;
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 50%,
            rgba(229, 9, 20, 0.18),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #111111,
            #050505
        );
}

.hero::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(229, 9, 20, 0.15);
    border-radius: 50%;
    right: -150px;
    top: -150px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tag,
.section-tag {
    color: var(--rojo);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
}

.hero h1 {
    font-family: Impact, Arial Black, sans-serif;
    font-size: clamp(65px, 7vw, 110px);
    line-height: 0.98;
    letter-spacing: 2px;
    margin: 25px 0;
}

.hero h1 span {
    display: block;
    color: var(--rojo);
}

.hero-content > p {
    color: #bbbbbb;
    font-size: 17px;
    max-width: 480px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

/* BOTONES */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 16px 25px;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-primary {
    background: var(--rojo);
    color: white;
}

.btn-primary:hover {
    background: var(--rojo-oscuro);
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid #666;
    color: white;
}

.btn-secondary:hover {
    border-color: var(--rojo);
    color: var(--rojo);
}

/* TARJETA VISUAL HERO */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    width: 100%;
    max-width: 430px;
    min-height: 390px;
    background:
        linear-gradient(
            145deg,
            #292929,
            #101010 65%
        );
    border: 1px solid #444;
    border-radius: 12px;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 25px 25px 70px rgba(0, 0, 0, 0.6);
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 500px;
    background: rgba(229, 9, 20, 0.13);
    transform: rotate(25deg);
    right: -60px;
    top: -60px;
}

.hero-card > span {
    color: var(--rojo);
    font-weight: 900;
    letter-spacing: 4px;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.hero-card h2 {
    font-family: Impact, Arial Black, sans-serif;
    font-size: clamp(36px, 4vw, 55px);
    line-height: 1.15;
    margin: 25px 0;
    position: relative;
    z-index: 1;
}

.hero-card p {
    color: var(--rojo);
    font-weight: 900;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

/* =====================================
   BENEFICIOS
===================================== */


/* BENEFICIOS */

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 45px 8%;
    background: #111111;
}

.benefit {
    background: #1c1c1c;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.benefit-icon {
    font-size: 35px;
    display: block;
    margin-bottom: 15px;
}

.benefit h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.benefit p {
    color: #aaaaaa;
}

/* =====================================
   DUZ - CATALOGO DE PRODUCTOS
===================================== */

.products-section {
    padding: 100px 8%;
    background: #0b0b0b;
    min-height: 600px;
}

/* TITULO DE LA SECCION */

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(42px, 5vw, 65px);
    margin: 12px 0;
    letter-spacing: 2px;
}

.section-heading h2 span {
    color: #e50914;
}

.section-heading p {
    color: #aaaaaa;
    font-size: 15px;
}

/* CATEGORIAS */

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.category {
    padding: 12px 22px;
    background: #181818;
    border: 1px solid #333;
    border-radius: 5px;
    color: #cccccc;
    font-size: 12px;
    font-weight: bold;
    transition: 0.3s;
}

.category.active {
    background: #e50914;
    border-color: #e50914;
    color: white;
}

.category:hover {
    border-color: #e50914;
}

/* GRILLA DE PRODUCTOS */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

/* TARJETA */

.product-card {
    background: #181818;
    border: 1px solid #303030;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: #e50914;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* IMAGEN DEL PRODUCTO */

.product-image {
    position: relative;
    background: #ffffff;
    height: 310px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* ETIQUETA DESTACADO */

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e50914;
    color: white;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 1;
}

/* INFORMACION */

.product-info {
    padding: 25px;
}

.product-brand {
    color: #e50914;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

.product-info h3 {
    color: white;
    font-size: 24px;
    margin: 8px 0;
}

.product-description {
    color: #aaaaaa;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* CARACTERISTICAS */

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.product-features span {
    background: #292929;
    color: #dddddd;
    font-size: 10px;
    padding: 7px 10px;
    border-radius: 4px;
}

/* PRECIO Y BOTON */

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.product-price small {
    display: block;
    color: #888888;
    font-size: 10px;
    margin-bottom: 5px;
}

.product-price strong {
    color: white;
    font-size: 14px;
}

.add-to-cart {
    background: #e50914;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 11px;
}

.add-to-cart:disabled {
    background: #454545;
    color: #bbbbbb;
    cursor: not-allowed;
}

/* ADAPTACION A CELULARES */

@media (max-width: 1000px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .products-section {
        padding: 60px 5%;
    }

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

    .product-image {
        height: 290px;
    }

    .product-bottom {
        flex-wrap: wrap;
    }
}

/* =====================================
   DUZ - SECCION NOSOTROS
===================================== */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 100px 8%;
    background: #141414;
}

.about-content h2 {
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1.1;
    margin: 20px 0 30px;
}

.about-content h2 span {
    color: #e50914;
}

.about-content p {
    color: #b5b5b5;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 18px;
}

.about-visual {
    min-height: 320px;
    background: linear-gradient(145deg, #282828, #090909);
    border: 1px solid #383838;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.about-visual span {
    font-family: Impact, sans-serif;
    font-size: clamp(90px, 12vw, 160px);
    color: #e50914;
    line-height: 1;
}

.about-visual p {
    color: white;
    font-size: 12px;
    letter-spacing: 5px;
    margin-top: 15px;
}

/* =====================================
   DUZ - ENVIOS
===================================== */

.shipping-section {
    background: #0b0b0b;
    text-align: center;
    padding: 100px 8%;
}

.shipping-section h2 {
    font-family: Impact, sans-serif;
    font-size: clamp(40px, 5vw, 65px);
    margin: 20px 0;
}

.shipping-section h2 span {
    color: #e50914;
}

.shipping-section > p {
    color: #aaaaaa;
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.9;
}

.shipping-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.shipping-info span {
    background: #1b1b1b;
    border: 1px solid #333;
    color: white;
    padding: 15px 25px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
}

/* =====================================
   DUZ - CONTACTO
===================================== */

.contact-section {
    text-align: center;
    padding: 90px 8%;
    background: linear-gradient(135deg, #240407, #111111);
    border-top: 1px solid #3a1115;
}

.contact-section h2 {
    font-family: Impact, sans-serif;
    font-size: clamp(35px, 5vw, 55px);
    margin-bottom: 20px;
}

.contact-section > p {
    color: #bbbbbb;
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-links span {
    background: #252525;
    border: 1px solid #484848;
    border-radius: 5px;
    padding: 15px 25px;
    font-size: 12px;
    font-weight: bold;
}

/* =====================================
   DUZ - FOOTER
===================================== */

.footer {
    background: #050505;
    padding: 55px 8%;
    border-top: 1px solid #292929;
    text-align: center;
}

.footer-brand h2 {
    font-family: Impact, sans-serif;
    font-size: 40px;
    letter-spacing: 2px;
}

.footer-brand h2 span {
    color: #e50914;
}

.footer-brand p {
    color: #aaaaaa;
    letter-spacing: 3px;
    font-size: 11px;
    margin-top: 5px;
}

.footer > p {
    color: #777777;
    font-size: 12px;
    margin-top: 20px;
}

/* =====================================
   ADAPTACION A CELULARES
===================================== */

@media (max-width: 850px) {

    .header {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 65px 6%;
        gap: 40px;
    }

    .hero-card {
        min-height: 300px;
    }

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

    .about-section {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 70px 6%;
    }
}

@media (max-width: 480px) {

    .header {
        padding: 18px 4%;
    }

    .nav a {
        font-size: 10px;
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero-card {
        padding: 30px;
    }

    .hero-card h2 {
        font-size: 38px;
    }

    .about-visual {
        min-height: 230px;
    }

    .shipping-section,
    .contact-section {
        padding: 65px 5%;
    }
}

/* AJUSTE DE NAVEGACION */

html {
    scroll-padding-top: 125px;
}

@media (max-width: 850px) {
    html {
        scroll-padding-top: 180px;
    }
}

/* CORRECCIÓN DEL TÍTULO DE CONTACTO */

.contact-section h2 {
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.2;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Información para la versión pública de demostración */
.duz-demo-notice {
    background: #262626;
    color: #e8e8e8;
    text-align: center;
    padding: 10px 18px;
    font-size: 12px;
    line-height: 1.5;
    border-bottom: 1px solid #444;
}
.top-bar {letter-spacing: 1px;}
@media(max-width: 600px) {
    .duz-demo-notice {font-size: 11px;}
    .top-bar {letter-spacing: .2px; font-size: 10px;}
}

/* Ajustes finales para las portadas en pantallas amplias */
@media (min-width: 851px) {
    .hero h1 { font-size: clamp(65px, 6vw, 90px); }
    .hero-card h2 { font-size: clamp(34px, 3.2vw, 46px); }
}
