﻿* {
    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;

    position: relative;

    z-index: 20;
}

.header-contenido {
    max-width: 1200px;

    min-height: 90px;

    margin: auto;

    padding: 0 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* LOGO */

/*.logo {
    display: flex;

    align-items: baseline;

    gap: 5px;

    color: #222;

    text-decoration: none;

    font-size: 20px;

    font-weight: 600;

    letter-spacing: 3px;
}

.logo:hover {
    color: #222;
}

.logo-joyeria {
    font-size: 13px;

    font-weight: 400;

    letter-spacing: 2px;
}*/


.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;

    transition: color .25s ease;
}

.menu a:hover {
    color: #9b7653;
}


/* ACCIONES */

.acciones {
    display: flex;

    gap: 5px;
}

.acciones button {
    width: 38px;

    height: 38px;

    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 18px;

    color: #333;
}

.acciones button:hover {
    color: #9b7653;
}


/* ==================================================
   BUSCADOR
   ================================================== */

.buscador-contenedor {
    display: none;

    width: 100%;

    background: #fff;

    border-bottom: 1px solid #eee;

    padding: 18px 25px;
}

.buscador {
    max-width: 700px;

    height: 48px;

    margin: auto;

    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;

    background: transparent;

    font-size: 14px;
}

.buscador button {
    border: 0;

    background: transparent;

    cursor: pointer;

    color: #777;
}


/* ==================================================
   HERO
   ================================================== */

.hero {
    position: relative;

    min-height: 680px;

    background: #f5f1ed;

    display: flex;

    align-items: center;

    overflow: hidden;
}

.hero-imagen {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;

    background: url('../Fotos/hero-joyeria.jpg') center center / cover no-repeat !important;
}

.hero-imagen::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            #f5f1ed 0%,
            rgba(245,241,237,0) 60%
        );
}

.hero-contenido {
    position: relative;

    z-index: 2;

    width: 1200px;

    max-width: 100%;

    margin: auto;

    padding: 70px 25px;
}

.hero-subtitulo {
    font-size: 11px;

    letter-spacing: 4px;

    color: #9b7653;

    margin-bottom: 25px;
}

.hero h1 {
    margin: 0;

    font-family: Georgia, serif;

    font-size: clamp(50px, 6vw, 82px);

    line-height: 1.05;

    font-weight: 400;
}

.hero p {
    max-width: 420px;

    margin: 30px 0;

    color: #666;

    font-size: 15px;

    line-height: 1.8;
}


/* ==================================================
   BOTONES
   ================================================== */

.btn-principal {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    padding: 16px 25px;

    background: #222;

    color: #fff;

    text-decoration: none;

    font-size: 11px;

    letter-spacing: 2px;

    transition: background .25s ease;
}

.btn-principal:hover {
    background: #9b7653;

    color: #fff;
}

.btn-secundario {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    padding: 15px 25px;

    border: 1px solid #222;

    color: #222;

    text-decoration: none;

    font-size: 11px;

    letter-spacing: 2px;
}

.btn-secundario:hover {
    background: #222;

    color: #fff;
}


/* ==================================================
   SECCIONES
   ================================================== */

.seccion {
    max-width: 1200px;

    margin: auto;

    padding: 100px 25px;
}

.titulo-seccion {
    text-align: center;

    margin-bottom: 55px;
}

.titulo-seccion > span {
    color: #9b7653;

    font-size: 10px;

    letter-spacing: 4px;
}

.titulo-seccion h2 {
    margin: 12px 0;

    font-family: Georgia, serif;

    font-size: 42px;

    font-weight: 400;
}

.titulo-seccion p {
    margin: 0;

    color: #888;

    font-size: 14px;
}


/* ==================================================
   CATEGORÍAS
   ================================================== */

.categorias-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.categoria-card {
    position: relative;

    height: 280px;

    overflow: hidden;

    background: #f5f1ed;

    text-decoration: none;

    color: #222;
}

.categoria-card:hover {
    color: #222;
}

.categoria-imagen {
    width: 100%;

    height: 100%;

    background-size: cover;

    background-position: center;

    transition: transform .5s ease;
}

.categoria-card:hover
.categoria-imagen {
    transform: scale(1.05);
}

.categoria-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;

    padding: 25px;

    background:
        linear-gradient(
            transparent 40%,
            rgba(0,0,0,.65)
        );
}

.categoria-nombre {
    color: #fff;

    font-family: Georgia, serif;

    font-size: 25px;
}


/* ==================================================
   PRODUCTOS
   ================================================== */

.productos-seccion {
    max-width: 1300px;
}

.productos-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;
}


/* TARJETA */

.producto-card {
    position: relative;

    min-width: 0;
}

.producto-link {
    display: block;

    color: inherit;

    text-decoration: none;
}

.producto-link:hover {
    color: inherit;

    text-decoration: none;
}


/* IMAGEN */

.producto-imagen {
    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #f7f7f7;
}

.producto-imagen img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}

.producto-card:hover
.producto-imagen img {
    transform: scale(1.04);
}


/* FAVORITO */

.producto-favorito {
    position: absolute;

    top: 12px;

    right: 12px;

    width: 38px;

    height: 38px;

    border-radius: 50%;

    background: rgba(255,255,255,.95);

    display: flex;

    align-items: center;

    justify-content: center;

    color: #333;

    z-index: 3;
}


/* NUEVO */

.badge-nuevo {
    position: absolute;

    top: 12px;

    left: 12px;

    padding: 7px 10px;

    background: #222;

    color: #fff;

    font-size: 9px;

    letter-spacing: 2px;

    z-index: 3;
}


/* DESTACADO */

.badge-destacado {
    position: absolute;

    bottom: 12px;

    left: 12px;

    color: #9b7653;

    font-size: 17px;

    z-index: 3;
}


/* INFO */

.producto-info {
    padding: 18px 2px;
}

.producto-categoria {
    color: #9b7653;

    font-size: 9px;

    letter-spacing: 2px;

    text-transform: uppercase;

    margin-bottom: 8px;
}

.producto-nombre {
    color: #222;

    font-family: Georgia, serif;

    font-size: 18px;
}

.producto-precio {
    margin-top: 10px;

    font-size: 15px;
}

.producto-stock {
    margin-top: 8px;

    color: #777;

    font-size: 11px;
}

.producto-ver {
    margin-top: 15px;

    padding-top: 12px;

    border-top: 1px solid #eee;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #333;

    font-size: 9px;

    letter-spacing: 2px;
}

.producto-ver i {
    transition: transform .25s ease;
}

.producto-card:hover
.producto-ver i {
    transform: translateX(5px);
}


/* ==================================================
   HISTORIA
   ================================================== */

.historia {
    background: #f5f1ed;

    padding: 100px 25px;
}

.historia-contenido {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 80px;
}

.historia-texto > span {
    color: #9b7653;

    font-size: 10px;

    letter-spacing: 4px;
}

.historia-texto h2 {
    margin: 18px 0 25px;

    font-family: Georgia, serif;

    font-size: 48px;

    font-weight: 400;

    line-height: 1.15;
}

.historia-texto p {
    max-width: 500px;

    color: #666;

    font-size: 14px;

    line-height: 1.9;

    margin-bottom: 30px;
}

.historia-decoracion {
    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 400px;
}

.circulo {
    width: 300px;

    height: 300px;

    border: 1px solid #cbb9a7;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #9b7653;

    font-size: 80px;
}


/* ==================================================
   BOTÓN SECCIÓN
   ================================================== */

.seccion-boton {
    margin-top: 50px;

    text-align: center;
}


/* ==================================================
   CONTACTO
   ================================================== */

.contacto {
    padding: 110px 25px;

    text-align: center;

    background: #222;

    color: #fff;
}

.contacto-contenido {
    max-width: 700px;

    margin: auto;
}

.contacto span {
    color: #c7a984;

    font-size: 10px;

    letter-spacing: 4px;
}

.contacto h2 {
    margin: 15px 0;

    font-family: Georgia, serif;

    font-size: 45px;

    font-weight: 400;
}

.contacto p {
    color: #aaa;

    margin-bottom: 30px;
}

.btn-whatsapp {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 16px 25px;

    background: #fff;

    color: #222;

    text-decoration: none;

    font-size: 10px;

    letter-spacing: 2px;
}

.btn-whatsapp:hover {
    background: #9b7653;

    color: #fff;
}


/* ==================================================
   FOOTER
   ================================================== */

.footer {
    background: #181818;

    color: #fff;

    padding: 60px 25px 20px;
}

.footer-contenido {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 60px;
}

.footer-logo {
    letter-spacing: 3px;

    font-size: 14px;
}

.footer p {
    color: #888;

    font-size: 13px;
}

.footer-columna h4 {
    margin-top: 0;

    font-size: 11px;

    letter-spacing: 2px;
}

.footer-columna a {
    display: block;

    margin-bottom: 10px;

    color: #888;

    text-decoration: none;

    font-size: 12px;
}

.footer-columna a:hover {
    color: #fff;
}

.footer-redes {
    display: flex;

    gap: 18px;
}

.footer-redes a {
    font-size: 20px;
}

.footer-copy {
    max-width: 1200px;

    margin: 50px auto 0;

    padding-top: 20px;

    border-top: 1px solid #333;

    text-align: center;

    color: #666;

    font-size: 10px;
}


/* ==================================================
   CARGANDO
   ================================================== */

.cargando {
    min-height: 180px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    color: #999;
}

.cargando i {
    font-size: 28px;
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 900px) {

    .menu {
        display: none;
    }

    .hero {
        min-height: 600px;
    }

    .hero-imagen {
        width: 100%;

        opacity: .45;
    }

    .hero-imagen::after {
        background:
            rgba(245,241,237,.35);
    }

    .hero-contenido {
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .categorias-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .productos-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .historia-contenido {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .historia-texto p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-contenido {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 600px) {

    .header-contenido {
        min-height: 70px;

        padding: 0 15px;
    }

    .logo {
        font-size: 15px;

        letter-spacing: 2px;
    }

    .logo-joyeria {
        font-size: 9px;
    }

    .hero {
        min-height: 570px;
    }

    .hero-contenido {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .seccion {
        padding: 70px 15px;
    }

    .titulo-seccion h2 {
        font-size: 34px;
    }

    .categorias-grid {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .categoria-card {
        height: 200px;
    }

    .categoria-nombre {
        font-size: 20px;
    }

    .productos-grid {
        grid-template-columns: 1fr 1fr;

        gap: 15px;
    }

    .producto-nombre {
        font-size: 15px;
    }

    .historia {
        padding: 70px 20px;
    }

    .historia-texto h2 {
        font-size: 37px;
    }

    .circulo {
        width: 230px;

        height: 230px;

        font-size: 60px;
    }

    .contacto {
        padding: 80px 20px;
    }

    .contacto h2 {
        font-size: 36px;
    }

    .footer-contenido {
        grid-template-columns: 1fr;
    }

}

.btn-carrito {
    position: relative;
}

.contador-carrito {
    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;
}

/* ==================================================
   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;
}