* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    padding: 20px 5%;
    border-bottom: 1px solid #eee;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 100px;
}

.logo a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Menú */
.menu-central {
    display: flex;
    gap: 15px;
    list-style: none;
}

.menu-central a {
    text-decoration: none;
    color: black;
    padding: 8px 20px;
    border: 2px solid black;
    border-radius: 30px;
    transition: 0.3s;
}

.menu-central a:hover {
    background: black;
    color: white;
}
.menu-central a.active {
    background: black;
    color: white;
}

/* Iconos */
.iconos-derecha {
    display: flex;
    gap: 20px;
    list-style: none;
}

.icono-nav {
    width: 24px;
    transition: 0.2s;
}

.icono-nav:hover {
    transform: scale(1.1);
}

/* ===== MAIN ===== */
.coleccion-hombre {
    padding: 40px 5%;
}

.coleccion-hombre h1 {
    margin-bottom: 20px;
}

/* Filtros */
.filtros img {
    width: 30px;
}

/* BOTÓN ACTIVO */
#toggle-filtros:checked + .filtros {
    background: black;
    color: white;
}

/* Cambiar icono a blanco */
#toggle-filtros:checked + .filtros img {
    filter: invert(1);
}

/* PANEL OCULTO */
/* Contenedor (IMPORTANTE para posicionar) */
.filtros {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    border: 1px solid black;
    padding: 8px 15px;
    cursor: pointer;

    position: relative;
}

/* DROPDOWN OCULTO */
.dropdown-filtros {
    width: 250px;
    background: white;

    padding: 15px;
    border-radius: 8px;

    display: none;
    margin-top: 10px;
}

/* CUANDO SE ACTIVA */
#toggle-filtros:checked + .filtros + .dropdown-filtros {
    display: block;
}

/* ESTILOS INTERNOS */
.dropdown-filtros label {
    display: block;
    margin: 8px 0;
}

.dropdown-filtros label:hover {
    color: #888; /* gris */
}

.btn-aplicar {
    display: block;
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    background: black;
    color: white;
    text-align: center;
    cursor: pointer;
}


/* GRID */
.grid-cards {
   display: grid;
     grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 25px 0px;
}

/* CARD */
.card {
    background: white;
    border-radius: 8px;
}

.img-container {
    position: relative;
    overflow: hidden;
    height:400px;
}


.img-container img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.img-container:hover > a > img {
    transform: scale(1.1); /* zoom */
}

.img-container a {
    display: block;
    height: 100%;
}

/* Corazón */
.heart-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height:40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 2;
}

.heart-btn .heart-icon {
    width: 22px;
    height: 22px;
    display: block;
}

/* Estado like (después de hacer clic) */
.heart-btn.liked {
    background-color: black;
}

.heart-btn.liked .heart-icon {
    content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff4d4d"%3E%3Cpath d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"%3E%3C/path%3E%3C/svg%3E');
    /* Ese es un corazón rojo SVG */
}

.heart-btn:hover {
    transform: scale(1.1);
}

/* Texto */
.name {
    margin-top: 10px;
    font-weight: 500;
}

.price {
    color: #666;
}

/* ===== FOOTER ===== */
footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #999;
    text-decoration: none;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* Enfoque con teclado */
a:focus,
button:focus,
label:focus {
    outline: 2px solid black;
    outline-offset: 3px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
    }

    .grid-cards {
        grid-template-columns: 1fr;
    }
}
