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

/* CSS Variables - Color System */
:root {
    /* Primary Colors */
    --color-primary-dark: #4E686F;
    --color-accent-primary: #057EA1;
    --color-accent-secondary: #01ACF0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #057EA1, #01ACF0);
    --gradient-header: linear-gradient(135deg, rgba(78, 104, 111, 0.95), rgba(5, 126, 161, 0.85));
    --gradient-hero: linear-gradient(135deg, rgba(78, 104, 111, 0.8), rgba(5, 126, 161, 0.7));

    /* Shadows */
    --shadow-accent: 0 4px 15px rgba(5, 126, 161, 0.3);
    --shadow-hover: 0 6px 20px rgba(1, 172, 240, 0.4);
    --shadow-card: 0 8px 25px rgba(5, 126, 161, 0.2);

    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --bg-dark: #4E686F;

    /* Text Colors */
    --text-dark: #333333;
    --text-light: #666666;
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F5F5F5;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

/* Header */
.header {
    background: #4E686F;
    /* Fallback */
    background: var(--color-primary-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 0.8rem 0;
}

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

.nav-logo h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.founded {
    color: #2E8B57;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 500;
}

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

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
}

.nav-menu a:hover {
    color: var(--color-accent-primary);
    color: #057EA1;
    /* Fallback */
    background: rgba(5, 126, 161, 0.1);
    background: rgba(5, 126, 161, 0.1);
}

/* Mobile Only Nav Items */
.mobile-only-nav {
    display: none !important;
}

@media (min-width: 769px) {
    .mobile-only-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-only-nav {
        display: block !important;
        margin-top: 10px;
    }

    .mobile-only-nav a {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
        margin-bottom: 5px;
    }
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    background: var(--gradient-hero), url('../img/servicios/SERMALITE - ELEVADOR REFERENCIA 3 - APROBADA.webp');
    background: linear-gradient(135deg, rgba(78, 104, 111, 0.8), rgba(5, 126, 161, 0.7)), url('../img/servicios/SERMALITE - ELEVADOR REFERENCIA 3 - APROBADA.webp');
    /* Fallback */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 250px 0 100px;
    text-align: center;
    position: relative;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
}

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

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--color-accent-primary);
    background: #057EA1;
    /* Fallback */
    color: white;
    padding: 18px 36px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-accent);
    box-shadow: 0 4px 15px rgba(5, 126, 161, 0.3);
    /* Fallback */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--color-accent-secondary);
    background: #01ACF0;
    /* Fallback */
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    box-shadow: 0 6px 20px rgba(1, 172, 240, 0.4);
    /* Fallback */
}

.hero-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: var(--color-accent-primary);
    background: #057EA1;
    /* Fallback */
    border: none;
    box-shadow: var(--shadow-accent);
}

.btn-secondary:hover {
    background: var(--color-accent-secondary);
    background: #01ACF0;
    /* Fallback */
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 480px) {
    .hero-cta-container {
        flex-direction: column;
        gap: 15px;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        padding: 15px 20px;
        font-size: 1rem;
    }
}

/* Purpose Section */
.purpose {
    background: white;
    padding: 100px 0;
    text-align: center;
}

.purpose h2 {
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .purpose h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .purpose h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
}

.purpose p {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
}

/* About Section */
.about {
    padding: 80px 0;
}

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

.about-text h2 {
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 2.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .about-text h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-text h2 {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.iso-badge {
    background: var(--gradient-primary);
    background: linear-gradient(135deg, #057EA1, #01ACF0);
    /* Fallback */
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 2rem;
    box-shadow: var(--shadow-accent);
    box-shadow: 0 4px 15px rgba(5, 126, 161, 0.2);
    /* Fallback */
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .iso-badge {
        padding: 15px;
        gap: 10px;
        margin-top: 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .iso-badge {
        padding: 12px;
        gap: 8px;
        margin-top: 1rem;
        font-size: 0.8rem;
        flex-direction: column;
        text-align: center;
    }

    .iso-badge i {
        font-size: 1.5rem;
    }
}

.mvv-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.mvv-item h3 {
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 1.6rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.mvv-item p {
    line-height: 1.7;
}

/* Values Section */
.values {
    background: #f8f9fa;
    padding: 80px 0;
}

.values h2 {
    text-align: center;
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 2.8rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .values h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .values h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
}

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

.value-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    color: var(--color-accent-primary);
    color: #057EA1;
    /* Fallback */
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.value-item h4 {
    color: #333;
    font-size: 1.2rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    position: relative;
}

/* Services Background Slideshow */
.services-slideshow {
    position: relative;
    overflow: hidden;
}

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

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

.services-bg-slide.active {
    opacity: 1;
}

.services-bg-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    background: linear-gradient(135deg, rgba(78, 104, 111, 0.8), rgba(5, 126, 161, 0.7));
    /* Fallback */
    z-index: 1;
}

.services .container {
    position: relative;
    z-index: 2;
}

.services h2 {
    text-align: center;
    color: white;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .services h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .services h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
}

.service-category {
    margin-bottom: 4rem;
}

.service-category h3 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-category p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

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

.service-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.3s;
}

.service-item:hover {
    background: var(--gradient-primary);
    background: linear-gradient(135deg, #057EA1, #01ACF0);
    /* Fallback */
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    box-shadow: 0 6px 20px rgba(5, 126, 161, 0.3);
    /* Fallback */
}

.service-item i {
    color: var(--color-accent-primary);
    color: #057EA1;
    /* Fallback */
    font-size: 1.5rem;
    min-width: 30px;
    transition: color 0.3s ease;
}

.service-item:hover i {
    color: white;
}

.service-item h4 {
    color: #333;
    font-size: 1rem;
}

/* Products Section */
.products {
    background: #f8f9fa;
    padding: 80px 0;
}

.products h2 {
    text-align: center;
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 2.8rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .products h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .products h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
}

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

.products-text h3 {
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.products-text p {
    font-size: 1.2rem;
    line-height: 1.8;
}

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

.product-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    box-shadow: 0 8px 25px rgba(5, 126, 161, 0.2);
    /* Fallback */
}

.product-item i {
    color: var(--color-accent-primary);
    color: #057EA1;
    /* Fallback */
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-item span {
    font-weight: 600;
    color: #333;
}

/* Why Us Section */
.why-us {
    padding: 80px 0;
}

.why-us h2 {
    text-align: center;
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 2.8rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .why-us h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .why-us h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.why-item {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
}

.why-icon {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent-primary));
    background: linear-gradient(135deg, #4E686F, #057EA1);
    /* Fallback */
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(78, 104, 111, 0.3);
}

.why-icon i {
    color: white;
    font-size: 2rem;
}

.why-item h3 {
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.why-item p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.why-item ul {
    text-align: left;
    margin-left: 2rem;
}

.why-item li {
    margin-bottom: 0.5rem;
}

/* Clients Section */
.clients {
    background: #f8f9fa;
    padding: 80px 0;
}

.clients h2 {
    text-align: center;
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 2.8rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .clients h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .clients h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
}

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

.sector {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sector:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-primary);
    border-color: #057EA1;
    /* Fallback */
    box-shadow: var(--shadow-card);
    box-shadow: 0 8px 25px rgba(5, 126, 161, 0.2);
    /* Fallback */
}

.sector i {
    color: var(--color-accent-primary);
    color: #057EA1;
    /* Fallback */
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.sector h4 {
    color: #333;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact {
    background: #fbfdff;
}

.contact h2 {
    text-align: center;
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 2.8rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .contact h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact-info h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-info h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 2rem;
}

.contact-item i {
    color: var(--color-accent-primary);
    color: #057EA1;
    /* Fallback */
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item .icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(5, 126, 161, 0.12), rgba(78, 104, 111, 0.06));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-primary);
    color: #057EA1;
    /* Fallback */
    font-size: 1.1rem;
    margin-right: 12px;
}

.contact-item h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .contact-item h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-item h4 {
        font-size: 0.9rem;
    }
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: linear-gradient(180deg, #ffffff, #fbfbff);
    padding: 2.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}

.contact-form h3 {
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact-form h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-form h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.contact-phones {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.contact-phones a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e6eef0;
    border-radius: 8px;
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.04);
    font-weight: 600;
}

.contact-phones a .fab {
    color: #25D366;
}

/* Improve spacing for small screens */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.2rem;
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    border-color: #057EA1;
    /* Fallback */
    box-shadow: 0 0 0 3px rgba(5, 126, 161, 0.1);
}

.submit-btn {
    background: var(--gradient-primary);
    background: linear-gradient(135deg, #057EA1, #01ACF0);
    /* Fallback */
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-accent);
    box-shadow: 0 4px 15px rgba(5, 126, 161, 0.3);
    /* Fallback */
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    box-shadow: 0 6px 20px rgba(1, 172, 240, 0.4);
    /* Fallback */
}

/* Footer Legal Links */
.footer-legal-links a:hover {
    color: white !important;
}

/* Footer */
.footer {
    background: var(--color-primary-dark);
    background: #4E686F;
    /* Fallback */
    color: white;
    padding: 80px 0 30px;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--color-accent-primary);
    color: #057EA1;
    /* Fallback */
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section a {
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-accent-secondary);
    color: #01ACF0;
    /* Fallback */
}

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

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

.footer-section p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    text-align: center;
}

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--color-primary-dark);
        background-color: #4E686F;
        /* Fallback */
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
        overflow-y: auto;
        padding-top: 20px;
    }

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

    .nav-menu li {
        margin: 15px 0;
        width: 100%;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

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

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

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

    .values-compact {
        gap: 8px;
    }

    .value-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .sectors-compact {
        gap: 8px;
    }

    .sector-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

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

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

    .mvv-tabs {
        flex-direction: column;
    }

    .tab-btn {
        justify-content: flex-start;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
        max-width: 100%;
    }

    .contact-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 50px;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

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

    .stat h3 {
        font-size: 1.8rem;
    }

    .stat p {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 10px;
        max-width: 100%;
    }

    .logo-img {
        height: 70px;
        width: 70px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }

    .value-tag,
    .sector-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .tab-content {
        padding: 15px;
    }

    .expandable-text {
        margin-bottom: 1rem;
    }

    .read-more-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }
}

/* Animaciones y efectos adicionales */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    box-shadow: 0 8px 25px rgba(5, 126, 161, 0.2);
    /* Fallback */
    border-color: var(--color-accent-primary);
    border-color: #057EA1;
    /* Fallback */
}

/* Efectos de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Overlay para hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    background: linear-gradient(135deg, rgba(78, 104, 111, 0.8), rgba(5, 126, 161, 0.6));
    /* Fallback */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Botones con efectos modernos */
.btn-modern {
    background: var(--gradient-primary);
    background: linear-gradient(135deg, #057EA1, #01ACF0);
    /* Fallback */
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-accent);
    box-shadow: 0 4px 15px rgba(5, 126, 161, 0.3);
    /* Fallback */
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    box-shadow: 0 6px 20px rgba(1, 172, 240, 0.4);
    /* Fallback */
}

/* Center B2B CTA button */
.b2b .btn-modern {
    display: block;
    margin: 24px auto 0;
    text-align: center;
}

/* Header Actions Container */
.header-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: 20px;
    padding: 2px 0;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    padding: 8px 15px;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

/* Unify button styles in header actions */
.header-actions .btn-outline-light {
    background: var(--gradient-primary);
    background: linear-gradient(135deg, #057EA1, #01ACF0);
    border: none;
    width: 100%;
    justify-content: center;
    padding: 6px 18px;
}

/* Header CTA */
.header-cta {
    margin-left: 0;
    background: var(--gradient-primary);
    background: linear-gradient(135deg, #057EA1, #01ACF0);
    /* Fallback */
    padding: 6px 18px;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    width: 100%;
    text-align: center;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 12px;
}

.breadcrumb a {
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    text-decoration: none;
}

/* B2B form */
.b2b-form {
    max-width: 900px;
    margin: 24px auto 0;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.b2b-form .form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.b2b-form input,
.b2b-form select,
.b2b-form textarea {
    flex: 1 1 0;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.b2b-form textarea {
    resize: vertical;
}

.b2b-form .b2b-alt {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* Hero mobile padding tweak */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .b2b-form .form-row {
        flex-direction: column;
    }

    .header-cta {
        display: none !important;
    }

    /* Move header actions to mobile menu or stack below */
    .header-actions {
        display: none !important;
        /* Hide by default on mobile header to avoid clutter */
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 50px;
    }
}

/* Separadores de sección */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-primary), transparent);
    background: linear-gradient(90deg, transparent, #057EA1, transparent);
    /* Fallback */
    margin: 60px auto;
    width: 100px;
}

/* Efectos de texto */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent-primary));
    background: linear-gradient(135deg, #4E686F, #057EA1);
    /* Fallback */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mejoras responsive adicionales */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .card {
        padding: 20px;
    }

    .why-icon {
        width: 70px;
        height: 70px;
    }
}

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

    .hero {
        padding: 120px 0 80px;
    }

    .section h2 {
        font-size: 2.2rem;
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
    font-size: 1.1rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    margin: 0;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}

/* Google Reviews Button */
.google-reviews-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4285F4;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.google-reviews-btn:hover {
    background: #3367D6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.google-reviews-btn i {
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials {
    background: white;
    padding: 80px 0;
}

.testimonials h2 {
    text-align: center;
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 2.8rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .testimonials h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .testimonials h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
}

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

.testimonial-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--color-accent-primary);
    border-left: 4px solid #057EA1;
    /* Fallback */
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    box-shadow: 0 8px 25px rgba(5, 126, 161, 0.2);
    /* Fallback */
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    background: var(--color-accent-primary);
    background: #057EA1;
    /* Fallback */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    overflow: hidden;
}

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

.testimonial-info h4 {
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.testimonial-stars {
    color: #FFD700;
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
    color: #555;
}

.google-rating {
    text-align: center;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.rating-stars {
    margin-bottom: 1.5rem;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    margin-right: 1rem;
}

.stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin: 0 1rem;
}

.reviews-count {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* EFECTOS MODERNOS Y TRENDING */

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Parallax Scrolling */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient-text {
    background: linear-gradient(-45deg, var(--color-primary-dark), var(--color-accent-primary), var(--color-accent-secondary), var(--color-primary-dark));
    background: linear-gradient(-45deg, #4E686F, #057EA1, #01ACF0, #4E686F);
    /* Fallback */
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* Morphing Shapes */
.morphing-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    50% {
        border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    }

    75% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Neumorphism Cards */
.neuro-card {
    background: #f0f0f0;
    border-radius: 20px;
    box-shadow:
        20px 20px 60px #bebebe,
        -20px -20px 60px #ffffff;
    transition: all 0.3s ease;
}

.neuro-card:hover {
    box-shadow:
        inset 20px 20px 60px #bebebe,
        inset -20px -20px 60px #ffffff;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Button Effect */
.magnetic-btn {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
}

.magnetic-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(46, 139, 87, 0.4);
}

/* Glitch Effect */
@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.glitch:hover {
    animation: glitch 0.3s;
}

/* Liquid Blob Background */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    mix-blend-mode: multiply;
    animation: blob 7s infinite;
}

@keyframes blob {

    0%,
    100% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.text-reveal.active span {
    transform: translateY(0);
}

/* Particle Background */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(46, 139, 87, 0.5);
    border-radius: 50%;
    animation: particle-float 15s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Smooth Cursor Follow */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(46, 139, 87, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* 3D Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(10deg);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .floating {
        animation: none;
    }

    .morphing-shape {
        animation: none;
    }

    .blob {
        display: none;
    }

    .particles {
        display: none;
    }
}

/* Clients Carousel */
.clients-carousel {
    background: white;
    padding: 30px 0;
    margin: 40px 0;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.carousel-track {
    display: flex;
    align-items: center;
    animation: scroll-left 30s linear infinite;
    width: calc(340px * 21);
    /* 14 logos originales + 7 duplicados */
}

.client-logo {
    width: 320px;
    height: 240px;
    object-fit: contain;
    margin: 0 10px;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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

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

    100% {
        transform: translateX(calc(-340px * 14));
        /* Ancho de los 14 logos originales */
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .client-logo {
        width: 160px;
        height: 120px;
        margin: 0 15px;
    }

    .carousel-track {
        width: calc(190px * 21);
    }

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

        100% {
            transform: translateX(calc(-190px * 14));
        }
    }
}

/* Sectores compactos */
.sectors-compact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.sector-tag {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent-primary));
    background: linear-gradient(135deg, #4E686F, #057EA1);
    /* Fallback */
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(78, 104, 111, 0.2);
}

.sector-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 104, 111, 0.3);
}

.sector-tag i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .sectors-compact {
        gap: 10px;
    }

    .sector-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Valores compactos */
.values-compact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.value-tag {
    background: var(--gradient-primary);
    background: linear-gradient(135deg, #057EA1, #01ACF0);
    /* Fallback */
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-accent);
    box-shadow: 0 3px 12px rgba(5, 126, 161, 0.2);
    /* Fallback */
}

.value-tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    box-shadow: 0 6px 20px rgba(1, 172, 240, 0.3);
    /* Fallback */
    background: linear-gradient(135deg, #01ACF0, #057EA1);
}

.value-tag i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .values-compact {
        gap: 10px;
    }

    .value-tag {
        font-size: 0.85rem;
        padding: 8px 14px;
    }

    .value-tag i {
        font-size: 1rem;
    }
}

/* Blog Section */
.blog {
    background: white;
    padding: 80px 0;
}

.blog h2 {
    text-align: center;
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .blog h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .blog h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
}

.blog-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.blog-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    box-shadow: 0 8px 30px rgba(5, 126, 161, 0.2);
    /* Fallback */
    border-color: var(--color-accent-primary);
    border-color: #057EA1;
    /* Fallback */
}

.blog-image {
    width: 100%;
    height: 200px;
    background: #e9ecef;
    overflow: hidden;
    position: relative;
}

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

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

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--color-accent-primary);
    color: #057EA1;
    /* Fallback */
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.blog-title {
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-read-more {
    color: var(--color-accent-primary);
    color: #057EA1;
    /* Fallback */
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    gap: 10px;
}



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

/* Article Page Styles */
.article-main {
    padding: 120px 0 80px;
    background: #f8f9fa;
    min-height: 100vh;
}

.article-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.article-content h1 {
    color: #003366;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.article-date,
.article-category {
    color: #2E8B57;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-content h2 {
    color: #003366;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid #2E8B57;
    padding-left: 1rem;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
}

.article-content ul {
    margin: 1rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-nav {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .article-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

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

    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Logo Styles */
.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.logo-img {
    height: 140px;
    width: 140px;
    object-fit: contain;
}

.founded {
    color: #2E8B57;
    font-size: 0.85rem;
    font-style: italic;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .logo-img {
        height: 90px;
    }

    .founded {
        font-size: 0.8rem;
    }
}

/* Services Carousel */
.services-carousel {
    background: white;
    padding: 40px 0;
    margin: 40px 0 0 0;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.services-carousel-track {
    display: flex;
    align-items: center;
    animation: scroll-services 40s linear infinite;
}

.service-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    margin: 0 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.3);
}

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

    100% {
        transform: translateX(calc(-320px * 13));
        /* 13 imágenes */
    }
}

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

@media (max-width: 768px) {
    .service-image {
        width: 250px;
        height: 150px;
        margin: 0 15px;
    }

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

        100% {
            transform: translateX(calc(-280px * 13));
        }
    }
}

/* Language Switcher */
.language-switcher {
    margin-left: 1rem;
}

.lang-btn {
    background: rgba(5, 126, 161, 0.2);
    color: white;
    border: 1px solid var(--color-accent-primary);
    border: 1px solid #057EA1;
    /* Fallback */
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.lang-btn:hover {
    background: var(--color-accent-primary);
    background: #057EA1;
    /* Fallback */
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 0;
        order: 1;
    }

    .lang-btn {
        padding: 10px 16px;
        font-size: 1rem;
    }
}

/* Expandable Text */
.expandable-text {
    position: relative;
    margin-bottom: 1rem;
}

.text-preview {
    position: relative;
}

.text-full {
    animation: fadeIn 0.3s ease;
}

.read-more-btn {
    background: var(--gradient-primary);
    background: linear-gradient(135deg, #057EA1, #01ACF0);
    /* Fallback */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    box-shadow: 0 4px 12px rgba(5, 126, 161, 0.3);
    /* Fallback */
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn.expanded i {
    transform: rotate(180deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mission Vision Tabs */
.mvv-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Ensure tab buttons are clickable above the fixed header on desktop */
@media (min-width: 769px) {
    .mvv-tabs {
        position: relative;
        z-index: 1002;
    }
}

.tab-btn {
    background: rgba(5, 126, 161, 0.1);
    border: 2px solid var(--color-accent-primary);
    border: 2px solid #057EA1;
    /* Fallback */
    color: var(--color-accent-primary);
    color: #057EA1;
    /* Fallback */
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;

    /* Preserve user-entered line breaks for mission/vision texts */
    .mission-vision .tab-pane p {
        white-space: pre-wrap;
        /* preserves newlines and wraps long text */
        word-break: break-word;
    }

    gap: 8px;
    flex: 1;
    justify-content: center;
    min-width: 120px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .mvv-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .tab-btn {
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .tab-btn:hover {
        background: rgba(5, 126, 161, 0.2);
        transform: translateY(-2px);
    }

    .tab-btn.active {
        background: var(--gradient-primary);
        background: linear-gradient(135deg, #057EA1, #01ACF0);
        /* Fallback */
        color: white;
        box-shadow: var(--shadow-accent);
        box-shadow: 0 4px 15px rgba(5, 126, 161, 0.3);
        /* Fallback */
    }

    .tab-content {
        background: white;
        padding: 25px;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        min-height: 120px;
    }

    @media (max-width: 768px) {
        .tab-content {
            padding: 20px;
            min-height: 100px;
        }
    }

    @media (max-width: 480px) {
        .tab-content {
            padding: 15px;
            min-height: 80px;
        }
    }

    .tab-pane {
        display: none;
        animation: fadeIn 0.4s ease;
    }

    .tab-pane.active {
        display: block !important;
    }

    .tab-pane p {
        line-height: 1.7;
        margin: 0;
        font-size: 1.1rem;
    }

    @media (max-width: 768px) {
        .tab-pane p {
            font-size: 1rem;
            line-height: 1.6;
        }
    }

    @media (max-width: 480px) {
        .tab-pane p {
            font-size: 0.9rem;
            line-height: 1.5;
        }
    }

    /* B2B Section Feature Cards Design */
    .b2b {
        background: white;
        padding: 100px 0;
    }

    .b2b h2 {
        text-align: center;
        color: #003366;
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
        font-weight: 700;
    }

    .b2b-intro {
        text-align: center;
        font-size: 1.2rem;
        color: #555;
        line-height: 1.6;
        max-width: 900px;
        margin: 0 auto 4rem;
    }

    .b2b-features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
        margin-bottom: 5rem;
    }

    .b2b-feature-card {
        background: white;
        padding: 3rem 2rem;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        text-align: center;
        border: 1px solid rgba(0, 0, 0, 0.03);
        position: relative;
        overflow: hidden;
    }

    .b2b-feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, #003366, #2E8B57);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .b2b-feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 51, 102, 0.1);
    }

    .b2b-feature-card:hover::before {
        opacity: 1;
    }

    .b2b-icon {
        font-size: 3.5rem;
        color: #2E8B57;
        margin-bottom: 1.5rem;
        background: rgba(46, 139, 87, 0.1);
        width: 90px;
        height: 90px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        transition: all 0.3s ease;
    }

    .b2b-feature-card:hover .b2b-icon {
        background: #2E8B57;
        color: white;
        transform: rotateY(180deg);
    }

    .b2b-feature-card h3 {
        color: #003366;
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .b2b-feature-card p {
        color: #666;
        line-height: 1.7;
        font-size: 1.05rem;
    }

    .b2b-cta-container {
        text-align: center;
        margin-bottom: 5rem;
    }

    .btn-large {
        padding: 20px 50px;
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .b2b-note {
        margin-top: 1rem;
        color: #888;
        font-size: 0.9rem;
        font-style: italic;
    }

    .b2b-faq {
        margin-top: 5rem;
        padding-top: 5rem;
        border-top: 1px solid #e0e0e0;
    }

    .b2b-faq h3 {
        text-align: center;
        color: #003366;
        font-size: 2rem;
        margin-bottom: 3rem;
        font-weight: 600;
    }

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

    .faq-item-card {
        background: #f8f9fa;
        padding: 2rem;
        border-radius: 12px;
        border-left: 5px solid #2E8B57;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .faq-item-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(46, 139, 87, 0.15);
    }

    .faq-item-card h4 {
        color: #003366;
        font-size: 1.2rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .faq-item-card p {
        color: #555;
        line-height: 1.7;
    }

    @media (max-width: 768px) {
        .b2b h2 {
            font-size: 2rem;
        }

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

        .b2b-feature-card {
            padding: 2rem 1.5rem;
        }
    }
}

/* B2B Section - Card Layout */
.b2b {
    background: white;
    padding: 100px 0;
}

.b2b h2 {
    text-align: center;
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.b2b-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 4rem;
}

/* Service Cards Grid */
.b2b-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.b2b-service-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 5px solid #2E8B57;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.b2b-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    box-shadow: 0 12px 30px rgba(5, 126, 161, 0.15);
    /* Fallback */
    border-left-width: 8px;
}

.b2b-service-card h3 {
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.b2b-service-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* FAQ Title */
.b2b-faq-title {
    text-align: center;
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

/* FAQ Cards Grid */
.b2b-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.b2b-faq-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.b2b-faq-card:hover {
    border-color: var(--color-accent-primary);
    border-color: #057EA1;
    /* Fallback */
    box-shadow: var(--shadow-card);
    box-shadow: 0 8px 25px rgba(5, 126, 161, 0.12);
    /* Fallback */
    transform: translateY(-5px);
}

.b2b-faq-card h4 {
    color: var(--color-primary-dark);
    color: #4E686F;
    /* Fallback */
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.b2b-faq-card p {
    color: #555;
    line-height: 1.7;
}

/* CTA Container */
.b2b-cta-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .b2b h2 {
        font-size: 2rem;
    }

    .b2b-services-grid,
    .b2b-faq-grid {
        grid-template-columns: 1fr;
    }

    .b2b-service-card,
    .b2b-faq-card {
        padding: 2rem 1.5rem;
    }
}

/* Services Carousel */
.services-carousel-container {
    margin-top: 4rem;
    overflow: hidden;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
}

.carousel-title {
    text-align: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: scroll 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.service-image {
    height: 200px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    object-fit: cover;
}

.service-image:hover {
    transform: scale(1.05);
}

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

    100% {
        transform: translateX(-50%);
    }
}