/* General Styles */
body {
  background:
    radial-gradient(circle at top left, rgba(11,95,255,.10), transparent 35%),
    radial-gradient(circle at bottom right, rgba(10,79,224,.10), transparent 30%),
    #f5f8ff;
}

.container-fluid {
  padding: 0;
}

#main-content {
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(11,95,255,.24), transparent 38%),
    radial-gradient(circle at bottom right, rgba(10,79,224,.18), transparent 34%),
    linear-gradient(180deg, #edf3ff 0%, #e6eeff 100%);
}

/* Navbar and Logo Styles */
.navbar {
  padding: 0;
   background: linear-gradient(160deg, #0b5fff, #0a4fe0) !important; 
}

.finzapp-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Enhanced 3D Navigation Links with 3D Text */
.navbar-nav .nav-link {
  color: #ffffff !important; 
  padding: 0.8rem 1.2rem !important;
  margin: 0.3rem 0.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #2196f3, #1976d2);
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.2),
    inset 0 1px 1px rgba(255,255,255,0.2),
    inset 0 -1px 1px rgba(0,0,0,0.1);
  text-shadow: 
    2px 2px 2px rgba(0,0,0,0.5),
    0 0 3px rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
  border-radius: 8px 8px 0 0;
}

.navbar-nav .nav-link:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #42a5f5, #1e88e5);
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.3),
    inset 0 1px 1px rgba(255,255,255,0.3),
    inset 0 -1px 1px rgba(0,0,0,0.2);
  text-shadow: 
    3px 3px 3px rgba(0,0,0,0.6),
    0 0 5px rgba(255,255,255,0.4);
}

.navbar-nav .nav-link:active {
  transform: translateY(1px);
  box-shadow: 
    0 1px 2px rgba(0,0,0,0.2),
    inset 0 1px 1px rgba(255,255,255,0.1);
  text-shadow: 
    1px 1px 1px rgba(0,0,0,0.4),
    0 0 2px rgba(255,255,255,0.2);
}

.navbar-nav .nav-link.active {
  background: linear-gradient(135deg, #64b5f6, #2196f3);
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 1px 3px rgba(0,0,0,0.2);
  text-shadow: 
    2px 2px 4px rgba(0,0,0,0.7),
    0 0 4px rgba(255,255,255,0.3);
}

/* Card Styles */
.card {
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.input-group-credit-card {
  display: flex;
  gap: 10px;
}

.input-group-credit-card input {
  width: 60px;
  text-align: center;
}

/* Dashboard Styles */
.dashboard-card {
  height: 100%;
  min-height: 200px;
  transition: all 0.3s ease;
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  box-shadow: 
    0 4px 6px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.1),
    rgba(255,255,255,0)
  );
  border-radius: 10px 10px 0 0;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 8px 15px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.2);
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  animation: pulse 1.5s infinite;
}

.dashboard-card:nth-child(1):hover {
  background: linear-gradient(135deg, #ffffff, #e3f2fd);
}

.dashboard-card:nth-child(2):hover {
  background: linear-gradient(135deg, #ffffff, #e8f5e9);
}

.dashboard-card:nth-child(3):hover {
  background: linear-gradient(135deg, #ffffff, #fff3e0);
}

.dashboard-card:nth-child(4):hover {
  background: linear-gradient(135deg, #ffffff, #f3e5f5);
}

.dashboard-card:nth-child(5):hover {
  background: linear-gradient(135deg, #ffffff, #e0f7fa);
}

.dashboard-card:nth-child(6):hover {
  background: linear-gradient(135deg, #ffffff, #f1f8e9);
}

.dashboard-card:nth-child(7):hover {
  background: linear-gradient(135deg, #ffffff, #fff8e1);
}

.dashboard-card:nth-child(8):hover {
  background: linear-gradient(135deg, #ffffff, #fce4ec);
}

.dashboard-card .card-body {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

.dashboard-card h5 {
  color: #495057;
  font-weight: 500;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.dashboard-card h3 {
  color: #2196f3;
  font-weight: 600;
  margin-bottom: 0;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.dashboard-card:hover h3 {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.dashboard-card .text-center {
  margin-top: 1rem;
}

.dashboard-card .bi {
  font-size: 2rem;
  transition: all 0.3s ease;
  color: #1976d2;
}

.dashboard-card:hover .bi {
  transform: scale(1.1) rotate(5deg);
  color: #2196f3;
}
.finzi-card-help {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.finzi-card-help__trigger {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(11, 95, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px rgba(11, 95, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.finzi-card-help__trigger:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 10px 20px rgba(11, 95, 255, 0.20);
  background: #ffffff;
}

.finzi-card-help__trigger img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.finzi-card-help__bubble {
  position: absolute;
  top: 46px;
  right: 0;
  width: 180px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(11,95,255,.97), rgba(10,79,224,.97));
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 12px 24px rgba(10, 79, 224, 0.22);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.finzi-card-help:hover .finzi-card-help__bubble,
.finzi-card-help:focus-within .finzi-card-help__bubble,
.finzi-card-help.is-open .finzi-card-help__bubble {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .finzi-card-help {
    top: 8px;
    right: 8px;
  }

  .finzi-card-help__trigger {
    width: 36px;
    height: 36px;
  }

  .finzi-card-help__bubble {
    width: 165px;
    font-size: 0.78rem;
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.2);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
  }
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
}

/* New Styles */
.currency-flag {
  width: 24px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid #ddd;
  border-radius: 2px;
}

#exchange-rates table {
  margin-bottom: 0.5rem;
}

#exchange-rates td,
#exchange-rates th {
  vertical-align: middle;
  padding: 0.75rem;
}

#exchange-rates tbody tr:hover {
  background-color: rgba(0,123,255,0.05);
}

.user-banner {
  background: linear-gradient(160deg, #0b5fff, #0a4fe0);
  padding: 10px 20px;
  color: white;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-info:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.user-emoji {
  font-size: 1.5em;
}

.user-name {
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.emoji-selector {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  max-width: 300px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.emoji-option {
  font-size: 1.5em;
  padding: 8px;
  cursor: pointer;
  text-align: center;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.emoji-option:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

.emoji-selector-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

/* Chatbot Styles */
.chat-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);
  background: linear-gradient(180deg, #0ea5e9, #2563eb);
  box-shadow: 0 30px 60px rgba(2, 10, 40, 0.45);
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  z-index: 1201;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}

.chat-button:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 40px 70px rgba(2, 10, 40, 0.55);
}

.chat-icon {
  width: 66px;
  height: 66px;
  background-image: url('/inicio/img/finzi.png');
  background-size: 60px 60px;
  background-repeat: no-repeat;
  background-position: center center;
  display: block;
  margin: 0 auto;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
}

.chat-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-container {
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: min(380px, 92vw);
  height: min(640px, calc(100vh - 120px));
  max-height: calc(100vh - 120px);
  background: #ffffff;
  color: #111;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(2, 10, 40, 0.45);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1200;
  overflow: hidden;
}

.chat-container.chat-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.chat-button-hidden {
  opacity: 0;
  pointer-events: none;
}

.chat-header {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-header-avatar {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  flex: 0 0 38px;
}

.chat-header-brandtext {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.chat-header-brandtext strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}

.chat-header-brandtext small {
  font-size: 0.72rem;
  opacity: 0.86;
  color: #fff;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 500;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.chat-welcome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.chat-welcome-avatar {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  flex: 0 0 100px;
   animation: finziFloat 2.8s ease-in-out infinite;
}

.chat-welcome-bubble {
  background: #f5f7fb;
  border: 1px solid #e5e7eb;
  color: #111;
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.4;
  font-size: 0.95rem;
  flex: 1;
}

.chat-welcome-bubble strong {
  display: block;
  margin-bottom: 4px;
  color: #111;
}

.chat-welcome-bubble span {
  display: block;
  color: #374151;
}

@keyframes finziFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

.chat-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 5px 0;
  line-height: 1.35;
  white-space: pre-line;
  font-size: 0.92rem;
}

.user-message {
  background: #0b5fff;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}

.bot-message {
  background: #f5f7fb;
  color: #111;
  align-self: flex-start;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 6px;
}

.chat-input-container {
  padding: 10px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
  background: #fafafa;
}

.chat-input {
  flex-grow: 1;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  background: #ffffff;
  color: #111;
  font-size: 0.9rem;
}

.chat-input:focus {
  border-color: #0b5fff;
  box-shadow: 0 0 0 2px rgba(11,95,255,0.15);
}

.chat-send {
  border: 1px solid #e5e7eb;
  background: #0b5fff;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chat-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(11,95,255,0.25);
}

/* Profile Modal Styles */
.profile-modal .modal-body {
  padding: 20px;
}

.profile-form .form-group {
  margin-bottom: 1rem;
}

.profile-form label {
  font-weight: 500;
  color: #495057;
}

.profile-form .form-control {
  border-radius: 8px;
  border: 1px solid #ced4da;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-form .form-control:focus {
  border-color: #1e88e5;
  box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25);
}

.profile-modal .modal-footer {
  border-top: 1px solid #dee2e6;
  padding: 1rem;
}

.profile-modal .btn-delete-account {
  background: linear-gradient(135deg, #dc3545, #c82333);
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.profile-modal .btn-delete-account:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Contact Button Styles */
.contact-buttons {
  display: flex;
  gap: 10px;
}

.contact-btn {
  padding: 5px 15px;
  border: none;
  border-radius: 20px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.email-btn {
  background: linear-gradient(135deg, #42a5f5, #1976d2);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.internal-contact {
  background: linear-gradient(135deg, #6610f2, #6f42c1);
  border: none;
  padding: 8px 16px;
  color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.internal-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.internal-contact:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Add message card styles */
.message-card {
  transition: all 0.3s ease;
}

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

.message-date {
  color: #6c757d;
  font-size: 0.9em;
}

.message-content {
  margin: 10px 0;
}

.admin-response {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
}

.admin-response h6 {
  color: #0d6efd;
  margin-bottom: 10px;
}

.admin-response p {
  margin-bottom: 5px;
}

.admin-response small {
  display: block;
  text-align: right;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .input-group-credit-card {
    flex-wrap: wrap;
  }
  
  .input-group-credit-card input {
    width: calc(25% - 8px);
  }
  
  .dashboard-card {
    min-height: 150px;
  }
  
  .finzapp-logo {
    height: 40px;
  }
  
  /* Mobile navbar adjustments */
  .navbar-nav .nav-link {
    margin: 0.2rem 0;
  }
  
  .navbar-toggler {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border: none;
    box-shadow: 
      0 2px 4px rgba(0,0,0,0.2),
      inset 0 1px 1px rgba(255,255,255,0.2);
    padding: 0.5rem 0.8rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: 
      0 0 0 0.2rem rgba(255,255,255,0.2),
      0 2px 4px rgba(0,0,0,0.2),
      inset 0 1px 1px rgba(255,255,255,0.2);
  }
}

/* Add responsive styles for the chatbot */
@media (max-width: 768px) {
  .chat-container {
    width: calc(100% - 40px);
    height: 60vh;
    bottom: 80px;
  }
  
  .chat-button {
    width: 70px;
    height: 70px;
  }
  
  .chat-icon {
    font-size: 20px;
  }
}
/* === LOGIN: video único 16:9 en loop === */
#login-video-player-container{
  /* Mantiene proporción 16:9, hereda tu max-width: 900px del HTML inline */
  aspect-ratio: 16 / 9;
  height: auto;
  position: relative;
  overflow: hidden;   /* ya tenías border-radius en línea: se respeta */
}

#login-video-player-container .login-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* cubre sin bandas */
  object-position: center;
  display: block;
  pointer-events: none;   /* no tapa el formulario ni clics */
  background: transparent;
}
/* ---- Botón 3D utilitario (sin fijar color) ---- */
.btn-3d {
  box-shadow: 0 2px 0 rgba(9, 109, 223, 0.318), 0 6px 12px rgba(9, 62, 209, 0.08);
  transform: translateY(0);
  transition: transform 120ms ease, box-shadow 120ms ease;
  font-weight: 600;
}
.btn-3d:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(10, 39, 157, 0.22), 0 4px 8px rgba(13, 93, 214, 0.08);
}
.btn-3d:focus-visible {
  outline: 2px solid rgba(13, 13, 216, 0.25);
  outline-offset: 2px;
}
