   
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    background: #f8f8f8;
    color: #333;
}

.header {
    background: white;
    padding: 12px 20px; /* Más compacto */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: static; /* Cabecera estática: no se queda fija al hacer scroll */
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    height: auto; /* Altura automática para mejor adaptación */
    padding: 6px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem; /* Tamaño más contenido */
    font-weight: 700;
    letter-spacing: 1px;
    color: #1a1a1a;
    flex-shrink: 0; /* Evita que el logo se encoja */
}

.logo-img {
    height: 50px; /* Ajusta el tamaño del logo según sea necesario */
    margin-right: 10px;
    display: inline-block; /* Asegura que la imagen se muestre */
}

.search-bar {
    flex: 1 1 auto; /* Permite que la barra de búsqueda crezca y se encoja */
    min-width: 160px; /* Mínimo ancho para la barra de búsqueda */
    max-width: 520px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    border: 1px solid #eee;
    border-radius: 28px;
    font-size: 0.95rem;
    transition: all 0.18s ease;
    background: #fafafa;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.search-bar input:focus {
    outline: none;
    border-color: #d4a5a5;
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #d4a5a5;
    font-size: 1.05rem;
    pointer-events: none;
}

.header-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    font-size: 1.15rem;
    color: #1a1a1a;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
}

.icon-btn:hover {
    color: #d4a5a5;
    transform: translateY(-2px);
}

.icon-count {
    background-color: #d4a5a5;
    color: white;
    font-size: 0.7em;
    border-radius: 50%;
    padding: 2px 6px;
    position: relative;
    bottom: 8px;
    right: 5px;
    left: -5px;
}

.edit-note {
    background: #fff3f3;
    border-left: 4px solid #d4a5a5;
    padding: 20px;
    margin: 20px auto;
    max-width: 1400px;
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
}

.section-title {
    text-align: center;
    margin: 40px 0 18px; /* Reducido el espacio superior para subir la sección */
}

.section-subtitle {
    color: #d4a5a5;
    font-size: 0.9em;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-main-title {
    font-size: 2.5em;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 1px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: #d4a5a5;
    margin: 15px auto 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 80px; /* Reducido el padding-top para subir el contenedor */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #1a1a1a;
    color: white;
    padding: 8px 16px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
    text-transform: uppercase;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.favorite-btn:hover {
    background: #d4a5a5;
    color: white;
    transform: scale(1.1);
}

.product-image-container {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 30px;
    position: relative;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-icon {
    font-size: 5em;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.product-info {
    padding: 25px;
}

.product-brand {
    font-size: 0.85em;
    color: #888;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.3em;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.product-description {
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-notes {
    font-size: 0.8em;
    color: #999;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price-container {
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.8em;
    color: #d4a5a5;
    font-weight: 700;
}

.product-price-old {
    font-size: 1em;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: scale(1.02);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Added for responsiveness */
    gap: 30px;
    max-width: 1200px; /* Limit footer width */
    margin: 0 auto 30px auto; /* Center and add bottom margin */
    text-align: left; /* Align text left within sections */
}

.footer-section {
    flex: 1; /* Allow sections to grow */
    min-width: 200px; /* Minimum width for sections */
    margin: 0 15px; /* Spacing between sections */
}

.footer-section h3 {
    color: #d4a5a5;
    font-size: 1.4em; /* Slightly larger title */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(212, 165, 165, 0.3); /* Subtle underline */
    padding-bottom: 10px;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.footer-section .contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section .contact-info i {
    color: #d4a5a5;
    font-size: 1.1em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95em;
}

.footer-section ul li a:hover {
    color: #d4a5a5;
}

.footer-section .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-section .social-links a {
    color: #fff; /* White icons */
    font-size: 1.6em; /* Slightly larger icons */
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 8px; /* Padding around icons */
    border: 1px solid #444; /* Subtle border */
    border-radius: 50%; /* Make them round */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none; /* Add this line to remove underline */
}

.footer-section .social-links a:hover {
    color: #d4a5a5;
    border-color: #d4a5a5; /* Highlight border on hover */
    transform: translateY(-3px); /* Slight lift effect */
}

.footer-bottom {
    border-top: 1px solid #333; /* Darker border */
    padding-top: 25px;
    margin-top: 30px;
    font-size: 0.9em;
    color: #999;
    text-align: center;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .header {
        padding: 10px 16px; /* Reduced padding for smaller screens */
    }

    .header-content {
        flex-wrap: nowrap;
        flex-direction: row; /* Mantener en fila: logo - buscador - iconos */
        padding: 6px 4px;
        height: auto;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 1rem; /* Ajuste para móviles */
        letter-spacing: 0.5px;
        width: auto;
        text-align: left;
        margin-bottom: 0;
    }
    
    .search-bar {
        order: 2; /* Stay between logo and icons on small screens */
        max-width: 60%; /* Ajustado para caber en una fila */
        flex-basis: auto;
        margin: 0 8px;
    }

    .header-icons {
        order: 3; /* Move icons to the last place */
        width: auto;
        justify-content: flex-end;
        margin: 0;
        gap: 10px; /* Slightly reduce gap between icons */
    }

    .section-main-title {
        font-size: 1.8em;
    }

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

    .footer-content {
        flex-direction: column;
        align-items: center; /* Center items in column layout */
        text-align: center;
    }

    .footer-section {
        margin-bottom: 30px;
        max-width: 90%; /* Max width for sections on small screens */
    }

    .footer-section h3 {
        margin-bottom: 15px;
        border-bottom: none; /* Remove underline on small screens */
        padding-bottom: 0;
    }

    .footer-section .social-links {
        justify-content: center;
    }
}

