/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Cuerpo */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #000000;
    color: #fafafa;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.logo {
    font-size: 24px;
    letter-spacing: 2px;
}

/* Botón Hamburguesa */
.menu-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.menu-btn span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.4s ease;
}

/* Transformar en X */
.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    flex-direction: column;
    z-index: 999;
}

.sidebar.show {
    right: 0;
}

/* Navegacion Links */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s forwards;
}

.nav-links a {
    font-family: 'Dancing Script', cursive;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
    color: #ff9800;
    transform: scale(1.1);
}

/* Productos */
.container {
    padding: 2rem;
    color: white;
    text-align: center; 
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid #ffffff;
    border-radius: 5px;
}
.contact-form h2 {
    margin-bottom: 1rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 3px;
}
.contact-form button {
    background-color: #333;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.contact-form button:hover {
    background-color: #555;
}
.social-links {
    text-align: center;
    margin-top: 2rem;
}
.social-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
}
.social-links a:hover {
    color: #555;
}
.products {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem; /* Espacio entre productos */
    color: white;
}
.product {
    background-color: #000000;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: calc(33.333% - 2rem); /* Ajusta el ancho para tres productos por fila */
    margin-bottom: 2rem;
}
.product img {
    max-width: 100%;
    border-bottom: 1px solid #ddd;
    display: block;
}
.product h2 {
    margin: 1rem;
    font-size: 1.2rem;
}
.product p {
    margin: 0.5rem 1rem;
}
.product .price {
    color: #e60000;
    font-weight: bold;
}
.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.product .details {
    display: none;
    margin: 1rem;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}
.product .details.show {
    display: block;
}



/* Animacion de los links */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main */
main {
    padding-top: 80px;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .logo {
        font-size: 20px;
    }
    .nav-links a {
        font-size: 18px;
    }

    .products {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .product {
        width: 90%; /* cada producto ocupa casi toda la pantalla */
    }

    .product img {
        height: auto;
    }

    .product h2 {
        font-size: 20px;
        margin: 0.5rem;
    }

    .product p {
        font-size: 16px;
    }
}



.product button {
  background-color: #e63946; /* rojo fuerte */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.3s;
  width: 100%;
}

.product button:hover {
  background-color: #c82333;
  transform: scale(1.03);
}
