/* PALETA DE COLORES LETMAR - ESTILO CADILLAC */
:root {
    --letmar-navy: #001f3f; /* Azul profundo elegante */
    --letmar-blue: #003366; /* Azul corporativo */
    --letmar-orange: #ff6600; /* Naranja acción (Logo) */
    --letmar-gold: #ffcc00; /* Amarillo/Dorado (Logo) */
    --letmar-dark: #121212; /* Casi negro */
    --letmar-light: #f4f4f4; /* Blanco humo */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--letmar-light);
    color: #333;
}

/* NAVBAR */
.navbar {
    background-color: var(--letmar-navy) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding: 0.5rem 0;
}
/* Configuración del Texto "LETMAR" */
.navbar-brand {
    display: flex;
    align-items: center;
    /* CAMBIO 1: Letra MUCHO más grande */
    font-size: 2.4rem; /* Antes 1.8rem. Ahora es GIGANTE */
    font-weight: 900; /* Lo más grueso posible (Black) */
    letter-spacing: 1px; /* Un poco más cerrado para impacto */
    color: white !important;
    line-height: 1; /* Para que no ocupe espacio vertical extra innecesario */
}
.navbar-brand img {
    height: 85px; /* AUMENTADO: Antes era 50px */
    width: auto;
    margin-right: 5px; /* Espacio entre logo y texto */
    filter: brightness(1.2); /* Brillo para resaltar */
    transition: transform 0.3s;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}
/* Ajuste para Celulares (Para que no se vea monstruoso en pantalla chica) */
@media (max-width: 768px) {
    .navbar-brand { font-size: 1.6rem; }
    .navbar-brand img { height: 60px; margin-right: 5px; }
}
.nav-link {
    color: #fff !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.nav-link:hover {
    color: var(--letmar-gold) !important;
}

/* HERO SECTION (Encabezado) */
.hero-section {
    background: linear-gradient(135deg, var(--letmar-navy) 0%, #000000 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #ccc;
    margin-bottom: 40px;
}
.btn-primary-letmar {
    background: linear-gradient(90deg, var(--letmar-orange), #ff8c00);
    border: none;
    color: white;
    padding: 15px 40px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px; /* Bordes rectos tipo Cadillac */
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary-letmar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.4);
    color: white;
}

/* SECCIONES */
.section-padding {
    padding: 80px 0;
}
.section-title {
    color: var(--letmar-navy);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--letmar-orange);
    position: absolute;
    bottom: -10px;
    left: 0;
}

/* TARJETAS DE SERVICIOS */
.card-service {
    border: none;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
    border-bottom: 3px solid transparent;
}
.card-service:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--letmar-orange);
}
.icon-box {
    font-size: 3rem;
    color: var(--letmar-blue);
    margin-bottom: 20px;
}

/* FORMULARIO CONTACTO */
.contact-section {
    background-color: #e9ecef;
}
.form-control {
    border-radius: 0; /* Estilo sobrio */
    padding: 15px;
    border: 1px solid #ccc;
}
.form-control:focus {
    border-color: var(--letmar-blue);
    box-shadow: none;
}

/* FOOTER */
footer {
    background-color: #111;
    color: #888;
    padding: 60px 0 20px;
}
footer h5 {
    color: white;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1rem;
    letter-spacing: 1px;
}
footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--letmar-gold);
}

/* --- ELEMENTOS FLOTANTES (Mascota + WhatsApp) - VERSIÓN AJUSTADA --- */

/* El contenedor que agrupa a los dos */
.floating-container {
    position: fixed;
    bottom: 20px; /* Lo bajé un poquito más para que no flote tan alto */
    right: 20px;  /* Más pegado a la esquina */
    z-index: 1000;
    display: flex;
    align-items: flex-end; /* Alineados a la base */
    gap: 5px; /* ¡AQUÍ ESTÁ EL CAMBIO! Mucho más juntos (antes 15px) */
}

/* Estilo del Pug Ingeniero (El Jefe) */
.mascota-float {
    height: 115px; /* ¡AQUÍ ESTÁ EL CAMBIO! Mucho más grande (antes 85px) */
    width: auto;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
    /* Le quitamos la animación de flotar al pug para que se vea firme, el que se mueve es el botón */
    /* animation: flotarSuave 3s ease-in-out infinite; */ 
    transition: transform 0.3s;
}

/* Si pasas el mouse sobre el pug, te saluda */
.mascota-float:hover {
    transform: translateY(-5px) rotate(-5deg);
}

/* Estilo del Botón de WhatsApp */
.whatsapp-btn {
    width: 70px;  /* Un poquito más chico para darle protagonismo al pug (antes 75px) */
    height: 70px; /* Un poquito más chico (antes 75px) */
    font-size: 36px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
    animation: pulsarSuave 2s infinite; /* El botón pulsa para llamar la atención */
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 4px 4px 15px rgba(0,0,0,0.5);
    background-color: #1eba57; /* Un verde un poco más intenso al hover */
}

/* Animación de pulsación suave para el botón */
@keyframes pulsarSuave {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .floating-container { bottom: 15px; right: 15px; gap: 3px; }
    .mascota-float { height: 90px; } /* Pug grande en cel */
    .whatsapp-btn { width: 55px; height: 55px; font-size: 28px; } /* Botón más chico en cel */
}

/* --- CARRUSEL INFINITO DE MARCAS --- */
.slider-marcas {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .125);
    height: 150px; /* Altura de la sección */
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slider-marcas::before,
.slider-marcas::after {
    /* Efecto desvanecido a los lados para elegancia */
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 150px;
    position: absolute;
    width: 150px;
    z-index: 2;
}

.slider-marcas::after {
    right: 0;
    top: 0;
    transform: rotate(180deg);
}

.slider-marcas::before {
    left: 0;
    top: 0;
}

.slide-track {
    animation: scroll 40s linear infinite; /* 40s es la velocidad, ajústalo si quieres */
    display: flex;
    width: calc(200px * 26); /* 200px por logo x (13 logos * 2 vueltas) */
}

.slide {
    height: 100px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px; /* Espacio entre logos */
}

.slide img {
    max-height: 60px; /* Altura máxima uniforme */
    max-width: 100%;
    filter: none; /* Efecto B/N sobrio */
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slide img:hover {
    filter: grayscale(0%); /* Color al pasar mouse */
    opacity: 1;
    transform: scale(1.1); /* Pequeño zoom */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 13)); } /* Mueve la mitad de la tira */
}
/* --- BARRA DE REDES SOCIALES --- */
.social-bar {
    background-color: var(--letmar-navy); /* Fondo oscuro elegante */
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.social-title {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.social-icons-container {
    display: flex;
    justify-content: center;
    gap: 30px; /* Espacio entre iconos */
}

.social-icon-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05); /* Blanco muy sutil transparente */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon-btn i {
    font-size: 24px;
    color: white;
    transition: all 0.3s;
}

/* EFECTOS HOVER (Colores de cada red al pasar el mouse) */
.social-icon-btn:hover {
    transform: translateY(-5px); /* Flota un poquito */
    background-color: white;
}

.social-icon-btn:hover .fa-facebook-f { color: #1877F2; }
.social-icon-btn:hover .fa-linkedin-in { color: #0077B5; }
.social-icon-btn:hover .fa-instagram { color: #E4405F; }

/* --- EFECTOS PARA LA IMAGEN DEL ENCABEZADO --- */
.hero-img-effect {
    filter: drop-shadow(0 0 30px rgba(0, 31, 63, 0.8)) drop-shadow(0 0 15px rgba(255, 204, 0, 0.2));
    /* Aumentamos el tiempo a 2 segundos para que se aprecie el viaje largo */
    animation: aparecerRodando 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    max-height: 500px;
    width: auto;
}

/* La animación hace que la imagen entre deslizándose suavemente desde la derecha */
@keyframes aparecerRodando {
    from {
        opacity: 0; /* Invisible al inicio */
        /* translateX(400px) -> Empieza 400 pixeles a la derecha (muy afuera).
           rotate(180deg) -> Empieza rotada media vuelta (cabeza abajo).
        */
        transform: translateX(400px) rotate(180deg); 
    }
    to {
        opacity: 1; /* Totalmente visible */
        /* Llega a su posición original (0) y endereza la rotación (0deg) */
        transform: translateX(0) rotate(0deg); 
    }
}