/* =========================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    --blue-rappy: #007aff;
    --black-rappy: #000000;
    --white-rappy: #ffffff;
    --gray-soft: #f5f5f7;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hero Styles */
.conductor-hero {
    padding-top: 20px; /* Espacio para el navbar si es fijo */
}

.bg-blue {
    background-color: var(--rappy-blue) !important;
}

.text-blue {
    color: var(--rappy-blue) !important;
}

.btn-blue {
    background-color: var(--rappy-blue);
    border-color: var(--rappy-blue);
    color: white;
    transition: all 0.3s ease;
}

.btn-blue:hover {
    background-color: var(--rappy-blue-dark);
    border-color: var(--rappy-blue-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-3px);
    background-color: white;
    color: black;
}

/* Animación de la imagen del celular */
.hero-img {
    max-height: 650px;
    filter: drop-shadow(0 20px 50px rgba(0, 122, 255, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Ajustes de tipografía */
.titulo-sections {
    letter-spacing: -2px;
    font-weight: 800;
}

.z-index-10 {
    z-index: 10;
}

/* Responsivo */
@media (max-width: 991.98px) {
    .conductor-hero {
        text-align: center;
        min-height: auto !important;
        padding-bottom: 80px;
    }
    .titulo-sections {
        font-size: 3rem;
    }
    .d-flex.flex-column.flex-sm-row {
        align-items: center;
        justify-content: center;
    }
}



body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}


/* --- Configuración Base del Navbar --- */
.navbar {
    background-color: var(--blue-rappy)!important;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Estilo de los Enlaces */
.navbar-nav .nav-link {
    color: var(--white-rappy  ) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 10px !important;
    transition: all 0.3s ease;
    position: relative;
}

/* Efecto Hover (Línea azul que aparece abajo) */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 15px;
    background-color: var(--black-rappy);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: calc(100% - 30px);

}

.navbar-nav .nav-link:hover {
    color: var(--black-rappy)  !important;
}

/* --- Botón de Descarga Rappy --- */
.btn-rappy-descarga {
    background-color: var(--white-rappy);
    color: var(--black-rappy) !important;
    border-radius: 50px; /* Redondeado tipo cápsula */
    padding: 12px 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espacio entre texto e icono */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
    border: none;
}

.btn-rappy-descarga i {
    font-size: 1.1rem;
}

.btn-rappy-descarga:hover {
    background-color: #f0f0f0;
    color: var(--black-rappy) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

/* --- Ajustes para el Menú Móvil --- */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        color: var(--black-rappy) !important;
    }
    .navbar-collapse {
        background: var(--white-rappy);
        padding: 20px;
        border-radius: 20px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link::after {
        display: none; /* Quitamos la línea en móvil */
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }

    .btn-rappy-descarga {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
}

/* --- Animación al hacer Scroll (Sticky-top ya lo trae Bootstrap) --- */
.navbar.sticky-top.shadow-sm {
    backdrop-filter: blur(10px);
    background-color: var(--blue-rappy) !important;
}


/* --- Botones del Hero --- */

/* 1. Botón Principal (Azul Rappy) */
.btn-blue {
    background-color: var(--blue-rappy);
    color: var(--white-rappy) !important;
    border: 2px solid var(--blue-rappy);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote suave */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-blue:hover {
    background-color: #0066d6; /* Un azul un poco más oscuro al presionar */
    border-color: #0066d6;
    transform: translateY(-5px); /* Se eleva */
    box-shadow: 0 15px 30px rgba(0, 122, 255, 0.4) !important; /* Sombra azulada */
    color: var(--white-rappy) !important;
}

.btn-blue:active {
    transform: translateY(-2px);
}

/* 2. Botón Secundario (Delineado Blanco) */
.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    background-color: transparent;
    color: var(--white-rappy) !important;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-light:hover {
    background-color: var(--white-rappy) !important;
    color: var(--black-rappy) !important; /* Cambia a texto negro para legibilidad */
    border-color: var(--white-rappy) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15) !important;
}

/* Ajuste de tamaño para botones LG */
.btn-lg {
    font-size: 1rem !important;
    padding: 1.2rem 3rem !important;
}

/* Media Query para móviles: Botones a ancho completo si es necesario */
@media (max-width: 576px) {
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}



/* --- Tipografía Corporativa --- */
.titulo-sections {
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: -1.5px !important;
    line-height: 1.1 !important;
    font-family: 'Arial Black', sans-serif;
    color: var(--black-rappy);
    font-size: 52px;
}

.text-blue { color: var(--blue-rappy) !important; }
.bg-blue { background-color: var(--blue-rappy) !important; }

/* =========================================
   HERO SECTION
   ========================================= */
.conductor-hero {
    position: relative;
    background-color: var(--black-rappy);
}

.conductor-hero .titulo-sections {
    color: var(--white-rappy) !important;
    font-size: 55px !important;
}

.badge.bg-blue {
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* =========================================
   CARDS Y COMPONENTES (Beneficios)
   ========================================= */
.transition-3d {
    transition: var(--transition);
}

.hover-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.card.rounded-4 {
    border-radius: 25px !important;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--blue-rappy);
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.text-muted {
    color: var(--black-rappy) !important;
    font-size: 15px;
}

/* =========================================
   REQUISITOS (Layout Asimétrico)
   ========================================= */
.requisito-item i {
    filter: drop-shadow(0 4px 6px rgba(0,122,255,0.2));
}

.dots-pattern {
    pointer-events: none;
}

/* =========================================
   ACORDEÓN DE PASOS (Estilo FAQ Minimalista)
   ========================================= */
#accordionPasosDrive .accordion-item {
    background-color: var(--white-rappy) !important;
    border-radius: 15px;
    margin-bottom: 10px;
    color: var(--black-rappy) !important;
}

#accordionPasosDrive .accordion-button {
    font-size: 1.1rem;
    box-shadow: none !important;
    background-color: var(--white-rappy) !important;
    border-radius: 15px;
    color: var(--black-rappy) !important;
    transition: var(--transition);
}

#accordionPasosDrive .accordion-button:not(.collapsed) {
    color: var(--blue-rappy) !important;
    padding-bottom: 10px;

}

/* Flecha personalizada azul */
#accordionPasosDrive .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23007aff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* =========================================
   SECCIÓN DE REGISTRO (CTA)
   ========================================= */
.bg-black .titulo-sections-legar {
    color: var(--white-rappy) !important;
    font-size: 52px;
    font-weight: 900;
}

.store-link img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.store-link:hover img {
    transform: translateY(-5px) scale(1.05);
}

/* =========================================
   FOOTER (Efecto Diagonal)
   ========================================= */
.main-footer {
    background-color: var(--black-rappy);
    color: var(--white-rappy);
    padding-top: 120px;
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0% 100%);
    margin-top: -60px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--blue-rappy);
    padding-left: 8px;
}

.social-box {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-box:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
}

/* =========================================
   RESPONSIVE (Ajustes para móviles)
   ========================================= */
@media (max-width: 768px) {
    .titulo-sections, 
    .titulo-sections-legar, 
    .hero-section .titulo-sections {
        font-size: 34px !important;
        text-align: center;
    }

    .conductor-hero {
        min-height: 70vh !important;
    }

    .main-footer {
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0% 100%);
        padding-top: 80px;
        text-align: center;
    }

    .social-box {
        margin: 0 auto;
    }
}


.pasos-conductor{
    font-size: 15px;
    background-color: var(--blue-rappy);
}

/* --- Tarjetas de Beneficios Estilo Yummy --- */
.benefit-card-white {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.benefit-card-white:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.benefit-card-white .icon-wrapper {
    font-size: 2.5rem;
    color: var(--blue-rappy); /* Color morado/azul de la imagen */
    opacity: 0.8;
}

.benefit-card-white h4 {
    font-size: 1.1rem;
    color: var(--blue-rappy);
    letter-spacing: 0.5px;
}

.benefit-card-white p {
    line-height: 1.6;
}

/* Ajuste para el subrayado del título */
.titulo-sections .position-relative svg {
    z-index: -1;
    bottom: -5px;
}



.location-container {
    background: white;
    padding: 20px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Scroll personalizado para la lista */
.scroll-custom::-webkit-scrollbar {
    width: 6px;
}
.scroll-custom::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.scroll-custom::-webkit-scrollbar-thumb {
    background: var(--blue-rappy);
    border-radius: 10px;
}

.map-vector {
    filter: drop-shadow(0 10px 20px rgba(0,122,255,0.1));
    transition: transform 0.5s ease;
}

.map-vector:hover {
    transform: scale(1.02);
}

.map-badge {
    position: absolute;
    bottom: 20px;
    right: 10%;
    background: white;
    padding: 15px 25px;
    border-radius: 20px;
    border-left: 5px solid var(--blue-rappy);
}

.location-container li:hover {
    background-color: rgba(0, 122, 255, 0.05);
    padding-left: 10px;
    transition: all 0.3s ease;
}

/* --- Footer Custom --- */
.footer-section {
    background-color: var(--white-rappy);
    margin-top: -2px; /* Evita líneas blancas entre secciones */
}

.footer-diagonal {
    background-color: var(--black-rappy);

}

.footer-logo {
    filter: brightness(0) invert(1); /* Convierte logo negro a blanco */
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 11px;
    transition: 0.3s;
}

.footer-links li a:hover {
    color: var(--blue-rappy);
    padding-left: 3px;
}

.footer-section h5 {
    font-size: 18px;
    letter-spacing: -0.5px;
}

/* Iconos de Redes Sociales */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: 0.3s;
}

.social-icon.fb { background-color: #3b5998; }
.social-icon.ig { background-color: #333333; }
.social-icon.wa { background-color: #25d366; }
.social-icon.tk { background-color: #555555; }

.social-icon:hover {
    transform: translateY(-5px);
    color: white;
    filter: brightness(1.2);
}

/* Ajuste para móviles */
@media (max-width: 767.98px) {
    .footer-diagonal {
        padding-top: 80px;
    }
    .footer-section {
        text-align: center;
    }
    .social-icon {
        margin: 0 auto;
    }
}

#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* Se oculta por defecto */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  z-index: 1000;
  background-color: var(--blue-rappy);
  color: var(--white-rappy);
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
  font-size: 20px;
  line-height: 1;
  padding: 0;
  transition: all 0.3s ease;
}

#btn-back-to-top:hover {
  transform: scale(1.1);
  background-color: var(--blue-rappy);
}