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

:root {
    --bg-color: #050a10;
    --accent-color: #00f2ff;
    --accent-glow: rgba(0, 242, 255, 0.5);
    --text-color: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: rgba(5, 10, 16, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-content {
    width: 100%;
    max-width: 1400px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .contact-info, .top-bar .language-switcher {
    display: flex;
    gap: 20px;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--accent-color);
}

.top-bar i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

.top-bar img {
    width: 16px;
    height: auto;
    border-radius: 2px;
}

/* Capa 1: Navegación Glassmorphism (Banner superior - Especificaciones exactas) */
nav {
    position: fixed;
    top: 45px; /* Adjusting for Top Bar */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 3rem;
    
    /* Especificación 3: Glassmorphism */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)); /* Opacidad 10-20% */
    backdrop-filter: blur(20px); /* Desenfoque exacto */
    -webkit-backdrop-filter: blur(20px);
    
    /* Borde sutil superior e izquierdo para reflejo de luz */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    border-radius: 100px; /* Forma de píldora/cápsula */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7); /* Blanco al 70% según especificación */
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

/* Línea debajo del enlace activo con mayor brillo */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    border-radius: 10px;
}

.btn-nav {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    padding: 0.7rem 1.8rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-color), inset 0 0 10px rgba(0, 242, 255, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-nav:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--accent-color);
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .hamburger { display: flex; }
    .desktop-only { display: none; }
    
    nav {
        width: 95%;
        padding: 0.8rem 1.5rem;
        top: 1rem;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 280px;
        background: rgba(5, 10, 16, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        padding: 3rem;
        gap: 2.5rem;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1600;
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.6);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.3rem;
        width: 100%;
        text-align: right;
    }

    .nav-links a.active::after {
        left: auto;
        right: 0;
        width: 40px;
    }
}

/* Capa 2: Hero Section */
.hero {
    position: relative;
    min-height: 110vh; /* Increased to fit all elements (Title, Button, Carousel, Dashboard) */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding-top: 160px; /* Space for Nav Bar overlap */
    padding-left: 8%;
    padding-bottom: 100px;
    overflow: visible; /* Changed from hidden to allow dashboard overlap if needed */
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    max-width: 1200px; /* Reduced from 1400px to better fit standard resolutions */
    padding: 0;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.4rem, 8vw, 3.8rem); /* Font size scaling */
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #fff;
    transition: font-size 0.3s ease;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.15rem);
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: 0;
    line-height: 1.6;
}

.btn-cta {
    background: radial-gradient(circle at center, var(--accent-color), #00b8d4);
    color: #000;
    padding: 1.2rem 3rem;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0 30px var(--accent-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--accent-glow);
}

/* Carrusel de Logos (Social Proof) - Integrado en Hero */
.partners {
    position: relative;
    z-index: 10;
    width: 100vw; /* Utiliza todo el ancho de la ventana */
    margin-left: -8.7vw; /* Compensa el padding-left del Hero para centrarse realmente en la pantalla */
    padding: 20px 0;
    background: transparent;
    text-align: center;
    border-top: none;
    margin-top: 60px;
}

.partners-title {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: none;
    margin-bottom: 25px;
    font-weight: 300;
}

.marquee-header-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.marquee-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 243, 255, 0.15), transparent);
    flex-grow: 1;
    max-width: 15% ; /* Líneas laterales más cortas para dar más espacio a los logos */
}

.line-arrow-left, .line-arrow-right {
    color: rgba(0, 243, 255, 0.3);
    font-size: 1.2rem;
    font-weight: 200;
}

.marquee-wrapper {
    overflow: hidden;
    width: 92%; /* Ahora ocupa casi todo el ancho disponible entre las líneas */
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 0; /* Gap is now handled by the connector lines */
    animation: marquee-scroll 45s linear infinite;
    width: max-content;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-logo {
    flex-shrink: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(1) brightness(1.8);
    opacity: 0.85;
    transition: all 0.4s ease;
    cursor: pointer;
    padding: 0 15px; /* Minimal padding for spacing */
}

/* Conectores con Vida (Línea de Luz Azul 3D) Intensificada */
.logo-connector {
    width: 60px;
    height: 1.5px; /* Slightly thicker for better visibility */
    position: relative;
    background: rgba(0, 243, 255, 0.25); /* More visible base line */
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.1);
}

.logo-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%; /* Wider spark */
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    box-shadow: 0 0 25px var(--accent-color), 0 0 45px rgba(0, 243, 255, 0.3); /* Doubled/Tripled glow */
    animation: spark-travel 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spark-travel {
    0% { left: -150%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 250%; opacity: 0; }
}

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

.partner-logo img {
    height: 48px; /* Increased base height for better visibility */
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
}

/* Normalización visual sin recortes */
.partner-logo img[alt="Wallapop"] { height: 55px; }
.partner-logo img[alt="Carrefour"] { height: 50px; }
.partner-logo img[alt="Leroy Merlin"] { 
    height: 52px; 
    background-color: white;
    padding: 6px 14px;
    border-radius: 4px;
}

.partner-logo.text-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    height: auto;
    filter: none;
}

.partner-logo.text-logo:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: scale(1.1);
}

/* Panel de Servicios */
.services {
    padding: 100px 5%;
    background: linear-gradient(to bottom, #050a10, #0a1a2f);
    position: relative;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-header h2 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-header p {
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-card p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
}

/* Brillo en el hover */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.service-card:hover .card-glow {
    opacity: 0.3;
}

/* ==========================================================================
   PERFECCIONAMIENTO HERO: MÁS ESPACIO + DASHBOARD AL FONDO
   ========================================================================== */

.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 200px 4% 0 4%; /* Aumentado a 200px para empujar todo más abajo */
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3.6rem;
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 900;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 800px;
}

/* El Carrusel (Centrado con aire) */
.partners {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1350px;
    margin: 30px auto;
    padding: 10px 0;
    text-align: center;
}

/* Dashboard pegado al LÍMITE INFERIOR */
.hero-dashboard {
    margin-top: auto; /* Empuja todo al fondo absoluto del Hero */
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 1500px;
    align-self: center;
    position: relative;
    justify-content: center;
    margin-bottom: 0 !important;
}

.dashboard-visual {
    flex: 0 0 270px;
}

.visual-screen {
    background: rgba(2, 6, 11, 0.95);
    border: 1.5px solid var(--accent-light);
    border-radius: 18px 18px 0 0; /* Solo redondeamos arriba */
    padding: 15px;
    height: 100%;
    box-shadow: 0 -10px 30px rgba(0, 243, 255, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
}

.visual-stats .metric-value {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-color);
}

.dashboard-box {
    flex: 1;
    min-width: 260px;
    position: relative;
    background: transparent;
    border: 1.5px solid var(--accent-light);
    border-radius: 20px 20px 0 0; /* Solo redondeamos arriba */
    box-shadow: 0 -10px 25px rgba(0, 243, 255, 0.15);
    transition: all 0.4s ease;
}

.dashboard-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 -5px 40px rgba(0, 243, 255, 0.4);
    border-color: var(--accent-color);
}

.inner-box {
    background: rgba(5, 10, 16, 0.45); /* Mucho más transparente para el efecto cristal */
    backdrop-filter: blur(15px); /* Desenfoque profundo premium */
    -webkit-backdrop-filter: blur(15px);
    margin: 4px 4px 0 4px; 
    border-radius: 17px 17px 0 0;
    padding: 22px;
    height: calc(100% - 4px);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Brillo de borde de cristal */
}

.db-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-color);
}

.db-content h4 {
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #ffffff;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.db-content p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* Fondo contextual ajustado */
.dashboard-bg-context {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    opacity: 0.15;
    z-index: -1;
}

@media (max-width: 992px) {
    .hamburger { display: flex; }
    .desktop-only { display: none; }
    
    nav {
        width: 95%;
        padding: 0.8rem 1.5rem;
        top: 1rem;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 280px;
        background: #050a10;
        flex-direction: column;
        justify-content: center;
        padding: 3rem;
        gap: 2rem;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1600;
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.8);
        border-left: 2px solid rgba(0, 242, 255, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem !important;
        width: 100%;
        text-align: right;
        color: #ffffff !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:hover, .nav-links a.active {
        color: var(--accent-color) !important;
    }

    .nav-links a.active::after {
        left: auto;
        right: 0;
        width: 40px;
    }


    .hero {
        padding-top: 140px;
        text-align: center;
        align-items: center;
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }

    .hero-content {
        align-items: center;
    }

    .hero-dashboard {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .dashboard-visual {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
    }

    .dashboard-box {
        min-width: 100%;
        border-radius: 20px; /* Full rounded corners on mobile */
    }

    .inner-box {
        border-radius: 17px !important;
        padding: 18px;
    }

    .partners {
        margin: 40px auto;
    }

    .services {
        padding: 80px 5%;
    }

    .services-header h2 {
        font-size: 2.2rem;
    }

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

    /* Top Bar Mobile Adjustments */
    .top-bar-content {
        justify-content: center;
        gap: 15px;
    }

    .top-bar .contact-info a:not(:first-child), .top-bar .language-switcher a span {
        display: none;
    }
    
    .top-bar .contact-info a {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .btn-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
}

/* Marketplace Hub Summary Section */
.hub-summary {
    position: relative;
    padding: 100px 5% 60px;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
}

.hub-title {
    text-align: center;
    margin-bottom: 60px;
}

.hub-title h2 {
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.hub-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.hub-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hub-card:hover::before {
    opacity: 1;
}

.hub-logo-box {
    width: 100%;
    height: 120px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    padding: 25px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.hub-logo-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.hub-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hub {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.hub-card:hover .btn-hub {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 30px var(--accent-glow);
}

@media (max-width: 992px) {
    .hub-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hub-summary {
        padding: 60px 20px;
    }
    .hub-title h2 {
        font-size: 2rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 38px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.08); box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-5px) scale(1.15) rotate(10deg);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 25px;
        right: 25px;
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
}

/* ==========================================================================
   MOBILE-FIRST OPTIMIZATION (Android & iOS)
   Auditoría completa: Tipografía, Touch Targets, Contraste, Legibilidad
   ========================================================================== */

/* --- 1. TIPOGRAFÍA Y LEGIBILIDAD (Efecto "Sin Gafas") --- */
@media (max-width: 768px) {
    /* Base font: 18px para lectura sin esfuerzo */
    body {
        font-size: 18px;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* Jerarquía de títulos optimizada para móvil */
    h1 { font-size: 2rem !important; line-height: 1.15 !important; }
    h2 { font-size: 1.6rem !important; line-height: 1.2 !important; }
    h3 { font-size: 1.25rem !important; line-height: 1.3 !important; }
    h4 { font-size: 1.1rem !important; }

    /* Texto de párrafo legible */
    p, li, span, label, td {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    /* Contraste mejorado para textos sobre fondo oscuro */
    .hero p, .service-card p, .db-content p {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    /* Hero Section Mobile */
    .hero {
        padding-top: 160px !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 40px !important;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 10vw, 3.4rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 25px !important;
        text-align: center !important;
    }

    .hero h1 span {
        display: block !important;
        margin-bottom: 8px !important;
        letter-spacing: 1px !important;
    }

    .hero p {
        font-size: 1.05rem !important;
        margin-bottom: 25px !important;
        max-width: 100% !important;
    }

    /* Carrusel de logos mobile */
    .partners {
        margin-top: 30px !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .partners-title {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
    }

    .partner-logo img {
        height: 35px !important;
    }

    .logo-connector {
        width: 30px !important;
    }

    .marquee-line {
        display: none !important;
    }

    .line-arrow-left, .line-arrow-right {
        display: none !important;
    }

    /* Dashboard boxes mobile */
    .hero-dashboard {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        padding: 0 10px !important;
        margin-top: 40px !important;
    }

    /* Ocultar el box de "Incremento +314%" solo en móvil por estar saturado */
    .dashboard-visual {
        display: none !important;
    }

    .db-content h4 {
        font-size: 0.9rem !important;
    }

    .db-content p {
        font-size: 0.85rem !important;
    }

    /* Services grid mobile */
    .services {
        padding: 60px 5% !important;
    }

    .services-header {
        margin-bottom: 35px !important;
    }

    .services-header h2 {
        font-size: 1.8rem !important;
    }

    .services-header p {
        font-size: 1rem !important;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .service-card {
        padding: 30px 25px !important;
        border-radius: 20px !important;
    }

    .service-card h3 {
        font-size: 1.2rem !important;
    }

    .service-card p {
        font-size: 0.95rem !important;
    }

    .card-icon {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }

    /* Hub cards mobile */
    .hub-summary {
        padding: 50px 15px !important;
    }

    .hub-title h2 {
        font-size: 1.7rem !important;
    }

    .hub-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .hub-card {
        padding: 35px 25px !important;
        border-radius: 22px !important;
    }

    .hub-logo-box {
        height: 90px !important;
        margin-bottom: 20px !important;
        padding: 18px !important;
    }

    .hub-card h3 {
        font-size: 1.4rem !important;
        margin-bottom: 15px !important;
    }

    /* Top bar mobile - ultra compacto, solo teléfonos */
    .top-bar {
        height: 32px !important;
        padding: 0 !important;
        z-index: 2001 !important;
    }

    .top-bar-content {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 15px !important;
        align-items: center !important;
    }

    .top-bar .contact-info {
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 15px !important;
    }

    /* Ocultar email en top bar móvil */
    .top-bar .contact-info a[href^="mailto:"] {
        display: none !important;
    }

    /* Solo mostrar icono + número corto */
    .top-bar a {
        font-size: 0.7rem !important;
        padding: 0 !important;
    }

    /* Mover banderas al nav bar en móvil */
    .top-bar .language-switcher {
        position: fixed !important;
        top: 51px !important; /* Alinear verticalmente con ALUGAMAR y menú hamburguesa */
        right: 85px !important; /* Separado del hamburger */
        z-index: 2001 !important; /* Asegurar que está por encima de todo */
        gap: 12px !important; /* Más separación entre banderas */
        background: transparent !important;
    }

    .top-bar .language-switcher a {
        min-height: 30px !important;
        padding: 2px 4px !important;
    }

    .top-bar .language-switcher a span {
        display: none !important;
    }

    .top-bar .language-switcher img {
        width: 22px !important;
    }

    /* Nav ajustes - justo debajo del top bar compacto */
    nav {
        top: 38px !important;
        padding: 0.6rem 1.2rem !important;
        z-index: 2000 !important;
    }

    .logo {
        font-size: 1.3rem !important;
    }

    .nav-links {
        width: 85vw !important;
        max-width: 320px !important;
    }

    .nav-links a {
        font-size: 1.2rem !important;
        padding: 12px 0 !important;
    }
}

/* --- 2. ELEMENTOS TÁCTILES (Touch Targets 44x44px mínimo) --- */
@media (max-width: 768px) {
    /* Todos los botones y enlaces clicables: mínimo 44px de alto */
    .btn-cta {
        padding: 16px 28px !important;
        font-size: 1rem !important;
        min-height: 48px !important;
        width: 100% !important;
        text-align: center !important;
    }

    .btn-nav {
        padding: 14px 24px !important;
        min-height: 44px !important;
        font-size: 0.9rem !important;
    }

    .btn-hub {
        padding: 14px 24px !important;
        min-height: 44px !important;
        font-size: 0.95rem !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Phone and email links need touch-friendly size */
    a[href^="tel:"], a[href^="mailto:"] {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        padding: 8px 12px !important;
    }

    /* Hamburger menu touch target */
    .hamburger {
        padding: 14px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    /* Language switcher touch targets */
    .language-switcher a {
        min-height: 44px !important;
        padding: 8px 12px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* Market cards touch optimization */
    .market-card {
        padding: 30px 20px !important;
    }

    .market-badge {
        font-size: 0.8rem !important;
        padding: 6px 14px !important;
    }
}

/* --- 3. iOS AUTO-ZOOM PREVENTION --- */
@media (max-width: 768px) {
    /* Prevent iOS Safari from zooming in on input focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        min-height: 48px !important;
    }

    textarea {
        min-height: 120px !important;
    }

    /* Form labels readable */
    .form-group label {
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
        font-weight: 600 !important;
    }

    /* Submit button full width and touch-friendly */
    .btn-submit, button[type="submit"] {
        min-height: 52px !important;
        font-size: 1.05rem !important;
        padding: 16px !important;
        width: 100% !important;
        border-radius: 14px !important;
    }
}

/* --- 4. RESPONSIVE IMAGES & MEDIA --- */
@media (max-width: 768px) {
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    .logo-container img,
    .hub-logo-box img {
        max-height: 100% !important;
    }

    /* No horizontal scroll - safety net */
    html, body {
        overflow-x: hidden !important;
    }

    /* Footer mobile */
    footer {
        padding: 30px 15px !important;
        text-align: center !important;
    }

    footer p {
        font-size: 0.85rem !important;
    }
}

/* --- 5. CONTACT PAGE MOBILE SPECIFIC --- */
@media (max-width: 768px) {
    body.contact-page {
        height: auto !important;
        overflow-y: auto !important;
    }

    .contact-header {
        padding: 180px 15px 30px !important;
    }

    .contact-header h1 {
        font-size: 1.5rem !important;
    }

    .contact-header p {
        font-size: 1rem !important;
    }

    .contact-container {
        grid-template-columns: 1fr !important;
        padding: 15px !important;
        gap: 20px !important;
    }

    .info-card, .form-card {
        padding: 20px !important;
        border-radius: 18px !important;
    }

    .info-card h3 {
        font-size: 1.1rem !important;
    }

    .schedule-box {
        padding: 12px !important;
    }

    .navbar-contact {
        width: 95% !important;
        padding: 8px 15px !important;
        top: 80px !important;
    }

    .navbar-contact .logo, .navbar-contact a:first-child {
        font-size: 1.2rem !important;
    }

    .back-link {
        font-size: 0.9rem !important;
    }
}

/* --- 6. MARKETPLACE PAGE MOBILE SPECIFIC --- */
@media (max-width: 768px) {
    .market-header {
        padding: 180px 15px 30px !important;
    }

    .market-header h1 {
        font-size: 1.8rem !important;
    }

    .market-header p {
        font-size: 1rem !important;
    }

    .market-grid {
        grid-template-columns: 1fr !important;
        padding: 0 10px 40px !important;
        gap: 15px !important;
    }

    .market-card {
        padding: 25px 20px !important;
        border-radius: 18px !important;
    }

    .logo-container {
        height: 70px !important;
        border-radius: 12px !important;
        margin-bottom: 18px !important;
    }

    .market-card h3 {
        font-size: 1.3rem !important;
    }

    .market-card p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    /* SEO content section */
    .seo-content {
        padding: 40px 15px !important;
    }

    .seo-content h2 {
        font-size: 1.5rem !important;
    }

    .seo-content h4 {
        font-size: 1.1rem !important;
    }

    .seo-content div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
}

/* --- 7. LANDING PAGES MOBILE (Amazon, Leroy, Wallapop) --- */
@media (max-width: 768px) {
    .service-hero {
        padding: 180px 5% 50px !important;
    }

    .service-hero h1 {
        font-size: 2rem !important;
        letter-spacing: -1px !important;
    }

    .service-hero p {
        font-size: 1rem !important;
    }

    .model-section {
        padding: 50px 5% !important;
    }

    .model-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .model-card {
        padding: 30px 25px !important;
        border-radius: 22px !important;
    }

    .model-card h4 {
        font-size: 1.2rem !important;
    }

    .price-tag {
        font-size: 1.8rem !important;
    }

    .model-card p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
}

/* --- 8. ENGLISH VERSION PADDING FIX --- */
.lang-en .hero {
    padding-top: 240px !important;
}

@media (max-width: 768px) {
    .lang-en .hero {
        padding-top: 140px !important;
        min-height: auto !important;
        height: auto !important;
    }
}

/* --- 9. SMOOTH SCROLLING & PERFORMANCE --- */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Accessibility: Focus indicators for keyboard navigation */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}
