/* Accessibility and Performance Improvements */
/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px 12px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.skip-link:focus {
    top: 6px;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Focus indicators */
*:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Visually hidden for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--text-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c7a2c;
    --secondary-color: #f4a261;
    --accent-color: #51e751;
    --text-dark: #264653;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-section: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled .navbar {
    padding: 0.5rem 0;
}

.header.scrolled .logo-img {
    height: 60px;
}

.header.scrolled .nav-menu {
    gap: 1.5rem;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.logo a {
    text-decoration: none;
    display: inline-block;
}

.logo-img {
    height: 128px;
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    margin-left: 1rem;
}

.lang-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
    justify-content: center;
}

.lang-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 0.5rem;
    overflow: hidden;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--bg-light);
}

.lang-option.active {
    background: var(--primary-color);
    color: white;
}

.lang-option.active:hover {
    background: #236523;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    max-width: 1200px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 1s ease-out 0.4s both;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background: #e8963d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-image {
    position: relative;
    animation: fadeIn 1.5s ease-out;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg,
        rgba(46, 125, 50, 0.7) 0%,
        rgba(244, 162, 97, 0.5) 50%,
        rgba(231, 111, 81, 0.6) 100%);
    z-index: 2;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-section);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    box-shadow: var(--shadow-hover);
}

.about-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Counters Section */
.counters-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.counter-item {
    text-align: center;
    color: white;
    padding: 2rem 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


.counter-label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* Process Section */
.process {
    padding: 6rem 0;
    background: var(--bg-light);
}

.process h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 600;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-card {
    background: var(--bg-section);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.process-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.process-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.process-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Products Section */
.products {
    padding: 6rem 0;
    background: var(--bg-section);
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.products-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

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

.product-card {
    background: var(--bg-section);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 1;
    transform: scale(1);
    /* Enhanced accessibility and mobile support */
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.2);
    touch-action: manipulation;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    display: none;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-img:hover {
    transform: scale(1.05);
}

.product-placeholder {
    font-size: 4rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c7a2c 0%, #1a5490 100%);
    border-radius: 15px;
    min-height: 200px;
    box-shadow: 0 10px 30px rgba(44, 122, 44, 0.2);
    transition: all 0.3s ease;
}

.product-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(44, 122, 44, 0.3);
}

.view-more {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(46, 125, 50, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
    z-index: 2;
}

.product-image:hover .view-more {
    opacity: 1;
}

/* Product Modal Styles */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.product-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 95vw;
    max-height: 95vh;
    width: min(1200px, 95vw);
    height: min(700px, 85vh);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.modal-gallery {
    padding: 2rem;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    flex: 1;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.thumbnail-gallery {
    height: 80px;
    background: white;
    border-radius: 15px;
    padding: 0.5rem;
    overflow-x: auto;
}

.thumbnails {
    display: flex;
    gap: 0.5rem;
    height: 100%;
}

.thumbnail {
    min-width: 60px;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.modal-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.modal-info h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.modal-info p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1.1rem;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.detail-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.modal-actions {
    margin-top: auto;
}

.modal-actions .cta-button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.modal-actions .cta-button:hover {
    background: #236523;
    transform: translateY(-2px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.product-info p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Quality Section */
.quality {
    padding: 6rem 0;
    background: var(--bg-light);
}

.quality-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quality-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.quality-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.certifications {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-section);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.cert-badge span {
    background: var(--primary-color);
    color: var(--text-light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cert-badge p {
    margin: 0;
    font-weight: 500;
}

/* Videos Section */
.videos {
    padding: 6rem 0;
    background: var(--bg-light);
}

.videos-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.videos-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.video-main {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-main:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 2rem;
}

.video-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.video-info p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1.1rem;
}

.video-cta {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.video-cta p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.video-cta .cta-button {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.video-cta .cta-button:hover {
    background: #236523;
    transform: translateY(-2px);
}

.quality-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    box-shadow: var(--shadow-hover);
    margin: 0 auto;
}

/* Certification Carousel */
.certification-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.cert-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cert-slide.active {
    opacity: 1;
}

.cert-slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 122, 44, 0.1), rgba(244, 162, 97, 0.1));
    pointer-events: none;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-section);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 600;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    background: #236523;
    transform: translateY(-2px);
}

/* WhatsApp Contact Button */
.contact-whatsapp {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    max-width: 400px;
    width: 100%;
    justify-content: center;
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.whatsapp-icon svg {
    color: white;
}

.whatsapp-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.whatsapp-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-section);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .language-selector {
        margin: 1rem 0 0 0;
    }

    .lang-toggle {
        margin: 0 auto;
    }

    .lang-menu {
        right: 50%;
        transform: translateX(50%);
    }

    .lang-menu.show {
        transform: translateX(50%) translateY(0);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content,
    .quality-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-img {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .counters-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
        padding: 2rem 1.5rem;
    }

    .counter-number {
        font-size: 2.5rem;
    }

    .counter-label {
        font-size: 0.9rem;
    }

    .certification-carousel {
        height: 300px;
    }

    .process-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-image {
        height: 200px;
    }

    /* Responsive improvements for product cards */
    .product-placeholder {
        font-size: 3rem;
        min-height: 180px;
    }

    .product-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .product-info p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .product-tags {
        margin-top: 0.75rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    /* Touch-friendly sizing */
    .product-card {
        touch-action: manipulation;
        min-height: 350px;
    }

    /* Improved tap targets */
    .view-more {
        padding: 0.75rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Mejoras específicas para sección de productos en móviles */
    .products {
        padding: 3rem 0;
        min-height: auto;
        overflow: visible;
        position: relative;
        z-index: 1;
    }

    /* Asegurar que la sección sea visible */
    .products::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--primary-color);
        opacity: 0.1;
        z-index: -1;
    }

    .products-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .product-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .certifications {
        grid-template-columns: 1fr;
    }

    .product-filters {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        min-height: 40px;
        min-width: 80px;
    }

    /* Mejoras en texto de tarjetas de producto para móviles */
    .product-info {
        padding: 1.2rem;
    }

    .product-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .product-info p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .videos-intro {
        font-size: 1.1rem;
    }

    .video-info {
        padding: 1.5rem;
    }

    .video-info h3 {
        font-size: 1.3rem;
    }

    .video-cta {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-text h2,
    .process h2,
    .products h2,
    .videos h2,
    .quality-text h2,
    .contact h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .process-card,
    .product-info,
    .contact-form {
        padding: 1rem;
    }

    /* Product Modal Responsive - Solución Completa */
    .modal-content {
        display: flex;
        flex-direction: column;
        width: 95vw;
        height: 90vh;
        margin: 10px;
        padding: 1rem;
        box-sizing: border-box;
    }

    .modal-gallery {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        background: var(--bg-light);
        max-height: 60vh;
    }

    .main-image {
        flex: 1;
        min-height: 200px;
        max-height: calc(60vh - 90px);
        background: white;
        border-radius: 15px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: var(--transition);
    }

    .thumbnail-gallery {
        flex: 0 0 auto;
        height: 80px;
        background: white;
        border-radius: 15px;
        padding: 0.5rem;
        overflow-x: auto;
        box-shadow: var(--shadow);
        margin-top: 0.5rem;
    }

    .thumbnails {
        display: flex;
        gap: 0.5rem;
        height: 100%;
    }

    .thumbnail {
        min-width: 60px;
        height: 100%;
        border-radius: 10px;
        overflow: hidden;
        cursor: pointer;
        border: 2px solid transparent;
        transition: var(--transition);
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(44, 122, 44, 0.2);
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .thumbnail:hover,
    .thumbnail.active {
        border-color: var(--primary-color);
        transform: scale(1.05);
    }

    .modal-info {
        flex: 1;
        padding: 1rem;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        min-height: 0;
    }

    .modal-info h2 {
        color: var(--primary-color);
        font-size: 1.5rem;
        font-weight: 600;
        margin: 0;
        line-height: 1.2;
    }

    .modal-info p {
        color: var(--text-dark);
        line-height: 1.5;
        font-size: 1rem;
        margin: 0;
    }

    .modal-details {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .detail-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        background: var(--bg-light);
        border-radius: 8px;
        font-size: 0.9rem;
    }

    .detail-icon {
        color: var(--primary-color);
        font-size: 1rem;
    }

    .modal-actions {
        margin-top: auto;
        padding-top: 1rem;
    }

    .modal-actions .cta-button {
        width: 100%;
        padding: 0.8rem 1.5rem;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        touch-action: manipulation;
        min-height: 44px;
    }

    .modal-actions .cta-button:hover {
        background: #236523;
        transform: translateY(-1px);
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

/* Breakpoints específicos para móviles pequeños */
@media (max-width: 576px) {
    .product-info h3 {
        font-size: 1.1rem;
    }

    .product-info p {
        font-size: 0.9rem;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .products-intro {
        font-size: 0.95rem;
    }
}

@media (max-width: 375px) {
    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 1rem;
    }

    /* Mejoras para modal en móviles pequeños */
    .modal-gallery {
        height: 40%;
        padding: 0.8rem;
    }

    .modal-info {
        height: 60%;
        padding: 0.8rem;
    }

    .main-image {
        min-height: 150px;
    }

    .thumbnail-gallery {
        height: 60px;
        padding: 0.3rem;
    }

    .thumbnail {
        min-width: 40px;
    }

    .product-info h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .product-info p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .products h2 {
        font-size: 1.8rem;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        min-width: 70px;
    }
}

@media (max-width: 320px) {
    .products {
        padding: 2rem 0;
    }

    .product-image {
        height: 160px;
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    /* Mejoras para modal en móviles muy pequeños */
    .modal-gallery {
        height: 35%;
        padding: 0.5rem;
    }

    .modal-info {
        height: 65%;
        padding: 0.5rem;
    }

    .main-image {
        min-height: 120px;
    }

    .thumbnail-gallery {
        height: 50px;
        padding: 0.2rem;
    }

    .thumbnail {
        min-width: 35px;
    }
}

@media (max-width: 768px) {
    /* Product Modal Tablet */
    .modal-content {
        width: 95vw;
        height: 85vh;
        margin: 10px;
    }

    .modal-gallery {
        padding: 1.5rem;
    }

    .modal-info {
        padding: 1.5rem;
    }

    .modal-info h2 {
        font-size: 1.5rem;
    }

    .thumbnail-gallery {
        height: 70px;
    }
}

/* Enhanced Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 122, 44, 0.1);
    background: white;
}

.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

.form-status {
    margin-top: 1rem;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.form-status.loading {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
    display: block;
}

/* Enhanced Touch Targets for Mobile */
@media (max-width: 768px) {
    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        min-height: 48px;
        touch-action: manipulation;
    }

    .whatsapp-button {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.75rem;
    }

    .whatsapp-icon {
        width: 35px;
        height: 35px;
    }

    .whatsapp-text h4 {
        font-size: 1rem;
    }

    .whatsapp-text p {
        font-size: 0.85rem;
    }
}

/* Character Counter for Message Field */
.char-counter {
    text-align: right;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.char-counter.warning {
    color: #ff9800;
}

.char-counter.error {
    color: #dc3545;
}

/* Form Validation States */
.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
}

.form-group.success input,
.form-group.success textarea {
    border-color: #28a745;
}

/* ==============================================
   MEJORAS ADICIONALES PARA MODAL MÓVIL
   ============================================== */

/* Pequeños ajustes para pantallas muy pequeñas */
@media (max-width: 375px) {
    .modal-content {
        width: 98vw;
        height: 95vh;
        margin: 5px;
        padding: 0.5rem;
    }

    .modal-gallery {
        max-height: 55vh;
        padding: 0.5rem;
    }

    .main-image {
        min-height: 180px;
        max-height: calc(55vh - 90px);
    }

    .thumbnail-gallery {
        height: 70px;
        margin-top: 0.3rem;
    }

    .modal-info h2 {
        font-size: 1.3rem;
    }

    .modal-info p {
        font-size: 0.9rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

/* Para pantallas ultra pequeñas */
@media (max-width: 320px) {
    .modal-content {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        padding: 0.5rem;
    }

    .modal-gallery {
        max-height: 50vh;
        padding: 0.5rem;
    }

    .main-image {
        min-height: 150px;
        max-height: calc(50vh - 80px);
    }

    .thumbnail-gallery {
        height: 60px;
        margin-top: 0.2rem;
        padding: 0.3rem;
    }

    .thumbnail {
        min-width: 50px;
    }

    .modal-info h2 {
        font-size: 1.2rem;
    }

    .modal-info p {
        font-size: 0.85rem;
    }

    .modal-close {
        top: 0.3rem;
        right: 0.3rem;
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .modal-actions .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mejoras para scroll en iOS */
@supports (-webkit-overflow-scrolling: touch) {
    @media (max-width: 480px) {
        .modal-info {
            -webkit-overflow-scrolling: touch;
        }

        .thumbnail-gallery {
            -webkit-overflow-scrolling: touch;
        }
    }
}

/* Safe Area Support para iPhones modernos */
@supports (padding: max(0px)) {
    @media (max-width: 480px) {
        .modal-content {
            padding: max(0.5rem, env(safe-area-inset-top))
                     max(0.5rem, env(safe-area-inset-right))
                     max(0.5rem, env(safe-area-inset-bottom))
                     max(0.5rem, env(safe-area-inset-left));
        }

        .modal-close {
            top: max(0.5rem, env(safe-area-inset-top));
            right: max(0.5rem, env(safe-area-inset-right));
        }
    }
}

/* ==============================================
   FIX DE VISIBILIDAD PARA SECCIONES EN MÓVIL
   ============================================== */

@media (max-width: 768px) {
    /* Asegurar que todas las secciones principales sean visibles */
    section {
        min-height: auto;
        overflow: visible;
        position: relative;
    }

    /* Prevención de problemas de scroll */
    main {
        overflow-x: hidden;
        overflow-y: visible;
    }

    /* Ajustes específicos para sección de productos */
    .products {
        padding: 2rem 0;
        margin: 0;
        clear: both;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .products-grid {
        display: grid !important;
        visibility: visible !important;
    }

    .product-card {
        display: block !important;
        visibility: visible !important;
    }

    /* Ajuste para que no haya saltos en el scroll */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
}