/* CSS Document */


body {
    font-family: 'Poppins', sans-serif;
}


.hero{
    background: url(/images/slider_logo.webp), rgb(43 36 36 / 70%);
    background-size: cover; /* siempre llena toda la sección */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: multiply;
    width: 100%;
    height: 500px;
}






.Logo .Pinterest {
	position: absolute;
    top: 10px;
    left: 0px;
    width: 90px;
    height: 30px;
    opacity: 0;
 }
.Logo .File {
	position: absolute;
    top: 192px;
    right: 10px;
    width: auto;
    opacity: 0.9;
}
.Logo .Descargas {
	position: absolute;
    top: 192px;
    left: 10px;
    width: auto;
    opacity: 0;
}
.Logo:hover .Pinterest{
	opacity: 0.9;
}
.Logo:hover .Descargas{
	opacity: 0.9;
}

 /* Ajuste para móviles */
@media (max-width: 767px) {
    
    .Logo .File {
        top: 185px;
    }
    .Logo .Descargas {
        top: 185px;
    }
}   



/* EFECTOS PARA LA TARJETA DE LOGOS 
Mantener la tarjeta fija */
/* Mantener la tarjeta fija */
.logo-card {
    overflow: hidden;
    border-radius: 8px;
    height: 100%; /* Asegura que todas tengan la misma altura */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Contenedor de la imagen */
.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 200px; /* Tamaño fijo */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imagen con tamaño fijo y sin deformaciones */
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Corta la imagen para que encaje sin deformarse */
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
    border-radius: 8px;
}

/* Efectos al hacer hover */
.logo-card:hover .logo-img {
    transform: scale(1.1) translateY(-5px); /* Crece y se mueve ligeramente hacia arriba */
   
    filter: brightness(1.2); /* Aumenta el brillo un poco */
}


/* Títulos con altura fija */
.title-container {
    height: 50px; /* Altura fija para evitar que cambie el tamaño */
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-text {
    font-size: 14px;
    line-height: 1.2;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Asegura que las tarjetas mantengan su tamaño */
@media (max-width: 768px) {
    .title-container {
        height: auto; /* Permite crecer en pantallas pequeñas */
    }
}



.card-hover {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0px;
 
   }

.card-hover img {
    width: 100%;
    height: 200px; /* Altura fija para mantener estructura uniforme */
    object-fit: contain; /* Muestra la imagen completa sin recortes */
    display: block;
    border-radius: 10px;
    background-color: #fff; /* Fondo blanco para imágenes con transparencia */
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(100, 100, 100, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 0px;

}

.card-hover:hover::before {
    opacity: 0.3;
    background: linear-gradient(to bottom, #dcdcdc, transparent);
    cursor: pointer;
}

.card-hover .icon-group {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.card-hover:hover .icon-group {
    opacity: 1;
}

.card-hover .icon-group button {
    background: white;
    border: none;
    border-radius: 5px;
    padding: 6px 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    position: relative;
}

.card-hover .icon-group button:hover {
    background: #f0f0f0; /* un gris suave para diferenciar */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* sombra un poco más fuerte */
    cursor: pointer; /* cambia el cursor */
    transform: translateY(-2px); /* pequeño efecto de levantar */
    transition: all 0.2s ease;
}


.card-hover .icon-group .download-count::after {
    content: '<?php echo $registro_logos['log_descarga']; ?>';
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: red;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
}

.card-hover .file-formats-btn {
    position: absolute;
    opacity: 0.8;
    bottom: 0px; 
    right: 10px;
    z-index: 2;
    background-color: #ffffff;
    color: #000;
    border: none;
    padding: 1px 8px;
    font-size: 12px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    font-weight: 500;
}



/* finnnnnnnnnnnnnnnnnnnnnnnnn tarjeta logos */



/* --------------------SLIDER-------------------- */

/* Contenedor Últimas Descargas con superposición */
.ultimas-descargas-container {
    position: relative;
    z-index: 10;
    max-width: 1320px;
    background-color: rgb(31, 31, 31);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: -120px; /* superposición */
}

/* Top Label como título */
.top-label {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    width: 100%;
    border-radius: 10px 10px 0 0;
    font-size: 20px;
    text-align: center;
    margin-bottom: 15px;
}

/* Contenedor del slider */
.slider-wrapper {
    overflow: hidden;
    width: 100%;
}

/* Slider y animación infinita */
.ultimas-descargas-slider {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: slideLoop 20s linear infinite;
}

/* Pausar animación al pasar el cursor */
.ultimas-descargas-slider:hover {
    animation-play-state: paused;
}

/* Contenedor de cada descarga */
.descarga-item {
    flex: 0 0 250px;
    height: 180px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    position: relative;

    /* Centrar contenido */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Efecto gris por defecto */
    filter: brightness(96%);
    transition: filter 0.3s ease;
}

.descarga-item:hover {
    filter: brightness(100%);
}

/* El enlace ocupa todo el espacio para centrar la imagen */
.descarga-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Imagen perfectamente contenida al 90% sin sobresalir */
.descarga-item img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* siempre completa, mantiene proporciones */
    display: block;
    margin: auto; /* seguridad extra de centrado */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.descarga-item a:hover img {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.3);
}



/* Animación infinita */
@keyframes slideLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive para móviles */
@media (max-width: 767px) {
    .ultimas-descargas-container {
        flex-direction: column;
        align-items: center;
        margin-top: -60px;
    }

    .top-label {
        width: 100%;        
        border-radius: 10px 10px 0 0;
    }

    .descarga-item {
        flex: 0 0 180px;
        height: 120px;
    }
}
/* ----------------------FIN--------------------- */
/* --------------------SLIDER-------------------- */




/* -------------------- CATEGORIA CARD -------------------- */
   /* Hover limpio y moderno para bg-dark */
    .cat-card-hover {
      border-radius: 1.2rem;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
    }

    .cat-card-hover:hover {
      transform: translateY(-6px) scale(1.03);
      box-shadow: 0 0.8rem 1.5rem rgba(0,0,0,0.6);
    }

    .cat-card-hover img {
      transition: transform 0.3s ease;
    }

    .cat-card-hover:hover img {
      transform: scale(1.1); /* imagen aumenta ligeramente al hover */
    }

/* --------------------FIN CATEGORIA CARD -------------------- */


.logo-detalle-container {
    max-width: 100%;
    max-height: 560px;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-detalle-container img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    width: auto;
    object-fit: contain;
}







.related-logo-card {
    position: relative;
    width: 100%;
    height: 160px; /* Altura uniforme */
    background-color: #ffffff; /* Fondo siempre blanco */
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1); /* Sombra ligera */
}

.related-logo-card:hover {
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2); /* Sombra más fuerte al pasar el cursor */
    transform: scale(1.05);
}

.related-logo-img {
    max-width: 130px;
    max-height: 130px;
    width: auto;
    height: auto;
}

.related-logo-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.9); /* Fondo semitransparente */
    font-size: 14px;
    font-weight: bold;
    padding: 5px 0;
    box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.1);
}




.share-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.share-btn {
    width: 40px;
    height: 40px;
    background-color: white;
    color: gray;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 20px;
}

/* Cambios al pasar el mouse */
.share-btn:hover {
    color: white;
}

/* Colores de hover por red */
.share-btn.facebook:hover { background-color: #1877f2; }
.share-btn.twitter:hover { background-color: #000000; }
.share-btn.pinterest:hover { background-color: #e60023; }
.share-btn.whatsapp:hover { background-color: #25d366; }
.share-btn.telegram:hover { background-color: #0088cc; }
.share-btn.copy:hover { background-color: #6c757d; }


.fav-button {
    font-size: 0.95rem;
    padding: 6px 18px;
    border-radius: 40px;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dc3545; /* Borde rojo */
}

.fav-button i {
    font-size: 1.2rem;
    transition: transform 0.2s ease-in-out, color 0.3s ease-in-out;
}

/* Hover normal cuando NO es favorito */
.fav-button:hover {
    background-color: #dc3545;
    color: #fff;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.fav-button:hover i {
    transform: scale(1.1);
}

/* Estilos cuando el botón está en modo favorito (solo ícono rojo) */
.fav-button.favorited {
    background-color: transparent !important;
    border: none;
    padding: 6px;
}

/* Ícono rojo cuando es favorito */
.fav-button.favorited i {
    color: #dc3545;
}

/* Hover cuando es favorito: solo un ligero aumento de tamaño, sin fondo */
.fav-button.favorited:hover {
    background-color: transparent !important;
    box-shadow: none;
}

.fav-button.favorited:hover i {
    transform: scale(1.2);
}


/* En escritorio: mantener el ancho mínimo para buena presentación */
@media (min-width: 768px) {
  .custom-dropdown {
    min-width: 500px;
  }
}

/* En móviles: asegurar que no se desborde */
@media (max-width: 767.98px) {
  .custom-dropdown {
    max-width: 100vw;
    overflow-x: hidden;
  }
}










/* -------------------------BARRA BUSCAR--------------------------- */

.search-container {
    position: relative;        
    margin: auto;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    padding: 15px;
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-category {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-category button {
    border: none;
    background: #f1f1f1;
    border-radius: 20px;
    padding: 6px 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-category button.active {
    background: #0d6efd;
    color: white;
}

.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: black;
}

.recent-header .clear-history {
    font-size: 13px;
    color: #888;
    cursor: pointer;
}

.recent-searches .item {
    display: flex;
    color: black;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.recent-searches .item:hover {
    background: #f1f1f1;
}

.recent-searches .item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}

.recent-searches .item i {
    color: #0d6efd;
}

.recent-searches .remove-btn {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    margin-left: 10px;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d6efd;
    font-size: 18px;
}

.clear-input {
    position: absolute;
    right: 110px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
    cursor: pointer;
    display: none;
}

.input-with-icon {
    padding-left: 45px !important;
    padding-right: 90px !important;
}

#clearInputBtn:hover {
    background-color: #e9ecef;
}

#searchInput {
    border-radius: 50px;
    transition: border-radius 0.2s ease;
}

.search-active #searchInput {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.form-control:focus {
box-shadow: none !important;
border-color: #ced4da !important; /* o cualquier color que prefieras */
}
#clearInputBtn {
display: none;
line-height: 36px; /* para centrar vertical */
text-align: center; /* para centrar horizontal */
}


/* -------------------------FIN BARRA BUSCAR--------------------------- */