body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding-top: 100px;
}

h1 {
    text-align: center;
    color: #333;
}

.catalogo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    /* o el ancho que tú prefieras */
    margin: 0 auto;
    min-height: 500px;
    /* altura mínima para evitar que se encoja demasiado */
    padding: 20px 20px;
}

.producto {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s ease;
    width: 30%;
    min-width: 250px;
    max-width: 300px;
    flex: 1 1 30%;
}

.producto:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.carousel-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-images {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: transform 0.3s ease;
}

.carousel-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 0 0 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 40px;
    /* Más chico */
    padding: 6px 10px;
    /* Menos padding */
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background-color: #FEDB00;
    color: #000;
}

.carousel-btn.prev {
    left: 5px;
}

.carousel-btn.next {
    right: 5px;
}

.producto h3 {
    margin: 10px 0 5px;
    color: #222;
}

.producto p {
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.precio {
    color: #e91e63;
    font-weight: bold;
    margin-top: 10px;
}

.boton-comprar {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.boton-comprar:hover {
    background-color: #218838;
}


/*menu*/

.main-header {
    background-color: #222;
    padding: 10px 20px;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-right: 20px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    text-decoration: underline;
}

.main-footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.carousel-dots {
    text-align: center;
    margin-top: 8px;
}

.carousel-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: yellow;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dots span.active {
    background-color: white;
}


/* Reset básico */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.5rem;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #007BFF;
}

.contenido {
    padding-top: 80px;
    /* espacio para que no se esconda bajo el header fijo */
    max-width: 800px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

section {
    margin-bottom: 3rem;
}


/* Tablets: 2 productos por fila */

@media (max-width: 900px) {
    .producto {
        width: 45%;
    }
}


/* Celulares normales: 1 producto por fila */

@media (max-width: 600px) {
    .producto {
        width: 90%;
    }
}


/* Celulares pequeños (muy angostos): ajuste total */

@media (max-width: 400px) {
    .producto {
        width: 100%;
        padding: 10px;
    }
}

.ver-mas-container {
    text-align: center;
    margin: 40px 0 20px;
}

.boton-ver-mas {
    background-color: #007BFF;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}

.boton-ver-mas:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}