/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Estructura principal */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Asegura que el body ocupa el 100% de la pantalla */
}

/* Contenedor principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    max-height: 50px;
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin-left: 20px;
}
nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
.mobile-menu {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px; /* Ajusta la altura según necesites */
    overflow: hidden;
}
.hero-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-slider .slide.active {
    opacity: 1;
}
.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 5px;
}
.slide-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}
.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
}
.slide-content .btn {
    background: #27ae60;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}
.slider-controls span {
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

/* Contenido Principal */
main {
    flex: 1; /* Hace que el contenido crezca y empuje el footer hacia abajo */
}

/* Productos Section */
.productos-section {
    padding: 60px 0;
    background: #f9f9f9;
    text-align: center;
}
.productos-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
}
.productos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
}
.producto {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.producto-info {
    padding: 15px;
}
.producto-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.producto-info p {
    font-size: 16px;
    margin-bottom: 10px;
}
.producto-info .precio {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 10px;
}
.producto-info .btn {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 3px;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    width: 100%;
    text-align: center;
}
.footer-content {
    text-align: center;
}
.footer-content .social-media {
    margin-bottom: 10px;
}
.footer-content .social-media a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

/* Sección de Contacto */
.contacto-section {
    background: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

.contacto-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contacto-section p {
    font-size: 18px;
    margin-bottom: 40px;
}

.contacto-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contacto-item {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 375px;
    width: 100%;
}

.contacto-item img {
    width: 40px;
    height: 40px;
}

.contacto-item p {
    margin: 0;
    font-size: 16px;
}

.contacto-item a {
    text-decoration: none;
    color: #27ae60;
    font-weight: bold;
}

.contacto-item a:hover {
    color: #1e8449;
}


/* Diseño general */
.sobre-nosotros {
    padding: 80px 20px;
    background: linear-gradient(to right, #41b672, #9ad8b4);  /* Gradiente moderno */
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sobre-nosotros h2 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sobre-nosotros .about-text {
    margin-bottom: 50px;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sobre-nosotros .about-text:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.sobre-nosotros .about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #27ae60;
    font-weight: 600;
    text-transform: capitalize;
}

.sobre-nosotros .about-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}

/* Animación de entrada */
.sobre-nosotros .about-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

.sobre-nosotros .about-text:nth-child(1) {
    animation-delay: 0.3s;
}

.sobre-nosotros .about-text:nth-child(2) {
    animation-delay: 0.6s;
}

.sobre-nosotros .about-text:nth-child(3) {
    animation-delay: 0.9s;
}

.sobre-nosotros .about-text:nth-child(4) {
    animation-delay: 1.2s;
}

.sobre-nosotros .about-text:nth-child(5) {
    animation-delay: 1.5s;
}

/* Estilos para la imagen al final */
.about-image {
    margin-top: 50px;
    text-align: center;
}

.about-image img {
    max-width: 75%;  /* Limitar el tamaño máximo de la imagen */
    height: auto;
    border-radius: 10px;  /* Bordes redondeados */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);  /* Sombra suave */
    transition: transform 0.3s ease;
    margin: 0 auto;  /* Centrar la imagen */
}

/* Efecto hover en la imagen */
.about-image img:hover {
    transform: scale(1.05); /* Aumenta ligeramente el tamaño al pasar el ratón */
}



/* Animación de entrada */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 70px;
        right: 20px;
        border: 1px solid #eee;
        width: 200px;
        z-index: 1000;
    }
    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    .mobile-menu {
        display: block;
    }
}
