/* --- RESETEO Y FUENTES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fbfd;
}

/* --- VARIABLES --- */
:root {
    --primary: #004e92;
    --secondary: #000428;
    --accent: #00d2ff;
    --whatsapp-color: #25d366; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

p.subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
    font-size: 1.1rem;
}

/* --- NAVBAR (ACTUALIZADO PARA LOGO DE IMAGEN) --- */
.navbar {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Estilos nuevos para la imagen del logo */
.logo-link {
    display: flex;
    align-items: center;
}

.main-logo {
    height: 60px; /* Altura controlada para que no deforme la barra */
    width: auto;  /* El ancho se ajusta automático */
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 78, 146, 0.3);
}

.btn-nav:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
    min-height: 90vh;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-content {
    padding-top: 40px; 
}

.badge-new {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 3.8rem; 
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
}

.highlight {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.h-feat {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--accent);
    background: rgba(0,0,0,0.3);
    padding: 5px 15px;
    border-radius: 5px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-glow {
    background: var(--accent);
    color: var(--secondary);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.btn-glow:hover {
    background: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: var(--secondary);
}

/* --- VALUE PROP --- */
.value-prop {
    padding: 80px 0;
    background: #fff;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-interactive {
    padding: 30px;
    border-radius: 15px;
    background: #fff;
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.4s ease;
}

.card-interactive:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom: 5px solid var(--primary);
}

.icon-box {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* --- PRODUCTS --- */
.products {
    padding: 80px 0;
    background: var(--secondary); 
}

.white-text { color: white !important; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    color: white;
    transition: 0.3s;
}

.product-card:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.product-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent);
}

/* --- BRANDS --- */
.brands-section {
    padding: 40px 0;
    background: white;
    overflow: hidden; 
    border-bottom: 1px solid #eee;
}

.brands-section h3 {
    text-align: center;
    color: #999;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: scroll 30s linear infinite; 
}

.brand-logo {
    display: inline-block;
    margin: 0 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #555; 
    opacity: 0.6;
    transition: 0.3s;
}

.brand-logo:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* --- SERVICES --- */
.services {
    padding: 80px 0;
    background: #f4f7f6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.img-wrapper {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; 
}

.service-card:hover .img-wrapper img {
    transform: scale(1.1);
}

.service-info {
    padding: 25px;
    flex-grow: 1;
}

.service-info h3 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- CLIENTS (ACTUALIZADO PARA LISTA NUEVA) --- */
.clients {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.clients-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.client-box {
    /* Tarjetas más anchas para los nombres largos */
    width: 250px; 
    padding: 25px 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Sombra suave inicial */
    box-shadow: 0 5px 10px rgba(0,0,0,0.03);
}

.client-box:hover {
    border-color: var(--primary);
    /* Efecto de elevación y sombra más fuerte al pasar el mouse */
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 78, 146, 0.15);
}

/* Icono pequeño decorativo encima del nombre */
.client-icon {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 15px;
    transition: 0.3s;
}

.client-box:hover .client-icon {
    color: var(--accent);
}

.client-box h4 {
    color: var(--secondary);
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase; /* Asegura mayúsculas */
    letter-spacing: 0.5px;
}

/* --- FOOTER --- */
footer {
    background: var(--secondary);
    color: #aaa;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 { color: white; margin-bottom: 20px; }
.footer-col h4 { color: white; margin-bottom: 20px; }

.footer-col a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-col a:hover { color: var(--accent); }

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px #333;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1); 
    background-color: #20b857;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .main-logo { height: 50px; } /* Logo más pequeño en celular */
    
    .hero h1 { font-size: 2.2rem; }
    .hero-features { flex-direction: column; gap: 10px; }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}