/* Variables de Marca */
:root {
    --blue-rappy: #007aff;
    --black-rappy: #000000;
    --white-rappy: #ffffff;
    --gray-soft: #f5f5f7;
}


/* Forzamos el estilo independientemente de Bootstrap */
body .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; /* O la fuente que estés usando */
}

/* Títulos en secciones blancas (Beneficios, FAQ, Ubicaciones) */
section.bg-white .titulo-sections, 
section.py-5 .titulo-sections {
    color: #000000 !important; /* Negro total para que resalte */
    font-size: 52px;
}

/* Título específico del HERO (Sobre el video) */
.hero-section .titulo-sections {
    color: #ffffff !important; 
    font-size: 55px !important;
}

.mt-minus {
    margin-top: 0px;
    color: var(--white-rappy) !important;
    font-size: 52px;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: -1.5px !important;
    line-height: 1.1 !important;
    font-family: 'Arial Black', sans-serif; /* O la fuente que estés usando */
}

.titulo-sections-legar {
    color: var(--white-rappy) !important;
    font-size: 52px;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: -1.5px !important;
    line-height: 1.1 !important;
    font-family: 'Arial Black', sans-serif; /* O la fuente que estés usando */
}

.lead {
    color: var(--white-rappy); /* Cambiado a blanco para visibilidad sobre video */
    font-size: 19px;
}

/* Ajuste para Móviles (Media Queries) */
@media (max-width: 768px) {
    body .titulo-sections {
        font-size: 34px !important;
        letter-spacing: -1px !important;
        text-align: center;
    }
    .mt-minus {
        font-size: 34px !important;
        letter-spacing: -1px !important;
    }
    .titulo-sections-legar {
        font-size: 34px !important;
        letter-spacing: -1px !important;
        text-align: center;
    }
    .lead {
        font-size: 16px;
        color: var(--white-rappy);
        text-align: center;
    }
    .tiendas-badges {
        justify-content: center !important;
    }
}



/* --- 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;
}
/* --- HERO CON VIDEO --- */

.hero-section {
    position: relative;
    padding: 10px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--black-rappy); /* Fondo de respaldo */
}

/* El Video de fondo */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 80%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    
}

/* Capa oscura para que el texto se vea bien */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Oscurece el video un 50% */
    z-index: 2;
    
}

/* Asegurar que el contenido esté por encima del video y el overlay */
.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-img {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    max-height: 650px;
    /* Animación suave para que el teléfono flote */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.store-badge {
    transition: transform 0.2s ease;
}

.store-badge:hover {
    transform: scale(1.05);
}

/* Estilos para la sección de Beneficios */
#beneficios h2 {
    font-size: 45px;
    letter-spacing: -1px;
}

.benefit-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 40px; /* Bordes muy redondeados como en la imagen */
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* Caja de Iconos */
.icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--blue-rappy);
    color: white;
    border-radius: 18px; /* Redondeado estilo App Icon */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 30px;
}

.benefit-card h4 {
    font-size: 20px;
    color: var(--black-rappy);
    line-height: 1.2;
}

.benefit-card p {
    line-height: 1.5;
    color: #6c757d;
}

/* Ajuste para el título de descarga */
#beneficios h3 {
    font-size: 28px;
    letter-spacing: -0.5px;
}

.bg-light-section {
    background-color: #f8f9fa;
    /* Efecto de borde diagonal superior (opcional para estilo único) */
    clip-path: polygon(0 5%, 100% 0%, 100% 100%, 0% 100%);
}

.text-rappy-blue {
    color: var(--blue-rappy);
}

.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;
}

.services-section {
    background-color: transparent;
    position: relative;
    padding-bottom: 50px;
    margin-top: -110px;
}

.services-v-shape {
    background-color: var(--black-rappy);
    /* Crea el efecto de pico hacia abajo */
    clip-path: polygon(0 15%, 100% 15%, 100% 85%, 50% 100%, 0 85%);
    padding: 100px 0;
}



/* Tarjetas de Servicio */
.service-card {
    background: white;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    border: none;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 32px;
    font-weight: 800;
}

/* Estilo de Precio */
.price-tag .currency {
    font-size: 24px;
    font-weight: 900;
    vertical-align: top;
}

.price-tag .amount {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
}

.price-tag .decimal {
    font-size: 18px;
    font-weight: 800;
    vertical-align: top;
}

/* Imagen de los vehículos */
.service-img {
    position: absolute;
    bottom: 20px;
    right: -5px;
    max-width: 250px;
}

.service-img-confort {
    position: absolute;
    bottom: 20px;
    right: 5px;
    max-width: 230px;
}

.service-img-moto {
    position: absolute;
    bottom: 20px;
    right: 25px;
    max-width: 170px;
}


/* Puntos de color */
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.dot.blue { background-color: var(--blue-rappy); }

.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px !important;
}

.swiper-pagination-bullet {
    background: var(--white-rappy) !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--blue-rappy) !important;
    opacity: 1;
}

.service-card {
    height: 100%; /* Asegura que todas tengan el mismo alto en el slider */
    margin: 10px;
}

.puestos{
    font-size: 12px;
}

.t-puesto{
    font-size: 15px;
    font-weight: 800;
    margin-bottom: -10px;
    

}


/* Estilos FAQ */
.accordion-item {
    background-color: transparent !important;
}

.accordion-button {
    font-size: 1.1rem;
    box-shadow: none !important; /* Elimina el borde azul de Bootstrap al hacer clic */
    background-color: transparent !important;
    padding-left: 0;
    padding-right: 0;
}

.accordion-button:not(.collapsed) {
    color: var(--blue-rappy) !important;
}

/* Cambiar el ícono de la flecha por uno más delgado si lo deseas */
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%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");
    background-size: 1.25rem;
}

.accordion-body {
    padding-left: 0;
    padding-bottom: 2rem;
    font-size: 1rem;
}


/* --- 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);
    /* Diagonal inversa hacia arriba */
    clip-path: polygon(0 15%, 100% 0%, 100% 100%, 0% 100%);
    padding-top: 120px;
}

.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 {
        clip-path: polygon(0 5%, 100% 0%, 100% 100%, 0% 100%);
        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);
}

/* Estilos Específicos para Legal */

.legal-header {
    background-color: var(--blue-rappy);
    
}


.bg-light-blue {
    background-color: var(--blue-rappy);
    border-left: 4px solid var(--blue-rappy) !important;
    color: white !important;
}

.legal-text {
    line-height: 1.8;
    color: var(--black-rappy);
}

.legal-text h3 {
    color: var(--black-rappy);
    font-weight: 700 !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

#legal-nav .nav-link {
    font-size: 0.9rem;
    padding: 10px 20px;
    transition: 0.3s;
    color: var(--black-rappy) !important;
}

#legal-nav .nav-link:hover {
    color: var(--white-rappy) !important;
    background: var(--blue-rappy);
}

#legal-nav .nav-link.active {
    color: var(--blue-rappy) !important;
    font-weight: bold;
    border-left: 3px solid var(--blue-rappy);
    margin-left: -2px;
}

/* Ajuste para que el scroll suave no tape los títulos con el navbar */
.legal-text div[id] {
    scroll-margin-top: 100px;
}

.table-bordered th {
    background-color: var(--black-rappy) !important;
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 122, 255, 0.05);
}

.legal-text {
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* Marca de agua sutil para el contrato */
.legal-text::before {
    content: 'RAPPY CONTRATO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0,0,0,0.02);
    white-space: nowrap;
    pointer-events: none;
}