/* Estilo moderno, chic y limpio para Chairs & Tables Chile */

/* Reset de estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* Header */
header {
    position: relative;
    background: url('assets/BannerPato.png') no-repeat center center/cover;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Añadir un overlay oscuro para mejorar la visibilidad del texto */
    z-index: 1;
}

header h1,
header p {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

header p {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.cta-buttons {
    position: relative;
    z-index: 2;
}

.cta-buttons .btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    margin: 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-buttons .btn:hover {
    background-color: #0056b3;
}

/* Navegación */
nav {
    background-color: #333;
    padding: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #007bff;
}

/* Sección de Productos */
#productos {
    padding: 60px 20px;
    text-align: center;
}

#productos h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

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

.categoria {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.categoria:hover {
    transform: translateY(-10px);
}

/* Estilo para el carrusel de imágenes dentro de cada categoría */
.categoria .carousel {
    position: relative;
    width: 100%;
    max-width: 300px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.categoria .carousel img {
    width: 100%;
    height: auto;
    display: none;
    object-fit: contain;
}

.categoria .carousel img:first-child {
    display: block;
}

.categoria .carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.categoria .carousel-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.categoria .carousel-controls button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.categoria h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.categoria p {
    margin-bottom: 20px;
    max-width: 300px;
}

.categoria .btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: auto;
}

.categoria .btn:hover {
    background-color: #0056b3;
}

/* Sección de Servicios */
#servicios {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
}

#servicios h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

#servicios p {
    max-width: 600px;
    margin: 0 auto 20px auto;
}

/* Sección de Contacto */
#contacto {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

#contacto h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

#contacto ul {
    list-style: none;
    margin-bottom: 30px;
}

#contacto ul li {
    margin: 10px 0;
}

#contacto form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contacto label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#contacto input,
#contacto textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contacto button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contacto button:hover {
    background-color: #0056b3;
}

/* Pie de página */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

.redes-sociales {
    list-style: none;
    display: flex;
    justify-content: center;
}

.redes-sociales li {
    margin: 0 10px;
}

.redes-sociales a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.redes-sociales a:hover {
    color: #007bff;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /*height: 100%; */

    
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 80%;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #007bff;
}

.modal-content p {
    font-size: 1.1rem;
    margin: 15px 0;
    font-weight: bold;
    color: #007bff;
}