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

html {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Asegurar que el footer esté al final */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
    margin-top: auto; /* Esto empuja el footer al final */
}

/* Green orb background elements */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #FE3F40, #FE3F40, transparent);
    filter: blur(100px);
    z-index: -1;
}

.bg-orb-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -200px;
}

.bg-orb-2 {
    width: 600px;
    height: 600px;
    top: 50%;
    right: -300px;
}

.bg-orb-3 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    left: 10%;
}

/* Header */
*/
.header {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border: 1px solid rgb(254, 63, 63);
}

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

.logo-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #FE3F40, #FE3F40);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: black;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: #FE3F40;
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    padding: 8px 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    background: rgb(254, 63, 63);
}

.social-icon img, .social-icon svg {
    width: 18px;
    height: 18px;
    margin-right: 4px;
}

.social-icon svg path {
    fill: white;
}

.social-icon:hover svg path {
    fill: #FE3F40;
}

.btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(45deg, #FE3F40, #FE3F40);
    color: black;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(254, 63, 63, 0.247);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
}

.btn-whatsapp svg {
    width: 18px;
    height: 18px;
}

.btn-whatsapp:hover {
    background-color: #FE3F40;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgb(254, 63, 63);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: #FE3F40;
    color: #FE3F40;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 80px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-title .highlight {
    color: #FE3F40;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
    line-height: 1.6;
}

.hero-orb {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 63, 63, 0.8), rgba(254, 63, 63, 0.2), transparent);
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.8; }
    50% { transform: translateY(-50%) scale(1.1); opacity: 1; }
}

/* Marketing Section */
.marketing-section {
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.marketing-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.marketing-title .highlight {
    color: #FE3F40;
}

.marketing-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(254, 63, 63, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #FE3F40;
    box-shadow: 0 20px 40px rgba(254, 63, 63, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #FE3F40, #FE3F40);
    border-radius: 15px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.feature-description {
    opacity: 0.8;
    line-height: 1.6;
}

/* Company Logos */
.companies {
    background: linear-gradient(45deg, #FE3F40, #FE3F40);
    padding: 40px 20px;
    margin: 80px 0;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.company-logo {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    color: black;
    backdrop-filter: blur(10px);
}

/* Services Section */
.services-section {
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.services-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.services-title .highlight {
    color: #FE3F40;
}

.services-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 80px;
}

.service-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(254, 63, 63, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: #03A4ED;
    transform: translateY(-5px);
}

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

.service-card p {
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Team Section */
.team-section {
    padding: 100px 20px;
    text-align: center;
}

.team-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.team-title .highlight {
    color: #FE3F40;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.team-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(254, 63, 63, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: #FE3F40;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.team-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
}

.team-description {
    opacity: 0.8;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(254, 63, 64, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FE3F40;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: #FE3F40;
    color: black;
}

.media-kit-btn {
    background: linear-gradient(45deg, #FE3F40, #FE3F40);
    color: black;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.media-kit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 63, 63, 0.3);
}

/* Contact Section */
.contact-section {
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-title .highlight {
    color: #FE3F40;
}

.contact-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 60px;
}

.contact-cta {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(254, 63, 63, 0.3);
    border-radius: 30px;
    padding: 60px;
    max-width: 600px;
    margin: 0 auto 100px;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(254, 63, 63, 0.1), transparent);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #FE3F40, #FE3F40);
    border-radius: 15px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 80px 20px 40px;
    border-top: 1px solid rgba(254, 63, 63, 0.2);
}

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

.footer-section h3 {
    color: #FE3F40;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #FE3F40;
}

.newsletter {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter input {
    flex: 1;
    padding: 12px;
    border-radius: 25px;
    border: 1px solid rgba(254, 63, 63, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: white;
}

.newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter button {
    background: linear-gradient(45deg, #FE3F40, #FE3F40);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter button:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(254, 63, 64, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(254, 63, 64, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FE3F40;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #FE3F40;
    color: black;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .marketing-title,
    .services-title,
    .team-title,
    .contact-title {
        font-size: 2rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 20, 0.95);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 100;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        padding: 15px 0;
        font-size: 18px;
        text-align: center;
        border-bottom: 1px solid rgba(254, 63, 64, 0.2);
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
    
    .header {
        padding: 10px 20px;
    }
    
    .header-buttons {
        margin-left: auto;
    }
    
    .social-icon {
        display: none;
    }
    
    .header-buttons .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .btn-whatsapp {
        padding: 8px 12px;
    }
    
    .btn-whatsapp svg {
        width: 16px;
        height: 16px;
    }
    
    .contact-cta {
        padding: 40px 20px;
    }
    
    .companies-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .marketing-title,
    .services-title,
    .team-title {
        font-size: 1.8rem;
    }
    
    .header {
        padding: 8px 15px;
    }
    
    .logo img {
        max-height: 20px;
    }
    
    .mobile-menu-toggle {
        width: 24px;
        height: 18px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
    
    .header-buttons .btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .btn-whatsapp {
        padding: 6px 10px;
    }
    
    .btn-whatsapp svg {
        width: 14px;
        height: 14px;
    }
    
    .nav {
        top: 60px;
    }
    
    .hero {
        padding: 100px 15px 60px;
    }
    
    .marketing-section,
    .services-section,
    .team-section,
    .contact-section {
        padding: 60px 15px;
    }
    
    .feature-card,
    .team-card,
    .service-card {
        padding: 30px 20px;
    }
}

.logo-text {
    height: 24px;
    display: block;
}

/* Breadcrumb Back Button Styles */
.breadcrumb {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    text-decoration: none;
}

.back-button i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .back-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

.social-icon-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

.social-icon-header:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.social-icon-header svg {
    fill: white;
}

.social-icon-header:hover svg {
    fill: white;
}

/* Hover effects for social icons */
.social-icon-header.facebook:hover {
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-icon-header.instagram:hover {
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

.social-icon-header.dribbble:hover {
    box-shadow: 0 5px 15px rgba(234, 76, 137, 0.4);
}

/* Ocultar elementos de Google Translate */
.goog-te-banner-frame,
.goog-te-menu-frame,
.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

#google_translate_element {
    display: none;
}

/* Mantener el estilo del language switch original */
/* Estilos del language switch se mantienen desde language-switch.css */

.pdf-download-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    text-align: center;
}

.pdf-download-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Reglas responsive adicionales */
/* Imágenes responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Videos responsive */
video {
    max-width: 100%;
    height: auto;
}

/* Contenedores responsive */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .marketing-title,
    .services-title,
    .team-title,
    .contact-title {
        font-size: 2.5rem;
    }
    
    .header {
        padding: 12px 25px;
    }
    
    .hero {
        padding: 120px 25px 80px;
    }
    
    .marketing-section,
    .services-section,
    .team-section,
    .contact-section {
        padding: 80px 25px;
    }
}

/* Tablet Landscape */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 20px;
    }
    
    .hero-content {
        max-width: 90%;
    }
}

/* Large Mobile */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .header {
        padding: 6px 12px;
    }
    
    .logo img {
        max-height: 18px;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
    
    p {
        line-height: 1.6;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .marketing-title,
    .services-title,
    .team-title {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 90px 10px 50px;
    }
    
    .marketing-section,
    .services-section,
    .team-section,
    .contact-section {
        padding: 50px 10px;
    }
}
/* ===== OPTIMIZACIONES MÓVILES AVANZADAS ===== */

/* Tipografía responsiva con clamp() */
h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.4;
}

p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.6;
}

/* Grid responsivo mejorado */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    width: 100%;
}

/* Cards responsivas */
.card, .service-card, .portfolio-item {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: clamp(1rem, 3vw, 2rem);
    box-sizing: border-box;
}

/* Contenedores principales */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

/* Secciones responsivas */
section {
    padding: clamp(2rem, 8vw, 6rem) 0;
}

/* Botones optimizados para touch */
.btn {
    min-height: 44px;
    min-width: 44px;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
}

.btn:active {
    transform: scale(0.98);
}

/* Header móvil mejorado */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .header-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: #FE3F40;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-list li a {
        font-size: 1.5rem;
        color: #fff;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .nav-list li a:hover {
        color: #FE3F40;
    }
}

/* Optimizaciones para pantallas muy pequeñas */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .grid-responsive {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-content {
        text-align: center;
        padding: 1rem;
    }
    
    .logo img {
        height: 30px;
    }
}

/* Optimizaciones para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .container {
        padding: 0 2rem;
    }
}

/* Mejoras de rendimiento */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

video {
    max-width: 100%;
    height: auto;
}

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

/* Optimización de touch */
a, button, .clickable {
    touch-action: manipulation;
}

/* Prevenir zoom en inputs en iOS */
input, select, textarea {
    font-size: 16px;
}

@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px;
    }
}
/* ===== HEADER MÓVIL - SOLUCIÓN DEFINITIVA ===== */

/* Forzar estilos para móviles con máxima especificidad */
@media screen and (max-width: 768px) {
    /* Contenedor del header */
    .header .header-content {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.5rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Logo visible */
    .header .logo {
        display: block !important;
        order: 1 !important;
        flex-shrink: 0 !important;
    }
    
    .header .logo img {
        height: 35px !important;
        width: auto !important;
        display: block !important;
    }
    
    /* Menú hamburguesa VISIBLE */
    .header .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 8px !important;
        order: 3 !important;
        z-index: 1001 !important;
        position: relative !important;
    }
    
    .header .mobile-menu-toggle span {
        width: 25px !important;
        height: 3px !important;
        background: #FE3F40 !important;
        display: block !important;
        transition: all 0.3s ease !important;
        border-radius: 2px !important;
    }
    
    /* Ocultar navegación desktop */
    .header .nav {
        display: none !important;
    }
    
    /* Ocultar botones del header */
    .header .header-buttons {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Navegación móvil cuando está activa */
    .header .nav.active {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(10, 10, 10, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        z-index: 1000 !important;
        padding-top: 80px !important;
    }
    
    .header .nav.active .nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        gap: 2rem !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .header .nav.active .nav-list li {
        display: block !important;
    }
    
    .header .nav.active .nav-list li a {
        color: #fff !important;
        font-size: 1.5rem !important;
        text-decoration: none !important;
        transition: color 0.3s ease !important;
        display: block !important;
        padding: 1rem !important;
    }
    
    .header .nav.active .nav-list li a:hover {
        color: #FE3F40 !important;
    }
    
    /* Animación del menú hamburguesa */
    .header .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px) !important;
    }
    
    .header .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .header .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px) !important;
    }
}

/* Para pantallas muy pequeñas */
@media screen and (max-width: 480px) {
    .header .header-content {
        padding: 0.5rem 0.8rem !important;
    }
    
    .header .logo img {
        height: 30px !important;
    }
    
    .header .mobile-menu-toggle span {
        width: 20px !important;
        height: 2px !important;
    }
}

/* Prevenir scroll cuando el menú está abierto */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Asegurar que el header sea visible en todas las resoluciones */
.header {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}
/* ===== CORRECCIÓN DEFINITIVA PARA MÓVILES ===== */
@media screen and (max-width: 768px) {
    /* FORZAR estructura del header */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: rgba(10, 10, 10, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        z-index: 1000 !important;
        border-bottom: 1px solid rgba(254, 63, 64, 0.1) !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
    
    .header-content {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 1rem !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    /* LOGO visible */
    .header .logo {
        display: flex !important;
        order: 1 !important;
        flex-shrink: 0 !important;
    }
    
    .header .logo img {
        height: 35px !important;
        width: auto !important;
        display: block !important;
    }
    
    /* MENÚ HAMBURGUESA VISIBLE */
    .header .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 8px !important;
        order: 3 !important;
        z-index: 1001 !important;
        position: relative !important;
        width: auto !important;
        height: auto !important;
    }
    
    .header .mobile-menu-toggle span {
        width: 25px !important;
        height: 3px !important;
        background: #FE3F40 !important;
        display: block !important;
        transition: all 0.3s ease !important;
        border-radius: 2px !important;
        opacity: 1 !important;
    }
    
    /* OCULTAR elementos desktop */
    .header .nav {
        display: none !important;
    }
    
    .header .header-buttons {
        display: none !important;
        visibility: hidden !important;
    }
    
    .header .nav-list {
        display: none !important;
    }
    
    /* NAVEGACIÓN MÓVIL cuando está activa */
    .header .nav.active {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(10, 10, 10, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        z-index: 1000 !important;
        padding-top: 80px !important;
    }
    
    .header .nav.active .nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        gap: 2rem !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .header .nav.active .nav-list li {
        display: block !important;
    }
    
    .header .nav.active .nav-list li a {
        color: #fff !important;
        font-size: 1.5rem !important;
        text-decoration: none !important;
        transition: color 0.3s ease !important;
        display: block !important;
        padding: 1rem !important;
    }
    
    .header .nav.active .nav-list li a:hover {
        color: #FE3F40 !important;
    }
    
    /* ANIMACIÓN del menú hamburguesa */
    .header .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px) !important;
    }
    
    .header .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .header .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px) !important;
    }
}

/* Para pantallas muy pequeñas */
@media screen and (max-width: 480px) {
    .header .header-content {
        padding: 0.8rem !important;
    }
    
    .header .logo img {
        height: 30px !important;
    }
    
    .header .mobile-menu-toggle span {
        width: 20px !important;
        height: 2px !important;
    }
}

/* Prevenir scroll cuando el menú está abierto */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

@media screen and (max-width: 768px) {
    /* Mostrar solo el language-switch en móviles */
    .header .header-buttons {
        display: flex !important;
        visibility: visible !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        order: 2 !important;
        z-index: 999 !important;
    }
    
    /* Ocultar todos los elementos excepto el language-switch */
    .header .header-buttons > *:not(.language-switch) {
        display: none !important;
    }
    
    /* Asegurar que el language-switch sea visible */
    .header .header-buttons .language-switch {
        display: inline-block !important;
        position: relative !important;
        margin: 0 !important;
    }
    
    /* Ajustar el header-content para hacer espacio al botón centrado */
    .header-content {
        position: relative !important;
    }
    
    /* Asegurar que el logo y hamburger mantengan su posición */
    .header .logo {
        order: 1 !important;
        z-index: 1000 !important;
    }
    
    .header .mobile-menu-toggle {
        order: 3 !important;
        z-index: 1000 !important;
    }
}

/* Para pantallas muy pequeñas, hacer el botón un poco más pequeño */
@media screen and (max-width: 480px) {
    .header .header-buttons .language-switch {
        width: 45px !important;
        height: 22px !important;
    }
    
    .header .header-buttons .language-switch-slider {
        width: 16px !important;
        height: 16px !important;
    }
    
    .header .header-buttons .language-switch.en .language-switch-slider {
        transform: translateX(23px) !important;
    }
    
    .header .header-buttons .language-option {
        font-size: 9px !important;
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(254, 63, 64, 0.1);
    padding: 0;
}

/* Contenedor principal del header para centrado */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px; /* Aumentado para mejor distribución */
    margin: 0 auto;
    width: 100%;
}

/* Mejorar distribución de elementos */
.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
    align-items: center;
}

.header-buttons {
    flex: 0 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Estilos para pantallas grandes */
@media (min-width: 1200px) {
    .header-content {
        padding: 1.2rem 3rem;
        max-width: 1600px;
    }
    
    .nav-list {
        gap: 3rem;
    }
}

/* Estilos para pantallas medianas */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-content {
        padding: 1rem 1.5rem;
        max-width: 1200px;
    }
    
    .nav-list {
        gap: 2rem;
    }
    
    .nav {
        margin: 0 1rem;
    }
}

/* Mantener estilos móviles existentes */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
        justify-content: space-between;
    }
    
    .nav {
        display: none;
        margin: 0;
    }
    
    .header-buttons {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
}
/* Sobrescribir estilos del header para móvil */
@media (max-width: 768px) {
    .header {
        padding: 0 !important; /* Eliminar padding del header principal */
    }
}