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

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #fafafa;
    color: #111;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: white;
    border-bottom: 1px solid #eee;
}

.navbar h2 {
    letter-spacing: 2px;
    font-weight: 500;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar a {
    text-decoration: none;
    color: #111;
    font-size: 13px;
    text-transform: uppercase;
    transition: 0.3s;
}

.navbar a:hover {
    opacity: 0.5;
}

/* HERO */
.hero {
    position: relative;
    height: 85vh;
    background: url("modelo2.jpg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 60px;
    letter-spacing: 4px;
}

.hero-content p {
    margin-top: 10px;
    font-size: 16px;
    opacity: 0.85;
}

.hero-content button {
    margin-top: 25px;
    padding: 12px 28px;
    border: 1px solid white;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.hero-content button:hover {
    background: white;
    color: black;
}

/* INTRO */
.intro {
    text-align: center;
    padding: 60px 20px;
    font-size: 15px;
    opacity: 0.7;
}

/* SHOP HEADER */
.shop-header {
    text-align: center;
    padding-top: 40px;
}

.shop-header h1 {
    font-size: 26px;
    letter-spacing: 3px;
    margin-bottom: -30px;
}

/* CATEGORÍAS */
.categories {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
    font-size: 14px;
    letter-spacing: 2px;
}

.categories span {
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

.categories span:hover {
    opacity: 1;
}

.categories span.active {
    opacity: 1;
    border-bottom: 1px solid black;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    padding: 60px 80px;
}

/* PRODUCT */
.product {
    cursor: pointer;
    transition: 0.4s;
}

.product:hover {
    transform: scale(1.02);
}

/* IMÁGENES */
.img {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
}

/* TODAS LAS IMÁGENES */
.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}

/* SEGUNDA IMAGEN OCULTA */
.img .img2 {
    opacity: 0;
}

/* HOVER CAMBIO */
.product:hover .img2 {
    opacity: 1;
}

.product:hover .img1 {
    opacity: 0;
}

/* TEXTO PRODUCTO */
.product h3 {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 500;
}

.product p {
    font-size: 13px;
    opacity: 0.6;
}

/* PRODUCT PAGE */
.product-page {
    display: flex;
    gap: 60px;
    padding: 80px;
    justify-content: center;
}

.product-img {
    width: 380px;
    height: 480px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 28px;
}

#price {
    margin: 15px 0;
    font-size: 18px;
}

.description {
    margin: 20px 0;
    opacity: 0.65;
    font-size: 14px;
    line-height: 1.6;
}

.divider {
    width: 40px;
    height: 2px;
    background: black;
    margin: 20px 0;
    opacity: 0.2;
}

.size-title {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.sizes {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.sizes span {
    border: 1px solid black;
    padding: 10px 16px;
    font-size: 13px;
    cursor: pointer;
}

.sizes span.active {
    background: black;
    color: white;
}

/* BOTÓN */
.product-info button {
    padding: 14px 30px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
}

/* ===== CARRITO ===== */

.cart {
    padding: 80px;
    max-width: 900px;
    margin: auto;
}

.cart-title {
    margin-bottom: 40px;
    letter-spacing: 3px;
    font-size: 28px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.cart-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-left img {
    width: 90px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-info {
    display: flex;
    flex-direction: column;
}

.cart-info h3 {
    font-size: 15px;
}

.cart-info p {
    font-size: 13px;
    opacity: 0.6;
}

.cart-item button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.5;
}

.cart-summary {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#total {
    font-size: 20px;
}

.checkout-btn {
    padding: 14px 30px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
}

/* ENVÍO */
.shipping-info {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .grid {
        padding: 40px;
    }

    .product-page {
        flex-direction: column;
        padding: 40px;
    }

    .hero-content h1 {
        font-size: 40px;
    }
}

/* ABOUT HERO */
.about-hero {
    position: relative;
    min-height: 100vh;
    background: url("playa.jpg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* DIFUMINADO */
.about-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.4);
}

/* CONTENIDO */
.about-content {
    position: relative;
    max-width: 800px;
    padding: 40px;
    color: white;
    text-align: center;
}

.about-content h1 {
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.about-content p {
    line-height: 1.7;
    opacity: 0.85;
}

/* CONTACTO */
.contact {
    margin-top: 50px;
}

.contact h2 {
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.contact p {
    opacity: 0.7;
}

.contact a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid white;
}

.contact a:hover {
    opacity: 0.7;
}