:root {
    --negro-corporativo: #1A1A1D;
    --gris-carbon:      #2E2F33;
    --gris-metalico:    #ffffff;
    --gris-claro:       #D9D9DC;
    --blanco:           #FFFFFF;

    --primary:          var(--gris-carbon);
    --secondary:        var(--gris-claro);       
    --secondary-glow:   rgba(217, 217, 220, 0.25);
    --accent:           var(--gris-metalico);
    --text:             var(--gris-claro);
    --card-bg:          linear-gradient(145deg, #2E2F33, #1A1C1F);
    --shadow-strong:    0 10px 40px rgba(0,0,0,0.55);
    --transition:       0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--negro-corporativo);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: 80px 0;
}

p {
    text-align: justify;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gris-claro);
}

h2 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 40px;
    color: var(--gris-claro);
    text-align: center;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 11, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 5%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(92, 95, 102, 0.15);
    transition: transform 0.45s ease-in-out, opacity 0.45s ease-in-out;
}

.navbar.hide {
    transform: translateY(-100%);
    opacity: 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    width: 150px;
    height: 55px;
    overflow: visible;
    margin-left: -40px;
}

.logo-img {
    width: 100%;
    height: auto;
    transform: scale(1.35);
    transform-origin: left center;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.42);
    filter: brightness(1.15) drop-shadow(0 0 8px rgba(217,217,220,0.4));
}

@media (max-width: 1024px) {
    .logo { width: 130px; }
    .logo-img { transform: scale(1.25); }
}

@media (max-width: 768px) {
    .logo { width: 110px; }
    .logo-img { transform: scale(1.2); }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
    margin-left: auto;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.6rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--secondary-glow);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav {
    border: 1px solid var(--gris-metalico);
    padding: 0.65rem 1.8rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: var(--gris-claro);
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

.btn-nav:hover {
    background: var(--secondary);
    color: var(--negro-corporativo) !important;
    box-shadow: 0 0 18px var(--secondary-glow);
    transform: translateY(-1px);
}

.btn-nav::after {
    display: none !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 28px;
    height: 3.5px;
    margin: 6px auto;
    background-color: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--secondary);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--secondary);
}

@media (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 150px;
        background: rgba(11, 11, 13, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 3rem;
        transition: right 0.4s ease;
        padding: 90px 2rem 2rem;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.8rem 0;
    }

    .btn-nav {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    margin-top: 70px;
    background: none;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11,11,13,0.85), rgba(11,11,13,0.85));
    z-index: -1;
}

.hero-contenido {
    max-width: 700px;
    z-index: 1;
}

.hero h1 {
    font-size: 60px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--gris-claro);
}

.hero p {
    font-size: 18px;
    color: var(--gris-claro);
    margin-bottom: 30px;
}

.btn-hero {
    display: inline-block;
    padding: 14px 30px;
    background: var(--gris-carbon);
    color: var(--gris-claro);
    border: 2px solid var(--gris-metalico);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: var(--gris-claro);
    color: var(--negro-corporativo);
    box-shadow: 0 0 20px var(--secondary-glow);
}

/* SOMOS NUEVO */
.somos-nuevo {
    background: var(--negro-corporativo);
    padding: 80px 8%;
}

.somos-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.somos-img {
    flex: 1;
}

.somos-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.somos-texto {
    flex: 1;
}

.subtitulo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--gris-claro);
}

/* MISION VISION */
.mision-vision {
    background: var(--gris-carbon);
    padding: 80px 8%;
}

.mv-container {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mv-card {
    flex: 1;
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-strong);
    text-align: center;
    transition: transform 0.3s;
}

.mv-card:hover {
    transform: translateY(-10px);
}

.mv-icon {
    margin-bottom: 20px;
}

.mv-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.mv-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gris-claro);
}

.mv-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gris-claro);
}

/* VALORES */
.valores-modern {
    background: var(--negro-corporativo);
    padding: 60px 8%;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.valor {
    background: var(--card-bg);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.valor:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(217,217,220,0.15);
}

.valor h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.8rem 0;
    color: var(--gris-claro);
    position: relative;
    transition: color 0.3s;
    padding-bottom: 0.5rem;
}

.valor h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.valor:hover h4 {
    color: var(--secondary);
}

.valor:hover h4::after {
    width: 60%;
}

.valor p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--gris-claro);
    margin: 0;
}

@media (max-width: 1200px) {
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .valores-grid {
        grid-template-columns: 1fr;
    }
    
    .valor {
        min-height: 200px;
        padding: 1.4rem 1rem;
    }
    
    .valor h4 {
        font-size: 1.25rem;
    }
    
    .valor p {
        font-size: 0.85rem;
    }
}

/* HISTORIA */
.historia {
    background: var(--gris-carbon);
    padding: 80px 8%;
}

.historia-container {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.texto {
    flex: 1;
}

.imagen {
    flex: 1;
}

.imagen img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
    .historia-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .imagen {
        order: -1;
        width: 100%;
    }

    .imagen img {
        width: 100%;
        max-width: 450px;
        margin: auto;
    }

    .texto {
        width: 100%;
    }

    .texto p {
        text-align: left;
        font-size: 15px;
    }
}

/* CARRUSEL EMPRESARIAL */
.carrusel-empresarial {
    background: var(--negro-corporativo);
    padding: 80px 0;
    border-bottom: 1px solid var(--gris-metalico);
}

.titulo-grupo {
    text-align: center;
    margin-bottom: 60px;
    color: var(--gris-claro);
    font-size: 32px;
    font-weight: 700;
}

.slider {
    overflow: hidden;
    width: 100%;
}

.slide-track {
    display: flex;
    align-items: center;
    gap: 190px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.partner-logo {
    height: 150px;
    object-fit: contain;
    opacity: 0.85;
    transition: 0.4s;
    filter: brightness(0.9);
}

.partner-logo:hover {
    transform: scale(1.15);
    opacity: 1;
    filter: brightness(1);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* CLIENTES PRINCIPALES - logos más grandes */
.clientes-principales {
    background: var(--negro-corporativo);
    padding: 80px 8%;
    border-bottom: 1px solid var(--gris-metalico);
}

.clientes-principales .titulo-grupo {
    margin-bottom: 60px;
    color: var(--gris-claro);
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cliente-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-strong);
    transition: all 0.4s ease;
    background: var(--card-bg);
    aspect-ratio: 3 / 2;
}

.cliente-imagen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;                     /* reducido para logos más grandes */
    transition: transform 0.6s ease;
    background: var(--card-bg);
}

.cliente-card:hover .cliente-imagen {
    transform: scale(1.08);
}

.cliente-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--negro-corporativo), transparent);
    padding: 1.5rem 1.2rem;
    color: var(--gris-claro);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cliente-card:hover .cliente-overlay {
    transform: translateY(0);
}

.cliente-card::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: 0 0 0 0 rgba(217, 217, 220, 0.15);
    border-radius: 16px;
    animation: pulseGlow 3s infinite;
    opacity: 0;
    transition: opacity 0.5s;
}

.cliente-card:hover::after {
    opacity: 1;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(217, 217, 220, 0.15); }
    70% { box-shadow: 0 0 0 20px rgba(217, 217, 220, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 217, 220, 0); }
}

/* RESPONSIVE - CLIENTES PRINCIPALES */
@media (max-width: 768px) {
    .clientes-principales {
        padding: 60px 5%;
    }

    .clientes-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1rem;
    }

    .cliente-card {
        max-width: 360px;               /* un poco más ancho */
        margin: 0 auto;
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .cliente-imagen {
        padding: 1.2rem;                /* menos padding = logos más grandes en móvil */
        object-fit: contain;
        max-height: 94%;                /* más espacio para la imagen */
        margin: auto;
        display: block;
    }

    .cliente-overlay {
        font-size: 1.15rem;
        padding: 1.2rem;
    }

    .cliente-card:hover .cliente-imagen {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .cliente-card {
        max-width: 320px;
    }
    
    .cliente-imagen {
        padding: 1rem;
    }
}

/* FOOTER */
.footer {
    background: var(--negro-corporativo);
    color: var(--gris-claro);
    padding: 5rem 5% 3rem;
    border-top: 1px solid rgba(92, 95, 102, 0.3);
}

.hecho-por {
    font-size: 11px;
    color: #aaa;
    margin-top: 6px;
}

@media (min-width: 769px) {
    .hecho-por {
        position: absolute;
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
    }
}

.hecho-por a {
    color: #aaa;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.texto-hecho {
    font-size: 12px;
    font-weight: 100;
}

.hecho-por img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    top: 7px;
    vertical-align: middle;
    margin-left: 6px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-brand, .footer-contact, .footer-legal {
    flex: 1;
    min-width: 280px;
}

.footer-brand {
    max-width: 380px;
}

.footer-logo {
    max-width: 220px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-contact h4, .footer-legal h4 {
    font-size: 1.35rem;
    margin-bottom: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gris-claro);
}

.footer-contact p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.footer-contact a {
    color: var(--gris-claro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-legal ul.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal ul.legal-links li {
    margin-bottom: 1rem;
}

.footer-legal a.legal-link {
    color: var(--gris-claro);
    text-decoration: underline;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.footer-legal a.legal-link:hover {
    color: var(--secondary);
}

.footer-legal .social-icons {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.footer-legal .social-link {
    display: block;
    transition: transform 0.3s;
}

.footer-legal .social-link:hover {
    transform: scale(1.15);
}

.footer-legal .social-link svg {
    width: 36px;
    height: 36px;
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(92, 95, 102, 0.3);
    font-size: 0.95rem;
    opacity: 0.85;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.footer-bottom p {
    text-align: center;
    max-width: 90%;
    margin: auto;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .hecho-por {
        text-align: center;
        margin-right: 0;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 3.5rem;
    }

    .footer-brand,
    .footer-contact,
    .footer-legal {
        width: 100%;
        max-width: 420px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-logo {
        display: block;
        margin: 0 auto;
    }

    .footer-contact h4,
    .footer-legal h4 {
        text-align: center;
    }

    .footer-contact p {
        text-align: left;
        margin-left: 25px;
    }

    .footer-legal ul {
        text-align: center;
        margin-left: 60px;
    }

    .footer-legal ul li a {
        display: inline-block;
    }

    .footer-legal .social-icons {
        justify-content: center;
    }
}

/* ANIMACIONES SCROLL */
.scroll-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-anim.active {
    opacity: 1;
    transform: translateY(0);
}

/* GENERAL RESPONSIVE */
@media (max-width: 600px) {
    section { padding: 60px 0; }
    h2 { font-size: 26px; }
    .hero { padding: 0 5%; text-align: center; }
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 15px; }
    .somos-wrapper, .historia-container, .mv-container {
        flex-direction: column;
        text-align: center;
    }
    .somos-img img, .imagen img { width: 100%; height: auto; }
}

/* BOTONES FLOTANTES SOCIALES */
.social-float {
    position: fixed;
    right: 20px;
    bottom: 50px;              /* subimos un poco todo el grupo para dar más espacio abajo */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 35px;                 /* separación notable entre los dos íconos */
    align-items: center;
}

.social-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 28px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.social-float a.whatsapp {
    background: #25D366;
}

.social-float a.facebook {
    background: #1877F2;
    order: -1;                 /* Facebook arriba, WhatsApp abajo */
    margin-bottom: 15px;       /* empuja aún más hacia abajo al WhatsApp */
}

/* Hover effects */
.social-float a:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.social-float a.whatsapp:hover {
    background: #20b858;
}

.social-float a.facebook:hover {
    background: #1666d2;
}

/* Versión móvil */
@media (max-width: 768px) {
    .social-float {
        right: 15px;
        bottom: 40px;          /* un poco menos espacio en móvil */
        gap: 28px;
    }
    .social-float a {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    .social-float a.facebook {
        margin-bottom: 12px;
    }
}