        :root { --primary: #333; --bg: #f4f4f9; }
        body { font-family: 'Segoe UI', sans-serif; background-color: var(--bg); margin: 0; padding: 0; }
        
        /* Cabecera y Buscador con bot贸n X */
        .header-sticky {
            position: sticky; top: 0; background-color: rgba(71, 84, 255, 0.8);
            backdrop-filter: blur(5px); padding: 20px; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .search-wrapper { position: relative; max-width: 1100px; margin: auto; }
        .search-box { 
            width: 100%; padding: 15px 45px 15px 20px; border: 1px solid #ccc; 
            border-radius: 25px; font-size: 16px; outline: none; box-sizing: border-box; 
        }
        .clear-btn {
            position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
            background: #ddd; border: none; border-radius: 50%; width: 25px; height: 25px;
            cursor: pointer; display: none; align-items: center; justify-content: center;
            font-weight: bold; color: #666; font-size: 14px;
        }

        .container { max-width: 1100px; margin: auto; padding: 0 20px 40px 20px; }
        .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; margin-top: 20px; }

        .card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); cursor: pointer; position:relative;}
        .price-tag{
            position:absolute;
            top:8px;
            right:8px;
            background:#ff7a00; /* naranja */
            color:white;
            padding:4px 8px;
            font-size:1.3em;
            font-weight:bold;
            border-radius:6px;
            box-shadow:0 2px 6px rgba(0,0,0,0.2);
            z-index:2;
        }
        .card.hidden { display: none; }

        .img-container { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #eee; }
        .img-container img { width: 100%; height: 100%; object-fit: cover; }
        .img-container img:not(:first-child) { display: none; }

        .card-content { padding: 7px; text-align: center; }
        
            /* =========================
                TEXTOS PARA COMPUTADORA
            ========================= */

            .card-title {
                font-weight: bold;
                margin: 0;
                font-size: 0.9em; /* Tamaño del titulo en computadora */
                color: var(--primary);
            }
            
            .card-desc {
                font-size: 0.8em; /* Tamaño de la descripción en computadora */
                color: #777;
                margin-top: 2px;
                height: 40px;
                overflow-y: auto;
                text-align: left;
            }
            
            
            
        /* Modal y Contador */
        .modal {
            display: none; position: fixed; z-index: 1000; top: 0; left: 0; 
            width: 100%; height: 100%; background: rgba(0,0,0,0.9);
            justify-content: center; align-items: center; flex-direction: column;
        }
        .modal.active { display: flex; }
        .modal img { max-width: 90%; max-height: 80vh; border-radius: 4px; object-fit: contain; transition: opacity 0.2s; }

        .photo-counter { 
            color: white; margin-bottom: 15px; font-size: 1.1em; 
            background: rgba(0,0,0,0.5); padding: 5px 15px; border-radius: 20px;
            display: none;
        }

        .nav-btn {
            position: absolute; top: 50%; transform: translateY(-50%);
            background: rgba(255,255,255,0.1); color: white; border: none;
            padding: 20px 15px; cursor: pointer; font-size: 30px; display: none;
        }
        .nav-btn.visible { display: block; }
        .prev-btn { left: 10px; }
        .next-btn { right: 10px; }
        .close-btn { position: absolute; top: 10px; right: 20px; font-size: 40px; color: white; cursor: pointer; }
        
        
        /* =========================
   TAMAÑOS PARA COMPUTADORA
   ========================= */

@media (min-width: 769px){

    .card-title{
        font-size: 0.7em; /* Tamaño titulo en PC */
    }

    .card-desc{
        font-size: 0.6em; /* Tamaño descripción en PC */
    }

}


/* =========================
   TAMAÑOS PARA MOVIL
   ========================= */

@media (max-width: 768px){

    .card-title{
        font-size: 1.2em; /* Tamaño titulo en celular */
    }

    .card-desc{
        font-size: 1.2em; /* Tamaño descripción en celular */
    }
    .card-desc {
                height: 70px;
            }

}