/*-----------------------------------------------------------------------------------
[Table of contents]
1. Font & Variables
2. Common & Base CSS
3. Preloader
4. Header / Navigation
5. Banner Section
6. How It Works Section
7. Features Section
8. Interface Section
9. Download App Section
10. Footer
11. Animations & Other Styles
-----------------------------------------------------------------------------------*/

/* 1. FONT & VARIABLES */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/poppins-v20-latin-regular.woff2') format('woff2'),
       url('../fonts/poppins-v20-latin-regular.woff') format('woff');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/poppins-v20-latin-600.woff2') format('woff2'),
       url('../fonts/poppins-v20-latin-600.woff') format('woff');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/poppins-v20-latin-700.woff2') format('woff2'),
       url('../fonts/poppins-v20-latin-700.woff') format('woff');
}

:root {
    --crediviva-blue: #3300FF;
    --crediviva-green: #bfff00;
    --crediviva-purple: #9F2BFF;
    --crediviva-cyan: #00E5FF;
    --dark-text: #0d1126;
    --body-text: #3E3F66;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #F6F4FE;
    --slider-dots: #D4D2DD;
}

/* 2. COMMON & BASE CSS */
html { scroll-behavior: smooth; }
body {
    margin: 0; padding: 0; box-sizing: border-box;
    font-size: 16px; line-height: 1.7; font-family: 'Poppins', sans-serif;
    color: var(--body-text); background-color: var(--bg-light);
}
.page_wrapper { width: 100%; overflow-x: hidden; }
a { text-decoration: none; color: var(--body-text); }
a:hover { text-decoration: none; color: var(--crediviva-blue); }
ul, li { padding: 0; list-style-type: none; margin: 0; }
button:focus, .btn:focus { outline: none; box-shadow: none; }
@media (min-width:1200px) { .container { max-width: 1170px; } }

.section_title { text-align: center; margin-bottom: 40px; }
.section_title h2 { font-size: 40px; font-weight: 700; color: var(--dark-text); }
.section_title h2 span { color: var(--crediviva-blue); }
.row_am { padding: 80px 0; }

.dark_btn {
    background-color: var(--crediviva-green);
    color: var(--dark-text);
    border-radius: 50px;
    padding: 9px 40px;
    font-weight: 700;
    transition: all .3s ease;
}
.dark_btn:hover {
    background-color: var(--text-white);
    color: var(--crediviva-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 3. PRELOADER */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #fff; z-index: 999999; }
#loader { display: block; position: relative; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--crediviva-blue); animation: spin 2s linear infinite; }
#loader:before { content: ""; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--crediviva-green); animation: spin 3s linear infinite; }
#loader:after { content: ""; position: absolute; top: 15px; left: 15px; right: 15px; bottom: 15px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--crediviva-cyan); animation: spin 1.5s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* 4. HEADER / NAVIGATION */
header { position: absolute; width: 100%; z-index: 999; padding-top: 20px; transition: .4s all; }
header.fix_style { position: fixed; top: 0; background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); padding: 10px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.navbar { padding: 15px 0; }
.navbar-brand img { width: 150px; }
.navbar-expand-lg .navbar-nav .nav-link { padding: 5px 20px; font-weight: 600; color: var(--dark-text); }
header.fix_style .navbar-expand-lg .navbar-nav .nav-link { color: var(--dark-text); }
.navbar-expand-lg .navbar-nav .nav-link:hover { color: var(--crediviva-blue); }
.navbar-expand-lg .navbar-nav .nav-link.dark_btn { margin-left: 20px; }
.toggle-bar, .toggle-bar::before, .toggle-bar::after { transition: all .2s ease-in-out; border-top: 3px solid var(--dark-text); background: var(--dark-text); height: 3px; }
.toggle-bar::before, .toggle-bar::after { content: ""; display: block; width: 30px; position: absolute; }
.toggle-bar { width: 25px; margin: 10px 0; position: relative; }
.toggle-bar::before { top: -10px; }
.toggle-bar::after { top: 10px; width: 20px; }

/* 5. BANNER SECTION */
.banner_section { padding: 120px 0 80px 0; position: relative; background: linear-gradient(135deg, var(--bg-light) 0%, #EAE6FF 100%); }
.banner_section .row { align-items: center; }
.banner_text h1 { font-size: 50px; color: var(--dark-text); font-weight: 700; line-height: 1.2; }
.banner_text h1 span { color: var(--crediviva-blue); }
.banner_text p { max-width: 500px; margin-top: 20px; }
.banner_section .app_btn { display: flex; align-items: center; margin-top: 30px; }
.banner_section .app_btn li a img { height: 50px; }
.banner_section .app_btn li:last-child { margin-left: 20px; }
.banner_slider .slider_frame_cred img { max-width: 100%; border-radius: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }

/* 6. HOW IT WORKS SECTION */
.how_it_works { background-color: var(--bg-white); }
.how_it_inner { padding: 70px 0; border-radius: 30px; }
.step_block ul { max-width: 1080px; margin: 0 auto; padding-top: 50px; }
.step_block ul li { display: flex; align-items: center; justify-content: space-between; position: relative; margin-bottom: 80px; }
.step_block ul li::before { content: ""; position: absolute; left: 50%; top: 50px; transform: translateX(-50%); width: 2px; height: calc(100% + 80px); background-color: #eee; }
.step_block ul li:last-child::before { display: none; }
.step_text, .step_img { width: 45%; }
.step_text h4 { font-size: 24px; font-weight: 600; color: var(--crediviva-blue); }
.step_text p { margin-bottom: 15px; }
.step_list { list-style: none; padding-left: 20px; text-align: left; }
.step_list li { font-size: 15px; margin-bottom: 10px; position: relative; }
.step_list li::before { content: '✓'; color: var(--crediviva-green); font-weight: bold; position: absolute; left: -20px; }
.step_img img { max-width: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.step_number { background: var(--crediviva-blue); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1; box-shadow: 0 0 0 8px var(--bg-light); }
.step_number h3 { font-size: 24px; margin: 0; font-weight: 700; }
.step_block ul li:nth-child(2) { flex-direction: row-reverse; }

/* 7. FEATURES SECTION */
.features_section .feature_detail { background-color: var(--bg-white); border-radius: 30px; position: relative; display: flex; justify-content: space-between; padding: 60px 20px; box-shadow: 0 4px 30px #EDE9FE; align-items: center; margin-top: 50px;}
.features_section .feature_detail .feature_img { width: 30%; }
.features_section .feature_detail .feature_img img { max-width: 100%; }
.feature_box { width: 35%; }
.data_block { display: flex; align-items: center; text-align: left; margin-bottom: 40px; }
.data_block .icon { font-size: 3rem; color: var(--crediviva-blue); margin-right: 20px; }
.right_data .data_block { flex-direction: row-reverse; text-align: right; }
.right_data .data_block .icon { margin-left: 20px; margin-right: 0; }
.data_block .text h4 { font-size: 20px; color: var(--dark-text); font-weight: 600; }
.data_block .text p { margin-bottom: 0; }

/* 8. INTERFACE SECTION */
.interface_section { padding: 80px 0; }
.screen_slider { margin-top: 35px; }
.interface_section .owl-item .screen_frame_img img { transform: scale(.85); border-radius: 20px; transition: .4s all; margin: 0 auto; max-width: 250px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.interface_section .owl-item.center .screen_frame_img img { transform: scale(1); }
.owl-carousel .owl-dots button { background-color: var(--slider-dots); }
.owl-carousel .owl-dots button.active { background-color: var(--crediviva-blue); }

/* 9. DOWNLOAD APP SECTION */
.free_app_section { padding-top: 80px; }
.free_app_inner { background: var(--crediviva-blue); border-radius: 30px; padding: 50px; }
.free_app_inner .row { align-items: center; }
.free_text .section_title { text-align: left; }
.free_text .section_title h2, .free_text .section_title p { color: var(--text-white); }
.free_app_inner .app_btn { margin-top: 20px; }
.free_app_inner .app_btn a { display: inline-block; }
.free_app_inner .app_btn img { height: 50px; transition: .3s ease; }
.free_app_inner .app_btn img:hover { transform: scale(1.05); }
.free_app_inner .app_btn li:last-child { margin-left: 20px; }
.free_img img { max-width: 100%; border-radius: 20px; }

/* 10. FOOTER */
footer { position: relative; }
footer .top_footer { background-color: var(--dark-text); padding: 80px 0 60px 0; color: #ccc; }
footer .top_footer .logo { margin-bottom: 20px; }
footer .top_footer .logo img { width: 150px; }
footer p { color: #ccc; }
footer h3 { font-size: 20px; font-weight: 600; margin-bottom: 30px; color: var(--text-white); }
footer .links ul li a { display: block; margin-bottom: 10px; color: #ccc; }
footer .links ul li a:hover { color: var(--crediviva-green); }
footer .try_out .app_btn img { height: 50px; }
footer .try_out .app_btn li:last-child { margin-top: 15px; }
footer .bottom_footer { background-color: #080a14; padding: 20px 0; text-align: center; }
footer .bottom_footer p { margin: 0; font-size: 14px; color: #888; }
.social_media { display: flex; margin-top: 20px; }
.social_media li a { color: #fff; margin-right: 15px; font-size: 20px; }
.go_top { position: fixed; right: 30px; bottom: 30px; cursor: pointer; opacity: 0; transition: .4s all; }
.go_top:hover { bottom: 35px; }

/* 11. ANIMATIONS & OTHER STYLES */
.anim_line span { display: none; } /* Simplified: removing line animations */
.moving_animation { animation: moving_object 6s infinite linear; }
@keyframes moving_object { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
/* Estilos para lista interactiva de pasos */
.interactive-list li {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  margin-left: -12px; /* Ajuste para compensar el padding */
}

.interactive-list li:hover {
  background-color: #eef2ff; /* Un color de fondo suave al pasar el cursor */
  color: var(--crediviva-blue);
}