/* --- onliniu.css --- */
/* Estilos personalizados para Onliniu */

/* UTILIDADES */
.bg-orange {
    background-color: #ff685c;
}

/* Ajustes para textos sobre fondos naranjas (Aplica al título de sección) */
.bg-orange .section-title .subtitle,
.bg-orange .section-title .title,
.bg-orange .section-title p {
    color: #ffffff !important;
}

/* SECCIÓN DE SERVICIOS */
#servicios {
    margin-top: 100px; /* <--- AQUÍ ESTÁ EL MARGEN AGREGADO */
}

.service-card-onliniu {
    background: #fff; /* Las tarjetas se mantienen blancas */
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease-in-out;
    border: none; /* Quitamos borde para que se vea limpio sobre el naranja */
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card-onliniu:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.service-card-onliniu .icon-wrapper {
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    background-color: #ffeae8;
    color: #ff685c;
    font-size: 30px;
    border-radius: 50%;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.service-card-onliniu:hover .icon-wrapper {
    background-color: #ff685c;
    color: #fff;
}

.service-card-onliniu h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.service-card-onliniu p {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

/* Lista de características dentro de los servicios */
.service-list {
    padding: 0;
    margin: 0;
    list-style: none;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.service-list li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
}

.service-list li i {
    color: #4CAF50; /* Verde check */
    margin-right: 10px;
    font-size: 12px;
}

.service-card-onliniu.featured {
    border: 3px solid rgba(255, 255, 255, 0.5); /* Borde sutil para destacar */
}

/* SECCIÓN: SLIDER DE PROYECTOS (Estilo Estándar Blanco) */
.single-project-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.single-project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.single-project-item .thumb {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f9f9f9;
}

.single-project-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.single-project-item:hover .thumb img {
    transform: scale(1.05);
}

.single-project-item .content {
    padding: 25px;
    text-align: left;
}

.single-project-item .content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.single-project-item .content p {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.5;
    min-height: 42px;
}

.read-more-btn {
    font-size: 14px;
    font-weight: 600;
    color: #ff685c;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none !important;
}

.read-more-btn i {
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.read-more-btn:hover {
    color: #d14034;
}

.read-more-btn:hover i {
    margin-left: 10px;
}

/* Ajustes Generales */
.text-white { color: #fff !important; }
.margin-bottom-30 { margin-bottom: 30px; }




/* =========================================
   MEJORAS VISUALES ONLINIU (Servicios y Proyectos)
   ========================================= */

/* --- SECCIÓN SERVICIOS IMPACTANTES --- */
.service-card-impact {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
    height: 100%;
    z-index: 1;
}

/* Línea animada inferior */
.service-card-impact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #ff685c, #ff9a8b);
    transition: width 0.4s ease;
}

/* Efecto Hover (Levantar tarjeta) */
.service-card-impact:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(255, 104, 92, 0.15);
}

.service-card-impact:hover::after {
    width: 100%;
}

/* Icono con fondo */
.service-card-impact .icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255, 104, 92, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: #ff685c;
    transition: all 0.5s ease;
}

/* Efecto Hover Icono (Giro 3D) */
.service-card-impact:hover .icon-wrapper {
    background: #ff685c;
    color: #fff;
    transform: rotateY(360deg);
}

.service-card-impact h4 {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.service-card-impact p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.service-list li {
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.service-list li i {
    color: #ff685c;
    margin-right: 10px;
}






/* --- SECCIÓN PROYECTOS (VERSIÓN SIN SOMBRA EXTERIOR) --- */
.project-item-impact {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 480px;
    /* Se eliminó el box-shadow de aquí para quitar la sombra externa */
    /* box-shadow: 0 15px 35px rgba(0,0,0,0.1); <--- ELIMINADO */
    margin-bottom: 10px;
    background-color: #fff; /* Asegura fondo blanco por si la imagen tarda en cargar */
}

.project-item-impact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* El degradado naranja interno se mantiene igual */
.project-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(40, 27, 27, 0.95), rgba(51, 34, 34, 0.7), transparent);
    padding: 30px;
    transform: translateY(10px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-item-impact:hover img {
    transform: scale(1.1);
}

.project-item-impact:hover .project-content-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(40, 27, 27, 0.95), rgba(51, 34, 34, 0.7), transparent);
}

.project-content-overlay h4 {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project-content-overlay p {
    color: rgba(255,255,255, 0.95);
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Botón blanco con texto naranja */
.read-more-btn-impact {
    display: inline-flex;
    align-items: center;
    color: #ff685c;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Pequeña sombra solo en el botón */
}

.read-more-btn-impact:hover {
    background: #ff685c;
    color: #fff;
    text-decoration: none;
}

.read-more-btn-impact i {
    margin-left: 8px;
    transition: margin-left 0.3s;
}

.read-more-btn-impact:hover i {
    margin-left: 12px;
}




/* --- BOTÓN "LO QUIERO" EN SERVICIOS --- */
.btn-service-impact {
    display: inline-block;
    margin-top: 25px; /* Espacio arriba del botón */
    padding: 12px 35px;
    background: linear-gradient(90deg, #ff685c, #ff9a8b); /* Degradado naranja/coral */
    color: #fff !important; /* Texto blanco forzado */
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(255, 104, 92, 0.3); /* Sombra suave */
    transition: all 0.3s ease;
    border: none;
    width: 100%; /* Botón ancho completo o quitar para botón pequeño */
    text-align: center;
}

.btn-service-impact:hover {
    transform: translateY(-3px); /* Se eleva un poco */
    box-shadow: 0 15px 30px rgba(255, 104, 92, 0.5); /* Sombra más intensa */
    background: linear-gradient(90deg, #ff9a8b, #ff685c); /* Invierte degradado */
    color: #fff;
}

.btn-service-impact i {
    margin-left: 5px;
}










/* =========================================
   ESTILOS DEL CHATBOT ONLINIU V2 (Vistoso)
   ========================================= */

/* Animación de pulso para llamar la atención */
@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 104, 92, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 104, 92, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 104, 92, 0);
    }
}

/* Botón flotante VISTOSO */
.chat-toggle-btn {
    position: fixed;
    bottom: 30px; /* Más abajo ahora que no está el otro botón */
    right: 30px;
    /* Degradado naranja para darle volumen */
    background: linear-gradient(45deg, #ff685c, #fa8b82); 
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 28px; /* Un poco más grande */
    font-size: 17px; /* Texto más visible */
    font-weight: bold;
    /* Sombra naranja intensa */
    box-shadow: 0 10px 25px rgba(255, 104, 92, 0.5); 
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    /* Aplicar la animación de pulso */
    animation: pulse-orange 2s infinite;
}

/* Efecto hover: detiene la animación y se levanta */
.chat-toggle-btn:hover {
    background: linear-gradient(45deg, #e65548, #ff685c);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 104, 92, 0.6);
    animation: none; /* Pausa el pulso al pasar el mouse */
}

.chat-toggle-btn i {
    font-size: 22px;
}

/* Ventana del Chat */
.chat-window {
    position: fixed;
    bottom: 100px; /* Ajustado a la nueva posición del botón */
    right: 30px;
    width: 340px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10000;
    overflow: hidden;
    display: none; /* Oculto por defecto */
    flex-direction: column;
    font-family: sans-serif;
    border: none;
}

/* Cabecera del Chat - AHORA NARANJA */
.chat-header {
    /* Usamos un degradado naranja para que se vea moderno */
    background: linear-gradient(135deg, #ff685c 0%, #e65548 100%);
    color: white;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-weight: 700;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: 0.2s;
}
.close-chat:hover { opacity: 1; }

/* Cuerpo del Chat */
.chat-body {
    padding: 20px;
    background-color: #fff; /* Fondo blanco limpio */
    max-height: 450px;
    overflow-y: auto;
}

/* Mensajes del Bot */
.bot-message {
    background-color: #f0f2f5;
    padding: 14px 18px;
    border-radius: 18px 18px 18px 4px;
    margin-bottom: 20px;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid #ff685c; /* Pequeño acento naranja */
}

/* Botones de opciones */
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
}

.option-btn {
    background: white;
    border: 2px solid #ff685c; /* Borde más grueso */
    color: #ff685c;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    text-align: left;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(255, 104, 92, 0.1);
}

.option-btn:hover {
    background: #ff685c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 104, 92, 0.3);
}

/* Area de Inputs (Paso 2) */
.input-area {
     padding: 0 5px;
}

.chat-input {
    width: 100%;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 15px;
    min-height: 100px;
    font-size: 15px;
    resize: none;
    font-family: inherit;
    transition: 0.3s;
    background-color: #fafafa;
}

.chat-input:focus {
    outline: none;
    border-color: #ff685c;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 104, 92, 0.1);
}

/* Botón enviar a WhatsApp */
.send-btn {
    width: 100%;
    background: linear-gradient(45deg, #25D366, #1ebc57); /* Degradado Verde WhatsApp */
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.back-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    margin-top: 15px;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.back-btn:hover { color: #ff685c; }

/* Animación de entrada */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-window[style*="display: flex"] {
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ajuste móvil */
@media (max-width: 480px) {
    .chat-toggle-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 24px;
        font-size: 15px;
    }
    .chat-window {
        width: 90%;
        right: 5%;
        bottom: 90px;
    }
}









/* --- EFECTO DE FLOTACIÓN (SECCIÓN DIGITALIZAMOS) --- */

/* Definición de la animación de subir y bajar suavemente */
@keyframes flotar {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); } /* Sube 12px */
    100% { transform: translateY(0px); }
}

/* Aplicamos la animación a las tarjetas */
.single-feature-item-02 {
    animation: flotar 4s ease-in-out infinite; /* Dura 4 segs y es infinito */
    transition: all 0.3s ease;
    /* Opcional: una sombra suave para dar sensación de altura */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

/* Retrasamos la animación en cada tarjeta para que no se muevan todas igual (efecto ola) */
/* Seleccionamos las columnas padres para dar el delay a sus hijos */
.row .col-lg-3:nth-child(1) .single-feature-item-02 { animation-delay: 0s; }
.row .col-lg-3:nth-child(2) .single-feature-item-02 { animation-delay: 1s; }
.row .col-lg-3:nth-child(3) .single-feature-item-02 { animation-delay: 2s; }
.row .col-lg-3:nth-child(4) .single-feature-item-02 { animation-delay: 0.5s; }

/* Detener la animación si el usuario pasa el mouse por encima (opcional, mejora la lectura) */
.single-feature-item-02:hover {
    animation-play-state: paused;
    transform: translateY(-5px); /* Se queda un poco elevado */
}


/* --- EFECTO BLANCO Y NEGRO A COLOR (CASOS DE ÉXITO) --- */

/* Estado inicial de la imagen: Blanco y Negro */
.project-item-impact img {
    filter: grayscale(100%); /* Escala de grises total */
    -webkit-filter: grayscale(100%); /* Compatibilidad Safari/Chrome antiguo */
    transition: all 0.5s ease; /* Transición suave de medio segundo */
    cursor: pointer;
}

/* Estado al pasar el mouse (Hover): Vuelve a color */
.project-item-impact:hover img {
    filter: grayscale(0%); /* Quita el filtro gris */
    -webkit-filter: grayscale(0%);
    transform: scale(1.03); /* Un pequeño zoom sutil para resaltar */
}









/* =========================================
       2. EFECTO PROYECTOS (Ajuste Proporcional y Márgenes)
       ========================================= */
    
    .project-item-impact.full-width {
        /* ESTILO ESCRITORIO (PC) */
        height: 550px; /* Altura imponente en pantallas grandes */
        
        border-radius: 15px;
        overflow: hidden;
        position: relative;
        background-color: #000;
        /* En PC el margen lo controla el carrusel JS, no ponemos nada aquí */
    }

    .project-item-impact.full-width img {
        display: block;
        width: 100%;
        height: 100%; 
        object-fit: cover; 
        object-position: center; /* Muestra siempre la parte superior de la web */
        
        filter: grayscale(100%);
        -webkit-filter: grayscale(100%);
        transition: all 0.5s ease;
    }

    /* --- AJUSTES SOLO PARA MÓVILES (Celulares) --- */
    @media (max-width: 768px) {
        .project-item-impact.full-width {
            /* 1. ALTURA PROPORCIONAL: 
               Para que no se vea cuadrado, bajamos la altura a 280px.
               Al ser más ancho que alto, se ve "apaisado" igual que en la PC. */
            height: 500px !important; 
            
            /* 2. MÁRGENES LATERALES:
               Agregamos espacio a los lados para que no toque los bordes */
            margin-left: 15px;
            margin-right: 15px;
            
            /* 3. Separación inferior */
            margin-bottom: 30px !important; 
        }
    }

    /* Hover */
    .project-item-impact.full-width:hover img {
        filter: grayscale(0%);
        -webkit-filter: grayscale(0%);
        transform: scale(1.03);
    }
    
    /* Overlay del texto */
    .project-content-overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0) 100%);
        padding: 20px;
		padding-bottom: 30px;
        width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
    }

    .project-content-overlay h4 {
        color: #fff !important;
        font-size: 20px; /* Un poco más pequeño para móvil */
        font-weight: 700;
        margin-bottom: 5px;
    }
    .project-content-overlay p {
        color: #ddd !important;
        font-size: 13px; 
        margin-bottom: 10px;
    }