/* Custom CSS para los colores de marca y la fuente */
:root {
    --ivess-green: #86FF75;
    --ivess-blue: #0046C9; /* Azul vibrante según los valores RGB del manual */
}
.bg-ivess-green { background-color: var(--ivess-green); }
.text-ivess-green { color: var(--ivess-green); }
.bg-ivess-blue { background-color: var(--ivess-blue); }
.text-ivess-blue { color: var(--ivess-blue); }
.font-baloo { font-family: 'Baloo 2', cursive; }

/* Estilo general para esquinas redondeadas */
body * {
    /* Eliminado: border-radius a todos los elementos puede generar efectos no deseados */
    /* border-radius: 0.5rem; */
}
/* Ajustes específicos para la sección hero para evitar esquinas redondeadas en la imagen de fondo */
.hero-section {
    border-radius: 0;
}

/* Ocultar el menú de navegación en pantallas pequeñas por defecto */
.nav-links {
    display: none; /* Por defecto oculto en móvil */
}
/* Mostrar el menú de navegación en pantallas medianas y más grandes */
@media (min-width: 768px) {
    .nav-links {
        display: flex !important; /* Forzar display flex en desktop */
    }
}
/* Estilo para el botón de menú hamburguesa */
.hamburger-menu {
    display: block;
    cursor: pointer;
}
@media (min-width: 768px) {
    .hamburger-menu {
        display: none;
    }
}

/* Estilos para los carruseles arrastrables */
.carousel-container {
    cursor: grab; /* Cursor para indicar que es arrastrable */
}
.carousel-container.active {
    cursor: grabbing;
}
/* Ocultar scrollbar para carruseles */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* Ajuste para el texto de las reseñas para que no se salga */
.review-text {
    max-height: 10rem; /* Altura máxima para el texto de la reseña antes de hacer scroll */
    overflow-y: auto; /* Permite el scroll vertical si el texto excede la altura máxima */
    -webkit-overflow-scrolling: touch; /* Suaviza el scroll en iOS */
    scrollbar-width: none; /* Oculta la barra de desplazamiento en Firefox */
    word-break: break-word; /* Rompe palabras largas para evitar desborde */
    white-space: normal; /* Permite que el texto fluya normalmente */
}
.review-text::-webkit-scrollbar {
    display: none; /* Oculta la barra de desplazamiento en WebKit */
}

/* Estilos para el formulario multi-paso y tarjetas (MOVED FROM INLINE STYLE) */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
}
.step-title {
    font-size: 1.8rem;
    color: var(--ivess-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ivess-green); /* Using ivess-green for border */
    text-align: center;
}
.form-section-title {
    font-size: 1.3rem;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}
.form-group label {
    font-weight: 600;
    color: #555;
}
.input-group-text {
    background-color: #e9ecef;
}
.tipo-cliente-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.cliente-card {
    border: 2px solid var(--ivess-green); /* Using ivess-green for border */
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cliente-card:hover, .cliente-card.selected {
    background-color: #EBF4FF; /* Light blue similar to what was there */
    border-color: var(--ivess-blue);
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.cliente-card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    fill: var(--ivess-blue);
}
.cliente-card h5 {
    color: var(--ivess-blue);
    font-weight: 700;
    margin-bottom: 5px;
}
.cliente-card p {
    font-size: 0.9rem;
    color: #555;
}
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}
.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 25px;
    overflow: hidden;
}
.progress-bar-custom {
    height: 15px;
    width: 0%;
    background-color: var(--ivess-green); /* Using ivess-green for progress bar */
    border-radius: 5px;
    transition: width 0.4s ease;
    text-align: center;
    line-height: 15px;
    color: white;
    font-size: 0.8em;
}
.sub-form-section {
    display: none;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: 15px;
    background-color: #f9f9f9;
}
.sub-form-section.active {
    display: block;
}
.is-invalid {
    border-color: #dc3545;
}
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: .875em;
    color: #dc3545;
}
input.is-invalid ~ .invalid-feedback,
select.is-invalid ~ .invalid-feedback {
    display: block;
}
.btn-celeste { /* Remapping from old "btn-celeste" to new ivess-green button style */
    background-color: var(--ivess-green);
    color: var(--ivess-blue);
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px; /* Full rounded */
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-celeste:hover {
    background-color: var(--ivess-blue);
    color: white;
}
.btn-azul { /* Remapping from old "btn-azul" to new ivess-blue button style */
    background-color: var(--ivess-blue);
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px; /* Full rounded */
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-azul:hover {
    background-color: var(--ivess-green);
    color: var(--ivess-blue);
}
.btn-outline-secondary { /* For prev/next buttons in form */
    border: 1px solid #6c757d;
    color: #6c757d;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}
.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* Estilos para el botón flotante de WhatsApp */
.btn-whatsapp-pulse {
    position: fixed;
    bottom: 20px; /* Ajusta según necesidad */
    right: 20px; /* Ajusta según necesidad */
    background-color: #25D366; /* Color de fondo de WhatsApp */
    color: white;
    border-radius: 50%;
    width: 60px; /* Tamaño del botón */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px; /* Tamaño del ícono */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    transition: all 0.3s ease;
    text-decoration: none; /* Eliminar subrayado por defecto */
}

.btn-whatsapp-pulse:hover {
    transform: scale(1.1); /* Efecto de zoom al pasar el mouse */
}

/* Animación de pulso para el botón */
.btn-whatsapp-pulse-border::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    animation: pulse-border 1.5s infinite;
    z-index: -1;
    opacity: 0;
}

.btn-whatsapp-pulse-border::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    animation: pulse-border 1.5s infinite 0.5s; /* Retraso para el segundo pulso */
    z-index: -1;
    opacity: 0;
}

@keyframes pulse-border {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5); /* Aumentar el tamaño del pulso */
        opacity: 0;
    }
}