/* ===============================
   VARIABLES
================================ */
:root {
  --color-primario: #1f4fd8;
  --color-secundario: #f2b705;
  --color-acento: #25d366;
  --color-fondo: #f4f6fb;
  --color-fondo-alt: #ffffff;
  --texto-principal: #1e1e1e;
  --texto-secundario: #555;
  --radio: 14px;
  --sombra: 0 10px 24px rgba(0,0,0,0.08);
}

/* ===============================
   RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--texto-principal);
  line-height: 1.7;
  /* Fondo moderno: patrón diamante oscuro (estilo quilted) */
  background-color: #16191f;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(255,255,255,0.03) 20px,
      rgba(255,255,255,0.03) 21px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 20px,
      rgba(255,255,255,0.03) 20px,
      rgba(255,255,255,0.03) 21px
    );
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===============================
   BOTONES
================================ */
.btn {
  padding: 12px 20px;
  border-radius: var(--radio);
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primario), #163fc1);
  color: #fff;
}

.btn-secondary {
  background: var(--color-secundario);
  color: #000;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* ===============================
   HEADER
================================ */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.header-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 16px 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primario);
  text-decoration: none;
  white-space: nowrap;
}

/* NAV DESKTOP */
.header-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.header-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--texto-principal);
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-primario);
  transition: width 0.25s ease;
}

.header-nav a:hover::after {
  width: 100%;
}

/* DERECHA */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===============================
   MENÚ USUARIO
================================ */
.user-toggle {
  background: #eef2ff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radio);
  cursor: pointer;
  font-weight: 500;
}

.user-menu {
  display: none;
  position: absolute;
  top: 45px;
  right: 0;
  background: #fff;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  list-style: none;
  padding: 6px 0;
  min-width: 180px;
  z-index: 1000;
}

.user-menu li button {
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.user-menu li button:hover {
  background: #f4f6fb;
}

.user-menu .divider {
  height: 1px;
  background: #e5e7eb;
  margin: 6px 0;
}

.user-menu .logout {
  color: #dc2626;
  font-weight: 600;
}

/* ===============================
   HERO
================================ */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  text-align: center;
  scroll-margin-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('../js/assets/images/hero-tech.png.png');
  background-size: cover;
  background-position: center;
  transition: transform 0.1s linear;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
}

.hero h1 {
  font-size: 2.4rem;
  color: var(--color-primario);
  margin-bottom: 20px;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 35px;
  color: var(--texto-secundario);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* ===============================
   SECCIONES
================================ */
section {
  padding: 80px 40px;
}

section h2 {
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 45px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 26px;
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
}
/* ===============================
   SOBRE NOSOTROS
================================ */

.about-section {
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  object-fit: cover;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-primario);
}

.about-line {
  display: block;
  width: 80px;
  height: 3px;
  background: var(--color-secundario);
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1rem;
  color: var(--texto-secundario);
  margin-bottom: 18px;
  line-height: 1.7;
}


/* ===============================
   FOOTER
================================ */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 50px 40px;
  text-align: center;
}

/* ===============================
   MODAL
================================ */
.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.login-modal.active {
  display: flex;
}

.login-box {
  background: #fff;
  padding: 30px;
  border-radius: var(--radio);
  max-width: 380px;
  width: 100%;
  box-shadow: var(--sombra);
}

/* ===============================
   MENÚ MÓVIL + RESPONSIVE
================================ */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .header-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 80px 24px;
    gap: 20px;
    transition: left 0.3s ease;
    z-index: 2000;
  }

  .header-nav.open {
    left: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 70vh;
    padding: 60px 20px;
  }

  .hero-content {
    padding-top: 80px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  section {
    padding: 50px 20px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
/* ===============================
   BOTÓN WHATSAPP FLOTANTE (FIX)
================================ */

.whatsapp-float {
  position: fixed !important;
  right: 20px;
  bottom: 30%;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  cursor: pointer;

  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

/* ANIMACIÓN SUAVE (TITILAR / PULSE) */
@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===============================
   FIX MODAL LOGIN / REGISTRO
================================ */

.login-box {
  background: #ffffff;
  padding: 32px 28px;
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
  color: var(--texto-principal);
}

/* Labels siempre arriba */
.login-box label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--texto-principal);
}

/* Inputs full width */
.login-box input {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}

.login-box input:focus {
  outline: none;
  border-color: var(--color-primario);
}

/* Botones */
.login-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.login-actions .btn {
  flex: 1;
}

/* Links debajo */
.login-links {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
}

.login-links .link-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--color-primario);
  cursor: pointer;
  padding: 0;
}

.login-links .link-btn:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .about-line {
    margin: 0 auto 24px;
  }

  .about-content p {
    text-align: center;
  }
}

/* ===============================
   SERVICIOS MODERNOS
================================ */

.services-modern {
  background: #ffffff;
  text-align: center;
}

.services-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--texto-principal);
}

.services-line {
  display: block;
  width: 120px;
  height: 3px;
  background: #444;
  margin: 16px auto 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* CARD BASE */
.service-card {
  border-radius: 18px;
  padding: 32px 26px;
  color: #ffffff;
  text-align: left;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-icon {
  font-size: 1.2rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin: 20px 0 12px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.95;
}

.service-btn {
  align-self: flex-start;
  margin-top: 20px;
  padding: 10px 18px;
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.service-btn:hover {
  background: #ffffff;
  color: #000;
}

/* COLORES */
.service-card.green {
  background: #9bc53d;
}

.service-card.purple {
  background: #a36bff;
}

.service-card.cyan {
  background: #00d9e8;
}

.service-card.orange {
  background: #ffa552;
}
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    text-align: center;
  }

  .service-btn {
    align-self: center;
  }
}
/* ===============================
   FOOTER MODERNO
================================ */

.site-footer {
  background: #0b0f14;
  color: #cbd5e1;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
}

/* MARCA */
.footer-logo {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #9ca3af;
}

.footer-social {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  font-size: 1rem;
  transition: background 0.25s ease;
}

.footer-social a:hover {
  background: var(--color-acento);
}

/* LINKS */
.footer-links h4,
.footer-contact h4 {
  color: #ffffff;
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-links a {
  text-decoration: none;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* BARRA INFERIOR */
.footer-bottom {
  border-top: 1px solid #1f2937;
  text-align: center;
  padding: 18px;
  font-size: 0.85rem;
  color: #9ca3af;
}
/* ===============================
   FOOTER MODERNO
================================ */

.site-footer {
  background: #0b0f14;
  color: #cbd5e1;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
}

/* MARCA */
.footer-logo {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #9ca3af;
}

.footer-social {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  font-size: 1rem;
  transition: background 0.25s ease;
}

.footer-social a:hover {
  background: var(--color-acento);
}

/* LINKS */
.footer-links h4,
.footer-contact h4 {
  color: #ffffff;
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-links a {
  text-decoration: none;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* BARRA INFERIOR */
.footer-bottom {
  border-top: 1px solid #1f2937;
  text-align: center;
  padding: 18px;
  font-size: 0.85rem;
  color: #9ca3af;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}
.hero-bg {
  background-image: url('../js/assets/images/about.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.25s ease-out;
}

.search-box {
  position: relative;
  display: none;
}

.search-box.open {
  display: block;
}

.search-box input {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 220px;
}

.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  width: 100%;
  z-index: 999;
}

.search-results li {
  padding: 10px 12px;
  cursor: pointer;
}

.search-results li:hover {
  background: #f2f2f2;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background-color: #1f4fff; /* azul corporativo */
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #173dd1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 79, 255, 0.3);
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background-color: #1f4fff; /* azul corporativo */
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #173dd1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 79, 255, 0.3);
}

.hero-bg {
  transition: transform 0.15s ease-out;
  will-change: transform;
}
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 42px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #6b7280;
}

.toggle-password:hover {
  color: #1f4fd8;
}


.footer-contact li {
  margin-bottom: 8px;
}

/* Teléfono */
.footer-phone {
  cursor: pointer;
}

.footer-phone:hover {
  color: #25d366;
}

/* Email */
.footer-email {
  cursor: pointer;
}

.footer-email:hover {
  text-decoration: underline;
}

.copy-msg {
  display: none;
  font-size: 0.75rem;
  color: #4caf50;
}

.copy-msg.visible {
  display: inline-block;
  margin-left: 6px;
}

/* Maps */
.footer-maps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.maps-icon {
  width: 16px;
  height: 16px;
}
.logo img {
  max-height: 150px;
  height: 150;        /* ajusta según tu header */
  width: auto;
  display: block;
}

.header-left {
  display: flex;
  align-items: center;
}
.logo img {
  max-height: 150px;
  height: 150;
}
.logo img {
  max-height: 150px;
  object-fit: contain;
}

.autocomplete {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  width: 100%;
  max-height: 180px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  z-index: 1000;
}

.autocomplete-list li {
  padding: 8px;
  cursor: pointer;
}

.autocomplete-list li.active,
.autocomplete-list li:hover {
  background: #eee;
}

.autocomplete {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  z-index: 999;
  list-style: none;
  padding: 0;
  margin: 0;
}

.autocomplete-list li {
  padding: 8px;
  cursor: pointer;
}

.autocomplete-list li.active,
.autocomplete-list li:hover {
  background: #eee;
}

.link-btn {
  background: none;
  border: none;
  color: #6a5acd;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 6px;
  text-decoration: underline;
}

/* MODAL POLITICA DE TRATAMIENTO DE DATOS */
/* Especificidad alta para no ser sobrescrito por bono.css .modal */
#privacy-modal.modal {
  display: none !important;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2500;
  justify-content: center;
  align-items: center;
}

#privacy-modal.modal.active {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

#privacy-modal.modal.active .modal-content {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

#privacy-modal .modal-actions button {
  cursor: pointer;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  max-width: 500px;
  width: 90%;
  padding: 20px;
  border-radius: 10px;
}

.modal-text {
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

.modal-actions button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-actions .reject {
  background: #ccc;
}

/* ===============================
   SLIDER DE BONOS DESTACADOS
================================ */
.featured-bonos-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
  padding: 60px 20px;
  scroll-margin-top: 80px;
}

.featured-bonos-section .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primario);
  text-align: center;
  margin-bottom: 10px;
}

.featured-bonos-section .section-subtitle {
  text-align: center;
  color: var(--texto-secundario);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.featured-bonos-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 50px;
}

/* Track del slider */
.slider-track-container {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  min-height: 400px;
}

/* Slides */
.bono-slide {
  flex: 0 0 100%;
  padding: 20px;
}

/* Slide tipo banner: sin padding para que el bono cubra todo */
.bono-slide-banner {
  padding: 0;
}

.bono-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

/* Banner destacado - diseño como imagen de muestra */
.bono-card-featured {
  padding: 0;
  min-height: 380px;
}

/* Bono con imagen: cubre todo el banner como referencia Epson */
.bono-card-banner.bono-card-con-imagen {
  aspect-ratio: 16 / 9;
  min-height: 280px;
  display: block;
}

.bono-card-banner.bono-card-con-imagen .bono-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bono-card-banner.bono-card-con-imagen .bono-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 40%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.bono-card-banner.bono-card-con-imagen .bono-banner-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.bono-card-banner.bono-card-con-imagen .btn-canjar-featured {
  margin: 0;
  width: auto;
  min-width: 180px;
  padding: 14px 32px;
  font-size: 1rem;
}

/* Acciones cuando NO hay imagen (layout con gradiente) */
.bono-card-banner:not(.bono-card-con-imagen) .bono-banner-actions {
  padding: 0 24px 24px;
}

.bono-card-banner:not(.bono-card-con-imagen) .btn-canjar-featured {
  width: 100%;
}

.bono-card-tag-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 64px;
  opacity: 0.25;
  z-index: 0;
}

.bono-card-body {
  display: flex;
  flex: 1;
  position: relative;
  z-index: 1;
  gap: 20px;
  padding: 24px 24px 16px;
}

.bono-card-image-wrap {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  min-height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
}

.bono-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bono-card-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  font-size: 48px;
  color: rgba(255,255,255,0.6);
}

.bono-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bono-card-content .bono-titulo {
  font-size: 22px;
  margin-bottom: 10px;
}

.bono-card-content .bono-descripcion {
  font-size: 13px;
  margin-bottom: 16px;
  flex: 1;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bono-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.bono-card-meta .bono-empresa,
.bono-card-meta .bono-stock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.bono-card-meta .info-icon {
  opacity: 0.9;
}

.bono-card-expire {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: rgba(0,0,0,0.25);
  padding: 6px 12px;
  border-radius: 20px;
  align-self: flex-start;
}

.bono-card-expire.urgente {
  background: rgba(220, 38, 38, 0.6);
}

.btn-canjar-featured {
  margin: 0 24px 24px;
  width: calc(100% - 48px);
  align-self: center;
}

.bono-card:hover {
  transform: translateY(-5px);
}

.bono-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
  transform: rotate(30deg);
  transition: transform 0.5s ease;
}

.bono-card:hover::before {
  transform: rotate(30deg) translate(10%, 10%);
}

.bono-icon {
  font-size: 48px;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.bono-titulo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.bono-descripcion {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  flex: 1;
}

.bono-empresa {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  background: rgba(255,255,255,0.2);
  padding: 8px 12px;
  border-radius: 30px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(5px);
}

.empresa-nombre {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bono-detalles {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.bono-stock, .bono-expiracion {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  background: rgba(0,0,0,0.2);
  padding: 5px 10px;
  border-radius: 20px;
}

.bono-expiracion.urgente {
  background: rgba(255, 87, 87, 0.3);
  color: #ffebee;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.btn-canjar {
  background: white;
  color: var(--color-primario);
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-size: 16px;
  border: 2px solid transparent;
}

.btn-canjar:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: scale(1.05);
}

/* Botones de navegación */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  color: var(--color-primario);
  font-size: 24px;
  font-weight: bold;
}

.slider-nav:hover {
  background: var(--color-primario);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(31, 79, 255, 0.3);
}

.slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-prev {
  left: 0;
}

.slider-next {
  right: 0;
}

/* Dots (indicadores) */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  background: #cbd5e1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.slider-dot.active {
  background: var(--color-primario);
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(31, 79, 255, 0.3);
}

.slider-dot:hover {
  background: var(--color-primario);
  transform: scale(1.1);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(31, 79, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--color-primario);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .featured-bonos-section .section-title {
    font-size: 1.8rem;
  }

  .featured-bonos-slider {
    padding: 0 40px;
  }

  .slider-nav {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .bono-card-featured .bono-card-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bono-card-featured .bono-card-image-wrap {
    flex: 0 0 auto;
  }

  .bono-card-featured .bono-card-expire {
    align-self: center;
  }

  .bono-card {
    padding: 20px;
  }

  .bono-titulo {
    font-size: 20px;
  }

  .bono-detalles {
    flex-direction: column;
    gap: 8px;
  }

  .bono-stock, .bono-expiracion {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .featured-bonos-slider {
    padding: 0 30px;
  }

  .slider-nav {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .bono-icon {
    font-size: 36px;
  }
}

