/* styles.css */

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Sección 1: Barra delgada verde */
.top-bar {
    background-color: #88c000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
}

.top-bar .social-icons a {
    color: white;
    margin-right: 15px;
    font-size: 14px;
}

.top-menu a {
    color: white;
    margin-left: 20px;
    font-size: 12px;
    text-transform: uppercase;
}

/* Sección 2: Barra de menú principal */
.logo-image {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.main-header {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(0,0,0,0.8);
    padding: 10px 5%;
}

.main-header.scrolled .logo a {
    color: white;
}

.main-header.scrolled .main-nav a {
    color: white;
}

.main-header.scrolled .main-nav a.active {
    color: #8fc200;
}

.logo a {
    color: black;
    font-size: 24px;
    font-weight: bold;
}

.main-nav ul {
    display: flex;
}

.main-nav a {
    color: black;
    margin-left: 25px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.main-nav a.active {
    color: #8fc200;
}

.main-nav a:hover {
    color: #8fc200;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Sección 3: Carrusel */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 600px;
}

.carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.overlay {
    background-color: rgba(27, 27, 27, 0.411);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 100%;
}

.overlay h2 {
    color: white;
    font-size: 60px;
    margin-bottom: 15px;
}

.overlay p {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.btn-leer-mas {
    background-color: #88c000;
    color: white;
    border: 1px solid white;
    border-radius: 20px;
    padding: 10px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.btn-leer-mas:hover {
    background-color: #11cc00;
}

/* Responsive carrusel */
@media (max-width: 768px) {
    .carousel-container {
        height: 400px;
    }
    
    .overlay h2 {
        font-size: 36px;
    }
    
    .overlay p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 300px;
    }
    
    .overlay h2 {
        font-size: 28px;
    }
}

/* Sección 4: Cuatro columnas de imágenes */
.four-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 50px 5%;
    gap: 20px;
}

.column {
    flex: 1 1 calc(25% - 20px);
    min-width: 250px;
    position: relative;
}

.image-container {
    position: relative;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.image-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.image-overlay p {
    font-size: 16px;
}

/* Sección 5: Imagen grande */
.full-width-image {
    width: 100%;
}

.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sección 6: Cuatro columnas con iconos */
.icon-columns {
    padding: 60px 5%;
    background-color: #f9f9f9;
}

.icon-columns .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.icon-column {
    flex: 1 1 calc(25% - 30px);
    min-width: 250px;
}

.custom-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    object-fit: contain;
}

.icon-title-right {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 15px;
}

.icon-title-right h3 {
    font-size: 20px;
    color: #88c000;
    margin: 0;
    order: 1;
}

.custom-icon-right {
    width: 80px;
    height: 80px;
    margin-left: 5px;
    order: 1;
    object-fit: contain;
}

.icon-column p {
    color: #666;
    line-height: 1.6;
}

/* Sección 7: Imagen de fondo con dos columnas */
.two-columns-over-image {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.content-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 0 5%;
    align-items: center;
    background-color: rgba(0,0,0,0.4);
}

.left-column, .right-column {
    flex: 1;
    color: white;
}

.left-column {
    text-align: center;
}

.left-column img {
    margin-top: 100px;
    margin-left: 80px;
    max-width: 100%;
    height: auto;
}

.right-column h2 {
    padding-top: 100px;
    font-size: 36px;
    margin-bottom: 15px;
}

.right-column h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.right-column p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.green-btn {
    background-color: #88c000;
    color: white;
    border: 1px solid white;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.green-btn:hover {
    background-color: #11cc00;
}

/* Sección 9: Grid de productos */
.product-grid {
    padding: 60px 5%;
    background-color: #f9f9f9;
}

.product-grid .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-img-container {
    padding: 15px;
    border: 1px solid #88c000;
    margin: 15px;
    border-radius: 4px;
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}

.product-title {
    font-size: 18px;
    color: #333;
    margin: 15px 0 5px;
    padding: 0 15px;
}

.product-price {
    font-size: 20px;
    color: #88c000;
    font-weight: bold;
    margin: 10px 0;
}

.price-divider {
    width: 50px;
    height: 1px;
    background-color: #88c000;
    margin: 0 auto 15px;
}

.product-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    padding: 0 15px;
    margin-bottom: 15px;
}

/* Sección 10: Dos columnas sobre imagen de fondo */
.two-columns-over-bg {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.two-columns-over-bg .background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.two-columns-over-bg .content-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 0 5%;
    align-items: center;
    background-color: rgba(0,0,0,0.4);
}

.two-columns-over-bg .left-column {
    flex: 1;
    color: white;
    max-width: 50%;
    padding-right: 50px;
}

.two-columns-over-bg .right-column {
    flex: 1;
}

.two-columns-over-bg .right-column img {
    max-width: 80%;
    height: auto;
    padding-left: 80px;
    filter: drop-shadow(2px 2px 5px rgba(255, 255, 255, 0.644));
}

.green-text {
    color: #88c000;
    text-shadow: 1px 1px 2px rgb(0, 0, 0), 0 0 25px rgb(255, 255, 255), 0 0 5px rgb(79, 139, 0);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 5px;
    display: block;
    margin-bottom: 10px;
    padding-bottom: 20px;
}

.titulo {
    padding-bottom: 20px;
    font-size: 40px;
    margin-bottom: 50px;
}

.parrafo {
    font-size: 20px;
}

.feature-list {
    margin: 20px 0;
    padding-left: 80px;
    text-align: left;
    font-size: 15px;
}

.feature-list li {
    margin-bottom: 10px;
    position: relative;
    list-style-type: square;
}

.buttons-container {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-green {
    background-color: #88c000;
    color: white;
    border: 1px solid white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-green:hover {
    background-color: #11cc00;
}

.btn-outline {
    background-color: transparent;
    color: #88c000;
    border: 1px solid #ffffff;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: #88c000;
    color: white;
}

/* Sección 10.1 Título con arabesco */
.section-with-arabesque {
    padding: 60px 5%;
    text-align: center;
    background-color: #fff;
}

.section-with-arabesque .container h2 {
    color: #ea5b27;
    margin-bottom: 15px;
}

.section-with-arabesque .container h3 {
    color: #666;
}

.arabesque {
    width: 100px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Sección 11: Columnas opuestas */
.opposite-columns {
    padding: 50px 5%;
    background-color: #fff;
}

.opposite-columns .container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

.opposite-columns h2 {
    color: #88c000;
}

.opposite-columns p {
    color: #666;
}

.left-col, .right-col {
    flex: 1;
}

.content-right {
    text-align: right;
    padding-left: 30%;
}

.content-left {
    text-align: left;
    padding-right: 30%;
}

.title-icon {
    color: #666;
    width: 50px;
    height: 50px;
    vertical-align: middle;
    margin: 0 10px;
}

/* Sección 11.1: Tres columnas */
.three-columns-section {
    padding-bottom: 50px;
    background-color: #ffffff;
}

.three-columns-section .container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 100px;
}

.three-columns-section h2 {
    color: #88c000;
}

.three-columns-section p {
    color: #666;
}

.left-col-11 {
    padding-top: 80px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.center-col-11 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.right-col-11 {
    padding-top: 80px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Container general */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* ======================== */
/* SECCIÓN TESTIMONIOS      */
/* ======================== */
.testimonials-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    z-index: 1;
}

.testimonials-section .section-title {
    text-align: center;
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgb(0, 0, 0), 0 0 25px rgb(87, 90, 86), 0 0 5px rgb(79, 139, 0);
}

.parallax-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/index/paralax.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Slider contenedor */
.testimonials-slider {
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
    width: 100%;
}

/* Track: los grupos van uno al lado del otro */
.testimonials-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

/* Cada grupo ocupa exactamente el 100% del ancho visible */
.testimonials-group {
    display: flex;
    gap: 25px;
    flex: 0 0 100%;
    min-width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
}

/* Cada tarjeta: exactamente 1/3 del grupo */
.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 35px 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    flex: 0 0 calc(33.333% - 17px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.testimonial-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: rgba(0,0,0,0.06);
    z-index: 1;
}

.testimonial-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quote-section {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.quotes-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    align-self: flex-start;
    flex-shrink: 0;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #88c000;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
}

.author-info {
    flex-grow: 1;
}

.author-name {
    font-size: 16px;
    color: #333;
    margin-bottom: 3px;
    font-weight: 600;
}

.author-position {
    font-size: 13px;
    color: #777;
    font-style: italic;
    margin: 0;
}

/* Controles */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.slider-arrow {
    background-color: #88c000;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: #6a9a00;
    transform: scale(1.1);
}

/* ---- RESPONSIVE TABLET: 2 por fila ---- */
@media (max-width: 992px) {
    .testimonials-group {
        gap: 20px;
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
        padding: 30px 20px;
    }
    
    .testimonial-card:nth-child(3) {
        display: none;
    }
}

/* ---- RESPONSIVE MÓVIL: 1 por fila ---- */
@media (max-width: 640px) {
    .testimonials-section {
        padding: 50px 0;
    }
    
    .testimonials-section .section-title {
        font-size: 26px;
        margin-bottom: 35px;
    }
     
    .testimonial-card {
        flex: 1;
        min-width: 100%;
        padding: 25px 20px;
    }
    
    .testimonial-card:nth-child(2),
    .testimonial-card:nth-child(3) {
        display: none;
    }
    
    .quote-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-photo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .parallax-image {
        background-attachment: scroll;
    }
}

/* Sección 14: Productos */
.products-section {
    padding: 20px 0;
    background-color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.products-section .product-card {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
    background: none;
    box-shadow: none;
}

.products-section .product-card:hover {
    transform: translateY(-5px);
}

.product-image-container {
    border: 1px solid #88c000;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.products-section .product-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.products-section .product-price {
    font-size: 20px;
    color: #88c000;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-divider {
    width: 50px;
    height: 1px;
    background-color: #88c000;
    margin: 0 auto 15px;
}

.product-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Sección 16: Redes sociales */
.social-section {
    padding: 50px 0;
    background-color: #fff;
    text-align: center;
}

.social-section .social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Footer */
.main-footer {
    position: relative;
    background-color: #111; /* Color base oscuro */
    color: white;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15; /* Imagen muy tenue */
}

.footer-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-content {
    position: relative;
    z-index: 1;
    padding: 80px 0 40px;
    background-color: rgba(0, 0, 0, 0.75);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col {
    padding: 0 15px;
}

.footer-title {
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #88c000;
}

.about-col .footer-logo {
    margin-bottom: 20px;
}

.about-col .footer-logo img {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(1px 1px 1px rgba(255, 255, 255, 0.644));
}

.about-text {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #ddd;
}

.read-more-btn {
    background-color: transparent;
    color: white;
    border: 2px solid #88c000;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background-color: #88c000;
}

.news-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
}

.news-title {
    font-size: 14px;
    color: #88c000;
    margin-bottom: 5px;
    line-height: 1.3;
}

.news-date {
    font-size: 12px;
    color: #aaa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 3px;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-text {
    line-height: 1.5;
    color: #ddd;
    margin: 0;
}

.contact-divider {
    width: 100%;
    height: 1px;
    background-color: #88c000;
    margin: 15px 0;
    opacity: 0.5;
}

.copyright {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.copyright p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

/* Botón flotante para ir al inicio */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #88c000;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #dceb0e;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
}

/* Media Queries responsive general */
@media (max-width: 1024px) {
    .product-grid .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .four-columns .column {
        flex: 1 1 calc(50% - 20px);
    }
    
    .icon-column {
        flex: 1 1 calc(50% - 30px);
    }
    
    .content-container {
        flex-direction: column;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .left-column, .right-column {
        flex: none;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .two-columns-over-bg {
        height: auto;
    }
    
    .two-columns-over-bg .content-container {
        flex-direction: column;
        padding: 50px 5%;
    }
    
    .two-columns-over-bg .left-column {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid .container {
        grid-template-columns: 1fr;
    }
    
    .product-img {
        height: 220px;
    }
    
    .top-bar {
        flex-direction: column;
        padding: 10px 5%;
    }
    
    .top-bar .social-icons {
        margin-bottom: 10px;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav a {
        margin: 10px 0;
        display: block;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .four-columns .column {
        flex: 1 1 100%;
    }
    
    .icon-column {
        flex: 1 1 100%;
    }
    
    .two-columns-over-image {
        height: auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        padding: 60px 0 30px;
    }
    
    .gallery-item img {
        height: 100px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .social-section .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .btn-green, .btn-outline {
        width: 100%;
    }
}