/* Variables y estilos base */
:root {
    --primary: #0056b3;
    --secondary: #003366;
    --accent: #00a8ff;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
}

p {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: #0097e6;
}

/* NAVEGACIÓN */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1002;
    transition: all 0.3s ease;
    background: transparent;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.logo {
    display: block;
    height: 50px;
    width: 50px;
    object-fit: contain;
    flex-shrink: 0;
    z-index: 1003;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo img {
    filter: brightness(0) invert(1);
}

nav.scrolled .logo img {
    filter: none;
}

nav.scrolled .logo {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
     align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav.scrolled .nav-menu a {
    color: var(--light);
}

.nav-menu a:hover {
    color: var(--accent);
}

/* MENÚ MÓVIL */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: white !important;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 1003;
    flex-shrink: 0;
    border: none;
}

nav.scrolled .menu-toggle {
    color: white !important;
    background: rgba(0, 0, 0, 0.5);
}

.menu-toggle:hover {
    background: var(--accent);
    transform: scale(1.1);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-video {
    filter: brightness(3) contrast(1.2) saturate(1.3);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.typed-cursor {
    font-size: 3.5rem;
    opacity: 1;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* SECCIÓN PLATAFORMAS */
.platforms {
    background: white;
}

.platform-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 30px;
    flex-wrap: nowrap;
    max-width: 100%;
    width: 100%;
}

.platform-carousel::-webkit-scrollbar {
    display: none;
}

.platform-item {
    flex: 0 0 auto;
    width: 200px;
    text-align: center;
}

.platform-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.platform-logo img {
    max-height: 100%;
    max-width: 100%;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.platform-item:hover .platform-logo img {
    filter: grayscale(0%);
}

.platform-name {
    font-weight: 600;
    color: var(--dark);
}

.green-word {
    color: #28a745 !important;
    font-weight: 900 !important;
}

.blue-word {
    color: #1ab6d1 !important;
    font-weight: 900 !important;
}

.small-text {
    font-size: 3rem;
    opacity: 0.8;
    margin-top: 5px;
}

.demo-cta {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
}

.demo-cta .btn {
    border-radius: 40px !important;
    background: #1c74bb !important;
}

/* SECCIÓN SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: white;
    background-size: cover;
    background-position: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.service-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.service-number {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 0px;
    display: block;
    line-height: 1;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
    margin-bottom: 0px;
    line-height: 1.2;
}

.first-title {
    margin-bottom: 0;
}

.service-description {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.service-card:hover .service-description {
    opacity: 1;
    max-height: 200px;
}

/* SECCIÓN RESULTADOS */
.results {
    background: var(--light);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.result-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
}

.result-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    transition: all 0.4s ease;
}

.result-card:hover::before {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
}

.result-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.result-card:hover .result-content {
    transform: translateY(0);
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent);
    opacity: 0.9;
}

.result-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.result-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    opacity: 0;
    max-height: 0;
    transition: all 0.4s ease;
}

.result-card:hover p {
    opacity: 1;
    max-height: 100px;
}

.result-stats {
    display: flex;
    align-items: center;
    margin-top: 15px;
    opacity: 0;
    transition: all 0.4s ease;
}

.result-card:hover .result-stats {
    opacity: 1;
}

.stat {
    display: flex;
    align-items: center;
    margin-right: 20px;
    font-size: 0.9rem;
}

.stat i {
    margin-right: 5px;
    color: var(--accent);
}

/* SECCIÓN SOCIOS */
.partners {
    background: white;
}

.partner-carousel {
    position: relative;
    overflow: hidden;
    height: 120px;
}

.partner-track {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    align-items: center;
    height: 100%;
    width: auto;
    animation: scroll 30s linear infinite;
    gap: 40px;
}

.partner-logo {
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

   /* Botones de lenguaje */
    .language-switch {
    display: flex;
    gap: 5px;
    margin-left: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
    border-radius: 8px;
}

.btn-lang {
    background: transparent;
    border: none;
    color: #888; /* Color inactivo */
    padding: 5px 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-lang:hover {
    color: #fff;
}

/* Estado Activo */
.btn-lang.active {
    background-color: #2E5BFF; /* Tu azul principal */
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-190px * 11));
    }
}

/* RESPONSIVE PARTNERS */
@media (max-width: 768px) {
    .partner-carousel {
        height: 100px;
    }
    
    .partner-track {
        animation: scrollMobile 20s linear infinite;
        gap: 30px;
    }
    
    .partner-logo {
        width: 120px;
        padding: 0 15px;
    }
    
    .partner-logo img {
        max-height: 50px;
    }
    
    @keyframes scrollMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 11));
        }
    }
}

@media (max-width: 480px) {
    .partner-carousel {
        height: 80px;
    }
    
    .partner-track {
        animation: scrollSmall 18s linear infinite;
        gap: 20px;
    }
    
    .partner-logo {
        width: 100px;
        padding: 0 10px;
    }
    
    .partner-logo img {
        max-height: 40px;
    }
    
    @keyframes scrollSmall {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-120px * 11));
        }
    }
}

/* SECCIÓN BLOG */
.blog {
    background: var(--light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.blog-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-content p {
    color: var(--dark);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.blog-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.blog-read-more:hover {
    color: var(--primary);
}

.blog-cta {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.blog-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.video-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .play-button {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* SECCIÓN ARTÍCULOS */
.articles {
    background: white;
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
}

.article-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

.article-date i {
    color: var(--accent);
}

.article-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.article-link:hover {
    color: var(--primary);
    gap: 12px;
}

.articles-cta {
    text-align: center;
}

/* SECCIÓN CONTACTO */
.contact {
    background: white;
    color: var(--dark);
}

.contact h2:after {
    background: var(--accent);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-header h2 {
    color: white;
    margin-bottom: 15px;
}

.contact-header h2:after {
    background: var(--accent);
}

.contact-header p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.contact-form-container {
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    color: var(--primary);
    text-align: left;
}

.form-header h2:after {
    left: 0;
    transform: none;
}

.form-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.form-tab {
    padding: 12px 25px;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.form-tab.active {
    color: var(--primary);
}

.form-tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 500;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* FOOTER */
footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    margin-bottom: 30px;
}

.footer-links {
    display: none;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #777;
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE DESIGN OPTIMIZADO ==================== */

/* Tablet */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
}

/* Tablet pequeño y móvil */
@media (max-width: 768px) {
    /* NAVEGACIÓN MÓVIL */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100vw;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: left 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
        max-width: 100vw;
        padding-bottom: 80px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.35s; }
    
    .nav-menu a {
        color: white !important;
        font-size: 1.4rem;
        font-weight: 600;
        padding: 15px 30px;
        border-radius: 8px;
        transition: all 0.3s ease;
        text-align: center;
        display: block;
        width: 100%;
        max-width: 250px;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.2);
        color: var(--accent) !important;
        transform: translateX(10px);
    }
    
    .logo img {
        filter: brightness(0) invert(1);
    }
    
    nav.scrolled .logo img {
        filter: none !important;
    }
    
    /* HERO SECTION MÓVIL */
    .hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .typed-cursor {
        font-size: 2.5rem !important;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    /* SECCIONES MÓVIL */
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* GRILLAS MÓVIL */
    .services-grid,
    .results-grid,
    .blog-grid,
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-tabs {
        flex-wrap: wrap;
    }
    
    .form-tab {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 10px 15px;
    }
    
    /* PLATAFORMAS MÓVIL */
    .platform-carousel {
        padding: 15px 0;
        gap: 15px;
        justify-content: flex-start;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .platform-item {
        width: 130px;
        min-width: 130px;
        flex-shrink: 0;
    }
    
    .platform-logo {
        height: 50px;
    }
    
    .platform-logo img {
        max-height: 45px;
        max-width: 120px;
        filter: grayscale(0);
        transition: none;
    }
    
    .platform-item:hover .platform-logo img {
        filter: grayscale(0);
    }
    
    .platform-name {
        font-size: 0.9rem;
    }
    
    .platforms h2 {
        font-size: 2rem !important;
        margin-bottom: 20px;
    }
    
    .platforms p {
        font-size: 1rem !important;
        padding: 0 10px;
    }
    
    /* BLOG Y ARTÍCULOS MÓVIL */
    .blog-content,
    .article-content {
        padding: 20px;
    }
    
    .blog-content h3,
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .blog-meta,
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .services p{
        font-size: 1rem !important;
        padding: 0 10px;
    }

    .results p{
        font-size: 1rem !important;
        padding: 0 10px;
    }

    .partners p{
        font-size: 1rem !important;
        padding: 0 10px;
    }

    .blog p{
        font-size: 1rem !important;
        padding: 0 10px;
    }

    .articles p{
        font-size: 1rem !important;
        padding: 0 10px;
    }

    .contact p{
        font-size: 1rem !important;
        padding: 0 10px;
    }
    
    /* CONTACTO MÓVIL */
    .contact-container {
        gap: 30px;
    }
    
    .contact-info {
        padding: 40px 25px;
    }
    
    .contact-form-container {
        padding: 25px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    /* FOOTER MÓVIL */
    .footer-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .footer-links li {
        margin: 0;
    }
    
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}

/* Mobile pequeño */
@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    h2:after {
        width: 60px;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .typed-cursor {
        font-size: 1.8rem !important;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-block {
        width: 100%;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* PLATAFORMAS PEQUEÑO MÓVIL */
    .platform-item {
        width: 110px;
        min-width: 110px;
    }
    
    .platform-logo {
        height: 45px;
    }
    
    .platform-name {
        font-size: 0.8rem;
    }
    
    .platforms p {
        font-size: 0.95rem !important;
    }
    
    /* CONTACTO PEQUEÑO MÓVIL */
    .contact-info {
        padding: 30px 20px;
    }
    
    .contact-form-container {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .contact-item {
        margin-bottom: 20px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .contact-text h3 {
        font-size: 1rem;
    }
    
    .contact-text p {
        font-size: 0.9rem;
    }
    
    .service-card,
    .result-card {
        height: auto;
        min-height: 250px;
    }
    
    .service-number {
        font-size: 3.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

/* Mobile muy pequeño */
@media (max-width: 480px) {
    .platform-item {
        width: 100px;
        min-width: 100px;
    }
    
    .platform-logo {
        height: 40px;
        margin-bottom: 10px;
    }
    
    .platform-name {
        font-size: 0.75rem;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .contact-info {
        padding: 25px 15px;
    }
    
    .contact-form-container {
        padding: 15px;
    }
    
    .form-tabs {
        gap: 5px;
    }
    
    .form-tab {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .service-number {
        font-size: 3rem;
    }
    
    .footer-links {
        gap: 10px;
    }

 
}

.language-switch .btn-lang {
    position: relative;
}

.language-switch .btn-lang:hover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2E5BFF;
    z-index: 1001;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.language-switch .btn-lang:hover::after {
    content: attr(title);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2E5BFF 0%, #00BFA5 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Mejora la apariencia de los botones de idioma */
.language-switch {
    display: flex;
    gap: 5px;
    margin-left: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-lang {
    line-height: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 17px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.btn-lang:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.btn-lang.active {
    background: linear-gradient(135deg, #2E5BFF 0%, #00BFA5 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 91, 255, 0.4);
    transform: scale(1.02);
}

.btn-lang.active:hover {
    transform: scale(1.07);
}