/* Reset y Variables */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #0f3460;
    --accent-color: #e94560;
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Header y Navegación */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

@media (max-width: 968px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 100px;
    width: auto;
}

@media (max-width: 968px) {
    .logo img {
        height: 60px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.5rem;
    transition: color 0.3s;
}

@media (max-width: 968px) {
    .nav-menu a {
        font-size: 1.1rem;
    }
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.arrow {
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--text-dark);
}

.dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--accent-color);
}

/* Selector de Idioma */
.language-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.lang-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.language-selector .lang-btns {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-dark);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Menú Móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 0.4rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.7)), url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--white);
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 968px) {
    .hero {
        background-attachment: scroll;
        padding: 2rem 1rem;
        min-height: 400px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

@media (max-width: 968px) {
    .hero-content {
        padding: 1rem;
    }
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

@media (max-width: 968px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
    letter-spacing: 0.5px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 968px) {
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #0a1929;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

@media (max-width: 968px) {
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

@media (max-width: 968px) {
    .section {
        padding: 3rem 1rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

@media (max-width: 968px) {
    .section h2 {
        font-size: 1.8rem;
    }
}

.section p {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

@media (max-width: 968px) {
    .section p {
        font-size: 1rem;
    }
}

.bg-light {
    background: var(--light-bg);
}

.bg-dark {
    background: var(--primary-color);
    color: var(--white);
}

.bg-dark h2,
.bg-dark p {
    color: var(--white);
}

/* Empresa Grid */
.empresa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.empresa-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

@media (max-width: 968px) {
    .empresa-card {
        padding: 2rem 1.5rem;
    }
}

.empresa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.empresa-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empresa-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empresa-card p {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Marcas Grid - Slider Infinito */
.marcas-grid {
    overflow: hidden;
    position: relative;
    margin-top: 3rem;
    padding: 2rem 0;
}

.marcas-slider {
    display: flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
}

.marca-card {
    flex: 0 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    width: 200px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.marca-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    animation-play-state: paused;
}

.marca-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.marca-card:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 8 - 3rem * 8));
    }
}

/* Contacto B2B */
.contacto-content {
    max-width: 700px;
    margin: 2rem auto 0;
    text-align: center;
}

.contacto-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

@media (max-width: 968px) {
    .contacto-text {
        font-size: 1rem;
    }
}

.contacto-email {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.email-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.email-link {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s;
}

@media (max-width: 968px) {
    .email-link {
        font-size: 1rem;
        word-break: break-all;
    }
}

.email-link:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none;
        gap: 0.5rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    .language-selector {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }

    .lang-label {
        font-size: 0.7rem;
    }

    .lang-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
}
