/* --- Estilos Globales --- */
:root {
    --primary-color: #0056b3; /* Azul corporativo */
    --secondary-color: #e8491d; /* Naranja de acento */
    --dark-color: #333;
    --light-color: #f9f9f9;
    --font-family: 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family); line-height: 1.6; background-color: #fff; color: var(--dark-color); }
.container { max-width: 1100px; margin: auto; padding: 0 20px; }
a { color: var(--primary-color); text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- Header y Navegación --- */
.main-header { background: #fff; border-bottom: 1px solid #ddd; padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; display: flex; align-items: center; }
.logo-img { height: 40px; margin-right: 10px; }
.main-nav ul { display: flex; }
.main-nav a { padding: 0.5rem 1rem; transition: color 0.3s; }
.main-nav a:hover, .main-nav a.active { color: var(--secondary-color); font-weight: bold; }

/* --- Hero Section (Portada) --- */
.hero { height: 60vh; background-size: cover; background-position: center; color: #fff; display: flex; justify-content: center; align-items: center; text-align: center; position: relative; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); }
.hero-content { position: relative; max-width: 600px; }
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; }

/* --- Botones --- */
.btn { display: inline-block; padding: 12px 25px; border-radius: 5px; font-size: 1rem; cursor: pointer; transition: background-color 0.3s, transform 0.2s; border: none; }
.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: #004494; transform: translateY(-2px); }
.btn-secondary { background-color: var(--secondary-color); color: #fff; }
.btn-secondary:hover { background-color: #d43f14; }
.btn-full { width: 100%; text-align: center; }

/* --- Secciones y Títulos --- */
.section-title { text-align: center; margin-bottom: 2rem; font-size: 2.2rem; }
.page-title { text-align: center; margin-bottom: 2rem; font-size: 2.5rem; }
.text-center { text-align: center; }
.page-padding { padding: 2rem 0; }
.featured-categories, .product-section { padding: 4rem 0; }

/* --- Tarjetas de Producto y Categoría --- */
.categories-grid, .product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.category-card, .product-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.category-card:hover, .product-card:hover { transform: translateY(-10px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.product-img { width: 100%; height: 250px; object-fit: cover; }
.category-info, .product-info { padding: 1.5rem; text-align: center; }
.product-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.product-info p { color: #666; margin-bottom: 1rem; }
.product-price { display: block; font-weight: bold; color: var(--primary-color); margin-bottom: 1.5rem; }

/* --- Página de Contacto --- */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; margin-top: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 5px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; }
.contact-info p { margin-bottom: 1rem; }
.contact-info i { color: var(--primary-color); min-width: 20px; margin-right: 10px; }
#form-status { margin-top: 1rem; font-weight: bold; }

/* --- Footer --- */
.main-footer { background: var(--dark-color); color: #fff; text-align: center; padding: 2rem 0; margin-top: 2rem; }
.social-icons a { color: #fff; margin: 0 10px; font-size: 1.2rem; }
.social-icons-contact a { color: var(--dark-color); margin-right: 15px; font-size: 1.5rem; }

/* --- Media Queries para Responsividad --- */
@media(max-width: 768px) {
    .main-header .container, .contact-grid { flex-direction: column; grid-template-columns: 1fr; }
    .main-nav ul { margin-top: 1rem; flex-direction: column; text-align: center; }
    .main-nav a { padding: 0.8rem; }
    .hero h1 { font-size: 2rem; }
}