@font-face {
    font-family: "Cocogoose";
    src: url("../fonts/cocogoosev2.ttf");
}

/* PALETA */
:root {
    --color-oro: #A68568;
    --color-crema: #F2E0D0;
    --color-humo: #464B59;
    --color-negro: #1E2126;
}

body {
    margin: 0;
    color: white;
    font-family: "Cocogoose";
}



/* =============================
   CONTENEDOR GENERAL
============================= */
.productos-container {
    padding-top: var(--navbar-height);
    padding-bottom: 80px;
}



/* =============================
   HEADER
============================= */
.productos-header {
    text-align: center;
    padding: 70px 20px 40px;
}

.productos-header h1 {
    font-size: 50px;
    margin-bottom: 10px;
    color: var(--color-negro);
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.productos-header p {
    font-size: 20px;
    color: var(--color-humo);
}



/* =============================
   CATEGORÍAS
============================= */
.categoria-titulo {
    font-size: 36px;
    color: var(--color-negro);
    margin: 40px 0 20px;
    padding-left: 20px;
}

.categoria-titulo span {
    color: var(--color-oro);
    font-size: 28px;
}



/* =============================
   GRID
============================= */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
    padding: 0 20px;
}



/* =============================
   TARJETAS
============================= */
.producto-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(0,0,0,0.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}



/* =============================
   IMAGEN
============================= */
.producto-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: filter .35s ease, transform .35s ease;
}

.producto-card:hover .producto-img {
    filter: blur(3px) brightness(.55);
    transform: scale(1.05);
}



/* =============================
   OVERLAY (hover) – versión optimizada
============================= */
.producto-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 210px;

    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.15) 30%,
        transparent
    );

    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.producto-card:hover .producto-info {
    opacity: 1;
}

.producto-info h3 {
    margin: 0 0 6px 0;
    color: var(--color-crema);
    font-size: 22px;
    line-height: 1.15;
}

.producto-info p {
    margin: 0;
    color: white;
    font-size: 15px;
    line-height: 1.25;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* =============================
   PRECIO
============================= */
.precio {
    display: block;
    position: absolute;
    bottom: 12px;
    right: 15px;

    font-size: 22px;
    color: var(--color-oro);
    text-shadow: 0px 2px 6px rgba(0,0,0,0.4);
}



/* =============================
   TARJETA EN HIGHLIGHT (breathing)
============================= */
@keyframes breathing {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(255,255,255,0); }
    50% { transform: scale(1.06); box-shadow: 0 0 25px rgba(255,255,255,0.5); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(255,255,255,0); }
}

.highlight-product {
    animation: breathing 1.8s ease-in-out 2;
    z-index: 5;
    position: relative;
}



/* =============================
   ANIMACIONES DE ENTRADA
============================= */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}



/* =============================
   RESPONSIVE
============================= */
@media (max-width: 600px){

    .producto-header h1 {
        font-size: 36px;
    }

    .producto-img {
        height: 180px;
    }

    .producto-info {
        height: 180px;
        padding: 12px;
    }

    .producto-info h3 {
        font-size: 18px;
    }

    .producto-info p {
        font-size: 14px;
        max-height: 50px;
    }

    .precio {
        font-size: 20px;
        bottom: 10px;
        right: 12px;
    }
}
