/* recordr background */
body {
    font-family: 'Arial', sans-serif; 
    margin: 0;
    padding: 0;
    background-color: #f8f8f8; 
    color: #333;
    line-height: 1.6; 
}

a {
    text-decoration: none;
    color: inherit; 
}

img {
    max-width: 100%;
    height: auto;
    display: block; 
}

/* header navegacion */
header {
    background-color: #2c3e50; 
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0;
    padding: 0 20px;
    font-size: 2.2em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex; /* Flexbox  navegación */
    justify-content: center;
    gap: 25px; /* Espacio  */
}

nav ul li a {
    color: white;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #34495e; /* Un tono más oscuro al pasar el mouse */
}

/*  Main y Section  */
main {
    padding: 20px;
    max-width: 1200px; 
    margin: 20px auto; 
}

section {
    margin-bottom: 30px;
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2, h3 {
    color: #2c3e50; 
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
}

/*  Footer  */
footer {
    text-align: center;
    padding: 1.2em 0;
    background-color: #2c3e50;
    color: white;
    margin-top: 40px; 
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}


.hero {
    width: 100%;
    height: 60vh; 
    text-align: center;
    color: white;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/fondo.jpg'); /* Superposición oscura + imagen */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Efecto parallax */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0; 
    box-shadow: none; 
    margin-bottom: 0; 
}

.hero h2 {
    font-size: 3.5em; /* Tamaño de fuente más grande */
    margin-bottom: 15px;
    color: white; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); 
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .button {
    display: inline-block;
    background-color: #3498db; 
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 30px; /* Botón más redondo */
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero .button:hover {
    background-color: #2980b9; 
    transform: translateY(-2px); /* Pequeño efecto de elevación */
}


.productos-destacados {
    text-align: center;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    padding: 20px 0;
}

.producto-card {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.producto-card img {
    width: 150px; /* Tamaño fijo para imágenes de productos destacados */
    height: 150px;
    object-fit: contain; 
    margin-bottom: 15px;
    border-radius: 5px;
}

.producto-card h4 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #34495e;
}

.producto-card p {
    font-size: 0.95em;
    color: #666;
}


.products-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
}

.product-category-section {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.product-category-section h2 {
    color: #2980b9; 
    font-size: 1.8em;
    margin-top: 0;
    border-bottom: 2px solid #2980b9;
    padding-bottom: 10px;
    text-align: left; 
}

.product-list {
    list-style: none; 
    padding: 0;
    margin: 0;
}

.product-list-item {
    display: flex; /*  Flexbox */
    align-items: center; 
    padding: 15px 0;
    border-bottom: 1px dashed #e0e0e0; /* Línea discontinua */
    transition: background-color 0.2s ease;
}

.product-list-item:hover {
    background-color: #f5f5f5; 
}

.product-list-item:last-child {
    border-bottom: none; 
}

.product-list-item img.thumbnail {
    width: 70px; 
    height: 70px;
    object-fit: cover; 
    margin-right: 20px;
    border-radius: 8px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-list-item span.product-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}


.info-contacto ul {
    list-style: none;
    padding: 0;
}

.info-contacto li {
    margin-bottom: 10px;
}

.info-contacto strong {
    color: #2c3e50;
}

.formulario-contacto form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formulario-contacto label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block; /* Asegura que la etiqueta esté en su propia línea */
}

.formulario-contacto input[type="text"],
.formulario-contacto input[type="email"],
.formulario-contacto textarea {
    width: calc(100% - 20px); /* Ajuste para padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; 
    font-size: 1em;
}

.formulario-contacto textarea {
    resize: vertical; 
    min-height: 100px;
}

.formulario-contacto button[type="submit"] {
    background-color: #2ecc71; 
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.formulario-contacto button[type="submit"]:hover {
    background-color: #27ae60;
}


@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero h2 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
        padding: 0 15px;
    }

    .grid-productos {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .products-grid-container {
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    main {
        padding: 10px;
    }

    .hero h2 {
        font-size: 2em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .producto-card img {
        width: 100px;
        height: 100px;
    }

    .product-list-item img.thumbnail {
        width: 50px;
        height: 50px;
    }

    footer {
        position: static; 
    }
}