body {
    font-family: 'Source Sans Pro', sans-serif;
    padding-top: 70px;
}

@media (max-width: 768px) {
    /* estilos para móviles */

    .hero .container {
            padding-left: 10px !important;
            padding-right: 10px !important;
        }

    .hero {
            height: auto;
            /* Permite que crezca según contenido */
            padding: 60px 20px;
            /* Más aire */
        }
    
        .hero h1 {
            font-size: 1.6rem !important;
            /* Mucho más amable en móvil */
            line-height: 1.2;
            padding: 0 10px;
            /* ayuda a evitar cortes laterales */
        }
    
        .hero p {
            font-size: 1.1rem !important;
            line-height: 1.4;
        }
    
        .btn-lg {
            font-size: 1rem;
            padding: 10px 20px;
        }

        #chat-btn {
            width: 50px;
            height: 50px;
            padding: 10px 20px;
            font-size: 14px;
        }


}

.hero {
    height: 45vh;
    background: linear-gradient(135deg, #007bff 0%, #00366F 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: #007bff;
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-bottom: 10px;
}

@keyframes latido {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.12);
    }

    60% {
        transform: scale(0.97);
    }

    100% {
        transform: scale(1);
    }
}



/* Botón flotante */

#chat-btn {
    position: fixed;
  /*  bottom: 400px;
    right: 25px;*/
    bottom: 25px;
    left: 25px;

    background-color:orange;
    color: white;
    width: 60px;
    height: 60px;
    white-space: nowrap;
    /*border-radius: 50%;*/
    border-radius: 8px;
    padding: 10px 120px;
    /*padding-left: 20px;
            /* 🔥 Mueve el texto hacia la izquierda */
    border-radius: 8px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    /*justify-content: flex-start;
            /* 🔥 Para que el texto respete el padding */
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
    /* animación tipo latido */
    animation: latido 1.3s infinite;
}



@keyframes latido {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.12);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}






/* Caja del chatbot */
#chat-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 330px;
    height: 430px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

/* Encabezado */
#chat-header {
    background: orange;
    color: white;
    padding: 12px;
    font-weight: bold;
    text-align: center;
}

/* Área del chatbot */
#chat-body {
    padding: 15px;
    height: 100%;
    overflow-y: auto;
    font-family: Arial, sans-serif;
}

#chat-input-area {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #ddd;
}

#chat-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#chat-send {
    background: #0d6efd;
    border: none;
    padding: 8px 12px;
    color: white;
    margin-left: 8px;
    border-radius: 6px;
    cursor: pointer;
}


.mensaje-usuario {
    background: #0d6efd;
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    margin: 8px 0;
    width: fit-content;
    max-width: 85%;
    align-self: flex-end;
}

#chat-body {
    display: flex;
    flex-direction: column;
    padding: 15px;
    overflow-y: auto;
}


#chat-close {
    float: right;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin-right: 10px;
    color: white;
    transition: 0.3s ease;
}

#chat-close:hover {
    color: #ffcccc;
}

.mensaje-bot {
    background: #e8e8ff;
    padding: 8px 12px;
    border-radius: 8px;
    width: fit-content;
    margin-right: auto;
    margin-bottom: 10px;
    max-width: 75%;
}

#chat-btn-rect {
    position: fixed;
    bottom: 200px;
    right: 20px;
    background: orange;
    color: white;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: 0.2s;
}

#chat-btn-rect:hover {
    background: #0b5ed7;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    /* distancia del borde inferior */
    right: 20px;
    /* lo pongo a la izquierda porque dijiste que te gustaba ahí */
    background: #25D366;
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: latido 1.3s infinite;
}

.whatsapp-float:hover {
    background: #1ebe5d;
}