@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-yellow: #FFC107;
    --secondary-gray: #333333;
    --light-gray: #f4f4f4;
    --text-color: #555;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: white;
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-gray);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delay-1 {
    transition-delay: 0.2s;
}

.fade-in.delay-2 {
    transition-delay: 0.4s;
}

.fade-in.delay-3 {
    transition-delay: 0.6s;
}

/* Button Global Style - Rounded as requested */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-yellow);
    color: var(--secondary-gray);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 50px;
    /* Globally rounded */
}

.btn:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 182, 0, 0.4);
}

.hero-content .btn {
    margin: 10px;
    /* Add spacing for side-by-side buttons */
}

.btn-hero-whatsapp {
    background-color: #25D366;
    /* WhatsApp Green */
    color: #fff;
    border: 2px solid #25D366;
}

.btn-hero-whatsapp:hover {
    background-color: #128C7E;
    color: #fff;
    border-color: #128C7E;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-yellow);
    color: var(--secondary-gray);
    border-radius: 50px;
}

.btn-outline:hover {
    background: var(--primary-yellow);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #fff;
    /* Fondo blanco solido */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
    /* border-bottom removed or kept if desired, but usually redundant with white bg */
}

.main-header.scrolled {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--secondary-gray);
    /* Texto gris */
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-yellow);
    /* Amarillo al pasar el cursor o activo */
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Clients Carousel */
.clients-section {
    overflow: hidden;
    padding: 60px 0;
    background: #fff;
    position: relative;
}

.clients-slider {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll-clients 35s linear infinite;
}

.clients-slider:hover {
    animation-play-state: paused;
}

.client-logo {
    flex: 0 0 160px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll-clients {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Moves half the width (assuming content is duplicated) */
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    margin-top: var(--header-height);
    /* Bajar el fondo para que empiece despues del menu */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
    color: #fff;
    /* Asegurando texto blanco */
}

.hero-content h1:hover {
    color: var(--primary-yellow);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Cert Bar */
.cert-bar {
    background: var(--light-gray);
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.cert-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cert-bar img {
    height: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.cert-bar img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--secondary-gray);
}

.section-title span {
    color: var(--primary-yellow);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.card-info {
    padding: 25px;
    text-align: center;
}

.card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--secondary-gray);
}

.card-info p {
    color: #888;
    font-size: 0.9rem;
}

/* Services Banner */
.services-banner {
    background: var(--light-gray);
    /* Cambiado de secondary-gray a light-gray */
    padding: 80px 0;
    color: var(--secondary-gray);
    /* Texto oscuro para contrastar */
}

.service-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.service-text {
    flex: 1;
}

.service-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-gray);
    /* Cambiado de primary-yellow a oscuro porque el fondo es claro */
}

.service-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.service-img {
    flex: 1;
    height: 300px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 60px 0 0;
}

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

.footer-col h3 {
    color: var(--primary-yellow);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    opacity: 0.7;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-yellow);
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
    width: 100%;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
}

.social-btn:hover {
    background: var(--primary-yellow);
    color: var(--secondary-gray);
    transform: translateY(-3px);
    border-color: var(--primary-yellow);
}

.copyright {
    background: #222;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary-gray);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: var(--header-height);
        left: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    /* JS Toggle class */
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .service-flex {
        flex-direction: column;
    }

    .service-img {
        width: 100%;
    }
}

/* Blog Single Page Specific Styles */
.blog-single-page {
    background-color: #f9f9f9;
}

.blog-single-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: -50px;
    /* Overlap hero slightly */
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.blog-main-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.blog-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.article-body h2 {
    color: var(--secondary-gray);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.article-body p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #444;
}

.article-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

.blog-sidebar {
    position: sticky;
    top: 110px;
    /* Header height + 20px */
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-yellow);
    padding-left: 15px;
}

.recent-posts-list {
    list-style: none;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.recent-post-img {
    width: 60px;
    height: 60px;
    background-color: #ddd;
    border-radius: 4px;
    background-size: cover;
    flex-shrink: 0;
}

.recent-post-info a {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
    display: block;
    margin-bottom: 5px;
}

.recent-post-info a:hover {
    color: var(--primary-yellow);
}

.recent-post-date {
    font-size: 0.8rem;
    color: #999;
}

@media (max-width: 992px) {
    .blog-single-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }
}

/* About Page Specifics - V3 */
.about-section {
    max-width: 900px;
    margin: 0 auto 100px;
    text-align: center;
}

.about-text-center .large-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--secondary-gray);
    max-width: 800px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 100px;
}

.about-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    text-align: left;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.card-image-wrapper {
    height: 250px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.about-card h3 {
    padding: 25px 25px 15px;
    font-size: 1.5rem;
    color: var(--secondary-gray);
}

.about-card p {
    padding: 0 25px 30px;
    color: #666;
    font-size: 1.05rem;
}

/* Location Banner */
.location-banner {
    display: flex;
    background: var(--light-gray);
    /* Or a dark theme */
    border-radius: 20px;
    /* Modern rounded corners */
    overflow: hidden;
    margin-bottom: 100px;
}

.location-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--secondary-gray);
}

.location-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.location-image {
    flex: 1;
    min-height: 400px;
}

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

/* Logistics Section */
.logistics-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.logistics-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--secondary-gray);
}

.logistics-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.logistics-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.logistics-images img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .location-banner {
        flex-direction: column-reverse;
    }

    .location-image {
        min-height: 250px;
    }

    .location-content {
        padding: 40px;
    }

    .logistics-section {
        grid-template-columns: 1fr;
    }

    .cert-content {
        flex-direction: column;
        text-align: center !important;
    }

    .cert-content div {
        text-align: center !important;
    }
}


/* FAQ / Accordion Section */
.faq-section {
    max-width: 900px;
    margin: 0 auto 100px;
}

.faq-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--secondary-gray);
}

.accordion-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px 30px;
    background: #fff;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary-gray);
    font-weight: 700;
}

.accordion-header i {
    font-size: 1.2rem;
    color: var(--primary-yellow);
    transition: transform 0.3s ease;
}

.accordion-header:hover {
    background: #f9f9f9;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #fff;
}

.accordion-body {
    padding: 0 30px 30px;
    color: #666;
    line-height: 1.8;
}

.values-list,
.policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li,
.policy-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.values-list li strong,
.policy-list li strong {
    color: var(--secondary-gray);
    display: block;
    margin-bottom: 5px;
}

.values-list li::before,
.policy-list li::before {
    content: " ";
    color: var(--primary-yellow);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}


/* Stats Section */
.stats-section {
    display: flex;
    align-items: center;
    background: #fdfdfd;
    margin-bottom: 100px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.stats-image {
    flex: 1;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.stats-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.stats-image:hover img {
    transform: scale(1.03);
}

.stats-content {
    flex: 1;
    padding: 60px;
    display: flex;
    justify-content: center;
    gap: 80px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon {
    font-size: 3rem;
    color: var(--secondary-gray);
    /* Or grey as requested, maybe lighter? */
    margin-bottom: 20px;
    opacity: 0.8;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-yellow);
    line-height: 1;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1rem;
    letter-spacing: 1px;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
}


/* Collaborators Carousel */
.collaborators-showcase {
    margin-bottom: 100px;
}

.carousel-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 30px;
    /* Hide scrollbar if possible or give space */
    -webkit-overflow-scrolling: touch;
}

.collab-card {
    flex: 0 0 450px;
    /* Wider card */
    height: 300px;
    /* Shorter height */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #eee;
}

.collab-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Responsive */
@media (max-width: 992px) {
    .stats-section {
        flex-direction: column;
    }

    .stats-image {
        height: 300px;
        width: 100%;
    }

    .stats-content {
        gap: 40px;
        padding: 40px;
    }
}


/* Infinite Scroll Carousel */
.carousel-container {
    overflow: hidden;
    /* Hide scrollbar */
    padding-bottom: 30px;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    /* Width: (Item Width 450px + Gap 20px) * 14 items (7 original + 7 duplicates) */
    width: calc(470px * 14);
    animation: scroll-collab 30s linear infinite;
    /* Slower animation for wider track */
}

@keyframes scroll-collab {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-470px * 7));
        /* Scroll half the width (7 items) */
    }
}

.collab-card {
    flex: 0 0 450px;
    /* Wider card */
    height: 300px;
    /* Shorter height */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #eee;
}

/* Pause on hover */
.carousel-track:hover {
    animation-play-state: paused;
}


/* --- About Us Page Specific Updates --- */

/* Hero Title Effect */
.hero-title-yellow-effect {
    color: #fff;
    text-shadow:
        1px 1px 0 var(--primary-yellow),
        -1px 1px 0 var(--primary-yellow),
        1px -1px 0 var(--primary-yellow),
        -1px -1px 0 var(--primary-yellow);
    letter-spacing: 1px;
}

/* Awards Section */
.awards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.award-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.award-date {
    background: var(--light-gray);
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    min-width: 80px;
}

.award-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-gray);
    line-height: 1;
}

.award-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
}

.award-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.award-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.award-location {
    font-size: 0.85rem !important;
    color: var(--primary-yellow) !important;
    margin-top: 5px !important;
    font-weight: 600;
}

/* Awards Carousel */
.awards-carousel-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    /* height: 500px; */
    /* Let content define height or set fixed */
    display: flex;
    align-items: center;
    background: #fdfdfd;
    /* Background for the area */
}

.awards-carousel-track {
    display: flex;
    gap: 20px;
    /* Width: (Item Width 300px + Gap 20px) * 8 items (4 original + 4 duplicates) */
    width: calc(320px * 8);
    animation: scroll-awards 20s linear infinite;
}

@keyframes scroll-awards {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-320px * 4));
    }
}

.award-card {
    flex: 0 0 300px;
    height: 300px;
    /* Square/Circular awards usually fit better in square or vertical */
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.award-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 992px) {
    .awards-container {
        grid-template-columns: 1fr;
    }

    .awards-carousel-wrapper {
        margin-top: 40px;
    }
}

/* --- New Sections Styles --- */

/* Problem / Solution Section */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #666;
}

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

.benefit-card {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Authority Section */
.authority-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.authority-text .large-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    border-left: 4px solid var(--primary-yellow);
    padding-left: 20px;
}

.authority-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.iso-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.iso-badge {
    max-width: 200px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.iso-badge:hover {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .authority-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .authority-text .section-title {
        text-align: center !important;
    }

    .authority-text .large-text {
        border-left: none;
        border-top: 4px solid var(--primary-yellow);
        padding-top: 20px;
        padding-left: 0;
    }
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 100px 0;
    background-image: url('../img/hero-bg.jpg');
    /* Fallback or use standard bg */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: #fff;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Darkened overlay */
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    font-size: 1.1rem;
    padding: 15px 40px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Footer Fix - Ensure Body Height */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

footer {
    margin-bottom: 0 !important;
}

/* --- Stats Counter Section --- */
.stats-counter-section {
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.stat-item {
    background: #fff;
    /* Keep white cards or transparent? User said "manteniendo el fondo que actualmente tiene". The section has light-gray bg. The cert bar had light gray. */
    /* Let's make it look integrated */
    padding: 20px;
    border-radius: 10px;
    /* No shadow/bg for clean look if sticking to bar style, but "cards" might be better. */
    /* But the user said "que sea como el de la otra imagen, pero mucho mejor... manteniendo el fondo". The other image shows yellow boxes. I will use yellow outlines or simply bold text. Let's go with a clean card look to match the new vibe. */
    background: transparent;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-yellow);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Updated Product Cards --- */
.product-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 0;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.product-img-holder {
    width: 100%;
    height: 150px;
    background-color: #f0f0f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-holder::after {
    content: "Imagen";
    color: #ccc;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-icon-header {
    width: 40px;
    height: 40px;
    background: transparent;
    position: absolute;
    top: 15px;
    left: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #444;
    z-index: 2;
}

.product-card .card-icon-header i {
    color: #333;
}

.card-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-subtitle {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: 0.85rem;
    color: #555;
    flex-grow: 1;
}

.product-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.product-features li i {
    color: #333;
    font-size: 0.8rem;
    margin-top: 3px;
}

.card-applications {
    display: none;
}

.btn-text {
    display: block;
    text-align: center;
    color: #888;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 0;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card:hover .btn-text {
    color: var(--primary-yellow);
}

/* --- New Services Grid Section --- */
.services-grid-section {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto 25px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* --- Why Choose Us Section --- */
.why-choose-section {
    background: #fff;
    text-align: center;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.reason-item {
    text-align: center;
    padding: 20px;
}

.reason-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    border-radius: 12px;
    background: #FFF8E1;
    /* Light yellow background */
    color: var(--secondary-gray);
    /* Dark icon */
    transition: all 0.3s ease;
}

.reason-item:hover .reason-icon {
    background: var(--primary-yellow);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.reason-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.reason-item p {
    font-size: 0.9rem;
    color: #777;
}

/* Footer Fix */
/* Ensure no margin/padding causes the white strip */
body {
    margin-bottom: 0;
    padding-bottom: 0;
}

footer {
    margin-bottom: 0;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #FFF;
}

.my-float {
    margin-top: 0px;
}

/* ===== PRODUCTS PAGE STYLES ===== */

/* Product Search Bar */
.product-search-container {
    position: relative;
    max-width: 600px;
    margin: 30px auto;
}

.product-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: all 0.3s ease;
}

.product-search-input:focus {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.product-search-container i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-yellow);
    font-size: 1.2rem;
}

/* WhatsApp Hero Button */
.btn-whatsapp-hero {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 40px;
    background-color: #25D366;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.btn-whatsapp-hero:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.btn-whatsapp-hero i {
    margin-right: 10px;
    font-size: 1.3rem;
}

/* Category Tabs Container */
.category-tabs-container {
    margin-bottom: 50px;
}

/* Main Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-tab {
    padding: 12px 30px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50px;
    color: var(--secondary-gray);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    transform: translateY(-2px);
}

.category-tab.active {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: #fff;
}

/* Large Category Buttons */
.category-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.category-btn-large {
    padding: 40px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.category-btn-large:hover {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #e0a800 100%);
    border-color: var(--primary-yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
}

.category-btn-large i {
    font-size: 2.5rem;
    color: var(--secondary-gray);
    transition: color 0.3s ease;
}

.category-btn-large:hover i {
    color: #fff;
}

.category-btn-large span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-gray);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.category-btn-large:hover span {
    color: #fff;
}

/* ISO Badge */
.iso-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 193, 7, 0.95);
    color: var(--secondary-gray);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Product Card Enhancements */
.card-image {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 15px 0;
    min-height: 60px;
}

.btn-details {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-yellow);
    color: var(--secondary-gray);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-details:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

/* Product Card Hidden State for Filtering */
.product-card.hidden {
    display: none;
}

/* Responsive Styles for Products Page */
@media (max-width: 768px) {
    .category-tabs {
        gap: 10px;
    }
    
    .category-tab {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .category-buttons {
        grid-template-columns: 1fr;
    }
    
    .category-btn-large {
        padding: 30px 20px;
    }
    
    .product-search-input {
        font-size: 0.9rem;
        padding: 12px 40px 12px 15px;
    }
    
    .btn-whatsapp-hero {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.6); 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--secondary-gray);
    text-decoration: none;
    cursor: pointer;
}

.modal-header h3 {
    color: var(--secondary-gray);
    border-bottom: 2px solid var(--primary-yellow);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    height: 100px;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
}

.footer-links-extra {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-extra a {
    color: #ccc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.footer-links-extra a:hover {
    color: var(--primary-yellow);
}

