/* --- Estilos Globales --- */
:root {
    --primary-color: #007BFF; /* Azul principal */
    --secondary-color: #6DD5FA; /* Celeste claro */
    --text-color: #2c3e50; /* Un gris oscuro más suave */
    --bg-color: #FFFFFF;
    --footer-bg: #f8f9fa;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Barra de Navegación Premium --- */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px); /* Efecto de desenfoque para un look moderno */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px; /* Ancho máximo controlado */
    margin: 0 auto;
    padding: 0 20px;
    height: 75px; /* Un poco más de altura */
}

.nav-branding {
    font-size: 2.2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.nav-branding:hover {
    color: #0056b3;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px; /* Más espacio entre elementos */
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    padding: 5px 0;
    position: relative; /* Necesario para el efecto de la línea inferior */
    transition: color 0.3s ease;
}

/* Efecto de línea animada en hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active { /* Estilo para el enlace activo */
    color: var(--primary-color);
}

.nav-link.active::after { /* Mantiene la línea visible en el enlace activo */
    width: 100%;
}


/* --- Sección Hero (Inicio) --- */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 60vh;
    padding: 0 20px;
    /* --- Aquí está el cambio para la imagen de fondo --- */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/principal.png') no-repeat center center;
    background-size: cover;
    color: white; /* Color de texto blanco para que contraste con el fondo oscuro */
    /* --- Fin del cambio --- */
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 10px;
    color: white; /* Aseguramos que el título sea blanco */
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8); /* Texto secundario ligeramente más claro */
}


/* --- Sección de Productos --- */
.product-section {
    padding: 80px 20px;
    max-width: 1100px; /* Ancho máximo controlado */
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--bg-color);
    border: 1px solid #e9ecef;
    border-radius: 12px; /* Bordes más redondeados */
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Sombra más sutil */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); /* Sombra más pronunciada en hover */
}

.product-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 5; /* Proporción para imágenes verticales */
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
}

.product-card h3 {
    font-size: 1.25rem;
    margin: 15px 10px 10px;
}

.product-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- Footer --- */
.footer {
    background-color: var(--footer-bg);
    color: #6c757d;
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #e9ecef;
}

.footer-container {
    max-width: 1100px; /* Ancho máximo controlado */
    margin: 0 auto;
}

.social-icons {
    margin-bottom: 20px;
}

.social-icons a {
    text-decoration: none;
    color: #555;
    margin: 0 12px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.legal-links {
    margin-bottom: 20px;
}

.legal-links a {
    text-decoration: none;
    color: #6c757d;
    margin: 0 10px;
    font-size: 0.9rem;
}

.legal-links a:hover {
    color: var(--primary-color);
}

/* --- Botón de WhatsApp --- */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    padding: 14px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 100;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.05);
    background-color: #128C7E;
}

/* --- Diseño Responsivo para Móviles --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none; 
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}