body {
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.hero-section {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('../img/logo2.png');
    background-size: cover;
    background-position: center;

    /* IMPORTANTE: Evita que la imagen se duplique como un mosaico */
    background-repeat: no-repeat; 
    background-color: #FFF; /* Fondo de respaldo por si quedan bordes vacíos */
}
/* --- ADAPTACIÓN PARA DESKTOP (Pantallas mayores a 992px) --- */
@media (min-width: 992px) {
    .hero-section {
        /* 'contain' obliga a que la imagen entera sea visible sin recortarse */
        background-size: contain; 
        
        /* NOTA: Si notas que 'contain' hace que el logo se vea muy pequeño, 
           comenta la línea de arriba y usa un porcentaje como el de abajo: */
        /* background-size: 70%; */
    }
}

.navbar-brand span {
    color: #007bff;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
}

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

section {
    padding: 80px 0;
}

/* Estado inicial: invisible y un poco más abajo */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

/* Estado activo: visible y en su posición original */
.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* Estilo para el Navbar cuando se hace scroll */
.navbar-scrolled {
    background-color: #1a1a1a !important; /* Un negro más sólido */
    transition: background-color 0.3s ease;
}

/* Suavizar el scroll al hacer clic en los enlaces del menú */
html {
    scroll-behavior: smooth;
}

#nosotros h2 {
    color: #1a1a1a;
    line-height: 1.2;
}

#nosotros .text-primary {
    letter-spacing: 2px;
}

.bg-dark h3 {
    color: #007bff; /* Color azul de Limay */
}

 /* Color azul de ln parte de galeria */
.img-zoom {
    transition: transform 0.5s ease;
    cursor: pointer;
}

.img-zoom:hover {
    transform: scale(1.1);
}

.gallery-item {
    transition: all 0.4s ease;
}

.filter-btn {
    border-radius: 20px;
    padding: 8px 25px;
    margin: 5px;
}

.whatsapp-float {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 45px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

/* Punto indicador de "En línea" */
.badge-online {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background-color: #ff0000; /* Rojo o verde */
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* Ocultar en pantallas muy pequeñas si estorba */
@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}

.icon-box {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.form-control:focus, .form-select:focus {
    background-color: #fff !important;
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.1);
}

#form-status {
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

.success-msg { background: #d4edda; color: #155724; }
.error-msg { background: #f8d7da; color: #721c24; }

/* Contenedor de la tarjeta de servicio */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Imagen con zoom al pasar el mouse */
.service-card img {
    transition: transform 0.5s ease;
    height: 200px;
    object-fit: cover;
}

.service-card:hover img {
    transform: scale(1.1);
}

/* Icono flotante sobre la imagen */
.service-icon {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: #007bff; /* Color primario */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 4px solid #fff;
    z-index: 2;
}

.card-body {
    padding-top: 40px !important;
}


/* parte css de seccion que proceso de trabajo */
/* Contenedor de cada paso */
.process-item {
    position: relative;
    padding: 20px;
    z-index: 1;
}

/* Número de fondo grande y transparente */
.process-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
    font-weight: 800;
    color: rgba(0, 123, 255, 0.08); /* Azul muy tenue */
    z-index: -1;
    line-height: 1;
}

/* Iconos del proceso */
.process-icon {
    width: 70px;
    height: 70px;
    background-color: #fff;
    border: 2px dashed #007bff;
    color: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.process-item:hover .process-icon {
    background-color: #007bff;
    color: #fff;
    border-style: solid;
    transform: scale(1.1);
}

/* Línea conectora solo en pantallas grandes */
@media (min-width: 992px) {
    .process-item::after {
        content: "";
        position: absolute;
        top: 55px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, #007bff 50%, transparent 50%);
        background-size: 10px 2px;
        z-index: -1;
    }
    
    /* Quitar la línea al último paso */
    .col-lg-3:last-child .process-item::after {
        display: none;
    }
}
