﻿* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
}


/* ==================================================
   HEADER
   ================================================== */

.header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-contenido {
    max-width: 1200px;
    margin: auto;
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 25px;
}


/* LOGO */

/*.logo {
    display: flex;
    align-items: baseline;
    gap: 5px;

    font-size: 20px;
    letter-spacing: 3px;
    font-weight: 600;
}

.logo-joyeria {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 400;
}*/

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 160px;
    height: auto;
    display: block;
}

/* Tablets */
@media (max-width: 768px) {

    .logo img {
        width: 140px;
    }

}


/* Celulares */
@media (max-width: 480px) {

    .logo img {
        width: 110px;
    }

}


/* MENU */

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
}

.menu a:hover,
.menu a.activo {
    color: #9b7653;
}


/* ACCIONES */

.acciones {
    display: flex;
    gap: 8px;
}

.acciones button {
    border: 0;
    background: transparent;

    width: 38px;
    height: 38px;

    cursor: pointer;

    font-size: 18px;
}

.acciones button:hover {
    color: #9b7653;
}


/* ==================================================
   HERO
   ================================================== */

.hero {
    min-height: 570px;

    background:
        linear-gradient(
            rgba(0,0,0,.15),
            rgba(0,0,0,.15)
        ),
        url('../Fotos/hero.jpg');

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
}

.hero-contenido {
    width: 1200px;
    max-width: 100%;

    margin: auto;
    padding: 60px 25px;
}

.hero-texto {
    max-width: 520px;
}

.hero-subtitulo {
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0;

    font-family: Georgia, serif;

    font-size: 60px;
    line-height: 1.05;
    font-weight: 400;
}

.hero p {
    margin: 25px 0;

    font-size: 16px;
    line-height: 1.7;
}

.btn-coleccion {
    display: inline-block;

    padding: 14px 28px;

    background: #222;
    color: white;

    text-decoration: none;

    font-size: 12px;
    letter-spacing: 2px;
}

.btn-coleccion:hover {
    background: #9b7653;
}


/* ==================================================
   PRODUCTOS
   ================================================== */

.productos-seccion {
    max-width: 1200px;
    margin: auto;

    padding: 90px 25px;
}

.seccion-titulo {
    text-align: center;
    margin-bottom: 45px;
}

.titulo-pequeno {
    font-size: 11px;
    letter-spacing: 3px;
    color: #9b7653;
    margin-bottom: 12px;
}

.seccion-titulo h2 {
    margin: 0;

    font-family: Georgia, serif;

    font-size: 40px;
    font-weight: 400;
}

.seccion-titulo p {
    color: #777;
}


/* ==================================================
   FILTROS
   ================================================== */

.filtros {
    display: flex;
    justify-content: center;

    gap: 10px;

    margin-bottom: 45px;
}

.filtro {
    background: transparent;

    border: 1px solid #ddd;

    padding: 10px 20px;

    cursor: pointer;

    font-size: 12px;
}

.filtro:hover,
.filtro.activo {
    background: #222;
    color: #fff;
}


/* ==================================================
   GRID
   ================================================== */

.productos-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 30px;
}


/* ==================================================
   PRODUCTO
   ================================================== */

.producto-card {
    background: #fff;
}

.producto-imagen {
    width: 100%;
    aspect-ratio: 1 / 1;

    background: #f6f6f6;

    overflow: hidden;

    position: relative;
}

.producto-imagen img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.producto-card:hover
.producto-imagen img {
    transform: scale(1.04);
}


.producto-info {
    padding: 18px 4px;
}

.producto-categoria {
    font-size: 10px;
    letter-spacing: 2px;
    color: #999;

    text-transform: uppercase;
}

.producto-nombre {
    margin-top: 7px;

    font-family: Georgia, serif;

    font-size: 18px;
}

.producto-precio {
    margin-top: 8px;

    font-size: 14px;
}

.producto-stock {
    margin-top: 8px;

    font-size: 11px;

    color: #777;
}


/* ==================================================
   ESTADOS
   ================================================== */

.badge-nuevo {
    position: absolute;

    top: 12px;
    left: 12px;

    background: #222;
    color: white;

    padding: 7px 10px;

    font-size: 9px;

    letter-spacing: 1px;
}

.badge-destacado {
    position: absolute;

    top: 12px;
    right: 12px;

    background: #fff;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==================================================
   CARGANDO
   ================================================== */

.cargando {
    grid-column: 1 / -1;

    text-align: center;

    padding: 80px;

    color: #888;
}

.cargando i {
    font-size: 30px;
    display: block;
    margin-bottom: 10px;
}


/* ==================================================
   FOOTER
   ================================================== */

.footer {
    background: #222;
    color: white;

    padding: 50px 25px 20px;
}

.footer-contenido {
    max-width: 1200px;
    margin: auto;

    display: flex;
    justify-content: space-between;
}

.footer-logo {
    letter-spacing: 3px;
}

.footer p {
    color: #aaa;
}

.footer-redes {
    display: flex;
    gap: 15px;
}

.footer-redes a {
    color: white;

    font-size: 20px;

    text-decoration: none;
}

.footer-copy {
    max-width: 1200px;
    margin: 40px auto 0;

    padding-top: 20px;

    border-top: 1px solid #444;

    text-align: center;

    color: #888;

    font-size: 11px;
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 900px) {

    .menu {
        display: none;
    }

    .productos-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 48px;
    }

}


@media (max-width: 600px) {

    .header-contenido {
        min-height: 70px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-joyeria {
        font-size: 10px;
    }

    .acciones button {
        width: 30px;
    }

   .hero {
    min-height: 500px;
    align-items: flex-start;
    background-position: 60% center;
}

    .hero-contenido {
    padding: 28px 16px 40px;
}

.hero-texto {
    max-width: 100%;
    padding: 20px 16px;
    margin-top: 0;

    background: rgba(255, 250, 245, 0.10);
    border-radius: 2px;

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.hero-subtitulo,
.hero h1,
.hero p {
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.45);
}


    .btn-coleccion {
    padding: 12px 20px;
    font-size: 11px;
}

    .productos-seccion {
        padding: 60px 15px;
    }

    .seccion-titulo h2 {
        font-size: 32px;
    }

    .productos-grid {
        grid-template-columns: 1fr;
    }

    .filtros {
        flex-wrap: wrap;
    }

    .footer-contenido {
        flex-direction: column;
        gap: 30px;
    }

}


/* ==================================================
   ENLACE DEL PRODUCTO
   ================================================== */

.producto-link {
    display: block;

    color: inherit;

    text-decoration: none;
}

.producto-link:hover {
    color: inherit;
    text-decoration: none;
}

.producto-link .producto-nombre {
    transition: color .3s ease;
}

.producto-link:hover .producto-nombre {
    color: #9b7653;
}

/* ==================================================
   BUSCADOR
   ================================================== */

.buscador-contenedor {
    display: none;

    width: 100%;

    background: #fff;

    border-bottom: 1px solid #eee;

    padding: 18px 25px;
}

.buscador {
    max-width: 700px;

    margin: auto;

    height: 48px;

    display: flex;

    align-items: center;

    gap: 12px;

    border-bottom: 1px solid #222;
}

.buscador > i {
    font-size: 18px;
}

.buscador input {
    flex: 1;

    height: 100%;

    border: 0;

    outline: none;

    font-size: 14px;

    background: transparent;
}

.buscador input::placeholder {
    color: #999;
}

.buscador button {
    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 15px;

    color: #777;
}

.buscador button:hover {
    color: #222;
}

/* ==================================================
   TARJETAS DEL CATÁLOGO
   ================================================== */

.producto-card {
    position: relative;
}

.producto-link {
    display: block;

    color: inherit;
    text-decoration: none;
}

.producto-link:hover {
    color: inherit;
    text-decoration: none;
}


/* ==================================================
   FAVORITO
   ================================================== */

.producto-favorito {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .95);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;

    z-index: 2;

    transition: all .25s ease;
}

.producto-favorito:hover {
    background: #222;
    color: #fff;
}


/* ==================================================
   NOMBRE
   ================================================== */

.producto-nombre {
    transition: color .25s ease;
}

.producto-card:hover .producto-nombre {
    color: #9b7653;
}


/* ==================================================
   VER PRODUCTO
   ================================================== */

.producto-ver {
    margin-top: 16px;

    padding-top: 14px;

    border-top: 1px solid #eee;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 10px;

    letter-spacing: 2px;

    color: #333;

    transition: color .25s ease;
}

.producto-ver i {
    font-size: 14px;

    transition: transform .25s ease;
}

.producto-card:hover .producto-ver {
    color: #9b7653;
}

.producto-card:hover .producto-ver i {
    transform: translateX(5px);
}

.btn-carrito {
    position: relative;
}

.contador-carrito {
    position: absolute;

    top: 0;
    right: 0;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    border-radius: 50%;

    background: #222;

    color: #fff;

    font-size: 9px;

    line-height: 17px;

    text-align: center;

    display: none;
}

#mensajeCarrito {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 9999;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 14px 20px;

    background: #222;

    color: #fff;

    font-size: 13px;

    opacity: 0;

    transform: translateY(20px);

    pointer-events: none;

    transition: all .3s ease;
}

#mensajeCarrito.mostrar {
    opacity: 1;

    transform: translateY(0);
}
/* ==================================================
   FAVORITOS - ENCABEZADO
   ================================================== */

.btn-favoritos {
    position: relative;
}

.contador-favoritos {
    position: absolute;

    top: -2px;
    right: -2px;

    min-width: 18px;
    height: 18px;

    padding: 0 4px;

    border-radius: 50%;

    background: #222;
    color: #fff;

    font-size: 10px;
    line-height: 18px;

    text-align: center;

    display: block;
}