:root {
    --primary-blue: #1a3c6c;
    --secondary-blue: #2c5aa0;
    --accent-blue: #4a8cff;
    --light-blue: #e6f0ff;
    --dark-blue: #0a1f40;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --medium-gray: #d1d5db;
    --dark-gray: #4b5563;
    --gold: #d4af37;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-gray);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn.clicked::after {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background-color: var(--white);
    color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: var(--secondary-blue);
    color: var(--white);
    border: 2px solid var(--secondary-blue);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.section-title p {
    max-width: 700px;
    margin: 20px auto 0;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    height: 80px;
    gap: 12px;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 200px;
    transition: var(--transition);
    padding: 4px;
}

.logo h1 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin: 0;
}

.language-switcher {
    display: flex;
    gap: 3px;
}

.lang-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lang-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent-blue);
}

.lang-btn.active {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px var(--accent-blue);
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

nav ul {
    display: flex;
    list-style: none;
    margin-right: 10px;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-blue);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

.hero {
    background: linear-gradient(rgba(10, 31, 64, 0.8), rgba(10, 31, 64, 0.8)), url('');
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    max-width: 600px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-buttons .btn {
    background-color: var(--accent-blue);
    color: var(--white);
    border: 2px solid var(--accent-blue);
}

.hero-buttons .btn:hover {
    background-color: var(--white);
    color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.about {
    background-color: var(--white);
}

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

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 500px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-image.animated {
    opacity: 1;
    transform: translateY(0);
}

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

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

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--light-blue);
    border-radius: 8px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--primary-blue);
    font-weight: 600;
}

.products {
    background-color: var(--light-gray);
}

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

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.product-card.animated {
    opacity: 1;
    transform: translateY(0);
}

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

.product-image {
    height: 200px;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.product-content p {
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.product-tag {
    background: var(--light-blue);
    color: var(--secondary-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.deposits {
    background-color: var(--white);
}

.deposits-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.deposits-content {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.deposits-content.animated {
    opacity: 1;
    transform: translateX(0);
}

.deposits-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.deposits-content p {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    margin: 25px 0;
}

.features-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.features-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--accent-blue);
}

.deposits-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    height: 600px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.deposits-image.animated {
    opacity: 1;
    transform: translateX(0);
}

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 31, 64, 0.8);
    color: var(--white);
    padding: 20px;
}

.mensaje-certificado {
    color: white;
}

.contact {
    background: linear-gradient(to right, var(--primary-blue), var(--dark-blue));
    color: var(--white);
}

.contact .section-title h2 {
    color: var(--white);
}

.contact .section-title p {
    color: var(--light-blue);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-info.animated {
    opacity: 1;
    transform: translateX(0);
}

.contact-info h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    max-width: 400px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-icon {
    background: var(--accent-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--white);
    margin-bottom: 5px;
}

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

.contact-text a:hover {
    color: var(--accent-blue);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-form.animated {
    opacity: 1;
    transform: translateX(0);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-blue);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 140, 255, 0.2);
}

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

.contact-form .btn {
    width: 100%;
    background-color: var(--secondary-blue);
    padding: 15px;
    font-size: 1rem;
}

.contact-form .btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-col.animated {
    opacity: 1;
    transform: translateY(0);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-blue);
}

.footer-col p {
    color: var(--light-blue);
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-links a:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-blue);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-blue);
    font-size: 0.9rem;
}

.address-link {
    color: var(--light-blue);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.address-link:hover {
    color: var(--accent-blue);
}

.address-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.address-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

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

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Animación de pulso */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Efecto para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 25px;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .deposits-container {
        grid-template-columns: 1fr;
    }

    .deposits-image {
        height: 350px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .language-switcher {
        gap: 5px;
    }

    .lang-btn {
        width: 30px;
        height: 30px;
    }

    nav ul li {
        margin-left: 15px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        height: 50px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 350px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .deposits-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .deposits-image {
        order: -1;
    }

    .language-switcher {
        display: none;
    }

    .header-right {
        gap: 10px;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.8;
}

@media (max-width: 576px) {
    .hero {
        min-height: 600px;
    }

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

    .logo-img {
        max-width: 160px;
    }

    .logo h1 {
        display: none;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .about-stats .stat-item {
        padding: 15px;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Estilos específicos para la página de productos */
.products-hero {
    /* background: linear-gradient(rgba(10, 31, 64, 0.8), rgba(10, 31, 64, 0.8)), url('/assets/img/Filtros1.jpg'); */
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    text-align: center;
}

.products-detailed {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.products-categories {
    text-align: center;
    margin-bottom: 50px;
}

.category-filter {
    display: inline-flex;
    background: var(--white);
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-btn {
    padding: 12px 25px;
    border: none;
    background: transparent;
    color: var(--dark-gray);
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 5px;
}

.category-btn.active,
.category-btn:hover {
    background: var(--secondary-blue);
    color: var(--white);
}

.products-grid-detailed {
    display: grid;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card-detailed {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.product-image-large {
    height: 300px;
    overflow: hidden;
}

.product-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card-detailed:hover .product-image-large img {
    transform: scale(1.05);
}

.product-content-detailed {
    padding: 30px;
}

.product-content-detailed h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.product-features {
    margin: 25px 0;
}

.product-features h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-features ul {
    list-style: none;
    padding-left: 0;
}

.product-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--dark-gray);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.product-specs {
    margin: 25px 0;
    padding: 20px;
    background: var(--light-blue);
    border-radius: 8px;
}

.product-specs h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.spec-label {
    font-weight: 600;
    color: var(--primary-blue);
}

.spec-value {
    color: var(--dark-gray);
}

.contact-cta {
    padding: 80px 0;
    background: linear-gradient(to right, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    text-align: center;
}

.contact-cta .section-title h2 {
    color: var(--white);
}

.contact-cta .section-title p {
    color: var(--light-blue);
}

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

/* Estilo para el enlace del logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.8;
}

/* Responsive para página de productos */
@media (max-width: 768px) {
    .category-filter {
        flex-direction: column;
        border-radius: 15px;
        padding: 15px;
    }

    .category-btn {
        margin: 5px 0;
        border-radius: 10px;
    }

    .products-grid-detailed {
        gap: 30px;
    }

    .product-content-detailed {
        padding: 20px;
    }

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

.products-layout {
    padding: 60px 0;
    background: #f8fafc;
}

.products-layout .container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1400px;
}

.products-sidebar {
    flex: 0 0 320px;
    position: sticky;
    top: 120px;
}

.products-main {
    flex: 1;
    min-height: 600px;
}

/* Menú lateral elegante */
.sidebar-menu {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar-title {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 25px;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.products-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    border-bottom: 1px solid #f1f3f4;
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.category-link i:first-child {
    margin-right: 15px;
    font-size: 1.2rem;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.category-link span {
    flex: 1;
    font-weight: 500;
}

.category-link .arrow {
    color: #bdc3c7;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

/* Efectos hover y active */
.category-link:hover {
    background: #f8f9fa;
    color: #3498db;
    transform: translateX(5px);
}

.category-link:hover i:first-child {
    color: #3498db;
}

.category-link.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.category-link.active i:first-child,
.category-link.active .arrow {
    color: white;
}

.category-link.active .arrow {
    transform: rotate(90deg);
}

/* Subcategorías */
.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.category-item.active .subcategory-list {
    max-height: 500px;
}

.subcategory-link {
    display: block;
    padding: 15px 25px 15px 60px;
    color: #5d6d7e;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.subcategory-link:hover {
    background: white;
    color: #3498db;
    border-left-color: #3498db;
    padding-left: 65px;
}

/* Secciones de productos */
.products-section {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.products-section.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header h2 i {
    color: #3498db;
}

.section-header p {
    color: #7f8c8d;
    font-size: 1.2rem;
}

/* Tarjetas de bienvenida */
.welcome-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.welcome-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.welcome-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

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

.welcome-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.welcome-card p {
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Grid de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Tarjetas de productos mejoradas */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.product-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.overlay-content p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.product-tags {
    margin-bottom: 15px;
}

.product-tag {
    display: inline-block;
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 5px;
}

.product-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #3498db;
}

.btn-icon {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #7f8c8d;
}

.btn-icon:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .products-layout .container {
        flex-direction: column;
    }

    .products-sidebar {
        flex: none;
        width: 100%;
        position: static;
        margin-bottom: 40px;
    }

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

    .welcome-cards {
        grid-template-columns: 1fr;
    }
}

.products-page-layout {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.products-page-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* Menú lateral de productos */
.products-categories-menu {
    position: sticky;
    top: 120px;
}

.menu-depositos-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.products-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    border-bottom: 1px solid var(--light-gray);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 20px;
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    background: var(--white);
    position: relative;
}

.menu-link i {
    margin-right: 12px;
    font-size: 1.1rem;
    color: var(--dark-gray);
    transition: var(--transition);
    width: 20px;
    text-align: center;
}

.menu-link:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.menu-link:hover i {
    color: var(--primary-blue);
}

.menu-link.active {
    background: var(--primary-blue);
    color: var(--white);
}

.menu-link.active i {
    color: var(--white);
}

.menu-link.active::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

/* Contenido principal */
.products-main-content {
    min-height: 600px;
}

.products-section {
    display: none;
}

.products-section.active {
    display: block;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Grid de bienvenida */
.products-welcome-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.welcome-product-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
}

.welcome-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.welcome-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

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

.welcome-product-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.welcome-product-card p {
    color: var(--dark-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Grid detallado de productos */
.products-grid-detailed {
    display: grid;
    gap: 40px;
}

.product-card-detailed {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.product-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image-large {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 60, 108, 0.9), rgba(44, 90, 160, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
}

.product-card-detailed:hover .product-overlay {
    opacity: 1;
}

.product-card-detailed:hover .product-image-large img {
    transform: scale(1.1);
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.product-card-detailed:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.overlay-content p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.product-features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-mini-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-blue);
}

.product-content-detailed {
    padding: 30px;
}

.product-content-detailed h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.product-tags {
    margin-bottom: 15px;
}

.product-tag {
    display: inline-block;
    background: var(--light-blue);
    color: var(--secondary-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 5px;
    font-weight: 600;
}

.product-content-detailed p {
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features,
.product-applications {
    margin: 20px 0;
}

.product-features h4,
.product-applications h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-features ul,
.product-applications ul {
    list-style: none;
    padding-left: 0;
}

.product-features li,
.product-applications li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--dark-gray);
}

.product-features li::before,
.product-applications li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.product-actions-detailed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.btn-icon {
    background: var(--light-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-gray);
}

.btn-icon:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .products-page-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .products-categories-menu {
        position: static;
    }

    .products-welcome-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .products-page-layout {
        padding: 40px 0;
    }

    .welcome-product-card {
        padding: 30px 20px;
    }

    .product-content-detailed {
        padding: 20px;
    }

    .product-actions-detailed {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .btn-icon {
        align-self: center;
        margin-top: 10px;
    }

    .product-image-large {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .welcome-card-icon {
        width: 60px;
        height: 60px;
    }

    .welcome-card-icon i {
        font-size: 1.5rem;
    }

    .welcome-product-card h3 {
        font-size: 1.3rem;
    }

    .product-content-detailed h3 {
        font-size: 1.3rem;
    }
}


@media (max-width: 576px) {
    .products-hero {
        padding: 100px 0 60px;
    }

    .product-image-large {
        height: 200px;
    }

    .product-content-detailed h3 {
        font-size: 1.5rem;
    }
}

/* Solución para problemas de caracteres */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-gray);
    overflow-x: hidden;
    /* Asegurar encoding correcto */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== SUBRAYADO ACTIVO EN EL HEADER ===== */
nav ul li a.active {
    border-bottom: 3px solid #2c5aa0 !important;
    padding-bottom: 5px !important;
    color: #1a3c6c !important;
}

/* ===== ESTILOS ACTIVOS PARA MENÚ LATERAL DE PRODUCTOS ===== */
.menu-link.active {
    background: #1a3c6c !important;
    color: white !important;
    border-radius: 0 !important;
}

.menu-link.active i {
    color: white !important;
}

.menu-link.active::after {
    content: '' !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 8px !important;
    height: 8px !important;
    background: white !important;
    border-radius: 50% !important;
}

/* ===== ESTILOS PARA MENÚ LATERAL DE PRODUCTOS (FORZADO) ===== */
.menu-link.active {
    background: #1a3c6c !important;
    color: white !important;
    border-radius: 0 !important;
    border-left: 4px solid #3498db !important;
}

.menu-link.active i {
    color: white !important;
}

.menu-link.active::after {
    content: '' !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 8px !important;
    height: 8px !important;
    background: white !important;
    border-radius: 50% !important;
}

/* ===== MENÚ LATERAL DE PRODUCTOS - FORZADO ===== */
.products-categories-menu .menu-link.active {
    background: #1a3c6c !important;
    color: white !important;
    border-left: 4px solid #3498db !important;
    border-radius: 0 !important;
}

.products-categories-menu .menu-link.active i {
    color: white !important;
}

.products-categories-menu .menu-link.active::after {
    content: '' !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 8px !important;
    height: 8px !important;
    background: white !important;
    border-radius: 50% !important;
}

.products-categories-menu .menu-link {
    position: relative !important;
}

/* ===== MENÚ LATERAL DE PRODUCTOS - CON ID ÚNICO ===== */
#menu-lateral-activo {
    background: #1a3c6c !important;
    color: white !important;
    border-left: 4px solid #3498db !important;
    border-radius: 0 !important;
}

#menu-lateral-activo i {
    color: white !important;
}

#menu-lateral-activo::after {
    content: '' !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 8px !important;
    height: 8px !important;
    background: white !important;
    border-radius: 50% !important;
}

/* Asegurar que el enlace tenga position relative para que funcione ::after */
.products-categories-menu .menu-link {
    position: relative !important;
}

/* Asegurar que el menú lateral tenga posición relativa para que ::after funcione */
.menu-link {
    position: relative !important;
}

/* Especificar charset en CSS también */
/* @charset "UTF-8"; */




/* ===== HERO CON VIDEO ===== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    /* Asegura que ocupe toda la altura */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* El video cubre todo sin deformarse */
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 64, 0.75);
    /* Mismo color que antes */
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    /* El contenido queda por encima del overlay */
    text-align: left;
    /* O el que tengas */
    padding: 20px;
}

/* Ajuste para móviles: si el video pesa mucho, podemos poner una imagen de respaldo */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        height: auto;
        padding: 100px 0 60px;
    }

    .hero-video {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }

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

    .hero-content p {
        font-size: 1rem;
    }
}

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

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

    .hero-content p {
        font-size: 0.95rem;
    }
}


/* ===== WHATSAPP WIDGET PERSONALIZADO ===== */
.whatsapp-trigger {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
    animation: pulse-whatsapp 2s infinite;
}

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

.whatsapp-trigger i {
    color: white;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Ventana emergente */
.whatsapp-popup {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
    display: none;
    animation: slideUp 0.3s ease;
}

.whatsapp-popup.visible {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.whatsapp-popup .header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.whatsapp-popup .header img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: contain;
}

.whatsapp-popup .header .info {
    flex: 1;
}

.whatsapp-popup .header .info strong {
    display: block;
    color: #1a2a3a;
    font-size: 1rem;
}

.whatsapp-popup .header .info small {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.whatsapp-popup .message {
    background: #f1f3f4;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 10px 0 15px 0;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
    border-bottom-left-radius: 2px;
}

.whatsapp-popup .btn-start {
    display: block;
    background: #25d366;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.whatsapp-popup .btn-start:hover {
    background: #128C7E;
}

.whatsapp-popup .btn-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #7f8c8d;
    transition: 0.2s;
}

.whatsapp-popup .btn-close:hover {
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-popup {
        width: 280px;
        right: 15px;
        bottom: 85px;
        padding: 15px;
    }

    .whatsapp-trigger {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .whatsapp-popup {
        width: 250px;
        right: 10px;
        bottom: 75px;
        padding: 12px;
    }

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

/* ===== PRODUCTOS: Especificaciones y Aplicaciones lado a lado ===== */
.product-features-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 20px 0 30px;
}

.product-features-apps .product-features,
.product-features-apps .product-applications {
    flex: 1;
    min-width: 200px;
}

.product-features-apps .product-features h4,
.product-features-apps .product-applications h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-features-apps .product-features ul,
.product-features-apps .product-applications ul {
    list-style: none;
    padding-left: 0;
}

.product-features-apps .product-features li,
.product-features-apps .product-applications li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--dark-gray);
}

.product-features-apps .product-features li::before,
.product-features-apps .product-applications li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .product-features-apps {
        flex-direction: column;
        gap: 20px;
    }

    .product-features-apps .product-features,
    .product-features-apps .product-applications {
        min-width: 100%;
    }
}


/* ===== GALERÍA DE PRODUCTOS (CARRUSEL) ===== */
.product-image-gallery {
    position: relative;
    width: 100%;
    background: #f8f9fa;
    overflow: hidden;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Flechas del carrusel */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    transition: 0.2s;
    z-index: 5;
}

.gallery-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-btn.prev {
    left: 10px;
}

.gallery-btn.next {
    right: 10px;
}

/* Miniaturas */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    overflow-x: auto;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-thumbs .thumb-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
    opacity: 0.6;
}

.gallery-thumbs .thumb-img:hover {
    opacity: 0.8;
}

.gallery-thumbs .thumb-img.active {
    border-color: var(--primary-blue);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-main {
        height: 220px;
    }

    .gallery-thumbs .thumb-img {
        width: 50px;
        height: 50px;
    }

    .gallery-btn {
        padding: 6px 10px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-main {
        height: 180px;
    }

    .gallery-thumbs .thumb-img {
        width: 40px;
        height: 40px;
    }
}

/* ===== MENÚ LATERAL: ICONOS SIEMPRE VISIBLES ===== */
.products-categories-menu .menu-link i {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: var(--dark-gray);
    transition: color 0.3s;
}

.products-categories-menu .menu-link.active i {
    color: white;
}

/* ===== PRODUCTOS POLIÉSTER: TÍTULO JUSTIFICADO ===== */
.products-hero .hero-content {
    text-align: left;
    max-width: 700px;
    margin: 0;
}

.products-hero .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.products-hero .hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* ===== PRODUCTOS POLIÉSTER: GALERÍA MÁS GRANDE ===== */
.product-image-gallery .gallery-main {
    height: 350px;
    /* Aumentado de 300px a 350px */
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-gallery .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Muestra la imagen completa sin recortar */
    background-color: #f8f9fa;
    transition: opacity 0.3s ease;
}

/* Opcional: si quieres que la imagen ocupe más ancho */
.product-card-detailed .product-image-gallery {
    width: 100%;
    max-height: 400px;
}

/* Responsive: en móviles se reduce la altura */
@media (max-width: 768px) {
    .product-image-gallery .gallery-main {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .product-image-gallery .gallery-main {
        height: 200px;
    }
}


/* ===== MENÚ LATERAL: ICONOS SIEMPRE VISIBLES ===== */
.products-categories-menu .menu-link i {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: var(--dark-gray);
    transition: color 0.3s;
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.products-categories-menu .menu-link.active i {
    color: white !important;
}

/* Aseguramos que el icono de "Inicio Productos" también se vea siempre */
.products-categories-menu .menu-link .fas,
.products-categories-menu .menu-link .far,
.products-categories-menu .menu-link .fab {
    display: inline-block !important;
}

/* ===== MENÚ LATERAL: ICONOS SIEMPRE VISIBLES ===== */
.products-categories-menu .menu-link i {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #7f8c8d;
    /* color gris por defecto */
    width: 20px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Cuando el enlace está activo, el icono cambia a blanco */
.products-categories-menu .menu-link.active i {
    color: white !important;
}

/* Forzar que los iconos de "Gas" y "Poliéster" siempre se vean, incluso si no están activos */
.products-categories-menu .menu-link:not(.active) i {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}



/* ===== SUBMENÚ DESPLEGABLE EN EL MENÚ LATERAL ===== */
.menu-item.has-submenu {
    position: relative;
}

.menu-item.has-submenu .menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 20px;
}

.menu-item.has-submenu .submenu-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.menu-item.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    background: rgba(255, 255, 255, 0.03);
}

.submenu.open {
    max-height: 500px;
    /* suficiente para todas las categorías */
    opacity: 1;
}

.submenu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    display: block;
    padding: 10px 20px 10px 45px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
    font-weight: 500;
    background: transparent;
}

.submenu a:hover {
    background: rgba(26, 60, 108, 0.08);
    color: var(--primary-blue);
}

.submenu a.active {
    background: var(--primary-blue);
    color: white;
    border-left: 3px solid var(--accent-blue);
}

/* Cuando el menú padre está activo, el submenú se despliega */
.menu-item.has-submenu.open .menu-link.active {
    background: var(--primary-blue);
    color: white;
}

.menu-item.has-submenu.open .menu-link.active i {
    color: white;
}

.menu-item.has-submenu.open .submenu {
    max-height: 500px;
    opacity: 1;
}

/* Estilo para el enlace del submenú activo */
.submenu a.active {
    background: var(--primary-blue) !important;
    color: white !important;
}

.submenu a.active i {
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .submenu a {
        padding: 8px 15px 8px 35px;
        font-size: 0.85rem;
    }
}



/* ===== PRESENCIA INTERNACIONAL ===== */
/* Usamos la misma estructura que la sección "deposits" pero con el texto encima */

.presencia-internacional .deposits-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.presencia-internacional .deposits-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    order: 1;
    /* El texto va primero */
}

.presencia-internacional .deposits-image {
    order: 2;
    /* La imagen va después del texto */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.presencia-internacional .deposits-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .presencia-internacional .deposits-content {
        text-align: center;
        padding: 0 15px;
    }

    .presencia-internacional .deposits-image {
        max-width: 100%;
    }
}

/* ===== SEPARACIÓN EXTRA PARA PRODUCTOS DE CARBÓN ACTIVO ===== */
.product-card-detailed[data-producto-id="4"],
.product-card-detailed[data-producto-id="5"] {
    margin-bottom: 30px;
    /* Aumenta el espacio entre los dos */
}

/* O mejor, añade un borde o separador visual */
.product-card-detailed[data-producto-id="4"] {
    border-bottom: 2px dashed #ddd;
    padding-bottom: 20px;
}


/* ===== TÍTULO DE PÁGINAS DE PRODUCTOS (SIN HERO) ===== */
.page-title {
    padding-top: 30px;
    /* Ajusta según la altura de tu header */
    padding-bottom: 30px;
    background: #f8f9fa;
}

.page-title h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.page-title p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    max-width: 800px;
}

/* Si quieres que el título ocupe menos espacio en móviles */
@media (max-width: 768px) {
    .page-title {
        padding-top: 100px;
        padding-bottom: 20px;
    }

    .page-title h1 {
        font-size: 2rem;
    }
}

/* Separación entre los dos cards de Carbón activo */
.product-card-detailed[data-producto-id="2"] {
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid #e0e0e0 !important;
}


/* ===== BOTÓN "LEER MÁS" EN PROYECTOS ===== */
.proyecto-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.proyecto-fecha {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.proyecto-footer .btn-leer {
    display: inline-block;
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
}

.proyecto-footer .btn-leer i {
    transition: transform 0.2s;
    margin-left: 5px;
}

.proyecto-footer .btn-leer:hover i {
    transform: translateX(5px);
}

.proyecto-footer .btn-leer:hover {
    color: var(--primary-blue);
}

/* ===== CARDS DE SECCIONES (SIN DESCRIPCIÓN) ===== */
.seccion-card .card-content h3 {
    font-size: 1.6rem !important;
    margin-bottom: 15px !important;
}

.seccion-card .card-content {
    padding: 30px 20px !important;
    text-align: center !important;
}

.seccion-card .btn-ver {
    margin-top: 10px !important;
}


/* ===== MENÚ MÓVIL HAMBURGUESA ===== */
@media (max-width: 768px) {
    nav ul {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 999;
        border-top: 2px solid var(--light-gray);
    }

    nav ul.active {
        display: flex !important;
    }

    nav ul li {
        margin: 8px 0 !important;
    }

    nav ul li a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--light-gray);
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.6rem;
        color: var(--primary-blue);
        cursor: pointer;
        padding: 5px 8px;
    }

    .language-switcher {
        display: flex !important;
        gap: 3px;
    }

    .lang-btn {
        width: 28px;
        height: 28px;
    }

    .lang-btn img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
}

/* Cuando el menú está abierto, el icono cambia a X (se hace con JS) */
.mobile-menu-btn.open i::before {
    content: "\f00d";
    /* FontAwesome 'times' icon */
}

/* ===== SOLUCIÓN RÁPIDA: ESPACIO EXTRA PARA TÍTULOS EN MÓVIL ===== */
@media (max-width: 768px) {

    /* Afecta a todos los títulos de sección (filtracion, almacenamiento, etc.) */
    h1[data-i18n^="secciones."] {
        margin-top: 30px !important;
        /* Ajusta este valor */
    }

    /* Subtítulo (descripción) */
    p[data-i18n$="Desc"] {
        margin-top: 5px !important;
    }
}


/* ===== CARD DE PROYECTO CLICABLE ===== */
.proyecto-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.proyecto-card-link:hover .proyecto-card {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.proyecto-card-link .btn-leer {
    display: inline-block;
    color: var(--accent-blue);
    font-weight: 600;
    transition: 0.2s;
    cursor: pointer;
}

.proyecto-card-link .btn-leer i {
    transition: transform 0.2s;
    margin-left: 5px;
}

.proyecto-card-link:hover .btn-leer i {
    transform: translateX(5px);
}

.proyecto-card-link .proyecto-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

/* ===== TIPOGRAFÍA NORMAL EN DETALLE DE PROYECTO ===== */
.detalle-descripcion {
    font-weight: 400 !important;
    /* Peso normal, no negrita */
    line-height: 1.8;
    color: #333;
}

.detalle-descripcion p {
    margin-bottom: 15px;
}

.detalle-descripcion strong,
.detalle-descripcion b {
    font-weight: 600;
    /* Si quieres que las negritas internas sean menos agresivas */
    color: var(--primary-blue);
}



/* ===== CARD DE NOTICIA CLICABLE ===== */
.noticia-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.noticia-card-link:hover .noticia-card {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.noticia-card-link .btn-leer {
    display: inline-block;
    color: var(--accent-blue);
    font-weight: 600;
    transition: 0.2s;
    cursor: pointer;
}

.noticia-card-link .btn-leer i {
    transition: transform 0.2s;
    margin-left: 5px;
}

.noticia-card-link:hover .btn-leer i {
    transform: translateX(5px);
}

.noticia-card-link .noticia-card {
    transition: transform 0.3s, box-shadow 0.3s;
}


/* ===== BOTONES DEL HERO EN MÓVIL (MÁS COMPACTOS) ===== */
@media (max-width: 768px) {
    .hero-buttons {
        display: flex;
        flex-direction: row !important;
        /* Mantener en fila */
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: auto !important;
        /* No ocupan todo el ancho */
        min-width: 140px;
        /* Tamaño mínimo para que queden bien */
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
        flex: 0 1 auto;
        white-space: nowrap;
        /* Evita que el texto se parta */
    }
}

@media (max-width: 480px) {
    .hero-buttons .btn {
        min-width: 120px;
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }

    .hero-buttons {
        gap: 8px;
    }
}

/* ===== CHECKBOX DE PRIVACIDAD (alineado y pequeño) ===== */
.checkbox-privacidad {
    margin: 20px 0 15px;
}

.checkbox-privacidad label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.85rem !important;
    /* Letra más pequeña */
    color: var(--dark-gray);
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-privacidad input[type="checkbox"] {
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    /* Quita el margen por defecto */
    accent-color: var(--secondary-blue);
    cursor: pointer;
    position: relative;
    top: 0;
    /* Asegura que no se desplace */
}

.checkbox-privacidad a {
    color: var(--secondary-blue);
    text-decoration: underline;
    font-weight: 500;
}

.checkbox-privacidad a:hover {
    color: var(--accent-blue);
}

/* Ajuste para móviles si es necesario */
@media (max-width: 480px) {
    .checkbox-privacidad label {
        font-size: 0.78rem !important;
        gap: 8px !important;
    }

    .checkbox-privacidad input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
    }
}

/* ===== TOAST PARA IDIOMA (arriba derecha debajo del header) ===== */
.toast-idioma {
    position: fixed;
    top: 80px;
    /* Ajusta según la altura de tu header */
    right: 20px;
    background: var(--accent-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.toast-idioma.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .toast-idioma {
        top: 70px;
        right: 10px;
        font-size: 0.85rem;
        padding: 10px 16px;
        max-width: 90%;
    }
}


/* ============================================================
   SKELETON LOADER - Tarjetas esqueleto animadas
   ============================================================ */

/* Contenedor que se muestra durante la carga */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Cada tarjeta esqueleto */
.skeleton-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Imagen esqueleto */
.skeleton-image {
    height: 200px;
    background: #e0e0e0;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

/* Cuerpo esqueleto */
.skeleton-body {
    padding: 20px;
}

.skeleton-title {
    height: 24px;
    width: 80%;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-text:last-child {
    width: 60%;
    margin-bottom: 0;
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.skeleton-footer .skeleton-text {
    width: 40%;
    height: 12px;
    margin-bottom: 0;
}

/* Animación de brillo */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

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

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


/* ===== SEPARACIONES ESPECIALES ENTRE CARDS ===== */
/* Almacenamiento: separar los dos horizontales (superficie y enterrar) */
.product-card-detailed[data-producto-id="3"] {
    margin-bottom: 30px !important;
}

/* Limpieza biogas: separar carbón doble del bloque de desulfuración */
.product-card-detailed[data-producto-id="3"] {
    margin-bottom: 30px !important;
}


/* ===== MODAL PARA AMPLIAR IMÁGENES DE PRODUCTOS ===== */
.modal-producto {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-producto img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
}

.modal-producto span {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 3001;
    transition: 0.2s;
}

.modal-producto span:hover {
    color: #ccc;
}

/* Ajuste en móviles */
@media (max-width: 768px) {
    .modal-producto span {
        top: 15px;
        right: 20px;
        font-size: 32px;
    }
}

/* Ajuste de espacio entre subtítulos */
.about .section-title p:last-of-type {
    margin-top: -12px;
}
/* Asegurar que las fuentes carguen correctamente */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap&subset=latin-ext');