* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background: #000;
}

body {
    color: white;
    overflow-x: hidden;
    transition: opacity 0.4s ease;
}

body.fade-out {
    opacity: 0;
}

/* 🔥 HERO */
.hero-product {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
    position: relative;

    background:
        radial-gradient(circle at 50% 20%, #111, #000 80%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2), #000);
}

/* CONTENIDO */
.hero-content {
    max-width: 1200px;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
    padding: 40px 40px 60px;
}


/* 🔥 IMAGEN WRAPPER */
.product-image {
    position: relative;
    z-index: 2;

    padding: 40px;
    border-radius: 20px;

    transform: translateY(20px);
}

/* SOMBRA SUELO */
.product-image::after {
    content: "";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);

    width: 60%;
    height: 40px;

    background: rgba(0, 0, 0, 0.8);
    filter: blur(25px);
    border-radius: 50%;
}

/* IMAGEN PRINCIPAL */
.hero-product .main-image {
    width: 520px;
    max-width: 100%;
    border-radius: 15px;

    transform: translateY(-10px);

    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.9));

    transition: opacity 0.25s ease;
}

.hero-product .main-image:hover {
    transform: translateY(-20px) scale(1.03);
}

/* MINIATURAS */
.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-top: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.5);
}

.thumbnail.active {
    opacity: 1;
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 🔴 GLOW */
.hero-product::before {
    content: "";
    position: absolute;

    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);

    width: 600px;
    height: 600px;

    background: radial-gradient(circle, rgba(255, 0, 0, 0.25), transparent 70%);
    filter: blur(100px);

    opacity: 0;
    transition: opacity 0.6s ease;

    z-index: 1;
}

/* INFO */
.info {
    max-width: 420px;
    position: relative;
    z-index: 3;

    margin-top: -40px;
}

/* TITULO */
h1 {
    font-size: 2.6rem;
    letter-spacing: 6px;
    font-weight: 300;
    text-transform: uppercase;
    color: red;
}

/* DESCRIPCIÓN */
.desc {
    margin-top: 12px;
    opacity: 0.7;
    line-height: 1.6;
}

/* PRECIO */
.price {
    margin-top: 20px;
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: bold;
}

/* BENEFICIOS */
.benefits {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* TALLAS */
.sizes {
    margin-top: 35px;
    margin-bottom: 35px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sizes span {
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 18px;

    border-radius: 999px;
    cursor: pointer;

    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);

    transition: all 0.2s ease;
}

.sizes span:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sizes span.active {
    background: white;
    color: black;

    transform: scale(1.05);

    box-shadow:
        0 0 15px rgba(255, 255, 255, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.6);
}

/* BOTONES */
/* 🔥 BUY MÁS IMPORTANTE */
/* BASE */
.btn-cart,
.btn-buy {
    width: 100%;
    padding: 16px;
    border-radius: 8px;

    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;

    cursor: pointer;
    transition: all 0.25s ease;
}

/* 🔴 BOTÓN PRINCIPAL (BUY) */
.btn-buy {
    background: #ff0000;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 10px 30px rgba(0, 0, 0, 0.8);
}

/* hover más profundo */
.btn-buy:hover {
    background: #5f0000;
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 15px 40px rgba(0, 0, 0, 1);
}

/* ⚪ BOTÓN SECUNDARIO */
.btn-cart {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.692);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
}

/* línea fina debajo */
.btn-cart::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0%;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(-50%);
    transition: 0.3s;
}

/* hover elegante */
.btn-cart:hover {
    color: rgba(255, 255, 255, 0.9);
}

.btn-cart:hover::after {
    width: 60%;
}

/* click */
.btn-buy:active,
.btn-cart:active {
    transform: scale(0.97);
}

.product-shipping {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgb(255, 255, 255);
    margin: 10px 0;
    backdrop-filter: drop-shadow(2px 4px 6px red);
    text-shadow: 3px 2px 13px red;
}


/* STOCK */
.stock {
    margin-top: 12px;
    /* font-size: 0.85rem; */
    color: #ffffff;
    padding-top: 20px;
    backdrop-filter: drop-shadow(2px 4px 6px red);
    text-shadow: 3px 2px 13px red;
}

/* =========================
RELATED PRODUCTS
========================= */

.related-products {
    max-width: 1200px;
    margin: 80px auto;
    margin-top: 120px;
    padding: 0 20px;
    text-align: center;
}

.related-title {
    font-size: 1.6rem;
    letter-spacing: 5px;
    margin-bottom: 50px;
    display: inline-block;
    padding: 10px 20px;

    background: #ff0000;
    border: 1px solid rgb(0, 0, 0);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 10px 30px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

/* GRID */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* CARD */
.related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;

    border-radius: 16px;
    padding: 15px;

    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);

    transition: 0.3s ease;
}

/* TEXTO */
.related-card p,
.related-card span {
    position: static;
    left: 15px;
    z-index: 2;
}

/* HOVER */
.related-card:hover img {
    transform: scale(1.05);
}

.related-card:hover {
    transform: translateY(-4px);
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.15);
}

/* IMG */
.related-card img {
    width: 100%;
    height: auto;
    /* 👈 CLAVE */
    object-fit: contain;
    border-radius: 30px;

    padding: 15px;
    /* 👈 aire alrededor */
}

/* TEXTO */
.related-card p {
    font-size: 0.9rem;
    margin-top: 10px;
}

.related-card span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.secure-text {
    margin-top: 25px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-align: center;
    opacity: 0.7;
}

.payments {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
    opacity: 0.85;
}

.payments img {
    height: 26px;
    filter: grayscale(1) brightness(2);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.payments img:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    filter: none;
}

/* FOOTER */
.footer {
    background: #000;
    color: white;
    padding: 15px 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 10px;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.8);
}

.footer-logo img {
    height: 50px;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.footer-brand h2 {
    font-size: 1.5rem;
    letter-spacing: 3px;
}

.footer-brand p {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    color: white;
}

.footer-bottom {
    display: flex;
    text-align: center;
    margin-top: 10px;
    font-size: 0.75rem;
    opacity: 0.5;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.footer-social a img {
  width: 22px;
  height: 22px;
  opacity: 0.7;
  transition: 0.25s ease;
  filter: brightness(0) invert(1); /* blanco */
}

.footer-social a img:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.1);
}

@keyframes bump {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* 📱 MOBILE */
@media (max-width: 768px) {


    .hero {
        position: relative;
        min-height: 100svh;
        overflow: hidden;
        padding-top: 80px;
        /* Espacio para el navbar fijo */
        transition: opacity 0.8s ease;
    }

    .hero-product {
        width: 100%;
        min-height: 100vh;
        background: #0a0a0a;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 80px;
        margin-top: 0;
    }

    .hero-content {
        width: 100%;
        max-width: 500px;
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 0px 15px 40px;
    }

    .product-image {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
        margin-bottom: 15px;
    }

    .hero-product .main-image {
        width: 100%;
        filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.9));
        transform: none !important;
        transition: none !important;
    }

    .hero-product .main-image:hover {
        transform: none !important;
    }

    .thumbnails {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 0;
        margin-top: 12px;
        width: 100%;
        justify-content: center;
    }

    .thumbnail {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
    }

    .info {
        text-align: center;
        margin-top: 10px;
        max-width: 100%;
    }

    h1 {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }

    .desc {
        font-size: 0.9rem;
        margin-top: 15px;
    }

    .price {
        font-size: 1.6rem;
        margin-top: 15px;
    }

    .benefits {
        font-size: 0.85rem;
        margin-top: 12px;
    }

    .benefits p {
        margin: 6px 0;
    }

    .sizes {
        display: flex;
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .sizes span {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .btn-cart,
    .btn-buy {
        width: 100%;
        margin-top: 18px;
        padding: 12px;
        font-size: 0.95rem;
    }

    .stock {
        margin-top: 10px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .related-title {
        font-size: 1rem;
    }

    .related-card {
        padding: 10px;
    }

    .related-card img {
        padding: 5px;
        /* 👈 menos padding */
        max-height: 180px;
        /* 👈 controla tamaño */
        border-radius: 20px;
    }


    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        /* 👈 CLAVE */
        justify-content: center;
        gap: 10px;
    }

    @keyframes shake {

        0%,
        100% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-3px);
        }

        75% {
            transform: translateX(3px);
        }
    }

    .cart-icon.shake {
        animation: shake 0.4s ease;
    }
}