/* ===== RESET Y FUENTE ===== */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background: #f4f4f4;
    color: #333;
}

/* ===== HEADER ===== */
.topbar {
    background: #1e1e1e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

.logo img {
    height: 40px;
}

.search {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 25px;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.actions a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* ===== GRID PRODUCTOS ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.card h2 {
    font-size: 1rem;
    margin: 10px 0;
}

.card p {
    font-size: 0.85rem;
    color: #555;
}

.card strong {
    font-size: 1.1rem;
    color: #ff6600;
}

button {
    background: #ff6600;
    color: white;
    border: none;
    padding: 10px 14px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #e55b00;
}

/* ===== FOOTER ===== */
footer {
    background: #1e1e1e;
    color: white;
    padding: 20px;
    margin-top: 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.footer-section h4 {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    font-size: 0.85rem;
    color: #ccc;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    font-size: 0.8rem;
    color: #aaa;
}

/* ===== MODAL ===== */
.modal {
    display: none; /* Cambiado de 'flex' a 'none' para que no sea visible al inicio */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    padding: 12px 20px;
    margin: 15px 0;
    border-radius: 5px;
    font-weight: 600;
    color: white;
    transition: background-color 0.2s ease;
}

.contact-button .icon {
    width: 24px;
    height: 24px;
}

.contact-button.whatsapp {
    background-color: #25D366;
}

.contact-button.whatsapp:hover {
    background-color: #128C7E;
}

.contact-button.phone {
    background-color: #3B5998;
}

.contact-button.phone:hover {
    background-color: #2D4373;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: center;
    }
    .search {
        margin: 10px 0;
        max-width: 100%;
    }
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}