/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f5f7fa;
  color: #333;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-container .logo {
  font-size: 24px;
  font-weight: 800;
  color: #1d9f6e;
}

nav a {
  margin-left: 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

nav a:hover {
  color: #1d9f6e;
}

.btn-login {
  background: #1d9f6e;
  color: white !important;
  padding: 6px 12px;
  border-radius: 6px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 620px;
  background: url("../img/hero-bg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 90%;
  max-width: 900px;
  color: white;
}

.badge {
  display: inline-block;
  background: #1d9f6e;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 10px;
}

.highlight {
  color: #4be3a3;
}

.hero-text {
  margin-top: 10px;
  font-size: 18px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  margin-top: 30px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  margin: 0 8px;
}

.btn-primary {
  background: #1d9f6e;
  color: white;
}

.btn-secondary {
  background: #f4a026;
  color: white;
}

.hero-stats {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 40px;
  color: white;
}

.hero-stats div {
  text-align: center;
  font-size: 16px;
}

/* ===== LISTADO DE RIFAS ===== */
.rifas-listado {
  padding: 60px 20px;
  text-align: center;
}

.rifas-listado h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.rifas-container {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.no-rifas {
  margin-top: 20px;
  font-size: 18px;
  color: #777;
}

/* ===== COMO FUNCIONA ===== */
.como-funciona {
  background: white;
  padding: 60px 20px;
  text-align: center;
}

.steps-container {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.step {
  background: #f3f4f6;
  padding: 25px;
  border-radius: 15px;
  transition: 0.3s;
}

.step:hover {
  transform: scale(1.05);
}

.number {
  background: #1d9f6e;
  width: 40px;
  height: 40px;
  margin: auto;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 15px;
}

/* ===== FOOTER ===== */
footer {
  background: #111;
  color: white;
  margin-top: 60px;
  padding-top: 40px;
  padding-bottom: 20px;
  text-align: center;
}

.footer-logo {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-links a {
  color: #bbb;
  margin: 0 10px;
  text-decoration: none;
}

.footer-copy {
  color: #777;
  margin-top: 20px;
  font-size: 14px;
}


/* ===== TARJETAS DE RIFAS ===== */
.rifa-card .card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.rifa-card .card:hover {
  transform: translateY(-5px);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
  text-align: left;
}

.card-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-body .premio {
  color: #555;
  font-size: 15px;
  margin-bottom: 10px;
}

.card-body .precio {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
}

.btn-card {
  display: inline-block;
  background: #1d9f6e;
  padding: 10px 16px;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-card:hover {
  background: #137c52;
}


/* ===== DETALLE DE RIFA ===== */
.detalle-rifa {
  padding: 50px 20px;
}

.detalle-container {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.detalle-header h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.premio-imagen {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.precio-boleto {
  background: #1d9f6e;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  margin-bottom: 20px;
}

/* ===== GRID DE NÚMEROS ===== */
.numeros-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
}

.numero {
  padding: 12px 0;
  background: #e5e7eb;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.numero:hover {
  background: #d4d4d8;
}

.numero.seleccionado {
  background: #1d9f6e;
  color: white;
}

.numero.vendido {
  background: #ff5c5c;
  color: white;
  cursor: not-allowed;
}

/* ===== BOTÓN DE COMPRA ===== */
.btn-comprar {
  margin-top: 20px;
  background: #1d9f6e;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

.leyenda {
  margin-top: 20px;
  color: #555;
  font-size: 15px;
  line-height: 1.5;
}


/* ===== CONFIRMAR COMPRA ===== */
.confirmar-compra {
  padding: 50px 20px;
}

.compra-container {
  max-width: 600px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.compra-titulo {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.compra-info {
  margin-bottom: 20px;
  line-height: 1.6;
  border-left: 3px solid #1d9f6e;
  padding-left: 10px;
}

.numero-elegido {
  font-size: 40px;
  font-weight: 800;
  margin: 10px 0;
  color: #1d9f6e;
}

.descripcion-premio {
  margin-bottom: 20px;
  color: #555;
}

.compra-botones {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.btn-confirmar {
  background: #1d9f6e;
  padding: 12px 24px;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  flex: 1;
  text-align: center;
}

.btn-cancelar {
  background: #d4d4d4;
  padding: 12px 24px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  flex: 1;
  text-align: center;
}


/* === AUTENTICACIÓN === */
.auth-container {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.auth-box h2 {
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 6px;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: #1d9f6e;
  color: white;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: 600;
}

.auth-link {
  text-align: center;
  margin-top: 18px;
}

.nav-user {
  margin-right: 12px;
  font-weight: 500;
  color: #333;
}


/* NAVBAR MODERNO */
.navbar {
  background: white;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #1d9f6e;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-size: 16px;
  color: #444;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: #1d9f6e;
}

/* ZONA DEL USUARIO */
.nav-user-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* BOTÓN LOGIN */
.btn-login {
  background: #1d9f6e;
  padding: 8px 14px;
  border-radius: 6px;
  color: white !important;
  font-size: 15px;
  text-decoration: none;
  font-weight: 600;
}

.btn-login:hover {
  background: #157b51;
}

/* NOMBRE DE USUARIO */
.user-name {
  font-weight: 500;
  color: #333;
}

/* MENÚ USER */
.user-menu {
  position: relative;
  display: none; /* se muestra solo si el usuario está logueado */
}

.user-icon {
  font-size: 20px;
  cursor: pointer;
}

.dropdown {
  position: absolute;
  right: 0;
  top: 35px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 160px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown a {
  padding: 12px;
  text-decoration: none;
  color: #444;
  font-size: 15px;
}

.dropdown a:hover {
  background: #f4f4f4;
}

.logout {
  color: #e35a5a !important;
  font-weight: bold;
}


/* ===== MIS BOLETOS ===== */
.mis-boletos {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.mis-boletos h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
}

.boletos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.boleto-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: 0.3s;
}

.boleto-card:hover {
  transform: translateY(-4px);
}

.boleto-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.boleto-body {
  padding: 18px;
}

.boleto-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.boleto-body p {
  font-size: 15px;
  margin: 3px 0;
}

.btn-ver-detalle {
  display: inline-block;
  margin-top: 10px;
  background: #1d9f6e;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
}


/* ===== MI CUENTA ===== */
.mi-cuenta {
  padding: 40px 20px;
  max-width: 600px;
  margin: auto;
}

.mi-cuenta h1 {
  font-size: 30px;
  margin-bottom: 20px;
  font-weight: 700;
}

.cuenta-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.btn-secondary {
  width: 100%;
  padding: 12px;
  background: #ffa726;
  color: white;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: 600;
}


/* ===== CREAR RIFA ===== */
.crear-rifa {
  padding: 40px 20px;
  max-width: 600px;
  margin: auto;
}

.crear-rifa h1 {
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: 700;
}

.crear-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.crear-box input,
.crear-box textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 6px;
  margin-bottom: 18px;
}


/* ===== EDITAR RIFA ===== */
.editar-rifa {
  padding: 40px 20px;
  max-width: 650px;
  margin: auto;
}

.editar-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.preview-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.count {
  font-weight: 600;
  margin-bottom: 15px;
}

.btn-danger {
  background: #e74c3c;
  padding: 12px;
  color: white;
  border-radius: 8px;
  width: 100%;
  border: none;
  margin-bottom: 12px;
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-secondary {
  width: 100%;
  padding: 12px;
  background: #ffa726;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
}


/* ===== PANEL ADMIN ===== */
.admin-panel {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.admin-rifas-container {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.admin-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin-card h3 {
  margin-bottom: 5px;
}

.admin-status {
  font-size: 13px;
  color: #888;
}

.btn-small {
  display: inline-block;
  padding: 8px 14px;
  background: #1d9f6e;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 12px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.btn-new {
  margin-top: 0 !important;
}


.ganador-box {
  background: #fff8d6;
  border: 2px solid #f1c40f;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  color: #a67c00;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ganador-box .emoji {
  font-size: 26px;
}

/* Botón de número ganador */
.numero.ganador {
  background: #f1c40f !important;
  color: #000 !important;
  font-weight: 700;
  border: 2px solid #d4ac0d;
  position: relative;
}

.numero.ganador::after {
  content: "👑";
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 20px;
}

.numero-elegido {
  display: inline-block;
  margin-right: 6px;
  font-size: 28px;
  font-weight: bold;
}


.numero-multiple .numero-elegido {
  display: inline-block;
  margin-right: 6px;
  font-size: 30px;
  font-weight: bold;
  color: #2e8b57;
}

/* Sello verde de rifa completada */
.sello-completado {
  background: #2ecc71;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  box-shadow: 0px 5px 12px rgba(46, 204, 113, 0.35);
}

/* Cuadro gris del mensaje */
.mensaje-sortear {
  background: #f1f1f1;
  border-left: 6px solid #2ecc71;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 18px;
  margin-top: 8px;
  color: #2c3e50;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.06);
}

/* Sello roja de rifa vendida */
.sello-vendida {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e74c3c;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.15);
  z-index: 5;
}

/* Posicionar la imagen para que permita elementos superpuestos */
.card {
  position: relative;
}

.info-extra p {
  margin: 4px 0;
  font-size: 14px;
  color: #2c3e50;
}

/* ======= BARRA DE PROGRESO ======= */

.progreso-container {
  margin: 10px 0 14px 0;
}

.progreso-texto {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #2c3e50;
}

.progreso-barra {
  width: 100%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.progreso-relleno {
  height: 100%;
  background: #2ecc71;
  border-radius: 8px;
  width: 0%;
  transition: width 0.4s ease;
}

/* Mejor apariencia de la tarjeta */
.rifa-card {
  position: relative;
}

.sello-vendida {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e74c3c;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  z-index: 5;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.3);
}

/* ================= FILTROS ================= */

.filtros-container {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.filtro-item input,
.filtro-item select {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  font-size: 15px;
  outline: none;
  transition: 0.2s ease;
  background: white;
}

.filtro-item input:focus,
.filtro-item select:focus {
  border-color: #2ecc71;
  box-shadow: 0px 0px 4px rgba(46,204,113,0.5);
}

#buscarRifa {
  width: 220px;
}

.filtro-item select {
  width: 180px;
}

/* ======== MOBILE – Versión compacta de filtros ======== */
@media (max-width: 600px) {

  .filtros-container {
    flex-direction: column;
    gap: 8px; /* Menos espacio */
    padding: 10px 12px; /* Más compacto */
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.08);
  }

  .filtro-item input,
  .filtro-item select {
    width: 100% !important;
    padding: 8px 10px; /* Menos alto */
    font-size: 15px;
    border-radius: 6px; /* Más pequeño */
  }

  #buscarRifa {
    width: 100% !important;
  }

  /* Botón limpiar más pequeño y mejor integrado */
  .btn-limpiar {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border-radius: 8px;
    margin-top: 4px;
  }
}

/* Contenedor general */
.checkout-container {
    max-width: 480px;
    margin: 20px auto;
    padding: 10px;
}

.checkout-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Tarjetas */
.checkout-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-title {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: bold;
}

/* Chips de números */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.chip {
    padding: 6px 12px;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Total */
.checkout-total {
    margin-top: 8px;
    font-size: 18px;
}

/* Caja de número de cuenta */
.account-number-box {
    background: #f2f2f2;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.copy-btn:hover {
    background: #43a047;
}

/* QR */
.qr-box {
    text-align: center;
    margin-top: 15px;
}

.qr-image {
    width: 150px;
    border-radius: 10px;
}

/* Input file */
.file-label {
    display: block;
    background: #0277bd;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
}

.file-label:hover {
    background: #015f94;
}

.file-input {
    display: none;
}

.file-name {
    margin-top: 10px;
    font-style: italic;
}

/* Botón finalizar */
.btn-finalizar {
    width: 100%;
    background: #4caf50;
    color: white;
    border: none;
    padding: 14px;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-finalizar:hover {
    background: #43a047;
}

/* Números reservados (por cualquier usuario) */
.numero.reservado {
  background: #ffeaa7;      /* amarillo suave */
  border: 1px solid #f1c40f;
  color: #7f8c8d;
  cursor: not-allowed;
  opacity: 0.9;
}

/* SECCIÓN DE PAGOS */
.pagos-section {
    margin: 30px auto;
    max-width: 900px;
}

.pagos-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pago-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pago-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.pago-info {
    font-size: 15px;
    color: #555;
}

.pago-info strong {
    color: #333;
}

.numeros-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.numero-chip {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.pago-buttons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn-ver,
.btn-aprobar,
.btn-rechazar {
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-ver {
    background: #0288d1;
    color: white;
}

.btn-aprobar {
    background: #4caf50;
    color: white;
}

.btn-rechazar {
    background: #e53935;
    color: white;
}

/* MODAL VIEW */
.modal-comprobante {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.oculto {
    display: none;
}

.modal-content {
    background: white;
    padding: 12px;
    border-radius: 10px;
    max-width: 90%;
}

.modal-img {
    max-width: 100%;
    border-radius: 10px;
}

.modal-close {
    float: right;
    font-size: 30px;
    cursor: pointer;
    margin-bottom: 10px;
}

.radio-option {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 16px;
    line-height: 22px;
}

.radio-option input {
    margin-right: 8px;
}

/* 📱 Ajuste SOLO para móviles */
@media (max-width: 480px) {

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-buttons a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 0;
        font-size: 18px;
        white-space: nowrap; /* evita que el texto se corte */
    }
}

/* --- Mostrar navbar de escritorio por defecto --- */
.navbar-desktop {
  display: flex;
}

.navbar-mobile {
  display: none;
}

/* --- En móvil, ocultar desktop y mostrar mobile --- */
@media (max-width: 768px) {
  .navbar-desktop {
    display: none !important;
  }

  .navbar-mobile {
    display: block !important;
  }
}

/* -------------------------------------------------- */
/* NAVBAR MÓVIL — DISEÑO MODERNO                       */
/* -------------------------------------------------- */

.navbar-mobile {
    display: none; /* oculto en escritorio */
    background: white;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-mobile .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ICONO HAMBURGUESA */
.hamburger {
    font-size: 26px;
    cursor: pointer;
    padding: 6px 10px;
}

/* ÍCONO PERFIL MÓVIL */
.nav-profile {
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

/* MENÚ PRINCIPAL MÓVIL */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -260px; /* escondido */
    width: 260px;
    height: 100vh;
    background: white;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: left 0.25s ease;
    z-index: 2000;
}

.mobile-menu a {
    font-size: 18px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

/* MENÚ PERFIL MÓVIL */
.profile-menu {
    position: fixed;
    top: 60px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    width: 180px;
    padding: 12px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.profile-menu a {
    padding: 8px 18px;
    text-decoration: none;
    font-size: 16px;
    color: #444;
}

.profile-menu a:hover {
    background: #f2f2f2;
}

/* MOSTRAR NAVBAR MÓVIL EN PANTALLAS PEQUEÑAS */
@media (max-width: 768px) {

    .navbar-desktop {
        display: none !important;
    }

    .navbar-mobile {
        display: block !important;
    }
}

#navbar {
    min-height: 65px; /* evita el salto visual */
}

/* Barra de botones */
.barra-filtros {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 20px;
}

.btn-filtro {
  flex: 1;
  padding: 10px;
  background: #f2f2f2;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-weight: 600;
}

/* Paneles emergentes */
.panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 20px;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: 0.3s;
  z-index: 999;
}

.panel.visible {
  transform: translateY(0%);
}

.panel h3 {
  margin-top: 0;
}

.panel button {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #eee;
  border-radius: 8px;
  border: none;
  font-size: 16px;
}

.btn-aplicar {
  background: #34a853;
  color: white;
}

.btn-limpiar {
  background: #e53935;
  color: white;
}

.oculto {
  display: none;
}

.panel {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  box-shadow: 0 -4px 25px rgba(0,0,0,0.15);
  transition: bottom 0.35s ease;
  z-index: 999;
}

.panel.visible {
  bottom: 0;
}

.btn-top {
  width: 48%;
  padding: 12px;
  background: #f2f2f2;
  border-radius: 12px;
  border: none;
  font-size: 16px;
}

#backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  z-index: 998;
}

#backdrop.visible {
  display: block;
}

/* LOGO GENERAL */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;        /* Ajusta según necesites */
    width: auto;
    display: block;
    object-fit: contain;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .logo-img {
        height: 28px;
    }
}

#form-anonimo .input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

#form-anonimo label {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

#bloque-bancos .select-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

footer .social-icons img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin: 0 8px;
}
