:root {
    --azul-principal: #1a5a80;
    --azul-oscuro: #134663;
    --azul-claro: #f0f7fa;
    --texto: #333;
    --borde: #e1e1e1;
    --whatsapp: #25d366;
    --instagram: #e4405f;
    --facebook: #1877f2;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    line-height: 1.6; 
    color: var(--texto); 
    background-color: #fff; 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
}

/* --- REDES SOCIALES FLOTANTES --- */
.social-float { 
    position: fixed; 
    right: 20px; 
    bottom: 30px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    z-index: 1000; 
}

.social-btn { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    text-decoration: none; 
    font-size: 24px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    transition: transform 0.3s ease; 
}

.social-btn:hover { transform: scale(1.1) rotate(10deg); }
.ws { background-color: var(--whatsapp); }
.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.fb { background-color: var(--facebook); }

/* --- NAVEGACIÓN --- */
nav { 
    display: flex; 
    justify-content: space-between; 
    padding: 15px 5%; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--borde); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    align-items: center; 
}

.nav-brand {
    font-weight: 800; 
    color: var(--azul-principal); 
    letter-spacing: 2px;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a { 
    text-decoration: none; 
    color: var(--texto); 
    font-size: 0.9rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    transition: 0.3s; 
    position: relative;
}

.nav-links a:hover { color: var(--azul-principal); }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--azul-principal);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

/* --- HERO SECTION CON FONDO DE IMAGEN --- */
.hero { 
    position: relative;
    padding: 100px 20px; 
    text-align: center; 
    border-bottom: 1px solid var(--borde); 
    color: white;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Imagen de fondo */
    background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&q=80'); 
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.4); 
    z-index: -1;
    transform: scale(1.1);
}

.hero-logo { 
    max-width: 220px; 
    height: auto; 
    margin-bottom: 20px; 
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
}

.hero h1 { 
    font-size: 2.8rem; 
    color: #fff; 
    margin: 10px 0; 
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px; 
    margin: 0 auto; 
    color: #eee; 
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* --- SECCIONES GENERALES --- */
.section { 
    padding: 80px 10%; 
    max-width: 1200px; 
    margin: auto; 
}

.section-title { 
    text-align: center; 
    font-size: 2rem; 
    margin-bottom: 50px; 
    color: var(--azul-principal); 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after { 
    content: ''; 
    display: block; 
    width: 60px; 
    height: 4px; 
    background: var(--azul-principal); 
    margin: 15px auto; 
    border-radius: 2px;
}

/* --- GRID DE SERVICIOS --- */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

.card { 
    padding: 35px 25px; 
    border: 1px solid var(--borde); 
    border-radius: 12px; 
    text-align: center; 
    transition: all 0.3s ease; 
    background: #fff; 
    position: relative;
    overflow: hidden;
}

.card:hover { 
    border-color: var(--azul-principal); 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(26, 90, 128, 0.1); 
}

.card i { 
    font-size: 2.5rem; 
    color: var(--azul-principal); 
    margin-bottom: 20px; 
    background: var(--azul-claro);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    transition: 0.3s;
}

.card:hover i {
    background: var(--azul-principal);
    color: white;
    transform: rotateY(180deg);
}

.card h3 { 
    font-size: 1.2rem; 
    margin-bottom: 10px; 
    color: var(--azul-oscuro);
}

.card p { 
    font-size: 0.95rem; 
    color: #666; 
}

/* --- CARRUSEL DE MARCAS (INFINITE SCROLL) --- */
.marcas-section {
    background-color: #f9f9f9;
    padding: 60px 0;
    border-top: 1px solid var(--borde);
    border-bottom: 1px solid var(--borde);
    overflow: hidden;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-container::before,
.slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.slider-container::before {
    left: 0;
    background: linear-gradient(to right, #f9f9f9, transparent);
}

.slider-container::after {
    right: 0;
    background: linear-gradient(to left, #f9f9f9, transparent);
}

.slider-track {
    display: flex;
    width: calc(200px * 12);
    animation: scroll 20s linear infinite;
}

.slide {
    width: 200px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    max-width: 140px;
    height: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease;
    cursor: pointer;
    object-fit: contain;
}

.slide:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 6)); }
}

/* --- CONTACTO --- */
.contacto-simple { 
    text-align: center; 
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-oscuro));
    padding: 80px 20px; 
    border-radius: 20px; 
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.contacto-simple h2 { 
    color: white; 
    margin-bottom: 10px;
}

.contacto-simple h2::after { background: white; }

.contacto-simple p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.email-link { 
    display: inline-flex; 
    align-items: center; 
    gap: 15px; 
    text-decoration: none; 
    color: var(--azul-principal); 
    background: white;
    font-size: 1.3rem; 
    font-weight: bold; 
    padding: 18px 40px; 
    border-radius: 50px; 
    transition: 0.3s; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.email-link:hover { 
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* --- FOOTER --- */
footer { 
    background: #111; 
    color: #fff; 
    padding: 60px 10% 20px; 
    margin-top: 60px; 
}

.footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 20px; 
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-brand span { 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: white; 
    letter-spacing: 1px; 
}

.footer-socials a { 
    color: #888; 
    font-size: 1.4rem; 
    margin-left: 20px; 
    transition: 0.3s; 
}

.footer-socials a:hover { 
    color: var(--azul-principal); 
    transform: translateY(-3px);
    display: inline-block;
}

.copyright { 
    text-align: center; 
    padding-top: 20px; 
    margin-top: 20px; 
    font-size: 0.85rem; 
    color: #666; 
}

/* Ajuste móvil para nav */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
}