/* ------------------------- */
/* RESET Y VARIABLES GLOBALES (Colores Corporativos) */
/* ------------------------- */
:root {
    --primary-color: #1D1D1B; /* Gris Oscuro Corporativo */
    --secondary-color: #F39223; /* Naranja Corporativo */
    --accent-color: #878787;
    --text-dark: #1D1D1B;
    --text-light: #FAFAFA;
    --bg-light: #FFFFFF;
    --bg-gray: #F5F5F5;
    --font-family: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

section {
    padding: 60px 0;
}

section.bg-gray {
    background-color: var(--bg-gray);
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #e6891e;
    border-color: #e6891e;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Animaciones */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------- */
/* HEADER Y NAVEGACIÓN       */
/* ------------------------- */
.main-header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    width: 100px;
    height: auto;
}

.main-nav {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    overflow: hidden;
    margin-left: 30px;
}

.lang-switcher a {
    text-decoration: none;
    padding: 5px 10px;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--text-dark);
    background: var(--bg-light);
}

.lang-switcher a.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.hamburger-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.hamburger-icon .line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 80px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease-in-out;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav .nav-links {
    flex-direction: column;
    align-items: center;
}

.mobile-nav .nav-links li {
    margin: 20px 0;
}

.mobile-nav .lang-switcher {
    margin-left: 0;
    margin-top: 20px;
}

/* ------------------------- */
/* HERO SECTION              */
/* ------------------------- */
.hero {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content .subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero .btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}

.hero .btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* ------------------------- */
/* CERTIFICATIONS SECTION    */
/* ------------------------- */
.certifications-bar {
    padding: 40px 0;
    background-color: var(--bg-gray);
    text-align: center;
}

.certifications-bar h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 25px;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.logos-container .trust-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    width: 120px;
}

.logos-container .trust-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 8px;
}

/* ------------------------- */
/* CLIENTS SECTION           */
/* ------------------------- */
.clients-section {
    padding: 60px 0;
}
.client-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}
.client-logos-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.client-logo {
    flex: 0 0 20%; /* 5 logos visible */
    padding: 0 15px;
}
.client-logo img {
    width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.client-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}
.carousel-btn:hover {
    background-color: rgba(0,0,0,0.6);
}
.carousel-btn.prev {
    left: -20px;
}
.carousel-btn.next {
    right: -20px;
}

/* ------------------------- */
/* APLICACIONES SECTION      */
/* ------------------------- */
.tabs-container {
    display: flex;
    flex-direction: column;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #888;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background-color: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-pane-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.tab-pane-content img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tab-pane-content .text-content {
    max-width: 500px;
}

/* ------------------------- */
/* PRODUCTOS SECTION         */
/* ------------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.product-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-card-content {
    padding: 20px;
}
.product-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* ------------------------- */
/* ESPECIFICACIONES SECTION  */
/* ------------------------- */
.specs-grid {
    display: grid;
    gap: 40px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.spec-table th, .spec-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.spec-table th {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.spec-table tr:nth-child(even) {
    background-color: var(--bg-gray);
}

/* ------------------------- */
/* POLITICA DE CALIDAD SECTION */
/* ------------------------- */
.quality-policy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.quality-policy-content ul {
    list-style: none;
    padding-left: 0;
}
.quality-policy-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}
.quality-policy-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* ------------------------- */
/* LOGÍSTICA SECTION         */
/* ------------------------- */
.logistics-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.logistics-content img {
    width: 100%;
    max-width: 500px;
}

/* ------------------------- */
/* FAQ SECTION               */
/* ------------------------- */
.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.faq-answer p {
    padding: 0 0 20px;
}

/* ------------------------- */
/* SOBRE NOSOTROS SECTION    */
/* ------------------------- */
.about-us-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ------------------------- */
/* FORMULARIO DE CONTACTO    */
/* ------------------------- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ------------------------- */
/* FOOTER                    */
/* ------------------------- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

.footer-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-info svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    fill: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #aaa;
}

/* ------------------------- */
/* WHATSAPP FLOTANTE         */
/* ------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ------------------------- */
/* MEDIA QUERIES (RESPONSIVE) */
/* ------------------------- */

@media (min-width: 768px) {
    h2 {
        font-size: 2.8rem;
    }

    .hamburger-menu {
        display: flex;
    }
    
    .hamburger-icon {
        display: none;
    }

    .main-nav {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-buttons .btn {
        width: 320px;
    }
    
    .tab-pane-content {
        flex-direction: row;
        text-align: left;
    }

    .tab-pane-content img {
        width: 45%;
    }
    
    .tab-pane-content .text-content {
        width: 55%;
    }

    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .logistics-content {
        flex-direction: row;
        text-align: left;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 50px;
    }
}

@media (max-width: 767px) {
    .client-logo {
        flex: 0 0 33.33%; /* 3 logos on mobile */
    }
    .carousel-btn.prev {
        left: 5px;
    }
    .carousel-btn.next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .client-logo {
        flex: 0 0 50%; /* 2 logos on small mobile */
    }
    .tab-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .tab-btn {
        border-bottom: 1px solid #ddd;
    }
    .spec-table, .spec-table thead, .spec-table tbody, .spec-table th, .spec-table td, .spec-table tr {
        display: block;
    }
    .spec-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .spec-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }
    .spec-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    .spec-table td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        content: attr(data-label);
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }
}