* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', sans-serif;
}

body {
background: #f4f4f4;
color: #222;
}

/* HEADER */

.main-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 60px;
background: white;
box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.logo a {
text-decoration: none;
font-size: 22px;
font-weight: 600;
color: black;
letter-spacing: 1px;
}

nav a {
margin-left: 25px;
text-decoration: none;
color: #333;
font-weight: 500;
}

nav a:hover {
opacity: 0.6;
}

/* HERO */

.hero {
text-align: center;
padding: 120px 20px;
background: white;
}

.hero h1 {
font-size: 40px;
font-weight: 600;
margin-bottom: 15px;
}

.hero p {
font-size: 18px;
color: #666;
}

/* PRODUCT GRID */

.productos {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 40px;
padding: 60px;
}

.producto-card {
background: white;
padding: 25px;
border-radius: 20px;
box-shadow: 0 8px 25px rgba(0,0,0,0.05);
transition: 0.3s ease;
}

.producto-card:hover {
transform: translateY(-5px);
}

.producto-card img {
width: 100%;
height: 320px;
object-fit: cover;
border-radius: 15px;
margin-bottom: 20px;
}

.precio {
font-size: 18px;
font-weight: 600;
margin: 10px 0;
}

/* BOTONES */

button {
background: black;
color: white;
padding: 14px 25px;
border: none;
border-radius: 12px;
font-weight: 600;
cursor: pointer;
transition: 0.3s;
}

button:hover {
opacity: 0.85;
}

/* LOGIN CARD */

.auth-container {
height: 90vh;
display: flex;
justify-content: center;
align-items: center;
}

.auth-card {
background: white;
padding: 50px;
border-radius: 25px;
box-shadow: 0 10px 30px rgba(0,0,0,0.08);
width: 400px;
text-align: center;
}

.auth-card h2 {
margin-bottom: 30px;
font-size: 28px;
}

.auth-card input {
width: 100%;
padding: 14px;
margin-bottom: 20px;
border-radius: 12px;
border: 1px solid #ddd;
font-size: 14px;
}

.auth-card input:focus {
outline: none;
border-color: black;
}

/* PRODUCT VIEW */

.producto-view {
display: flex;
gap: 60px;
padding: 80px;
background: white;
}

.producto-view img {
width: 450px;
border-radius: 20px;
}

.producto-view h2 {
font-size: 28px;
margin-bottom: 15px;
}

/* FOOTER */

footer {
text-align: center;
padding: 40px;
margin-top: 60px;
color: #777;
font-size: 14px;
}

.titulo-seccion{
text-align:center;
margin-top:60px;
font-size:28px;
}

.categorias-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
gap:40px;
padding:60px;
}

.categoria-card{
background:white;
padding:60px;
border-radius:20px;
text-align:center;
font-size:22px;
font-weight:600;
text-decoration:none;
color:black;
box-shadow:0 10px 25px rgba(0,0,0,0.05);
transition:0.3s;
}

.categoria-card:hover{
transform:translateY(-5px);
}

/* HERO PREMIUM */
.hero-premium {
height: 70vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #000, #222);
color: white;
text-align: center;
padding: 40px;
}

.hero-content h1 {
font-size: 42px;
margin-bottom: 20px;
}

.hero-content p {
font-size: 18px;
margin-bottom: 30px;
opacity: 0.9;
}

/* CATEGORÍAS */
.categorias-principales {
padding: 80px 60px;
background: #f9f9f9;
}

.categorias-principales h2 {
text-align: center;
margin-bottom: 50px;
font-size: 30px;
}

.categorias-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 40px;
}

.categoria-card-grande {
background: white;
padding: 40px;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
transition: 0.3s;
}

.categoria-card-grande:hover {
transform: translateY(-5px);
}

.subcategorias-lista {
margin-top: 20px;
display: flex;
flex-direction: column;
gap: 10px;
}

.subcategorias-lista a {
text-decoration: none;
color: #555;
font-weight: 500;
}

.ver-todo {
display: inline-block;
margin-top: 20px;
font-weight: 600;
text-decoration: none;
color: black;
}

/* DESTACADOS */
.destacados {
padding: 80px 60px;
}

.destacados h2 {
text-align: center;
margin-bottom: 40px;
}

.productos-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 30px;
}

.producto-card {
background: white;
padding: 20px;
border-radius: 15px;
box-shadow: 0 8px 20px rgba(0,0,0,0.05);
text-align: center;
}

.producto-card img {
width: 100%;
height: 260px;
object-fit: cover;
border-radius: 12px;
margin-bottom: 15px;
}

.precio {
font-weight: 600;
margin: 10px 0;
}

.checkout-page {
padding: 60px;
background: #f5f5f5;
}

.checkout-container {
display: flex;
gap: 60px;
justify-content: center;
flex-wrap: wrap;
}

.resumen {
background: white;
padding: 30px;
border-radius: 15px;
width: 350px;
box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.form-checkout {
background: white;
padding: 40px;
border-radius: 15px;
display: flex;
flex-direction: column;
gap: 15px;
width: 400px;
box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.form-checkout input {
padding: 12px;
border: 1px solid #ddd;
border-radius: 8px;
}

.form-checkout button {
padding: 15px;
background: black;
color: white;
border: none;
border-radius: 8px;
font-weight: bold;
cursor: pointer;
}
