body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top, #f8fdfb, #eef2f3),
    linear-gradient(135deg, #f5f7fa, #e4ecf1);
  padding: 20px;
}


.calculator-container {
  max-width: 1200px;
  margin: auto;
  background: rgba(255,255,255,0.95);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  backdrop-filter: blur(4px);
}


/* ===== HERO ===== */
.hero {
  text-align: center;
  margin-bottom: 80px;
  padding: 30px 20px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.15rem;
  color: #555;
  max-width: 720px;
  margin: 15px auto 25px;
}

.hero-btn {
  padding: 12px 28px;
  font-size: 1.2rem;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(40,167,69,.3);
}

.hero-badge {
  display: inline-block;
  background: #e9f7ef;
  color: #28a745;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* ===== RESULTADOS ===== */
.result-item {
  border: none;
  border-radius: 14px;
  margin-bottom: 18px;
  animation: fadeUp 0.4s ease forwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.result-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.result-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 30px;
}

.result-left {
  flex: 1;
}

.result-left h5 {
  font-weight: 600;
  margin-bottom: 6px;
}

.result-left p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.terminal-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-right: 20px;
}

/* ===== MONTO NETO ===== */
.result-net {
  min-width: 220px;
  text-align: right;
  padding-left: 20px;
  border-left: 2px dashed #e0e0e0;
}

.result-net .label {
  font-size: 0.85rem;
  color: #777;
}

.result-net .amount {
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 1.8rem;
  font-weight: 700;
  color: #28a745;
}

.result-item {
  overflow: hidden;
}

/* ===== GANADOR ===== */
.winner {
  border: 2px solid #28a745;
  background: #f1fff5;
}

.badge-winner {
  background: #28a745;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: inline-block;
}

/* ===== RESUMEN ===== */
.summary-box {
  background: linear-gradient(135deg, #28a745, #218838);
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  text-align: center;
}

.summary-box h3 {
  margin-bottom: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .result-content {
    flex-direction: column;
    align-items: stretch;
  }

  .result-net {
    width: 100%;
	min-width: unset;
    text-align: left;
    border-left: none;
    border-top: 1px dashed #e0e0e0;
	padding-left: 0;
    padding-top: 10px;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .terminal-logo {
    width: 60px;
    height: 60px;
    margin-right: 0;
  }
}

/* ===== ANIMACIÓN ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== NAVBAR LINKS ===== */
.navbar .nav-link {
  position: relative;
  font-weight: 500;
  color: #333 !important;
  transition: all 0.25s ease;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #28a745;
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.navbar .nav-link:hover {
  color: #28a745 !important;
  transform: scale(1.08);
}

.navbar .nav-link:hover::after {
  width: 100%;
}


/* ===== SEPARADORES ===== */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #dcdcdc, transparent);
  margin: 40px 0;
}


/* ===== FOOTER ===== */
.site-footer {
  margin-top: 60px;
  padding: 30px 20px;
  background: linear-gradient(135deg, #f8f9fa, #eef1f3);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.05);
}

.footer-content p {
  margin: 6px 0;
  color: #444;
}

.footer-text {
  font-size: 0.95rem;
  color: #666;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 10px;
  margin-top: 10px;
  color: #dc3545;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin-top: 15px;
  font-size: 0.8rem;
  color: #888;
}
.disclaimer {
  font-size: 0.85rem;
  font-style: italic;
  color: #777;
  text-align: center;
  margin-top: 24px;
  line-height: 1.4;
}



/*Boton Calcular*/

.btn-success {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-success:active {
  transform: scale(0.96);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/*Pagina comisiones*/
.card h3 {
  font-weight: 400;
}

.card img {
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-body {
	text-align: center
}

/*Pagina de referidos*/
.referral-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.referral-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.terminales {
	border-radius: 20px;
}

/* NAVBAR GLASS */
.navbar-glass {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

body {
  padding-top: 90px; /* espacio por navbar fijo */
}

/*ajuste pequeño*/

h1 {
  letter-spacing: -0.5px;
}

h5 {
  letter-spacing: -0.2px;
}

p {
  line-height: 1.6;
}

/*animaciones*/
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== PEOR OPCIÓN ===== */
.loser {
  border: 2px solid #dc3545;
  background: #fff5f5;
}

.badge-loser {
  background: #dc3545;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: inline-block;
}

/* ===== LOGO NAVBAR ===== */
.navbar-logo {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ===== INPUT ACTIVO ===== */
input#amount:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.input-group:focus-within {
  box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.15);
  border-radius: 6px;
}

/*Mejora visual para las tarjetas estadisticas*/
.stat-card {
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
  transition: transform .2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

/* ===== STAT CARDS ===== */
.stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
}

.stat-info h6 {
  margin: 0;
  font-size: .95rem;
  color: #555;
}

.stat-info span {
  font-size: 1.8rem;
  font-weight: 700;
}

/* Colores */
.stat-green .stat-icon {
  background: linear-gradient(135deg, #28a745, #218838);
}

.stat-blue .stat-icon {
  background: linear-gradient(135deg, #007bff, #0056b3);
}

.stat-yellow .stat-icon {
  background: linear-gradient(135deg, #ffc107, #e0a800);
}

/* =====CARRUSEL PROVEEDORES ===== */
.providers-section {
  padding: 40px 0;
}

.provider-logo {
  max-height: 60px;
  opacity: 0.7;
  transition: opacity .3s ease, transform .3s ease;
  filter: grayscale(100%);
}

.provider-logo:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.08);
}

/* ===== COMPARTIR ===== */
.share-btn {
  border-radius: 30px;
  padding: 10px 26px;
  font-weight: 500;
  transition: all .3s ease;
}

.share-btn:hover {
  transform: scale(1.05);
}

/* ===== RATING ===== */
.rating-card {
  background: #fffdf5;
  border: 1px solid #ffe8a1;
  border-radius: 14px;
  padding: 24px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.rating-card .stars {
  font-size: 1.6rem;
  color: #f1c40f;
}

/*====Ajustes 21 enero====*/

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

/*======================================*/

.stat-green .stat-icon {
  background: rgba(25,135,84,0.12);
  color: #198754;
}

.stat-blue .stat-icon {
  background: rgba(13,110,253,0.12);
  color: #0d6efd;
}

.stat-yellow .stat-icon {
  background: rgba(255,193,7,0.18);
  color: #ffc107;
}

/*======================================*/

.stat-value {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
}

.stat-title {
  margin: 0.2rem 0 0;
  font-weight: 500;
}

.stat-subtext {
  font-size: 0.8rem;
  color: #6c757d;
  margin: 0;
}

/*====Estilos UX para secciones====*/

.section {
  padding: 80px 0;
}

.section-hero {
  background: linear-gradient(
    180deg,
    #f8fdfb 0%,
    #ffffff 100%
  );
}

.section-stats {
  background-color: #f4f9f7;
}

.section-providers {
  background-color: #ffffff;
}

.section-calculator {
  background-color: #f8fdfb;
}

/* Contención */
.section > .row,
.section > .hero,
.section > .providers-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.section + .section {
  border-top: 1px solid rgba(0,0,0,0.04);
}




/* ===========================
   PAGE TRANSITION FADE
=========================== */

body {
  animation: pageFade .35s ease-in;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===========================
   NAV ACTIVO
=========================== */

.navbar .nav-link.active {
  position: relative; 
  font-weight: 600;
  color: #22c55e !important;
  background: rgba(34,197,94,.12);
  border-radius: 10px;
  padding: 6px 12px;
}


.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0px;
  bottom: -2px;
  width: auto;
  height: 2px;
  background: #22c55e;
  border-radius: 999px;
}

/* ===========================
   MICRO-ANIMACIONES
=========================== */

a,
button {
  transition: all .2s ease;
}

.card,
.promo-card,
.result-item,
.referidos-card {
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover,
.promo-card:hover,
.result-item:hover,
.referidos-card:hover {
  transform: translateY(-4px);
}

/* Botones */

.btn:hover {
  transform: translateY(-2px);
}




