* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: white;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
header {
    padding: 20px 5%;
    border-bottom: 1px solid #f0f0f0;
}

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

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

.logo-img {
    height: 70px; 
    width: auto;
}

.logo a {
    text-decoration: none;
    color: #000;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo a:focus {
    outline: 2px solid #ff4d4d;
    outline-offset: 2px;
}

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

.menu-central li a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    padding: 10px 25px;
    border: 2px solid black;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s ease;
}

.menu-central li a:hover,
.menu-central li a:focus {
    background-color: black;
    color: white;
    outline: 2px solid #ff4d4d;
    outline-offset: 2px;
}

.iconos-derecha {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

.iconos-derecha li a {
    text-decoration: none;
    color: black;
    font-size: 1.3rem;
    transition: transform 0.2s;
    position: relative;
    display: inline-block;
}

.iconos-derecha li a:hover,
.iconos-derecha li a:focus {
    transform: scale(1.1);
    outline: 2px solid #ff4d4d;
    outline-offset: 4px;
}

.icono-nav {
    width: 24px;
    height: 24px;
    display: block;
    pointer-events: none;
}

/* Badge */
.icono-con-badge {
    position: relative;
}

.badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #ff4d4d;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    pointer-events: none;
}

/* ===== SECCIÓN CON FAVORITOS ===== */
.favoritos-contenido {
    flex: 1;
    padding: 60px 5%;
    text-align: center;
}

.favoritos-contenido h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.favoritos-subtitulo {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.grid-favoritos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.favorito-card {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.favorito-card:hover {
    transform: translateY(-5px);
}

.favorito-img {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.heart-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: black;
    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-red {
    font-size: 1.3rem;
    color: #ff4d4d;
}

.heart-btn:hover,
.heart-btn:focus {
    transform: scale(1.1);
    outline: 2px solid #ff4d4d;
    outline-offset: 2px;
    background-color: #333;
}

.favorito-info {
    padding: 15px;
    text-align: left;
}

.favorito-info h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.favorito-info .precio {
    font-weight: bold;
    color: #333;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 15px;
}

.btn-remover {
    background-color: transparent;
    color: #999;
    border: 1px solid #ddd;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    width: 100%;
    border-radius: 30px;
}

.btn-remover:hover,
.btn-remover:focus {
    background-color: #ff4d4d;
    color: white;
    border-color: #ff4d4d;
    outline: 2px solid #ff4d4d;
    outline-offset: 2px;
}

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

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

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-col li {
    margin-bottom: 10px;
}

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

.footer-col a:hover,
.footer-col a:focus {
    color: white;
    outline: 2px solid #ff4d4d;
    outline-offset: 2px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .menu-central {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .favoritos-contenido h1 {
        font-size: 2rem;
    }
    
    .grid-favoritos {
        grid-template-columns: 1fr;
    }
}
