@charset "UTF-8";
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700);
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: #f0f2f5;
  color: #2d3436;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .main-content {
    padding: 40px;
  }
}

.actions-container {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0;
  padding: 0 10px;
}

.btn-pdf {
  background: #1a2a6c;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.btn-pdf:hover {
  background: rgb(16.1044776119, 26.0149253731, 66.8955223881);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.btn-pdf:active {
  transform: translateY(0);
}

.input-group {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}
.input-group:focus-within {
  border-color: #1a2a6c;
  box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
}
.input-group span {
  font-weight: bold;
  color: #64748b;
  font-size: 1.2rem;
}
.input-group input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3436;
  width: 100%;
  font-family: "Roboto", sans-serif;
}
.input-group input::placeholder {
  color: #b2bec3;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .calculator-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.explanation {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 10px;
  line-height: 1.4;
}

.projection-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-left: 5px solid #00b894;
  margin-bottom: 30px;
}

.proyeccion-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 15px;
}
@media (min-width: 768px) {
  .proyeccion-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .proyeccion-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.proyeccion-item {
  background: #ffffff;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: transform 0.2s;
}
.proyeccion-item .proyeccion-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
.proyeccion-item .proyeccion-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
}

.badge-efectivo {
  background-color: rgba(0, 184, 148, 0.1);
  color: #00b894;
  border: 1px solid rgba(0, 184, 148, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

.badge-renta-variable {
  background-color: rgba(26, 42, 108, 0.1);
  color: #1a2a6c;
  border: 1px solid rgba(26, 42, 108, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

.badge-renta-fija {
  background-color: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

.badge-inversiones-alternativas {
  background-color: rgba(52, 152, 219, 0.1);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

.badge-inmuebles {
  background-color: rgba(253, 187, 45, 0.1);
  color: #fdbb2d;
  border: 1px solid rgba(253, 187, 45, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

.badge-private-equity {
  background-color: rgba(142, 68, 173, 0.1);
  color: #8e44ad;
  border: 1px solid rgba(142, 68, 173, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
}

@media (max-width: 768px) {
  .portfolio-detailed-table {
    display: block;
    border: 0;
  }
  .portfolio-detailed-table thead {
    display: none;
  }
  .portfolio-detailed-table tbody {
    display: block;
  }
  .portfolio-detailed-table tbody tr {
    display: block;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
  }
  .portfolio-detailed-table td.asset-cell {
    display: block;
    border-bottom: 1px solid #eee;
    padding: 0 0 1rem 0;
    margin-bottom: 1rem;
    text-align: left;
  }
  .portfolio-detailed-table td.asset-cell .asset-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2a6c;
  }
  .portfolio-detailed-table td.actions-cell {
    display: block;
    padding: 1.25rem 0 0 0;
    border-top: 1px solid #eee;
    margin-top: 1.25rem;
    text-align: center;
  }
  .portfolio-detailed-table td:not(.asset-cell):not(.actions-cell) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    margin: 0;
    border: 0;
  }
  .portfolio-detailed-table td::before {
    font-weight: 600;
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
  }
  .portfolio-detailed-table td.category-cell::before {
    content: "CATEGORÍA:";
  }
  .portfolio-detailed-table td.platform-cell::before {
    content: "PLATAFORMA:";
  }
  .portfolio-detailed-table td.invested-cell::before {
    content: "INVERTIDO:";
  }
  .portfolio-detailed-table td.current-value-cell::before {
    content: "VALOR ACTUAL:";
  }
  .portfolio-detailed-table td.performance-cell::before {
    content: "RENDIMIENTO:";
  }
  .portfolio-detailed-table td.category-cell span.badge {
    margin: 0;
  }
}
.investment-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.investment-card .card-actions {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  text-align: right;
}
.investment-card .btn-text-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a2a6c;
  text-decoration: none;
  transition: all 0.3s ease;
}
.investment-card .btn-text-link .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.investment-card .btn-text-link:hover {
  color: #3498db;
}
.investment-card .btn-text-link:hover .arrow {
  transform: translateX(5px);
}

.toast-container {
  position: fixed;
  top: 50px;
  right: 20px;
  left: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
@media (min-width: 768px) {
  .toast-container {
    left: auto;
    width: 380px;
  }
}
.toast-container .toast {
  position: relative;
  pointer-events: auto;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-left: 6px solid;
  animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 0.4s ease;
  overflow: visible;
}
.toast-container .toast--success {
  border-left-color: #10b981;
}
.toast-container .toast--error {
  border-left-color: #ef4444;
}
.toast-container .toast .toast-content {
  flex-grow: 1;
}
.toast-container .toast .toast-content p {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a2a6c;
}
.toast-container .toast .toast-close {
  position: relative;
  z-index: 10001 !important;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  font-size: 1.4rem;
  transition: all 0.2s;
  pointer-events: auto !important;
}
.toast-container .toast .toast-close:hover {
  background: #e2e8f0;
  color: #1a2a6c;
  transform: scale(1.1);
}
.toast-container .toast svg, .toast-container .toast div[id*=pwm] {
  pointer-events: none !important;
}
.toast-container .toast.fade-out {
  opacity: 0;
  transform: translateX(50px);
}

.toast {
  position: relative;
  pointer-events: auto;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-left: 6px solid;
  animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 0.4s ease;
  overflow: visible;
}
.toast--success {
  border-left-color: #10b981;
}
.toast--error {
  border-left-color: #ef4444;
}
.toast .toast-content {
  flex-grow: 1;
}
.toast .toast-content p {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a2a6c;
}
.toast .toast-close {
  position: relative;
  z-index: 10001 !important;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  font-size: 1.4rem;
  transition: all 0.2s;
  pointer-events: auto !important;
}
.toast .toast-close:hover {
  background: #e2e8f0;
  color: #1a2a6c;
  transform: scale(1.1);
}
.toast svg, .toast div[id*=pwm] {
  pointer-events: none !important;
}
.toast.fade-out {
  opacity: 0;
  transform: translateX(50px);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.modal-overlay.active .modal-card {
  transform: scale(1);
  opacity: 1;
}

.modal-card {
  background: white;
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-card .modal-icon {
  margin-bottom: 20px;
}
.modal-card h3 {
  color: #2d3436;
  margin-bottom: 12px;
  font-size: 1.4rem;
}
.modal-card p {
  color: #636e72;
  margin-bottom: 25px;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: 12px;
}
.modal-buttons .btn-modal {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-buttons .btn-cancel {
  background: #f1f2f6;
  color: #2d3436;
}
.modal-buttons .btn-cancel:hover {
  background: #dfe4ea;
}
.modal-buttons .btn-confirm {
  background: #e67e22;
  color: white;
}
.modal-buttons .btn-confirm:hover {
  background: rgb(191.3536585366, 101.3048780488, 21.6463414634);
}

/* Transición suave para todos los elementos ocultables */
.maskable {
  transition: filter 0.3s ease;
}

/* El filtro que borra la información cuando la clase está en el body */
body.is-masked .maskable {
  filter: blur(8px);
  user-select: none; /* Evita que seleccionen y copien el texto oculto */
  pointer-events: none; /* Evita que le den clic a cosas ocultas por accidente */
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.card--accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1a2a6c, #fdbb2d);
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2a6c;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card .porcentaje-display {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1a2a6c, #3a4ba0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffffff;
  margin-bottom: 8px;
}
.card .monto-calculado-container {
  background: rgba(0, 184, 148, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
  color: #00b894;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 10px 0;
}
.card .monto-calculado-container .monto-calculado {
  font-family: "Courier New", monospace;
}
.card small {
  display: block;
  color: #64748b;
  line-height: 1.5;
  font-size: 0.85rem;
}

.investment-grid {
  display: grid;
  margin-bottom: 50px;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .investment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .investment-grid {
    gap: 32px;
    grid-template-columns: repeat(3, 1fr);
  }
}

.btn-text-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  text-decoration: none;
  color: #1a2a6c;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.btn-text-cta .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 1.1rem;
  line-height: 1;
}
.btn-text-cta:hover {
  color: rgb(40.8432835821, 65.9776119403, 169.6567164179);
}
.btn-text-cta:hover .arrow {
  transform: translateX(5px);
}
.btn-text-cta:active {
  transform: scale(0.98);
}

.card-header {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

/* assets/sass/layout/_footer.scss */
.main-footer {
  margin-top: 5rem;
  padding: 4rem 1.5rem 2rem;
  background-color: #f1f4f8;
  border-top: 1px solid #e2e8f0;
  font-family: "Roboto", sans-serif;
}
.main-footer .footer-container {
  max-width: 1100px;
  margin: 0 auto;
}
.main-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
@media (max-width: 1024px) {
  .main-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
@media (max-width: 768px) {
  .main-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
}
.main-footer .footer-brand h3 {
  color: #1a2a6c;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}
.main-footer .footer-brand p {
  color: #64748b;
  line-height: 1.7;
  max-width: 400px;
}
@media (max-width: 768px) {
  .main-footer .footer-brand p {
    margin: 0 auto;
  }
}
.main-footer .footer-links h4 {
  color: #1a2a6c;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.8rem;
  font-weight: 700;
}
.main-footer .footer-links ul {
  list-style: none;
  padding: 0;
}
.main-footer .footer-links ul li {
  margin-bottom: 12px;
}
.main-footer .footer-links ul li a, .main-footer .footer-links ul li summary {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 5px 0;
  border-left: 3px solid transparent;
}
.main-footer .footer-links ul li a.active, .main-footer .footer-links ul li summary.active {
  color: #fdbb2d !important;
  padding-left: 12px;
  border-left: 3px solid #fdbb2d;
  font-weight: 700;
}
.main-footer .footer-links ul li a:hover:not(.active), .main-footer .footer-links ul li summary:hover:not(.active) {
  color: #1a2a6c;
  padding-left: 10px;
  border-left: 3px solid rgba(253, 187, 45, 0.4);
}
.main-footer {
  /* --- DESPLEGABLE DE ACTIVOS --- */
}
.main-footer .footer-dropdown summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  outline: none;
}
@media (max-width: 768px) {
  .main-footer .footer-dropdown summary {
    margin: 0 auto;
  }
}
.main-footer .footer-dropdown summary i {
  margin-left: 12px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}
.main-footer .footer-dropdown summary::-webkit-details-marker {
  display: none;
}
.main-footer .footer-dropdown[open] summary {
  color: #1a2a6c;
}
.main-footer .footer-dropdown[open] summary i {
  transform: rotate(180deg);
  color: #fdbb2d;
}
.main-footer .footer-dropdown .footer-sub-menu {
  margin-top: 10px;
  border-left: 1px solid #e2e8f0;
  margin-left: 5px;
}
.main-footer .footer-dropdown .footer-sub-menu li {
  margin-bottom: 8px;
}
.main-footer .footer-dropdown .footer-sub-menu li a {
  font-size: 0.85rem;
  padding-left: 15px;
  border-left: none;
}
.main-footer .footer-dropdown .footer-sub-menu li a.active {
  color: #fdbb2d !important;
  font-weight: 600;
}
.main-footer .footer-dropdown .footer-sub-menu li a:hover {
  padding-left: 20px;
  color: #fdbb2d;
}
.main-footer .footer-disclaimer {
  font-size: 0.8rem;
  color: #7f8c8d;
  line-height: 1.8;
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
  margin-bottom: 2.5rem;
  text-align: justify;
}
@media (max-width: 768px) {
  .main-footer .footer-disclaimer {
    text-align: center;
    padding-top: 2rem;
  }
}
.main-footer .footer-disclaimer strong {
  color: #64748b;
}
.main-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}
@media (max-width: 768px) {
  .main-footer .footer-bottom {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
}
.main-footer .footer-bottom .copy strong {
  color: #1a2a6c;
}
.main-footer .footer-bottom .developer-credit a {
  color: #1a2a6c;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s;
}
.main-footer .footer-bottom .developer-credit a:hover {
  color: #fdbb2d;
}

.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgb(21.052238806, 34.0074626866, 87.447761194);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}
.main-nav ul {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.main-nav ul li {
  position: relative;
}
.main-nav ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.main-nav ul li a:hover, .main-nav ul li a.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 35px;
}
.main-nav ul li a.active {
  border-left: 4px solid #fdbb2d;
  color: #fdbb2d;
}
.main-nav ul li a.active .caret {
  color: #fdbb2d;
}
.main-nav ul li a .caret {
  transition: transform 0.3s ease;
  opacity: 0.7;
}
.main-nav ul li .logout-link {
  color: #ff7675 !important;
  display: flex;
}
.main-nav ul li .logout-link:hover {
  background-color: rgba(255, 118, 117, 0.1) !important;
  padding-left: 35px;
}
.main-nav ul li:has(a[href*=registro]) {
  background-color: rgba(253, 187, 45, 0.1);
}
.main-nav ul li:has(a[href*=registro]) a {
  color: #fdbb2d;
}
.main-nav ul .dropdown .dropdown-menu {
  display: none;
  background-color: rgb(16.1044776119, 26.0149253731, 66.8955223881);
  padding: 0;
}
.main-nav ul .dropdown .dropdown-menu a {
  padding: 12px 25px 12px 45px;
  font-size: 0.85rem;
  font-weight: 500;
  border-left: none;
}
.main-nav ul .dropdown .dropdown-menu a:hover, .main-nav ul .dropdown .dropdown-menu a.active {
  padding-left: 50px;
  color: #fdbb2d;
  background-color: rgba(255, 255, 255, 0.05);
}
.main-nav ul .dropdown:hover .dropdown-menu {
  display: block;
}
.main-nav ul .dropdown:hover .caret {
  transform: rotate(180deg);
}
.main-nav.open {
  max-height: 1000px;
}
@media (min-width: 768px) {
  .main-nav {
    position: static;
    max-height: none;
    background-color: transparent;
    box-shadow: none;
    width: auto;
    overflow: visible;
  }
  .main-nav ul {
    flex-direction: row;
    gap: 8px;
    padding: 0;
    align-items: center;
  }
  .main-nav ul li a {
    padding: 8px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    border-left: none;
    justify-content: flex-start;
    gap: 8px;
  }
  .main-nav ul li a:hover, .main-nav ul li a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    padding-left: 16px;
  }
  .main-nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fdbb2d;
  }
  .main-nav ul li .logout-link {
    color: #ff7675;
    border: 1px solid rgba(255, 118, 117, 0.3);
    display: inline-flex;
  }
  .main-nav ul li .logout-link:hover {
    background-color: #ff7675;
    color: #ffffff;
    border-color: #ff7675;
    padding-left: 16px;
  }
  .main-nav ul li:has(a[href*=registro]) {
    background-color: transparent;
  }
  .main-nav ul li:has(a[href*=registro]) a {
    background-color: #fdbb2d;
    color: #1a2a6c;
  }
  .main-nav ul li:has(a[href*=registro]) a:hover {
    background-color: rgb(244.6698113208, 167.7735849057, 2.3301886792);
    transform: translateY(-1px);
    padding-left: 16px;
  }
  .main-nav ul li:has(a[href*=login]) a {
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  .main-nav ul li:has(a[href*=login]) a:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
  }
  .main-nav ul .dropdown .dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(30.947761194, 49.9925373134, 128.552238806);
    min-width: 240px;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }
  .main-nav ul .dropdown .dropdown-menu a {
    padding: 12px 20px;
    border-radius: 0;
    white-space: nowrap;
  }
  .main-nav ul .dropdown .dropdown-menu a:hover, .main-nav ul .dropdown .dropdown-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 20px;
    color: #fdbb2d;
  }
  .main-nav ul .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ==========================================================================
   HEADER PRINCIPAL Y NAVEGACIÓN DINÁMICA
   ========================================================================== */
.main-header {
  background: #1a2a6c;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.main-header.menu-open .menu-toggle .bar:nth-child(1) {
  transform: rotate(45deg);
}
.main-header.menu-open .menu-toggle .bar:nth-child(2) {
  opacity: 0;
}
.main-header.menu-open .menu-toggle .bar:nth-child(3) {
  transform: rotate(-45deg);
}
.main-header .header-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: relative;
}
.main-header .header-wrapper .logo h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.main-header .header-wrapper .menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}
.main-header .header-wrapper .menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 1px;
}
@media (min-width: 768px) {
  .main-header .header-wrapper .menu-toggle {
    display: none;
  }
}
.main-header .header-wrapper .main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgb(21.052238806, 34.0074626866, 87.447761194);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.main-header .header-wrapper .main-nav ul {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.main-header .header-wrapper .main-nav ul li {
  position: relative;
}
.main-header .header-wrapper .main-nav ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.main-header .header-wrapper .main-nav ul li a:hover, .main-header .header-wrapper .main-nav ul li a.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 35px;
}
.main-header .header-wrapper .main-nav ul li a.active {
  border-left: 4px solid #fdbb2d;
  color: #fdbb2d;
}
.main-header .header-wrapper .main-nav ul li a.active .caret {
  color: #fdbb2d;
}
.main-header .header-wrapper .main-nav ul li a .caret {
  transition: transform 0.3s ease;
  opacity: 0.7;
}
.main-header .header-wrapper .main-nav ul .dropdown .dropdown-menu {
  display: none;
  background-color: rgb(16.1044776119, 26.0149253731, 66.8955223881);
  padding: 0;
}
.main-header .header-wrapper .main-nav ul .dropdown .dropdown-menu a {
  padding: 12px 25px 12px 45px;
  font-size: 0.85rem;
  font-weight: 500;
  border-left: none;
}
.main-header .header-wrapper .main-nav ul .dropdown .dropdown-menu a:hover, .main-header .header-wrapper .main-nav ul .dropdown .dropdown-menu a.active {
  padding-left: 50px;
  color: #fdbb2d;
  background-color: rgba(255, 255, 255, 0.05);
}
.main-header .header-wrapper .main-nav ul .dropdown:hover .dropdown-menu {
  display: block;
}
.main-header .header-wrapper .main-nav ul .dropdown:hover .caret {
  transform: rotate(180deg);
}
.main-header .header-wrapper .main-nav.open {
  max-height: 800px;
}
@media (min-width: 768px) {
  .main-header .header-wrapper .main-nav {
    position: static;
    max-height: none;
    background-color: transparent;
    box-shadow: none;
    width: auto;
    overflow: visible;
  }
  .main-header .header-wrapper .main-nav ul {
    flex-direction: row;
    gap: 10px;
    padding: 0;
  }
  .main-header .header-wrapper .main-nav ul li a {
    padding: 8px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    border-left: none;
    justify-content: flex-start;
    gap: 8px;
  }
  .main-header .header-wrapper .main-nav ul li a:hover, .main-header .header-wrapper .main-nav ul li a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    padding-left: 16px;
  }
  .main-header .header-wrapper .main-nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fdbb2d;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  .main-header .header-wrapper .main-nav ul .dropdown .dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(30.947761194, 49.9925373134, 128.552238806);
    min-width: 240px;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }
  .main-header .header-wrapper .main-nav ul .dropdown .dropdown-menu a {
    padding: 12px 20px;
    border-radius: 0;
    white-space: nowrap;
  }
  .main-header .header-wrapper .main-nav ul .dropdown .dropdown-menu a:hover, .main-header .header-wrapper .main-nav ul .dropdown .dropdown-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 20px;
    color: #fdbb2d;
    box-shadow: none;
  }
  .main-header .header-wrapper .main-nav ul .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* assets/sass/layout/_legal.scss */
.legal-container {
  max-width: 850px;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 4rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  font-family: "Roboto", sans-serif;
  color: #2d3436;
  transition: transform 0.3s ease;
}
@media (max-width: 768px) {
  .legal-container {
    padding: 2rem;
    margin: 1rem;
    border-radius: 12px;
  }
}
.legal-container .legal-header {
  text-align: center;
  border-bottom: 2px solid #f0f2f5;
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}
.legal-container .legal-header .disclaimer-icon {
  font-size: 3rem;
  color: #fdbb2d;
  margin-bottom: 1rem;
  display: block;
}
.legal-container .legal-header h1 {
  color: #1a2a6c;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .legal-container .legal-header h1 {
    font-size: 1.8rem;
  }
}
.legal-container .legal-header p {
  color: #64748b;
  font-size: 1rem;
}
.legal-container .legal-content {
  color: #2d3436;
  line-height: 1.8;
}
.legal-container .legal-content h2 {
  color: #1a2a6c;
  font-size: 1.4rem;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  border-left: 4px solid #1a2a6c;
  padding-left: 15px;
  font-weight: 700;
}
.legal-container .legal-content p {
  margin-bottom: 1.2rem;
  text-align: justify;
}
@media (max-width: 768px) {
  .legal-container .legal-content p {
    text-align: left;
  }
}
.legal-container .legal-content ul {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}
.legal-container .legal-content ul li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
  color: #2d3436;
}
.legal-container .legal-content ul li::before {
  content: "•";
  color: #1a2a6c;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}
.legal-container .legal-content strong {
  color: #1a2a6c;
  font-weight: 700;
}
.legal-container .legal-content a {
  color: #1a2a6c;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted transparent;
  transition: all 0.3s ease;
}
.legal-container .legal-content a:hover {
  color: #00b894;
  border-bottom-color: #00b894;
}

.header-text {
  display: flex;
  gap: 10px;
  flex-direction: column;
  margin-bottom: 20px;
}
.header-text .inflation-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  padding: 10px 15px;
  background-color: #f8fafc;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  color: #475569;
  font-size: 0.85rem;
  line-height: 1.5;
}
.header-text .inflation-note svg {
  flex-shrink: 0;
  color: #3b82f6;
  margin-top: 2px;
}
.header-text .inflation-note strong {
  color: #1e293b;
}

/* ==========================================================================
   VISTA DE DETALLE (detalle_inversion.php) - DISEÑO PREMIUM
   ========================================================================== */
@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(0, 184, 148, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 184, 148, 0);
  }
}
.detalle-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.card--api-data {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(26, 42, 108, 0.05);
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .card--api-data {
    padding: 30px;
  }
}
@media (min-width: 1200px) {
  .card--api-data {
    max-width: auto;
  }
}
.card--api-data::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1a2a6c, #fdbb2d);
}
.card--api-data .api-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
  margin-bottom: 20px;
}
.card--api-data .api-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #1a2a6c;
  font-weight: 800;
}
.card--api-data .api-header .status-pill {
  background: rgba(0, 184, 148, 0.1);
  color: rgb(0, 107.5, 86.4673913043);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card--api-data .api-header .status-pill::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background-color: #00b894;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
.card--api-data .desktop-only {
  display: none;
}
@media (min-width: 768px) {
  .card--api-data .desktop-only {
    display: block;
  }
}
.card--api-data .mobile-only {
  display: block;
}
@media (min-width: 768px) {
  .card--api-data .mobile-only {
    display: none;
  }
}
.card--api-data .widget-wrapper {
  height: 400px;
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  background: #fafafa;
  padding: 5px;
}
.card--api-data .widget-wrapper--split {
  height: 550px;
  padding: 0;
}
.card--api-data .widget-wrapper .tradingview-widget-container {
  border-radius: 8px;
  overflow: hidden;
}
.card--api-data .price-display {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a2a6c;
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.card--api-data .price-display .currency, .card--api-data .price-display .symbol {
  font-size: 1.2rem;
  color: #64748b;
  font-weight: 600;
}
.card--api-data .api-note {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 15px;
  font-style: italic;
}
.card--api-data .api-source {
  margin-top: 25px;
  font-size: 0.8rem;
  color: #64748b;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
}

.btn-regresar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #ffffff;
  color: #1a2a6c;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: fit-content;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.btn-regresar:hover {
  border-color: #1a2a6c;
  color: #1a2a6c;
  background-color: rgba(26, 42, 108, 0.02);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}
.btn-regresar:active {
  transform: translateY(0);
  box-shadow: none;
}

.config-grid--conf {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
  width: 100%;
  max-width: 900px;
}

.config-card--conf {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
}
@media (min-width: 768px) {
  .config-card--conf {
    padding: 40px;
  }
}
.config-card--conf .card-header--conf {
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.2);
  padding-bottom: 15px;
}
.config-card--conf .card-header--conf h3 {
  margin: 0 0 8px 0;
  color: #1a2a6c;
  font-size: 1.3rem;
  font-weight: 700;
}
.config-card--conf .card-header--conf p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}
.config-card--conf .config-form--conf {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.config-card--conf .config-form--conf .form-group--conf {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.config-card--conf .config-form--conf .form-group--conf label {
  font-weight: 700;
  font-size: 1rem;
  color: #1a2a6c;
  text-align: left;
}
.config-card--conf .config-form--conf .form-group--conf input {
  width: 100%;
  padding: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background-color: #f8fafc;
  transition: all 0.3s ease;
}
.config-card--conf .config-form--conf .form-group--conf input:focus {
  outline: none;
  border-color: #1a2a6c;
  box-shadow: 0 0 0 4px rgba(26, 42, 108, 0.1);
  background-color: #ffffff;
}
.config-card--conf .config-form--conf .btn-primary--conf {
  width: 100%;
  background-color: #1a2a6c;
  color: #ffffff;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
@media (min-width: 768px) {
  .config-card--conf .config-form--conf .btn-primary--conf {
    width: auto;
    align-self: flex-start;
  }
}
.config-card--conf .config-form--conf .btn-primary--conf:hover {
  background-color: rgb(16.1044776119, 26.0149253731, 66.8955223881);
  transform: translateY(-2px);
}

.danger-zone--conf {
  border: 2px solid rgba(239, 68, 68, 0.2);
  background-color: rgba(239, 68, 68, 0.01);
}
.danger-zone--conf .danger-actions--conf {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
@media (min-width: 768px) {
  .danger-zone--conf .danger-actions--conf {
    flex-direction: row;
  }
}
.danger-zone--conf .danger-actions--conf .btn-danger--conf {
  width: 100%;
  padding: 14px 25px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
@media (min-width: 768px) {
  .danger-zone--conf .danger-actions--conf .btn-danger--conf {
    width: auto;
  }
}
.danger-zone--conf .danger-actions--conf .btn-danger--conf.outline--conf {
  background-color: transparent;
  color: #ef4444;
  border: 2px solid #ef4444;
}
.danger-zone--conf .danger-actions--conf .btn-danger--conf.outline--conf:hover {
  background: #ef4444;
  color: #ffffff;
}
.danger-zone--conf .danger-actions--conf .btn-danger--conf:not(.outline--conf) {
  background: #ef4444;
  color: #ffffff;
}
.danger-zone--conf .danger-actions--conf .btn-danger--conf:not(.outline--conf):hover {
  background: rgb(234.9802955665, 21.0197044335, 21.0197044335);
}

.main-content {
  padding: 30px;
  background-color: #f1f5f9;
  min-height: 100vh;
}
@media (max-width: 767px) {
  .main-content {
    padding: 15px;
  }
}

.portfolio-grid-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.portfolio-grid-summary .stat-card {
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portfolio-grid-summary .stat-card .label {
  color: #64748b;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.portfolio-grid-summary .stat-card .value {
  font-size: 2rem;
  font-weight: 800;
  color: #1a2a6c;
  margin: 0;
  letter-spacing: -1px;
}
.portfolio-grid-summary .stat-card.profit {
  border-top: 4px solid #10b981;
}
.portfolio-grid-summary .stat-card.profit .value {
  color: #059669;
}
.portfolio-grid-summary .stat-card.loss {
  border-top: 4px solid #ef4444;
}
.portfolio-grid-summary .stat-card.loss .value {
  color: #dc2626;
}

.suggestions-carousel-container {
  margin-bottom: 30px;
  padding: 25px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.suggestions-carousel-container .carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.suggestions-carousel-container .carousel-header h3 {
  margin: 0;
  color: #1a2a6c;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.suggestions-carousel-container .carousel-controls {
  display: flex;
  gap: 10px;
}
.suggestions-carousel-container .carousel-controls button {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1a2a6c;
}
.suggestions-carousel-container .carousel-controls button:hover {
  background: #1a2a6c;
  color: #ffffff;
}
.suggestions-carousel-container .suggestions-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}
.suggestions-carousel-container .suggestions-slider::-webkit-scrollbar {
  display: none;
}
.suggestions-carousel-container .suggestions-slider {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.suggestions-carousel-container .suggestion-card {
  min-width: 280px;
  flex: 0 0 280px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid #1a2a6c;
  transition: transform 0.3s ease;
}
.suggestions-carousel-container .suggestion-card .sugg-icon {
  width: 35px;
  height: 35px;
  color: #1a2a6c;
  margin-bottom: 15px;
}
.suggestions-carousel-container .suggestion-card h4 {
  margin: 0 0 8px 0;
  color: #2d3436;
  font-weight: 700;
}
.suggestions-carousel-container .suggestion-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.portfolio-action-card {
  margin-bottom: 30px;
}
.portfolio-action-card .card {
  padding: 30px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.portfolio-action-card .card h3 {
  font-size: 1.25rem;
  margin-bottom: 25px;
  color: #1a2a6c;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}
.portfolio-action-card .card h3::before {
  content: "";
  width: 6px;
  height: 24px;
  background: #fdbb2d;
  border-radius: 3px;
}
.portfolio-action-card .asset-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.portfolio-action-card .asset-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: flex-end;
}
.portfolio-action-card .asset-form .form-row.main-info {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
}
.portfolio-action-card .asset-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.portfolio-action-card .asset-form .form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
}
.portfolio-action-card .asset-form .form-group input, .portfolio-action-card .asset-form .form-group select {
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  background: #ffffff;
  transition: all 0.2s ease;
}
.portfolio-action-card .asset-form .form-group input:focus, .portfolio-action-card .asset-form .form-group select:focus {
  outline: none;
  border-color: #1a2a6c;
  box-shadow: 0 0 0 4px rgba(26, 42, 108, 0.1);
}
.portfolio-action-card .asset-form .search-suggestions {
  position: absolute;
  z-index: 1000;
  background: #ffffff;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  margin-top: 5px;
  max-height: 250px;
  overflow-y: auto;
}
.portfolio-action-card .asset-form .search-suggestions:empty {
  display: none !important;
  pointer-events: none;
}
.portfolio-action-card .asset-form .search-suggestions .suggestion-item {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
}
.portfolio-action-card .asset-form .search-suggestions .suggestion-item:last-child {
  border-bottom: none;
}
.portfolio-action-card .asset-form .search-suggestions .suggestion-item:hover {
  background: #f8fafc;
}
.portfolio-action-card .asset-form .search-suggestions .suggestion-item img {
  border-radius: 50%;
  object-fit: cover;
}
.portfolio-action-card .asset-form .search-suggestions .suggestion-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a2a6c;
}
.portfolio-action-card .asset-form .btn-primary {
  height: 54px;
  padding: 0 30px;
  border-radius: 10px;
  font-weight: 800;
  background: #1a2a6c;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(26, 42, 108, 0.2);
}
.portfolio-action-card .asset-form .btn-primary:hover {
  background: rgb(21.052238806, 34.0074626866, 87.447761194);
  transform: scale(1.02);
}

.assets-table-section .card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}
.assets-table-section h3 {
  padding: 20px 30px;
  background: #fff;
  font-weight: 800;
  border-bottom: 2px solid #f1f5f9;
  margin: 0;
}
.assets-table-section .portfolio-table {
  width: 100%;
  border-collapse: collapse;
}
.assets-table-section .portfolio-table th {
  background: #f8fafc;
  padding: 15px 30px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 1px;
  border-bottom: 2px solid #f1f5f9;
  text-align: left;
}
.assets-table-section .portfolio-table td {
  padding: 18px 30px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #2d3436;
}
.assets-table-section .portfolio-table td strong {
  color: #1a2a6c;
  font-weight: 700;
  display: block;
}
.assets-table-section .portfolio-table td.text-profit {
  color: #10b981;
  font-weight: 700;
}
.assets-table-section .portfolio-table td.text-loss {
  color: #ef4444;
  font-weight: 700;
}
.assets-table-section .portfolio-table .badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
}
.assets-table-section .portfolio-table .badge.cat-1 {
  background: rgba(62, 76, 140, 0.1);
  color: #1c2b6c;
}
.assets-table-section .portfolio-table .badge.cat-2 {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}
.assets-table-section .portfolio-table .badge.cat-3 {
  background: rgba(165, 28, 28, 0.1);
  color: #a51c1c;
}
.assets-table-section .portfolio-table .badge.cat-4 {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}
.assets-table-section .portfolio-table .badge.cat-5 {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}
.assets-table-section .portfolio-table .badge.cat-6 {
  background: rgba(158, 158, 158, 0.1);
  color: #9e9e9e;
}
.assets-table-section .portfolio-table tr:hover {
  background-color: #f8fafc;
}
@media screen and (max-width: 992px) {
  .assets-table-section .portfolio-table thead {
    display: none;
  }
  .assets-table-section .portfolio-table tr {
    display: block;
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
  }
  .assets-table-section .portfolio-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
    text-align: right;
  }
  .assets-table-section .portfolio-table td:last-child {
    border-bottom: none;
    justify-content: center;
    padding-top: 15px;
  }
  .assets-table-section .portfolio-table td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    text-align: left;
  }
  .assets-table-section .portfolio-table td strong, .assets-table-section .portfolio-table td span, .assets-table-section .portfolio-table td div {
    flex: 1;
  }
}

.btn-delete {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-delete:hover {
  background: #ef4444;
  color: white;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   VISTA DE DETALLES DE INVERSIÓN (BIOR INVEST)
   ========================================================================== */
.detalle-header {
  background-color: #ffffff;
  padding: 25px 30px;
  border-radius: 12px;
  border-left-width: 5px;
  border-left-style: solid;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}
.detalle-header__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
@media (max-width: 768px) {
  .detalle-header__wrapper {
    flex-direction: column;
  }
}
.detalle-header__content {
  flex: 1;
}
.detalle-header__content h1, .detalle-header__content .detalle-header__title {
  color: #1a2a6c;
  margin-bottom: 8px;
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 700;
}
.detalle-header__content p, .detalle-header__content .detalle-header__subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

.detalle-hero {
  margin-bottom: 30px;
}
.detalle-hero .hero-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.detalle-hero .hero-header .hero-icon-bg {
  color: #fff;
  padding: 15px;
  border-radius: 14px;
  display: flex;
  background: #4b5563;
}
.detalle-hero .hero-header .hero-icon-bg--renta-variable {
  background: #2563eb;
}
.detalle-hero .hero-header .hero-icon-bg--inmuebles {
  background: #16a34a;
}
.detalle-hero .hero-header .hero-icon-bg--private-equity {
  background: #7c3aed;
}
.detalle-hero .hero-header .hero-icon-bg--alternativas {
  background: #ea580c;
}
.detalle-hero .hero-header .hero-icon-bg--efectivo {
  background: #0891b2;
}
.detalle-hero .hero-header .hero-icon-bg--renta-fija {
  background: #4b5563;
}
.detalle-hero .hero-header .hero-title-area .detalle-title {
  margin: 0;
  font-size: 1.8rem;
  color: #1a2a6c;
  font-weight: 700;
}
.detalle-hero .hero-header .hero-title-area .detalle-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.metrics-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.metric-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.metric-card__icon {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 50%;
  display: flex;
}
.metric-card--risk .metric-card__icon {
  background: #fff1f2;
  color: #e11d48;
}
.metric-card--horizon .metric-card__icon {
  background: #eff6ff;
  color: #2563eb;
}
.metric-card--safe .metric-card__icon {
  background: #dcfce7;
  color: #16a34a;
}
.metric-card__label {
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.metric-card__value {
  font-size: 1.4rem;
  color: #1e293b;
  font-weight: 800;
}

.strategy-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 25px;
  margin-bottom: 35px;
}
@media (max-width: 768px) {
  .strategy-details-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}
.info-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.info-card__header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #1a2a6c;
  font-weight: 700;
}
.info-card__icon-wrapper {
  background: #f1f5f9;
  color: #64748b;
  padding: 10px;
  border-radius: 10px;
  display: flex;
}
.info-card__intro {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}
.info-card .info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
}
.info-card .info-item__tag {
  background: #1a2a6c;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  height: fit-content;
}
.info-card .info-item__tag.info-item__tag {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  height: fit-content;
  white-space: nowrap;
}
.info-card .info-item__tag.info-item__tag--renta-variable {
  background-color: #2563eb;
}
.info-card .info-item__tag.info-item__tag--inmuebles {
  background-color: #16a34a;
}
.info-card .info-item__tag.info-item__tag--private-equity {
  background-color: #7c3aed;
}
.info-card .info-item__tag.info-item__tag--alternativas {
  background-color: #ea580c;
}
.info-card .info-item__tag.info-item__tag--efectivo {
  background-color: #0891b2;
}
.info-card .info-item__tag.info-item__tag--renta-fija {
  background-color: #4b5563;
}
.info-card .info-item__text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.5;
}
.info-card .info-item__text strong {
  color: #1e293b;
}
.info-card .benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}
.info-card .benefit-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #475569;
}
.info-card .benefit-list li .benefit-icon {
  color: #2563eb;
  font-weight: bold;
}
.info-card .benefit-list li .benefit-icon.benefit-icon--private-equity {
  color: #7c3aed;
}
.info-card .benefit-list li .benefit-icon.benefit-icon--alternativas {
  color: #ea580c;
}
.info-card .benefit-list li .benefit-icon.benefit-icon--efectivo {
  color: #0891b2;
}
.info-card .benefit-list li .benefit-icon.benefit-icon--renta-fija {
  color: #4b5563;
}

.link-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
  color: #2563eb;
}
.link-action--renta-variable {
  color: #2563eb;
}
.link-action--inmuebles {
  color: #16a34a;
}
.link-action--private-equity {
  color: #7c3aed;
}
.link-action--alternativas {
  color: #ea580c;
}
.link-action--efectivo {
  color: #0891b2;
}
.link-action--renta-fija {
  color: #4b5563;
}
.link-action:hover {
  gap: 12px;
  text-decoration: underline;
  opacity: 0.8;
}

.emergency-fund-formula {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}
.emergency-fund-formula .formula-icon {
  color: #0891b2;
  flex-shrink: 0;
}
.emergency-fund-formula .formula-text {
  color: #0369a1;
  font-size: 0.95rem;
  line-height: 1.5;
}
.emergency-fund-formula .formula-text strong {
  color: #075985;
  font-weight: 700;
}

.cta-referral-card {
  background: linear-gradient(135deg, #1a2a6c 0%, #2a4858 100%);
  color: #ffffff;
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 30px;
}
.cta-referral-card .cta-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
@media (max-width: 992px) {
  .cta-referral-card .cta-wrapper {
    flex-direction: column;
    text-align: center;
  }
}
.cta-referral-card .cta-buttons {
  display: flex;
  gap: 15px;
}
@media (max-width: 480px) {
  .cta-referral-card .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
}
.cta-referral-card .btn-main, .cta-referral-card .btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s;
  text-align: center;
}
.cta-referral-card .btn-main:hover, .cta-referral-card .btn-secondary:hover {
  transform: translateY(-3px);
}
.cta-referral-card .btn-main {
  background: #ffffff;
  color: #1a2a6c;
}
.cta-referral-card .btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.card--api-data {
  padding: 30px;
}
.card--api-data .api-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.card--api-data .api-header h3 {
  margin: 0;
  color: #1a2a6c;
  font-size: 1.3rem;
  font-weight: 700;
}

.status-pill {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.status-pill--active {
  background-color: #dcfce7;
  color: #16a34a;
}
.status-pill--active .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #16a34a;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse-animation 2s infinite;
}
.status-pill--active--alternativas {
  background-color: #fff7ed;
  color: #ea580c;
}
.status-pill--active--alternativas .pulse-dot {
  background-color: #ea580c;
  animation: pulse-animation-orange 2s infinite;
}
.status-pill--active.efectivo {
  background-color: #f0f9ff;
  color: #0369a1;
}
.status-pill--active.efectivo .pulse-dot {
  background-color: #0891b2;
  animation: pulse-animation-efectivo 2s infinite;
}
.status-pill--active.--orange {
  background-color: #fff7ed;
  color: #ea580c;
}
.status-pill--active.--orange .pulse-dot {
  background-color: #ea580c;
  animation: pulse-animation-orange 2s infinite;
}
.status-pill--active--renta-fija {
  background-color: #f8fafc;
  color: #334155;
}
.status-pill--active--renta-fija .pulse-dot {
  background-color: #4b5563;
  animation: pulse-animation-renta-fija 2s infinite;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}
@keyframes pulse-animation-orange {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(234, 88, 12, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
  }
}
@keyframes pulse-animation-efectivo {
  0% {
    box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(8, 145, 178, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(8, 145, 178, 0);
  }
}
@keyframes pulse-animation-renta-fija {
  0% {
    box-shadow: 0 0 0 0 rgba(75, 85, 99, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(75, 85, 99, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(75, 85, 99, 0);
  }
}
@keyframes pulse-purple {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(124, 58, 237, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
  }
}
.widget-wrapper {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.widget-wrapper--standard {
  height: 450px;
}
.widget-wrapper--desktop {
  height: 550px;
}

.api-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}
.api-footer .api-source {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
}
.api-footer .api-disclaimer {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

.btn-back {
  color: #64748b;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
}
.btn-back:hover {
  color: #1a2a6c;
  transform: translateX(-5px);
}

.fallback-card {
  text-align: center;
  padding: 80px 20px;
}
.fallback-card__title {
  color: #64748b;
  margin-bottom: 15px;
  font-size: 1.6rem;
}
.fallback-card__text {
  color: #94a3b8;
  font-size: 1.1rem;
}

/* ==========================================================================
   INMUEBLES / BIENES RAÍCES (BIOR INVEST)
   ========================================================================== */
.detalle-hero .hero-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.detalle-hero .hero-header .hero-icon-bg {
  background: #16a34a;
  color: #fff;
  padding: 15px;
  border-radius: 14px;
  display: flex;
}
.detalle-hero .hero-header .hero-icon-bg.--purple {
  background: #7c3aed;
}
.detalle-hero .hero-header .hero-icon-bg.--orange {
  background: #ea580c;
}
.detalle-hero .hero-header .hero-icon-bg--efectivo {
  background: #0891b2;
}
.detalle-hero .hero-header .hero-icon-bg--renta-fija {
  background: #4b5563;
}
.detalle-hero .hero-header .hero-title-area .detalle-title {
  margin: 0;
  font-size: 1.8rem;
  color: #1a2a6c;
}
.detalle-hero .hero-header .hero-title-area .detalle-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.metrics-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.metric-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}
.metric-card__icon {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 50%;
}
.metric-card--safe .metric-card__icon {
  background: #dcfce7;
  color: #16a34a;
}
.metric-card--horizon .metric-card__icon {
  background: #fef3c7;
  color: #d97706;
}
.metric-card__label {
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}
.metric-card__value {
  font-size: 1.4rem;
  color: #1e293b;
  font-weight: 800;
}

.info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid #e2e8f0;
}
.info-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.info-card__header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #1a2a6c;
  font-weight: 700;
}
.info-card__icon-wrapper {
  background: #f1f5f9;
  color: #1a2a6c;
  padding: 10px;
  border-radius: 10px;
}
.info-card .info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
}
.info-card .info-item__tag {
  background: #16a34a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}
.info-card .info-item__text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.5;
}

.legal-and-market-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}
@media (max-width: 1100px) {
  .legal-and-market-grid {
    grid-template-columns: 1fr;
  }
}
.legal-and-market-grid .card--legal-protection {
  padding: 30px;
}
.legal-and-market-grid .card--legal-protection .api-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.legal-and-market-grid .card--legal-protection .api-header h3 {
  margin: 0;
  color: #1a2a6c;
  font-size: 1.3rem;
  font-weight: 700;
}
.legal-and-market-grid .tax-info-container .tax-main-benefit {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid;
  margin-bottom: 25px;
}
.legal-and-market-grid .tax-info-container .tax-main-benefit svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.legal-and-market-grid .tax-info-container .tax-main-benefit p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.legal-and-market-grid .tax-info-container .tax-main-benefit p strong {
  font-weight: 700;
}
.legal-and-market-grid .tax-info-container .tax-main-benefit.efectivo {
  background-color: #ecfeff;
  border-color: #a5f3fc;
  color: #164e63;
}
.legal-and-market-grid .tax-info-container .tax-main-benefit.efectivo svg {
  color: #0891b2;
}
.legal-and-market-grid .tax-info-container .tax-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.legal-and-market-grid .tax-info-container .tax-grid-mini .tax-item {
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease;
}
.legal-and-market-grid .tax-info-container .tax-grid-mini .tax-item h5 {
  margin: 0 0 10px 0;
  font-size: 1rem;
  color: #1e293b;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.legal-and-market-grid .tax-info-container .tax-grid-mini .tax-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}
.legal-and-market-grid .tax-info-container .tax-grid-mini .tax-item p strong {
  color: #1e293b;
  font-weight: 600;
}
.legal-and-market-grid .status-pill.efectivo {
  background-color: #cffafe;
  color: #0891b2;
}
.legal-and-market-grid .status-pill.efectivo .pulse-dot {
  background-color: #0891b2;
  animation: pulse-cyan 2s infinite;
}
@keyframes pulse-cyan {
  0% {
    box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(8, 145, 178, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(8, 145, 178, 0);
  }
}

.tax-main-benefit {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid;
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
  margin-bottom: 20px;
}
.tax-main-benefit svg {
  color: #16a34a;
}
.tax-main-benefit--alternativas {
  background-color: #fff7ed;
  border-color: #ffedd5;
  color: #9a3412;
}
.tax-main-benefit--alternativas svg {
  color: #ea580c;
}
.tax-main-benefit.efectivo {
  background-color: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}
.tax-main-benefit.efectivo svg {
  color: #0891b2;
}
.tax-main-benefit.--orange {
  background-color: #fff7ed;
  border-color: #ffedd5;
  color: #9a3412;
}
.tax-main-benefit.--orange svg {
  color: #ea580c;
}
.tax-main-benefit--renta-fija {
  background-color: #f8fafc;
  border-color: #f1f5f9;
  color: #334155;
}
.tax-main-benefit--renta-fija svg {
  color: #4b5563;
}

.link-action {
  color: #16a34a;
  font-weight: 700;
  text-decoration: none;
}
.link-action:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SASS ACTUALIZADO - BIOR INVEST
   ========================================================================== */
.metrics-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.metric-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}
.metric-card__icon {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 50%;
}
.metric-card--risk .metric-card__icon {
  background: #fff1f2;
  color: #e11d48;
}
.metric-card--horizon .metric-card__icon {
  background: #eff6ff;
  color: #2563eb;
}
.metric-card__label {
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}
.metric-card__value {
  font-size: 1.4rem;
  color: #1e293b;
  font-weight: 800;
}

.info-item__tag {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  height: fit-content;
  white-space: nowrap;
  background-color: #4b5563;
}
.info-item__tag--renta-variable {
  background-color: #2563eb;
}
.info-item__tag--inmuebles {
  background-color: #16a34a;
}
.info-item__tag--private-equity {
  background-color: #7c3aed;
}
.info-item__tag--alternativas {
  background-color: #ea580c;
}
.info-item__tag--efectivo {
  background-color: #0891b2;
}
.info-item__tag--renta-fija {
  background-color: #4b5563;
}

.link-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  transition: 0.2s;
}
.link-action--renta-variable {
  color: #2563eb;
}
.link-action--inmuebles {
  color: #16a34a;
}
.link-action--private-equity {
  color: #7c3aed;
}
.link-action--alternativas {
  color: #ea580c;
}
.link-action--efectivo {
  color: #0891b2;
}
.link-action--renta-fija {
  color: #4b5563;
}
.link-action:hover {
  gap: 12px;
  text-decoration: underline;
}
.link-action--sat {
  color: #2563eb;
}
.link-action--sat:hover {
  color: #2563eb;
}

/* --- Nota Pro: Footer Fiscal (Alternativas) --- */
.tax-footer-note--orange {
  margin-top: 25px;
  padding: 15px 20px;
  background-color: #fff7ed;
  border-left: 4px solid #ea580c;
  border-radius: 4px 12px 12px 4px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.3s ease;
}
.tax-footer-note--orange svg {
  color: #ea580c;
  flex-shrink: 0;
  margin-top: 2px;
}
.tax-footer-note--orange p {
  margin: 0;
  font-size: 0.88rem;
  color: #9a3412;
  line-height: 1.5;
}
.tax-footer-note--orange p strong {
  color: #ea580c;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* --- Display de Datos Avanzado --- */
.api-data-display {
  text-align: center;
  padding: 30px 0;
  margin-bottom: 20px;
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
  border-radius: 16px;
  border: 1px solid #f1f5f9;
}
.api-data-display .trend-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.api-data-display .trend-indicator.down {
  background-color: #fee2e2;
  color: #ef4444;
}
.api-data-display .data-value--large {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 8px;
  color: #0891b2;
}
.api-data-display .data-value--large::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: #0891b2;
  margin: 10px auto 0;
  border-radius: 2px;
  opacity: 0.3;
}
.api-data-display .data-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* --- Private Equity Advanced Display (Bloomberg Look) --- */
.pe-custody-display {
  display: flex;
  align-items: center;
  gap: 25px;
  background: #fdfcff;
  border: 1px solid #f3efff;
  border-radius: 16px;
  padding: 30px;
  margin: 30px 0;
}
.pe-custody-display .pe-custody-icon {
  color: #7c3aed;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(124, 58, 237, 0.1));
}
.pe-custody-display .pe-custody-text h4 {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  color: #1a2a6c;
  font-weight: 700;
}
.pe-custody-display .pe-custody-text p {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .pe-custody-display {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
}

.pe-lifecycle-stepper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}
.pe-lifecycle-stepper .pe-lifecycle-step {
  display: flex;
  gap: 15px;
}
.pe-lifecycle-stepper .pe-lifecycle-step__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
}
.pe-lifecycle-stepper .pe-lifecycle-step__visual .step-icon {
  width: 40px;
  height: 40px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  z-index: 1;
  transition: 0.3s;
}
.pe-lifecycle-stepper .pe-lifecycle-step__visual .step-line {
  width: 2px;
  height: 40px;
  background: #e2e8f0;
  margin-top: -2px;
}
.pe-lifecycle-stepper .pe-lifecycle-step__content {
  padding-top: 8px;
}
.pe-lifecycle-stepper .pe-lifecycle-step__content h5 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 700;
}
.pe-lifecycle-stepper .pe-lifecycle-step__content p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.4;
}
.pe-lifecycle-stepper .pe-lifecycle-step--highlight .step-icon {
  background: #f5f3ff;
  border-color: #7c3aed;
  color: #7c3aed;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}
.pe-lifecycle-stepper .pe-lifecycle-step--highlight h5 {
  color: #7c3aed;
}
.pe-lifecycle-stepper .pe-lifecycle-step--highlight p {
  color: #334155;
}

.status-pill--active--private-equity {
  background-color: #f5f3ff !important;
  color: #7c3aed !important;
}
.status-pill--active--private-equity .pulse-dot {
  background-color: #7c3aed !important;
  animation: pulse-purple 2s infinite;
}

/* ==========================================================================
   HERO: RENTA VARIABLE
   ========================================================================== */
.detalle-hero--renta-variable {
  padding: 30px;
  border-top: 4px solid #2563eb;
}
.detalle-hero--renta-variable .header-with-icon--renta-variable {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.detalle-hero--renta-variable .svg-icon--renta-variable {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: #eff6ff;
  color: #2563eb;
  border-radius: 12px;
  flex-shrink: 0;
}
.detalle-hero--renta-variable .svg-icon--renta-variable svg {
  width: 28px;
  height: 28px;
}
.detalle-hero--renta-variable .detalle-title--renta-variable {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}
.detalle-hero--renta-variable .detalle-description--renta-variable {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 12px;
}
.detalle-hero--renta-variable .detalle-description--renta-variable:last-of-type {
  margin-bottom: 25px;
}
.detalle-hero--renta-variable .metrics-hero-grid--renta-variable {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
  border-top: 1px solid #e2e8f0;
  padding-top: 25px;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2a6c 0%, rgb(16.1044776119, 26.0149253731, 66.8955223881) 100%);
  padding: 20px;
}
.auth-page .auth-container {
  width: 100%;
  max-width: 480px;
}
.auth-page .auth-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-align: center;
}
.auth-page .auth-card h2 {
  color: #1a2a6c;
  font-size: 1.8rem;
  margin-bottom: 8px;
  font-weight: 800;
}
.auth-page .auth-card p {
  color: #64748b;
  margin-bottom: 30px;
  font-size: 0.95rem;
}
.auth-page form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.auth-page form .input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 6px;
}
.auth-page form .input-group label {
  font-weight: 600;
  color: #2d3436;
  font-size: 0.9rem;
  padding-left: 4px;
}
.auth-page form .input-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #edf2f7;
  border-radius: 12px;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f8fafc;
}
.auth-page form .input-group input::placeholder {
  color: #a0aec0;
}
.auth-page form .btn-auth {
  width: 100%;
  padding: 16px;
  background-color: #fdbb2d;
  color: #1a2a6c;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}
.auth-page form .btn-auth:hover {
  background-color: rgb(252.7594339623, 178.820754717, 19.7405660377);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(253, 187, 45, 0.4);
}
.auth-page .auth-footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}
.auth-page .auth-footer a {
  color: #1a2a6c;
  text-decoration: none;
  font-weight: 700;
}
.auth-page .auth-footer a:hover {
  text-decoration: underline;
  color: rgb(35.8955223881, 57.9850746269, 149.1044776119);
}

@media (max-width: 480px) {
  .auth-card {
    padding: 30px 20px;
  }
  .auth-card h2 {
    font-size: 1.5rem;
  }
}
.auth-page .auth-card {
  display: flex;
  flex-direction: column;
}
.auth-page .auth-card h2 {
  margin-bottom: 10px;
  color: #1a2a6c;
}
.auth-page form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.auth-page form .btn-auth {
  margin-top: 10px;
}
.auth-page .auth-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(100, 116, 139, 0.1);
}
.auth-page .auth-footer p {
  margin-bottom: 0.5rem;
  color: #64748b;
}
.auth-page .auth-footer a {
  color: #1a2a6c;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}
.auth-page .auth-footer a:hover {
  color: #fdbb2d;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 1rem;
}
.config-grid .config-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}
.config-grid .config-card .card-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
}
.config-grid .config-card .card-header h3 {
  color: #1a2a6c;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.config-grid .config-card .card-header p {
  color: #64748b;
  font-size: 0.9rem;
}
.config-grid .config-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.config-grid .config-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.config-grid .config-form .form-group label {
  font-weight: 600;
  color: #2d3436;
  font-size: 0.9rem;
}
.config-grid .config-form .form-group input {
  padding: 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: "Roboto", sans-serif;
}
.config-grid .config-form .form-group input:focus {
  border-color: #1a2a6c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
}
.config-grid .config-form .btn-primary {
  align-self: flex-start;
  padding: 0.8rem 1.5rem;
  background: #1a2a6c;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.config-grid .config-form .btn-primary:hover {
  background: rgb(35.8955223881, 57.9850746269, 149.1044776119);
  transform: translateY(-2px);
}

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

html * {
  font-family: "Roboto", sans-serif;
}

body {
  overflow-x: hidden;
}

/*# sourceMappingURL=style.css.map */
