/* Estilos generales */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

/* Barra de contacto */
.contact-bar {
    background-color: #003366;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.contact-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info i, .social-icons i {
    margin-right: 5px;
    color: #FFD700; /* Dorado */
}

.social-icons i {
    margin-left: 15px;
    font-size: 16px;
    cursor: pointer;
}

/* Cabecera principal */
.main-header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-section {
    text-align: center;
    margin-bottom: 15px;
}

.logo-section h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #003366;
    margin: 0;
    letter-spacing: 1px;
}

.logo-section p {
    font-size: 18px;
    color: #555;
    margin: 5px 0 0 0;
}

/* Navegación principal */
.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    position: relative;
    margin: 0 15px;
}

.main-nav a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover {
    color: #E67E22;
}

.main-nav li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    height: 15px;
    width: 1px;
    background-color: #ddd;
}
header {
    background-color: #0056b3;
    color: white;
    padding: 1rem 0;
}

.header-top {
    text-align: center;
    padding: 1rem;
}

nav.bg-primary {
    background-color: #00187a !important; /* Azul exacto de tu imagen */
}

nav.bg-primary .nav-link {
    color: white !important;
    background-color: transparent; /* evita conflicto */
    padding: 10px 15px;
}

nav.bg-primary .nav-link:hover {
    background-color: #021253; /* opcional: más oscuro al pasar el mouse */
    color: #fff;
}


/* Hero section */
.hero {
    background-color: #f0f8ff;
    padding: 2rem;
    text-align: center;
}

.hero-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* Elimina cualquier subrayado o efecto de enlace */
.hover-effect {
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover para indicar que es clickeable */
.hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1.5rem;
    width: 300px;
    border: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: #333;
  margin-bottom: 1rem;
}

.card-text {
  color: #666;
}

.card:hover {
   box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2) !important;
   transform: translateY(-5px);
}

/* Services section */
.services {
    padding: 2rem;
    text-align: center;
}

.service-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.service-item {
    background: #ffffff; /* Fondo blanco como en la imagen */
    border: 1px solid #d1d1d1; /* Borde gris claro, puedes ajustar */
    border-radius: 12px; /* Bordes más redondeados */
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Sombra sutil */
    text-align: center; /* Centra el texto como en la imagen */
    transition: box-shadow 0.3s ease; /* Efecto al pasar el mouse */
}

.service-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra más notoria al pasar el mouse */
}

/* News section */
/* Sección general */
.news {
  padding: 2rem 1rem;
  background-color: #ffffff;
}

/* Título centrado */
.news h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Contenedor central igual que la sección de servicios */
.news-articles {
  max-width: 1200px; /* MISMO ancho que la sección "Servicios" */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Tarjeta de noticia */
.news-card {
  display: flex;
  gap: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  align-items: flex-start;
  width: 100%;
}

/* Imagen de la noticia */
.news-card img {
  width: 220px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Contenido de la noticia */
.news-content {
  flex: 1;
  text-align: justify;
}

/* Categoría */
.news-category {
  color: #0056b3;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  display: inline-block;
}

/* Título */
.news-content h3 {
  font-size: 1.2rem;
  margin: 0.3rem 0;
  color: #111;
}

/* Resumen */
.news-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Fecha */
.news-date {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.5rem;
  display: block;
}

@media (max-width: 768px) {
  .news-card {
    flex-direction: column;
    align-items: center;
    text-align: justify;
  }

  .news-card img {
    width: 100%;
    max-width: 100%;
  }

  .news-content h3,
  .news-category,
  .news-date {
    text-align: center;
  }
}


/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    padding: 1rem;
    min-width: 200px;
}

.social-icons img {
    width: 32px;
    margin: 0 5px;
}

.footer-bottom {
    width: 100%;
    display: block;
    clear: both;
    margin-top: 2rem;
    text-align: center;
}

/* Estilos para los iconos de contacto */
footer i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Iconos de redes sociales */
.social-icon {
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Colores específicos para cada red social */
.social-icon.fa-whatsapp { background-color: #25D366; }
.social-icon.fa-facebook { background-color: #3b5998; }
.social-icon.fa-instagram { background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); }
.social-icon.fa-youtube { background-color: #FF0000; }
.social-icon.fa-linkedin { background-color: #0077B5; }
.social-icon.fa-tiktok { background-color: #000000; }
.social-icon.fa-x-twitter { background-color: #000000; }

/* Estilos para el modal */
.modal-content {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Top Bar Styles */
.top-bar {
    background-color: #003366;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.contact-info span {
    margin-right: 1.5rem;
}

.contact-info i {
    margin-right: 0.5rem;
    color: #ffcc00;
}

.social-icons a {
    color: white;
    margin-left: 1rem;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ffcc00;
}

/* Main Header Styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.logo-title {
    text-align: center;
    margin-bottom: 1rem;
}

.logo-title h1 {
    color: #003366;
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.logo-title p {
    color: #666;
    margin: 0;
    font-size: 1.2rem;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: #003366;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    display: block;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #ff6600;
}

.main-nav li:not(:last-child)::after {
    content: "|";
    color: #ddd;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        margin: 0.3rem;
    }
    
    .main-nav li:not(:last-child)::after {
        display: none;
    }
}

.carousel-caption {
    bottom: 25%;
    left: 5%;
    max-width: 100%;
    text-align: center;
}

.carousel-caption h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.carousel-caption .btn {
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 0.5rem 1.2rem;
}

/* Agregar a tu hoja de estilos */
.carousel-caption-nosotros {
  left: 0;
  right: 0;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  padding-bottom: 0;
}

.carousel-caption-nosotros h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

@media (max-width: 992px) {
  .carousel-caption-nosotros h1 {
    font-size: 2rem;
  }
}

.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 300px;
  text-align: center; /* esto centra el contenido */
}

.card-xl {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 650px;
  text-align: center; /* esto centra el contenido */
}

.card-yape {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 330px;
  text-align: center; /* esto centra el contenido */
}

.card-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.card-icon-1 {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.card-icon-2 {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.card-icon-xl {
  width: 600px;
  height: 398px;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.card-icon-yape {
  width: 281px;
  height: 398px;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Estilos para noticia individual - versión integrada */
.noticia-detalle {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.noticia-titulo {
    font-size: 28px;
    color: #003366;
    margin-bottom: 10px;
}

.noticia-meta {
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
}

.noticia-fecha {
    font-weight: bold;
    margin-right: 10px;
}

.noticia-resumen {
    font-style: italic;
}

.noticia-fuente-imagen {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

.noticia-imagen-container {
    margin: 20px 0;
    text-align: center;
}

.noticia-imagen-principal {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.noticia-contenido {
    margin-top: 20px;
}

.noticia-contenido p {
    margin-bottom: 15px;
    text-align: justify;
}

.noticia-contenido strong {
    font-weight: bold;
    color: #003366;
}

.noticia-volver {
    margin-top: 30px;
    text-align: center;
}
/* Responsive */
@media (max-width: 768px) {
    .noticia-detalle {
        margin: 1rem;
        padding: 1rem;
    }
    
    .noticia-titulo {
        font-size: 1.5rem;
    }
}

/* Estilos para la página de contacto */
.contacto-sfj {
    padding: 40px 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
}

.titulo-principal {
    font-size: 28px;
    color: #003366;
    margin-bottom: 5px;
}

.subtitulo {
    font-size: 20px;
    color: #666;
    margin-bottom: 20px;
}

/* Mapa */
.mapa-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.acciones-mapa {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-ampliar, .btn-como-llegar {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
}

.btn-ampliar {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-como-llegar {
    background-color: #003366;
    color: white;
}

.direccion-detalle {
    margin-top: 15px;
    color: #555;
    line-height: 1.5;
}

/* Estilos para la página de contacto */
.contacto-sfj {
    background-color: #f8f9fa;
}

.titulo-seccion {
    color: #003366;
    font-size: 1.5rem;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 8px;
}

.detalle-contacto h5 {
    color: #0056b3;
    font-size: 1.1rem;
}

.detalle-contacto a {
    color: #444;
    transition: all 0.3s;
}

.detalle-contacto a:hover {
    color: #0056b3;
}

.redes-sociales {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.red-social {
    color: #333;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.red-social:hover {
    background-color: #e9ecef;
    color: #0056b3;
    border-left-color: #0056b3;
}

.red-social i {
    width: 20px;
    text-align: center;
}

/* Estilos para el formulario */
.formulario-contacto label {
    font-weight: 500;
    color: #555;
}

/* Responsive */
@media (max-width: 767.98px) {
    .mapa-section {
        margin-bottom: 30px;
    }
    
    .titulo-seccion {
        font-size: 1.3rem;
    }
}

/* Estilos generales */
.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Contenedor de la imagen con efecto hover */
.course-image-container {
    position: relative;
    overflow: hidden;
}

.course-image-container img {
    transition: all 0.3s ease;
    width: 100%;
    display: block;
}

/* Cambiado para que solo active al pasar sobre la imagen */
.course-image-container:hover img {
    filter: brightness(0.7);
}

/* Efecto hover "Saber más" en la imagen */
.course-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Cambiado para que solo active al pasar sobre la imagen */
.course-image-container:hover .course-hover-overlay {
    opacity: 1;
}

.saber-mas-btn {
    color: white;
    background-color: #007bff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.saber-mas-btn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* Contenido de la tarjeta */
.course-content {
    padding: 20px;
}

.course-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    transition: color 0.3s ease;
    text-decoration: none;
}

.course-title:hover {
    color: #007bff;
    text-decoration: none;
}

.course-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Información del curso */
.course-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}

.course-info i {
    margin-right: 5px;
    color: #007bff;
}

/* Botón de solicitar curso */
.course-btn {
    display: block;
    text-align: center;
    background: #007bff;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.course-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Barra de búsqueda */
.form-control {
    border-radius: 20px;
    padding: 10px 15px;
    border: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Modales */

.btn-primary {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-outline-primary {
  border: 2px solid #0d6efd;
}

/* Agregar a tu archivo CSS */
.contact-channel {
  border-left: 3px solid #0d6efd;
  padding-left: 1rem;
}

.contact-channel h6 {
  margin-bottom: 0.5rem;
}

.contact-channel p {
  margin-bottom: 0.25rem;
}

#canalesAtencionModal .modal-body {
  padding: 2rem;
}

/* Ajusta el modal al tamaño de la imagen */
#canalesPagoModal .modal-dialog {
  width: auto; /* Ancho automático (se ajustará al contenido) */
  max-width: 500px; /* Máximo igual al ancho de tu imagen */
}

#canalesPagoModal .modal-content {
  width: fit-content; /* Se ajusta al contenido interno */
}

#canalesPagoModal .modal-body {
  padding: 0; /* Elimina padding interno para que la imagen tope los bordes */
}

#canalesPagoModal img {
  width: 500px; 
  height: 549px;
  object-fit: contain; /* Evita distorsión */
}

.list-group-item {
    border: none !important;
    border-bottom: 0 !important;
}

/* ===== BANNERS FLOTANTES DE SORTEO ===== */
.floating-sorteos-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: clamp(220px, 25vw, 350px);
  z-index: 1030;
}

.floating-sorteo {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  animation: float 4s ease-in-out infinite;
}

.floating-sorteo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 4px solid #ddd;
}

/* Efectos hover */
.floating-sorteo:hover {
  transform: scale(1.1) rotate(3deg);
  filter: brightness(1.05) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

/* Colores de borde personalizados */
.floating-sorteo.sorteo-1 img { border-color: #FFC107; } /* Dorado */
.floating-sorteo.sorteo-2 img { border-color: #E91E63; } /* Rosa/Rojo */

/* Responsive */
@media (max-width: 768px) {
  .floating-sorteos-container {
    bottom: 15px;
    right: 15px;
    gap: 15px;
    max-width: 160px; /* Contenedor más pequeño en móvil */
  }
  
  .floating-sorteo img {
    border: 3px solid;
    border-radius: 12px;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .floating-sorteos-container {
    max-width: 300px;
  }
}
/* Animación de flotación */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.floating-sorteo {
  animation: float 4s ease-in-out infinite;
}

.floating-sorteo:nth-child(2) {
  animation-delay: 0.5s; /* Desfase para la segunda imagen */
}


/* ===== ESTILOS PARA MODAL DE ESTADO DE CUENTA ===== */

/* Cabecera del modal */
.modal-estado-cuenta .modal-header {
    background-color: #003366;
    color: white;
    border-bottom: 2px solid #002244;
}

/* Botón de acceso web */
.modal-estado-cuenta .btn-web {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.modal-estado-cuenta .btn-web:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Botón de descarga APK */
.modal-estado-cuenta .btn-apk {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.modal-estado-cuenta .btn-apk:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Tarjetas de opciones */
.modal-estado-cuenta .option-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    height: 100%;
}

.modal-estado-cuenta .option-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-color: #003366;
}

/* Iconos de las opciones */
.modal-estado-cuenta .option-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Sección de información importante */
.modal-estado-cuenta .bg-light {
    background-color: #f8f9fa !important;
    border-left: 4px solid #007bff;
}

/* Títulos dentro del modal */
.modal-estado-cuenta .modal-title {
    font-weight: 600;
    font-size: 1.4rem;
}

.modal-estado-cuenta h5 {
    color: #003366;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-estado-cuenta h6 {
    color: #0056b3;
    font-weight: 600;
}

/* Botón cerrar del modal */
.modal-estado-cuenta .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.modal-estado-cuenta .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .modal-estado-cuenta .option-card {
        margin-bottom: 1.5rem;
    }
    
    .modal-estado-cuenta .modal-dialog {
        margin: 1rem;
    }
    
    .modal-estado-cuenta .option-icon {
        font-size: 2rem;
    }
}

/* Estilos para el modal de descarga APK */
#descargaAPKModal .modal-header {
    background-color: #003366;
    color: white;
}

#descargaAPKModal .alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

#descargaAPKModal .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

#descargaAPKModal .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* ===== RESPONSIVE PARA MÓVILES - CARDS Y FLOTANTE ===== */
@media (max-width: 576px) {

  /* --- HERO CARDS: apilamiento vertical --- */
  .hero-cards {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 10px;
  }

  /* --- CARD-XL (campaña escolar) --- */
  .card-xl {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }

  .card-icon-xl {
    width: 100%;
    height: auto;          /* Mantiene proporción */
    max-width: 100%;
  }

  /* --- CARD-YAPE (Yape y Yangas) --- */
  .card-yape {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }

  .card-icon-yape {
    width: 100%;
    height: auto;
    max-width: 280px;     /* Limita para que no se vea gigante */
  }

  /* --- CARDS normales (Hazte socio, Créditos, etc.) --- */
  .card {
    width: 100%;
    max-width: 100%;
  }

  /* --- AVISO FLOTANTE: más pequeño y sin obstruir --- */
  .floating-sorteos-container {
    bottom: 10px;
    right: 10px;
    max-width: 120 px;
    gap: 10px;
  }

    .floating-sorteo {
        animation: none !important;   /* Quita animación en móvil */
        position: relative;
        display: inline-block;
    }
    
    /* Overlay dentro de la imagen */
    .floating-overlay {
        position: absolute;
        bottom: 15px;
        left: 0;
        width: 100%;
        text-align: center;
    }
      .floating-sorteo:hover {
    transform: none;              /* Evita zoom accidental en touch */
    filter: none;
  }

  .floating-sorteo img {
    border-width: 2px;
    border-radius: 8px;
  }
 
    .floating-text {
        background: rgba(0, 0, 0, 0.65);
        color: #fff;
        padding: 12px;
        border-radius: 8px;
        margin: 10px;
        font-size: 14px;
    }
    
    .btn-descarga {
        background: #ffc107;   /* fondo amarillo (puedes cambiarlo) */
        color: #021229;        /* 🔵 azul */
        padding: 10px 18px;
        border-radius: 25px;
        font-weight: bold;
        text-decoration: none;
        display: inline-block;
}
    
    .btn-descarga:hover {
        background: #ff9800;
        transform: scale(1.05);
    }
}

/* --- TABLETS pequeñas --- */
@media (min-width: 577px) and (max-width: 768px) {
  .card-xl {
    width: 100%;
    max-width: 100%;
  }

  .card-icon-xl {
    width: 100%;
    height: auto;
  }

  .card-yape {
    width: 48%;
  }

  .card-icon-yape {
    width: 100%;
    height: auto;
  }
}