/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Encabezado */
h1 {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Links principales */
p a {
    color: #007BFF;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

p a:hover {
    text-decoration: underline;
}

/* Contenedor de productos */
.productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Tarjeta de producto */
.producto {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.producto h3 {
    color: #333;
    margin: 15px 0 10px;
    font-size: 1.4em;
}

.producto p {
    padding: 0 15px;
    margin-bottom: 10px;
    color: #666;
}

.producto strong {
    color: #4CAF50;
    font-size: 1.2em;
}

/* Botón agregar al carrito */
.producto a {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    margin: 15px 0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.producto a:hover {
    background: #45a049;
}

.producto em {
    color: #999;
    font-style: italic;
    margin-bottom: 10px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 2em;
    }
}

