/* ========================================
   ESTILOS GLOBALES - INVESTMENT SPHERE
   ======================================== */

/* ===== FUENTES ===== */
@font-face {
  font-family: 'Aharoni';
  src: url('Aharoni.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Times New Roman', Times, serif;
  color: white;
  margin: 0;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== VIDEO DE FONDO ===== */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -9999;
  pointer-events: none;
  background: #000;
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ===== HEADER ===== */
.header {
  background: linear-gradient(120deg, 
    rgba(8,8,8,0.98) 0%, 
    rgba(45,45,45,0.95) 85%, 
    rgba(231,234,239,0.08) 100%);
  padding: 18px 16px 10px;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.header.admin {
  background: linear-gradient(120deg, 
    rgba(139,0,0,0.98) 0%, 
    rgba(45,45,45,0.95) 85%, 
    rgba(231,234,239,0.08) 100%);
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  position: relative;
}

.header-top img {
  height: 20px;
  width: auto;
  margin-right: 6px;
}

.header-top h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: #fff;
  font-family: 'Aharoni', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  text-transform: none;
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(23,33,51,0.13), 0 0px 1px rgba(231,234,239,0.33);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #e7eaef;
  letter-spacing: 0.5px;
  font-family: 'Times New Roman', Times, serif;
  text-shadow: 0 1px 6px #23344b44;
}

.header.admin p {
  color: #ffd700;
}

/* ===== MENÚ HAMBURGUESA ===== */
.menu-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 0;
  transition: opacity 0.2s;
}

.menu-btn:hover {
  opacity: 0.8;
}

/* ===== MENÚ LATERAL ===== */
.sidenav {
  height: calc(100% - 120px);
  width: 0;
  position: fixed;
  z-index: 2000;
  top: 76px;
  right: 0;
  background: transparent;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.sidenav.open {
  width: 260px;
}

.sidenav a {
  background: rgba(36,46,60,0.92);
  margin-bottom: 5px;
  margin-right: 0;
  margin-left: auto;
  border-radius: 14px 0 0 14px;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 1rem;
  color: #fff;
  display: block;
  transition: background 0.2s, opacity 0.3s, transform 0.3s;
  width: 200px;
  text-align: left;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateX(20px);
}

.sidenav.open a {
  opacity: 1;
  transform: translateX(0);
}

.sidenav a:hover {
  background: #314159;
}

/* Menú admin */
.sidenav.admin a {
  background: rgba(139,0,0,0.92);
}

.sidenav.admin a:hover {
  background: #dc143c;
}

.sidenav.admin a:first-child {
  background: #ffd700;
  color: #000;
}

.sidenav.admin a:first-child:hover {
  background: #ffed4e;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,20,30,0.4);
  z-index: 1999;
}

/* ===== MODAL BASE ===== */
.base-modal {
  position: relative !important;
  width: 90% !important;
  max-width: 1200px !important;
  background: rgba(24,28,34,0.98) !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 28px 0 rgba(10,14,25,0.37) !important;
  padding: 38px 28px 32px 28px !important;
  margin: 100px auto 40px auto !important;
  z-index: 100 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  height: auto !important;
  min-height: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
  top: auto !important;
  left: auto !important;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Eliminar scrollbar del modal */
.base-modal::-webkit-scrollbar {
  width: 8px;
}

.base-modal::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.base-modal::-webkit-scrollbar-thumb {
  background: #dc143c;
  border-radius: 10px;
}

.base-modal::-webkit-scrollbar-thumb:hover {
  background: #ff1744;
}

/* ===== CONTENEDORES Y LAYOUT ===== */
.main-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

.container-login {
  position: relative;
  z-index: 100;
  max-width: 400px;
  margin: 80px auto 30px auto;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ===== COLORES TEMÁTICOS ===== */
.bg-primary { background: #1a1d24; }
.bg-secondary { background: #232731; }
.bg-dark { background: #252830; }
.bg-success { background: #10b981; }
.bg-warning { background: #f59e0b; }
.bg-danger { background: #ef4444; }
.bg-info { background: #3b82f6; }

.text-primary { color: #3b82f6; }
.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }
.text-danger { color: #ef4444; }
.text-info { color: #93c5fd; }
.text-muted { color: #888; }
.text-white { color: #fff; }

/* ===== BOTONES ===== */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-success {
  background: #10b981;
  color: #fff;
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-warning {
  background: #f59e0b;
  color: #000;
}

.btn-warning:hover {
  background: #d97706;
  transform: translateY(-2px);
}

.btn-danger {
  background: #ef4444;
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #666;
  color: #fff;
}

.btn-secondary:hover {
  background: #555;
  transform: translateY(-2px);
}

.btn-dark {
  background: #444;
  color: #fff;
}

.btn-dark:hover {
  background: #333;
  transform: translateY(-2px);
}

.btn:disabled {
  background: #666 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.1rem;
}

/* ===== FORMULARIOS ===== */
.form-group {
  margin-bottom: 15px;
}

.form-label {
  color: #888;
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #232731;
  color: #fff;
  font-size: 1rem;
  border: 1px solid #444;
  transition: border-color 0.3s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-input.white {
  background: white;
  color: black;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

.form-select option {
  background: #232731;
  color: #fff;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  -webkit-appearance: none;
  appearance: none;
  background: #444;
  border: 2px solid #555;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.form-checkbox:checked {
  background: #4CAF50;
  border-color: #4CAF50;
}

.form-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.form-checkbox:hover {
  border-color: #4CAF50;
}

/* ===== TABLAS ===== */
.table {
  width: 100%;
  background: #232731;
  border-radius: 10px;
  overflow: hidden;
  border-collapse: collapse;
}

.table thead {
  background: #1a1d24;
}

.table th {
  padding: 12px;
  color: #fff;
  text-align: left;
  font-weight: normal;
}

.table td {
  padding: 12px;
  color: #fff;
  border-top: 1px solid #333;
}

.table tr:hover {
  background: rgba(255,255,255,0.05);
}

/* ===== MODALES ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 10000;
}

.modal-content {
  position: relative;
  margin: 110px auto 40px auto;
  background: #232731;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  overflow: visible;
  color: #fff;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-title {
  color: #fff;
  margin: 0;
  font-size: 1.3rem;
}

.modal-body {
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ===== CARDS Y PANELES ===== */
.card {
  background: #232731;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #333;
}

.card-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

.card-title {
  color: #fff;
  margin: 0;
  font-size: 1.2rem;
}

.card-body {
  color: #fff;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s;
}

/* ===== GRID SYSTEM ===== */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* ===== BADGES Y ESTADOS ===== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
}

.badge-success { background: #10b981; color: #fff; }
.badge-warning { background: #f59e0b; color: #000; }
.badge-danger { background: #ef4444; color: #fff; }
.badge-info { background: #3b82f6; color: #fff; }
.badge-secondary { background: #6b7280; color: #fff; }

/* Estados de fase */
.fase-challenge { background: #3b82f6; color: #fff; }
.fase-verificacion { background: #f59e0b; color: #fff; }
.fase-real { background: #10b981; color: #fff; }

/* ===== ALERTAS ===== */
.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-success {
  background: #10b981;
  color: #fff;
}

.alert-error {
  background: #ef4444;
  color: #fff;
}

.alert-warning {
  background: #f59e0b;
  color: #000;
}

.alert-info {
  background: #3b82f6;
  color: #fff;
}

/* ===== UTILIDADES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 30px; }

.p-0 { padding: 0; }
.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }
.p-5 { padding: 30px; }

.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }

.shadow { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes slideIn {
  from { 
    opacity: 0; 
    transform: translateX(-20px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes rowComplete {
  0% { background: #232731; }
  50% { background: #4CAF50; }
  100% { opacity: 0; transform: translateX(100%); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

.completing {
  animation: rowComplete 1s forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .base-modal {
    width: 95% !important;
    padding: 20px !important;
    margin: 90px auto 30px auto !important;
  }
  
  .sidenav a {
    font-size: 1rem;
    padding: 12px 20px;
    min-width: 120px;
    margin-right: 0 !important;
  }
  
  .sidenav {
    top: 77px;
    height: calc(100% - 100px);
    width: 0;
    max-width: 260px !important;
  }
  
  .sidenav.open {
    width: 260px !important;
  }
  
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
  }
  
  .table {
    font-size: 0.9rem;
  }
  
  .table th, .table td {
    padding: 8px !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
  }
  
  .btn {
    font-size: 14px !important;
    padding: 12px !important;
  }
  
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important; /* Evita zoom en iOS */
  }
  
  .modal-content {
    margin: 90px auto 30px auto;
    width: 95% !important;
    padding: 20px !important;
  }
  
  .flex-between {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: stretch !important;
  }
}

@media (max-width: 480px) {
  .container-login {
    width: 98vw;
    min-width: 0;
    padding: 16px 4vw;
    margin-top: 80px;
  }
  
  h2, h3 {
    text-align: center !important;
  }
  
  .btn {
    width: 100% !important;
  }
  
  .base-modal {
    width: 98vw !important;
    min-width: 0;
    padding: 16px 4vw 16px 4vw !important;
    margin-top: 80px !important;
  }
  
  .modal-content {
    margin: 80px auto 20px auto;
    width: 98% !important;
    padding: 15px !important;
  }
}

/* ===== FIXES ESPECÍFICOS ===== */

/* Fix para Safari */
@supports (-webkit-appearance: none) {
  .container-login {
    position: relative !important;
    transform: none !important;
    -webkit-transform: none !important;
  }
  
  #bg-video {
    z-index: -9999 !important;
  }
  
  .base-modal {
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
  }
}

/* Evitar que el botón del menú se mueva con hover */
.menu-btn:hover {
  transform: translateY(-50%) !important;
  box-shadow: none !important;
}

/* ===== ESPECIALES PARA ADMIN ===== */
.admin-card {
  background: #252830;
  border: 1px solid #333;
  transition: all 0.3s;
}

.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border-color: #444;
}

.admin-stat {
  background: #252830;
  padding: 18px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #333;
}

.admin-stat .stat-label {
  color: #888;
  margin: 0;
  font-size: 0.9rem;
}

.admin-stat .stat-value {
  color: #fff;
  margin: 8px 0 0 0;
  font-size: 2.2rem;
  font-weight: bold;
}

.notification-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #DC2626;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  min-width: 25px;
  text-align: center;
}

/* ===== ELEMENTOS ESPECÍFICOS ===== */
.show-hide-btn {
  background: none;
  border: none;
  color: #93c5fd;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: left;
  margin-bottom: 15px;
}

.toggle-link {
  text-align: center;
  margin-top: 20px;
  color: #93c5fd;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

.toggle-link:hover {
  color: #ddd;
}

#error-msg, #success-msg {
  text-align: center;
  margin-bottom: 12px;
  min-height: 20px;
  white-space: pre-wrap;
}

#error-msg {
  color: #f87171;
}

#success-msg {
  color: #10b981;
}

/* ===== ELEMENTOS DE ESTADO ===== */
.cuenta-item {
  background: #232731;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #333;
  transition: all 0.3s;
}

.cuenta-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cuenta-item.admin {
  border-left-color: #ffd700;
}

.mensaje-vacio {
  background: #232731;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  color: #888;
  font-size: 1.1rem;
}

/* Conversación de soporte */
.mensaje-admin {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 15px;
}

.mensaje-usuario {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.mensaje-admin .mensaje-content {
  background: #dc143c;
  padding: 15px;
  border-radius: 10px;
  max-width: 70%;
  color: #fff;
}

.mensaje-usuario .mensaje-content {
  background: #4366cc;
  padding: 15px;
  border-radius: 10px;
  max-width: 70%;
  color: #fff;
}

.mensaje-autor {
  color: #ffd700;
  margin: 0 0 5px 0;
  font-size: 0.9rem;
  font-weight: bold;
}

.mensaje-texto {
  color: #fff;
  margin: 0 0 5px 0;
  line-height: 1.5;
}

.mensaje-fecha {
  color: rgba(255,255,255,0.6);
  margin: 0;
  font-size: 0.85rem;
}

/* ===== MARGEN SUPERIOR PARA CONTENIDO ===== */
.main-content {
  padding-top: 110px !important;
}

@media (max-width: 768px) {
  .main-content {
    padding-top: 115px !important;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding-top: 120px !important;
  }
}

/* ===== BOTONES DE COPIAR PEQUEÑOS Y DISCRETOS ===== */
.btn-copy {
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
  background: #4a5568;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  min-width: 60px;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #2d3748;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-copy.success {
  background: #10b981;
}

.btn-copy.success:hover {
  background: #059669;
}

/* Estilo específico para el contenedor flex de input + botón copiar */
.input-copy-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-copy-container .form-input {
  flex: 1;
}

.input-copy-container .btn-copy {
  flex-shrink: 0;
}

/* Responsive: En móvil hacer los botones aún más pequeños */
@media (max-width: 768px) {
  .btn-copy {
    padding: 6px 10px;
    font-size: 0.75rem;
    min-width: 50px;
  }
  
  .input-copy-container {
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .btn-copy {
    padding: 5px 8px;
    font-size: 0.7rem;
    min-width: 45px;
  }
  
  .input-copy-container {
    gap: 5px;
  }
}

/* ===== ICONOS DE OJOS VECTORIZADOS ===== */

/* Botón base para iconos de ojos */
.eye-icon-btn {
  background: none;
  border: none;
  color: #93c5fd;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.eye-icon-btn:hover {
  background: rgba(147, 197, 253, 0.1);
  color: #ddd;
}

/* Ojo abierto (mostrar contraseña) - Vacío y sin color */
.eye-open {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2393c5fd' stroke-width='2'%3e%3cpath d='M12 3C7.5 3 3.73 6.11 2 10.5c1.73 4.39 5.5 7.5 10 7.5s8.27-3.11 10-7.5C20.27 6.11 16.5 3 12 3z'/%3e%3ccircle cx='12' cy='10.5' r='2.5' fill='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}

/* Ojo cerrado/tachado (ocultar contraseña) - Vacío y sin color */
.eye-closed {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2393c5fd' stroke-width='2'%3e%3cpath d='M12 3C7.5 3 3.73 6.11 2 10.5c1.73 4.39 5.5 7.5 10 7.5s8.27-3.11 10-7.5C20.27 6.11 16.5 3 12 3z'/%3e%3ccircle cx='12' cy='10.5' r='2.5' fill='none'/%3e%3cline x1='4' y1='4' x2='20' y2='20'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}

/* Hover states */
.eye-open:hover {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3e%3cpath d='M12 3C7.5 3 3.73 6.11 2 10.5c1.73 4.39 5.5 7.5 10 7.5s8.27-3.11 10-7.5C20.27 6.11 16.5 3 12 3z'/%3e%3ccircle cx='12' cy='10.5' r='2.5' fill='none'/%3e%3c/svg%3e");
}

.eye-closed:hover {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3e%3cpath d='M12 3C7.5 3 3.73 6.11 2 10.5c1.73 4.39 5.5 7.5 10 7.5s8.27-3.11 10-7.5C20.27 6.11 16.5 3 12 3z'/%3e%3ccircle cx='12' cy='10.5' r='2.5' fill='none'/%3e%3cline x1='4' y1='4' x2='20' y2='20'/%3e%3c/svg%3e");
}

/* Versión alternativa más simple para usar directamente */
.toggle-password {
  background: none;
  border: none;
  color: #93c5fd;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.toggle-password:hover {
  background: rgba(147, 197, 253, 0.1);
  color: #ddd;
}

/* Estado mostrar - Ojo vacío y sin color */
.toggle-password[data-state="show"]::before {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor' stroke-width='2'%3e%3cpath d='M12 3C7.5 3 3.73 6.11 2 10.5c1.73 4.39 5.5 7.5 10 7.5s8.27-3.11 10-7.5C20.27 6.11 16.5 3 12 3z'/%3e%3ccircle cx='12' cy='10.5' r='2.5' fill='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Estado ocultar - Ojo tachado vacío y sin color */
.toggle-password[data-state="hide"]::before {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor' stroke-width='2'%3e%3cpath d='M12 3C7.5 3 3.73 6.11 2 10.5c1.73 4.39 5.5 7.5 10 7.5s8.27-3.11 10-7.5C20.27 6.11 16.5 3 12 3z'/%3e%3ccircle cx='12' cy='10.5' r='2.5' fill='none'/%3e%3cline x1='4' y1='4' x2='20' y2='20'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Responsive para iconos de ojos */
@media (max-width: 480px) {
  .eye-icon-btn,
  .toggle-password {
    width: 32px;
    height: 32px;
    padding: 6px;
  }
  
  .eye-open,
  .eye-closed {
    background-size: 18px 18px;
  }
  
  .toggle-password[data-state="show"]::before,
  .toggle-password[data-state="hide"]::before {
    width: 18px;
    height: 18px;
  }
}