@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
	font-family: 'Roboto', sans-serif;
	line-height: 1.6;
	color: #f5f5f5;
	background-image: url(../img/background.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Cabecera */
header {
	background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
	padding: 1rem;
	border-bottom: 3px solid #444;
    flex-wrap: wrap;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Navegacion */
.busqueda {
    flex: 1;
    max-width: 300px;
    padding: 0.5rem;
    border-radius: 20px;
}

nav ul {
	list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li a {
    text-decoration: none;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #f5f5f5;
    background-color: #111;
    padding: 0.6rem 1.2rem;
    border: 2px solid #555;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #ffcc00;
    color: #111;
    border-color: #ffcc00;
    box-shadow: 0 0 12px #ffcc00;
}

/* Secciones */
main {
    flex: 1;
	padding: 2rem;
	text-align: center;
}

h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.8rem;
    color: #00ccff;
    text-align: center;
    background-color: #111;
    padding: 0.6rem 1.2rem;
    border: 2px solid #555;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.intro {
    font-size: 1.1rem;
    color: #f5f5f5;
    max-width: 800px;
    margin: 1rem auto 1.5rem auto;
    text-align: center;
    padding: 0.5rem;
    background: black;
    border-radius: 10px;
}

.banner {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* Productos */
.productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.card {
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #444;
    padding: 10px;
    width: 220px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  	transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(0,0,0,0.6);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.card h3 {
    font-size: 1.2rem;
    margin: 0.5rem;
    color: #ffcc00;
}

.card p {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #7fff00;
}

.card button {
    background: #0066ff;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

.card button:hover {
    background: #003399;
}

/* Formulario de contacto */
.titulo-contacto {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: #f5f5f5;
    margin-left: 1rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 540px;
    margin: 0.5rem auto;
    text-align: left;
}

form label {
    font-weight: bold;
    margin-top: 0.5rem;
}

input, textarea, button {
    padding: 0.6rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
}

input, textarea {
    background: #2a2a2a;
    color: white;
}

form button {
    background: #ff0044;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #cc0033;
}

/* Footer */
footer {
    background: #000;
    color: #bbb;
    text-align: center;
    padding: 1rem;
    border-top: 3px solid #444;
}

/* Media Queries */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    .busqueda {
        width: 80%;
        max-width: none;
    }

    .productos {
        gap: 1rem;
    }

    .card {
        width: 45%;
    }

    .banner {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
    }

    .card img {
        height: 180px;
    }

    h2 {
        font-size: 1.2rem;
    }

    .intro {
        font-size: 0.9rem;
    }
}