body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
  }
  
  header {
    background-color: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
  }
  
  .plataformas {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px;
  }
  
  .card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    text-align: center;
    width: 150px;
  }
  
  button {
    background-color: #28a745;
    border: none;
    padding: 10px;
    color: white;
    border-radius: 4px;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #218838;
  }

  .login-container {
    max-width: 400px;
    margin: 100px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  
  .login-container h2 {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .login-container form {
    display: flex;
    flex-direction: column;
  }
  
  .login-container label {
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  .login-container input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  .login-container button {
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .login-container button:hover {
    background-color: #218838;
  }
  
  .login-container p {
    text-align: center;
    margin-top: 15px;
  }

  /* Estilos para el panel de administración */
  .admin-container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }

  .header-user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
  }

  .logout-btn {
    background-color: #dc3545;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 14px;
  }

  .logout-btn:hover {
    background-color: #c82333;
  }

  .dashboard-btn {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 14px;
    transition: background-color 0.3s ease;
  }

  .dashboard-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
  }

  .table-container {
    overflow-x: auto;
    margin-top: 20px;
  }

  .admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }

  .admin-table th,
  .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }

  .admin-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
  }

  .admin-table tr:hover {
    background-color: #f5f5f5;
  }

  .plataforma-cell {
    font-weight: bold;
    color: #28a745;
  }

  .precio,
  .precio-prorrateado {
    text-align: right;
    font-family: monospace;
  }

  .precio-prorrateado {
    color: #28a745;
  }

  .dias-restantes {
    text-align: center;
  }

  .estado {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
  }

  .estado.activa {
    background-color: #d4edda;
    color: #155724;
  }

  .estado.por-vencer {
    background-color: #fff3cd;
    color: #856404;
  }

  .estado.vencida {
    background-color: #f8d7da;
    color: #721c24;
  }

  .stats-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
  }

  .stat-card {
    flex: 1;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #28a745;
  }

  .stat-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
  }

  .stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin: 0;
  }

  .no-data {
    text-align: center;
    padding: 40px;
    color: #666;
  }

  .no-data h3 {
    color: #333;
    margin-bottom: 10px;
  }

  footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
  }

  /* Estilos para el sistema de edición */
  .header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .btn-nuevo {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
  }

  .btn-nuevo:hover {
    background-color: #218838;
  }

  .acciones {
    text-align: center;
    white-space: nowrap;
  }

  .btn-editar, .btn-eliminar {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
  }

  .btn-editar {
    background-color: #007bff;
    color: white;
  }

  .btn-editar:hover {
    background-color: #0056b3;
  }

  .btn-eliminar {
    background-color: #dc3545;
    color: white;
  }

  .btn-eliminar:hover {
    background-color: #c82333;
  }

  .back-btn {
    background-color: #6c757d;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 14px;
  }

  .back-btn:hover {
    background-color: #545b62;
  }

  /* Estilos para formularios de edición */
  .form-container {
    max-width: 800px;
    margin: 20px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }

  .edit-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
  }

  .form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
  }

  .form-group input,
  .form-group select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
  }

  .form-group input:focus,
  .form-group select:focus {
    outline: none;
    border-color: #28a745;
  }

  .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
  }

  .btn-guardar {
    background-color: #28a745;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .btn-guardar:hover {
    background-color: #218838;
  }

  .btn-cancelar {
    background-color: #6c757d;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
  }

  .btn-cancelar:hover {
    background-color: #545b62;
  }

  .cuenta-info {
    margin-top: 30px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
  }

  .cuenta-info h3 {
    margin-top: 0;
    color: #333;
  }

  .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
  }

  .info-item {
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ddd;
  }

  .pricing-guide {
    margin-top: 30px;
    background-color: #e9f7ef;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
  }

  .pricing-guide h3 {
    margin-top: 0;
    color: #155724;
  }

  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 15px 0;
  }

  .price-item {
    padding: 8px 12px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    font-size: 14px;
  }

  /* Mensajes de éxito y error */
  .mensaje-exito {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
    font-weight: bold;
  }

  .mensaje-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
    font-weight: bold;
  }

  /* Estilos para el catálogo público */
  .header-content {
    position: relative;
    padding: 20px;
  }

  .main-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
  }

  .main-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s;
  }

  .main-nav a:hover, .main-nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
  }

  /* Hero Section */
  .hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }

  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
  }

  .stat {
    text-align: center;
  }

  .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
  }

  .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
  }

  .btn-hero {
    background-color: #28a745;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
  }

  .btn-hero:hover {
    background-color: #218838;
  }

  /* Plataformas Section */
  .plataformas-section {
    padding: 60px 20px;
    text-align: center;
  }

  .plataformas-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
  }

  .plataformas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .card {
    background-color: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }

  .card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }

  .card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
  }

  .card p {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .btn-card {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
  }

  .btn-card:hover {
    background-color: #0056b3;
  }

  /* Características Section */
  .caracteristicas-section {
    background-color: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
  }

  .caracteristicas-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
  }

  .caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .caracteristica {
    background-color: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .caracteristica-icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }

  .caracteristica h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
  }

  .caracteristica p {
    color: #666;
    line-height: 1.6;
  }

  /* CTA Section */
  .cta-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
  }

  .cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
  }

  .btn-cta {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s;
  }

  .btn-cta.primary {
    background-color: white;
    color: #28a745;
  }

  .btn-cta.primary:hover {
    background-color: #f8f9fa;
  }

  .btn-cta.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
  }

  .btn-cta.secondary:hover {
    background-color: white;
    color: #28a745;
  }

  /* Catálogo Container */
  .catalogo-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
  }

  /* Filtros */
  .filtros-section {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
  }

  .filtros-section h2 {
    margin-bottom: 20px;
    color: #333;
  }

  .filtros-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
  }

  .filtro-grupo {
    display: flex;
    flex-direction: column;
  }

  .filtro-grupo label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
  }

  .filtro-grupo select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
  }

  .btn-filtrar, .btn-limpiar {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .btn-filtrar {
    background-color: #007bff;
    color: white;
  }

  .btn-filtrar:hover {
    background-color: #0056b3;
  }

  .btn-limpiar {
    background-color: #6c757d;
    color: white;
  }

  .btn-limpiar:hover {
    background-color: #545b62;
  }

  /* Estadísticas rápidas */
  .estadisticas-rapidas {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
  }

  .stat-item {
    flex: 1;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
  }

  .stat-numero {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #28a745;
  }

  .stat-texto {
    color: #666;
    font-size: 0.9rem;
  }

  /* Grid de cuentas */
  .cuentas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
  }

  .cuenta-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .cuenta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }

  .cuenta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0;
  }

  .plataforma-nombre {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin: 0;
  }

  .descuento-badge {
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
  }

  .cuenta-info {
    padding: 15px 20px;
  }

  .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .info-label {
    color: #666;
    font-size: 0.9rem;
  }

  .info-value {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
  }

  .tiempo-restante {
    color: #28a745;
  }

  .cuenta-precios {
    padding: 15px 20px;
    background-color: #f8f9fa;
    text-align: center;
  }

  .precio-original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
  }

  .precio-actual {
    font-size: 1.8rem;
    font-weight: bold;
    color: #28a745;
    margin: 5px 0;
  }

  .precio-por-dia {
    color: #666;
    font-size: 0.8rem;
  }

  .cuenta-acciones {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
  }

  .btn-ver-detalle, .btn-comprar {
    flex: 1;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s;
  }

  .btn-ver-detalle {
    background-color: #6c757d;
    color: white;
  }

  .btn-ver-detalle:hover {
    background-color: #545b62;
  }

  .btn-comprar {
    background-color: #28a745;
    color: white;
  }

  .btn-comprar:hover {
    background-color: #218838;
  }

  .no-cuentas {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .btn-ver-todas {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
  }

  /* Página de detalles */
  .detalle-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
  }

  .breadcrumb {
    margin-bottom: 20px;
    color: #666;
  }

  .breadcrumb a {
    color: #007bff;
    text-decoration: none;
  }

  .cuenta-principal {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .cuenta-header-detalle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
  }

  .cuenta-header-detalle h1 {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
  }

  .descuento-grande {
    background-color: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
  }

  .cuenta-detalles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }

  .detalle-seccion h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
  }

  .detalle-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .info-item-detalle {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
  }

  .icono {
    font-size: 1.5rem;
  }

  .tiempo-destacado {
    color: #28a745;
    font-weight: bold;
  }

  .estado-verificado {
    color: #28a745;
    font-weight: bold;
  }

  .precios-detalle {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .precio-item-detalle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
  }

  .precio-item-detalle.destacado {
    background-color: #e9f7ef;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
  }

  .precio-original-detalle {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
  }

  .precio-actual-detalle {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
  }

  .precio-diario-detalle {
    color: #666;
  }

  .ahorro-detalle {
    background-color: #fff3cd;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    text-align: center;
  }

  .ahorro-texto {
    color: #856404;
    font-weight: bold;
  }

  .caracteristicas-plataforma {
    margin: 30px 0;
  }

  .caracteristicas-plataforma h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
  }

  .caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }

  .caracteristica-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
  }

  .acciones-detalle {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
  }

  .btn-comprar-grande {
    background-color: #28a745;
    color: white;
    padding: 18px 36px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s;
  }

  .btn-comprar-grande:hover {
    background-color: #218838;
  }

  .btn-seguir-buscando {
    background-color: #6c757d;
    color: white;
    padding: 18px 36px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s;
  }

  .btn-seguir-buscando:hover {
    background-color: #545b62;
  }

  .similares-section {
    margin-top: 40px;
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .similares-grid {
    display: flex;
    gap: 15px;
    margin-top: 20px;
  }

  .cuenta-similar {
    flex: 1;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
  }

  .similar-info {
    margin-bottom: 10px;
  }

  .similar-dias {
    display: block;
    font-weight: bold;
    color: #666;
  }

  .similar-precio {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
  }

  .btn-ver-similar {
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
  }

  /* Página de contacto */
  .contacto-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
  }

  .contacto-header {
    text-align: center;
    margin-bottom: 40px;
  }

  .contacto-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
  }

  .contacto-header p {
    font-size: 1.1rem;
    color: #666;
  }

  .cuenta-seleccionada {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
  }

  .cuenta-seleccionada h2 {
    color: #333;
    margin-bottom: 20px;
  }

  .resumen-cuenta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
  }

  .resumen-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
  }

  .resumen-detalles {
    display: flex;
    gap: 20px;
    color: #666;
  }

  .resumen-precio {
    text-align: right;
  }

  .precio-final {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
  }

  .precio-detalle {
    color: #666;
    font-size: 0.9rem;
  }

  .metodos-contacto {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
  }

  .metodos-contacto h2 {
    color: #333;
    margin-bottom: 25px;
    text-align: center;
  }

  .contacto-opciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }

  .contacto-opcion {
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s;
  }

  .contacto-opcion:hover {
    transform: translateY(-3px);
  }

  .contacto-opcion.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
  }

  .contacto-opcion.email {
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
  }

  .contacto-opcion.telegram {
    background: linear-gradient(135deg, #0088CC, #0066AA);
    color: white;
  }

  .opcion-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
  }

  .opcion-icono {
    font-size: 2rem;
  }

  .opcion-header h3 {
    font-size: 1.3rem;
    margin: 0;
  }

  .opcion-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: auto;
  }

  .opcion-detalles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
  }

  .opcion-detalles span {
    font-size: 0.9rem;
    opacity: 0.9;
  }

  .btn-contacto {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
    margin-top: 15px;
    display: block;
  }

  .btn-contacto:hover {
    background-color: rgba(255, 255, 255, 0.3);
  }

  .info-adicional {
    display: grid;
    gap: 30px;
  }

  .info-seccion {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .info-seccion h3 {
    color: #333;
    margin-bottom: 20px;
  }

  .garantias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .garantia-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
  }

  .garantia-icono {
    font-size: 1.5rem;
    color: #28a745;
  }

  .garantia-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
  }

  .garantia-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
  }

  .pagos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .pago-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
  }

  .pago-icono {
    font-size: 1.5rem;
  }

  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .faq-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
  }

  .faq-item summary {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
  }

  .faq-item p {
    color: #666;
    margin: 10px 0 0 0;
    line-height: 1.6;
  }

  .acciones-contacto {
    text-align: center;
    margin-top: 30px;
  }

  .btn-volver-catalogo {
    background-color: #6c757d;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s;
  }

  .btn-volver-catalogo:hover {
    background-color: #545b62;
  }

  /* Footer mejorado */
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
  }

  .footer-section h4 {
    color: white;
    margin-bottom: 15px;
  }

  .footer-section p {
    color: #ccc;
    margin-bottom: 5px;
  }

  .footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
  }

  .footer-bottom p {
    color: #ccc;
    margin: 0;
  }

  /* Estilos para enfoque en prorrateo e innovación */
  .innovation-badge {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: pulse 2s infinite;
  }

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

  .highlight {
    background: linear-gradient(120deg, #ffd93d 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
  }

  .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
  }

  .prorrateo-explanation {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
  }

  .prorrateo-example {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 30px;
  }

  .ejemplo-tradicional, .ejemplo-strimify {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
  }

  .ejemplo-tradicional {
    border: 2px solid #dc3545;
  }

  .ejemplo-strimify {
    border: 2px solid #28a745;
  }

  .precio-viejo {
    font-size: 1.5rem;
    color: #dc3545;
    font-weight: bold;
    margin: 10px 0;
  }

  .precio-nuevo {
    font-size: 1.5rem;
    color: #28a745;
    font-weight: bold;
    margin: 10px 0;
  }

  .vs-divider {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }

  .ahorro-badge {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
  }

  /* Sección de innovación del prorrateo */
  .prorrateo-innovation-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 20px;
    text-align: center;
  }

  .section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .innovation-card {
    background-color: white;
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
  }

  .innovation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }

  .innovation-card.destacada {
    border: 3px solid #28a745;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  }

  .innovation-icon {
    font-size: 4rem;
    margin-bottom: 20px;
  }

  .innovation-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
  }

  .ejemplo-calculo {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-family: monospace;
  }

  .ejemplo-calculo span {
    display: block;
    margin-bottom: 5px;
  }

  .resultado {
    color: #28a745;
    font-size: 1.1rem;
  }

  .ahorro-examples {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
  }

  .ahorro-item {
    background-color: #e8f5e8;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    color: #155724;
  }

  .tech-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
  }

  .tech-features span {
    background-color: #e3f2fd;
    padding: 8px 12px;
    border-radius: 6px;
    color: #0d47a1;
    font-weight: bold;
  }

  /* Sección de comparativa */
  .comparativa-section {
    background-color: white;
    padding: 80px 20px;
  }

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

  .comparativa-table {
    background-color: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }

  .comparativa-header, .comparativa-row, .comparativa-total {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
    gap: 20px;
    padding: 20px;
    align-items: center;
  }

  .comparativa-header {
    background-color: #007bff;
    color: white;
    font-weight: bold;
  }

  .comparativa-row {
    border-bottom: 1px solid #dee2e6;
  }

  .comparativa-row:nth-child(even) {
    background-color: white;
  }

  .comparativa-total {
    background-color: #28a745;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
  }

  .col-tradicional {
    color: #dc3545;
    font-weight: bold;
  }

  .col-strimify {
    color: #28a745;
    font-weight: bold;
  }

  .col-ahorro {
    color: #ff6b00;
    font-weight: bold;
  }

  .ahorro-destacado {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 12px;
  }

  /* Explicación del prorrateo en catálogo */
  .prorrateo-explicacion {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
  }

  .prorrateo-explicacion h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
  }

  .explicacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
  }

  .explicacion-paso {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
  }

  .explicacion-paso:hover {
    transform: translateY(-5px);
  }

  .paso-numero {
    background-color: #ffd700;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 15px;
  }

  .explicacion-paso h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
  }

  .ejemplo-calculo-live {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
  }

  .calculo-interactivo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }

  .calculo-input, .calculo-proceso, .calculo-ahorro {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
  }

  .calculo-input span, .calculo-proceso span {
    display: block;
    margin-bottom: 5px;
  }

  .precio-final-calc {
    color: #ffd700;
    font-size: 1.3rem;
  }

  .ahorro-badge-calc {
    background-color: #28a745;
    padding: 8px 12px;
    border-radius: 15px;
    font-weight: bold;
  }

  /* Breakdown del prorrateo en detalles */
  .prorrateo-breakdown {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .breakdown-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s;
  }

  .breakdown-step:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
  }

  .step-number {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  .step-content h4 {
    margin-bottom: 8px;
    color: #333;
    font-size: 1.1rem;
  }

  .calculo-formula {
    background-color: #e3f2fd;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: bold;
    color: #0d47a1;
    display: block;
    margin: 8px 0;
  }

  .breakdown-result {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 10px;
  }

  .resultado-final h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
  }

  .precio-final-grande {
    font-size: 3rem;
    font-weight: bold;
    display: block;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  .ahorro-detallado {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
  }

  .ahorro-badge-grande {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
  }

  .porcentaje-ahorro {
    background-color: #ffd700;
    color: #333;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
  }

  .comparativa-tiempo {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    font-style: italic;
  }

  /* Responsive design */
  @media (max-width: 768px) {
    .header-section {
      flex-direction: column;
      gap: 15px;
      text-align: center;
    }

    .acciones {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .btn-editar, .btn-eliminar {
      width: 100%;
      text-align: center;
    }

    .form-actions {
      flex-direction: column;
    }

    .info-grid {
      grid-template-columns: 1fr;
    }

    .pricing-grid {
      grid-template-columns: 1fr;
    }

    .main-nav {
      flex-direction: column;
      gap: 10px;
    }

    .hero-stats {
      flex-direction: column;
      gap: 20px;
    }

    .cta-buttons {
      flex-direction: column;
      align-items: center;
    }

    .estadisticas-rapidas {
      flex-direction: column;
    }

    .filtros-form {
      grid-template-columns: 1fr;
    }

    .cuenta-detalles-grid {
      grid-template-columns: 1fr;
    }

    .acciones-detalle {
      flex-direction: column;
    }

    .similares-grid {
      flex-direction: column;
    }

    .resumen-cuenta {
      flex-direction: column;
      gap: 15px;
      text-align: center;
    }

    .contacto-opciones {
      grid-template-columns: 1fr;
    }

    .garantias-grid {
      grid-template-columns: 1fr;
    }

    .pagos-grid {
      grid-template-columns: 1fr;
    }

    .prorrateo-example {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .vs-divider {
      order: 2;
    }

    .innovation-grid {
      grid-template-columns: 1fr;
    }

    .comparativa-header, .comparativa-row, .comparativa-total {
      grid-template-columns: 1fr;
      gap: 10px;
      text-align: center;
    }

    .explicacion-grid {
      grid-template-columns: 1fr;
    }

    .calculo-interactivo {
      grid-template-columns: 1fr;
    }

    .breakdown-step {
      flex-direction: column;
      text-align: center;
    }

    .ahorro-detallado {
      grid-template-columns: 1fr;
    }

    .precio-final-grande {
      font-size: 2rem;
    }
  }

  /* Estilos para Login Mejorado */
  .error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
    font-weight: bold;
  }

  .secure-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
  }

  .form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
  }

  .form-group input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
  }

  .form-group input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
  }

  .password-strength-indicator {
    margin-top: 5px;
    font-size: 12px;
    font-weight: bold;
    display: none;
  }

  .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
  }

  .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }

  .forgot-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
  }

  .forgot-link:hover {
    text-decoration: underline;
  }

  .btn-login {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 15px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
  }

  .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
  }

  .btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
  }

  .security-info {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
  }

  .security-info h3 {
    color: #155724;
    margin-bottom: 10px;
  }

  .security-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .security-info li {
    color: #155724;
    margin-bottom: 5px;
  }

  .auth-links {
    text-align: center;
    margin-top: 20px;
  }

  .auth-links p {
    margin-bottom: 10px;
  }

  .register-link, .admin-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
  }

  .register-link:hover, .admin-link:hover {
    text-decoration: underline;
  }

  /* Estilos para Panel de Administración */
  .admin-body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .admin-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .admin-header h1 {
    margin: 0;
    font-size: 1.5rem;
  }

  .admin-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .role-badge {
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
  }

  .role-badge.admin {
    background-color: #dc3545;
  }

  .btn-logout {
    background-color: #dc3545;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
  }

  .btn-logout:hover {
    background-color: #c82333;
  }

  .admin-layout {
    display: flex;
    min-height: calc(100vh - 70px);
  }

  .admin-sidebar {
    width: 250px;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 20px 0;
  }

  .admin-nav {
    display: flex;
    flex-direction: column;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
  }

  .nav-item:hover {
    background-color: #f8f9fa;
    border-left-color: #007bff;
  }

  .nav-item.active {
    background-color: #e3f2fd;
    border-left-color: #007bff;
    color: #007bff;
    font-weight: bold;
  }

  .nav-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 10px 20px;
  }

  .admin-main {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
  }

  /* KPI Cards */
  .kpi-section {
    margin-bottom: 30px;
  }

  .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .kpi-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
  }

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

  .kpi-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .kpi-card.revenue .kpi-icon {
    background: linear-gradient(45deg, #28a745, #20c997);
  }

  .kpi-card.accounts .kpi-icon {
    background: linear-gradient(45deg, #007bff, #0056b3);
  }

  .kpi-card.users .kpi-icon {
    background: linear-gradient(45deg, #6f42c1, #5a379e);
  }

  .kpi-card.platforms .kpi-icon {
    background: linear-gradient(45deg, #fd7e14, #e55a00);
  }

  .kpi-content h3 {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .kpi-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
  }

  .kpi-subtitle {
    color: #666;
    font-size: 12px;
  }

  /* Dashboard Grid */
  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
  }

  .dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .dashboard-card h3 {
    margin: 0 0 20px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .dashboard-card h3 i {
    color: #007bff;
  }

  /* Tables */
  .table-responsive {
    overflow-x: auto;
  }

  .stats-table {
    width: 100%;
    border-collapse: collapse;
  }

  .stats-table th,
  .stats-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
  }

  .stats-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
    font-size: 12px;
    text-transform: uppercase;
  }

  .platform-name {
    font-weight: bold;
  }

  .badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
  }

  .badge.success {
    background-color: #d4edda;
    color: #155724;
  }

  .revenue-cell {
    color: #28a745;
    font-weight: bold;
  }

  /* Alert Card */
  .alert-card {
    border-left: 4px solid #dc3545;
  }

  .expiring-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .expiring-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
  }

  .expiring-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .expiring-info .email {
    color: #666;
    font-size: 12px;
  }

  .expiring-time {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .days-left {
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
  }

  .days-left.critical {
    background-color: #f8d7da;
    color: #721c24;
  }

  .days-left.warning {
    background-color: #fff3cd;
    color: #856404;
  }

  .expiry-date {
    color: #666;
    font-size: 11px;
  }

  /* Activity Feed */
  .activity-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
  }

  .activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background-color: #f8f9fa;
  }

  .activity-item.security {
    border-left: 4px solid #dc3545;
  }

  .activity-item.admin {
    border-left: 4px solid #6f42c1;
  }

  .activity-item.error {
    border-left: 4px solid #fd7e14;
  }

  .activity-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
  }

  .activity-content {
    flex: 1;
  }

  .activity-message {
    font-weight: bold;
    margin-bottom: 4px;
  }

  .activity-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #666;
  }

  .view-all-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
  }

  /* Quick Actions */
  .actions-card {
    grid-column: span 2;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
  }

  .action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }

  .action-btn.create {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
  }

  .action-btn.users {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
  }

  .action-btn.backup {
    background: linear-gradient(135deg, #6f42c1, #5a379e);
    color: white;
  }

  .action-btn.security {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
  }

  .action-btn i {
    font-size: 24px;
  }

  .action-btn span {
    font-weight: bold;
    font-size: 12px;
  }

  /* Notification */
  .admin-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
  }

  .admin-notification.critical {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
  }

  @keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }

  /* Responsive para admin */
  @media (max-width: 768px) {
    .admin-layout {
      flex-direction: column;
    }

    .admin-sidebar {
      width: 100%;
    }

    .admin-nav {
      flex-direction: row;
      overflow-x: auto;
      padding: 10px;
    }

    .nav-item {
      white-space: nowrap;
      border-left: none;
      border-bottom: 3px solid transparent;
    }

    .nav-item:hover,
    .nav-item.active {
      border-left: none;
      border-bottom-color: #007bff;
    }

    .kpi-grid {
      grid-template-columns: 1fr;
    }

    .dashboard-grid {
      grid-template-columns: 1fr;
    }

    .actions-card {
      grid-column: span 1;
    }

    .quick-actions {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Estilos para búsqueda avanzada */
  .filtros-form.advanced {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .filtro-grupo.full-width {
    grid-column: 1 / -1;
  }

  .filtro-grupo input[type="text"] {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
  }

  .filtro-grupo input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  }

  .filtro-acciones {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
  }

  .btn-toggle-advanced {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .btn-toggle-advanced:hover {
    background-color: #545b62;
  }

  .search-results-info {
    background-color: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #007bff;
  }

  .search-results-info h3 {
    margin-bottom: 15px;
    color: #0d47a1;
  }

  .active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .filter-tag {
    background-color: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
  }

  /* Estilos para el panel de backup */
  .admin-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
  }

  .admin-alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }

  .admin-alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }

  .backup-stats {
    margin-bottom: 30px;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
  }

  .stat-content h3 {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
  }

  .stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
  }

  .backup-actions {
    margin-bottom: 30px;
  }

  .actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  .action-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
  }

  .action-card.create-backup {
    border-left-color: #28a745;
  }

  .action-card.auto-backup {
    border-left-color: #6f42c1;
  }

  .action-card h3 {
    margin-bottom: 10px;
    color: #333;
  }

  .action-card p {
    color: #666;
    margin-bottom: 15px;
  }

  .btn-backup {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
  }

  .btn-backup.create {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
  }

  .btn-backup.config {
    background: linear-gradient(45deg, #6f42c1, #5a379e);
    color: white;
  }

  .btn-backup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  }

  .auto-backup-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
  }

  .info-item {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .backup-list {
    margin-bottom: 30px;
  }

  .no-backups {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .no-backups h3 {
    color: #666;
    margin-bottom: 10px;
  }

  .backups-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
  }

  .backups-table {
    width: 100%;
    border-collapse: collapse;
  }

  .backups-table th,
  .backups-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
  }

  .backups-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    font-size: 12px;
  }

  .filename-cell {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .backup-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
  }

  .backup-type.compressed {
    background-color: #e3f2fd;
    color: #0d47a1;
  }

  .backup-type.normal {
    background-color: #f3e5f5;
    color: #4a148c;
  }

  .actions-cell {
    text-align: center;
  }

  .action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
  }

  .btn-action {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
  }

  .btn-action.restore {
    background-color: #28a745;
  }

  .btn-action.download {
    background-color: #007bff;
  }

  .btn-action.delete {
    background-color: #dc3545;
  }

  .btn-action:hover {
    transform: scale(1.1);
  }

  /* Estilos para logos de plataformas */
  .cuenta-header {
    position: relative;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 80px;
    background: linear-gradient(135deg, #6c5ce7, #5f3dc4) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  }

  .platform-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
  }

  .platform-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255,255,255,0.9);
    padding: 4px;
  }

  .platform-emoji-fallback {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .platform-name-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .plataforma-nombre {
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white !important;
  }

  .descuento-badge {
    background: rgba(255,255,255,0.9);
    color: #e50914;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-shadow: none;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  /* Logos en plataformas populares */
  .plataforma-card {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid rgba(255,255,255,0.1);
  }

  .plataforma-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
  }

  .plataforma-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
  }

  .platform-logo-small {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    padding: 8px;
  }

  .emoji-fallback {
    font-size: 3rem;
  }

  .plataforma-card h3 {
    margin: 15px 0 8px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  .plataforma-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
  }

  /* Efectos especiales para cada plataforma */
  .cuenta-card[data-platform="netflix"] .cuenta-header {
    background: linear-gradient(135deg, #e50914, #b20710) !important;
  }

  .cuenta-card[data-platform="disney+"] .cuenta-header,
  .cuenta-card[data-platform="disneyplus"] .cuenta-header {
    background: linear-gradient(135deg, #113ccf, #040714) !important;
  }

  .cuenta-card[data-platform="hbomax"] .cuenta-header,
  .cuenta-card[data-platform="max"] .cuenta-header {
    background: linear-gradient(135deg, #5b2c87, #3b1a5b) !important;
  }

  .cuenta-card[data-platform="amazonprime"] .cuenta-header,
  .cuenta-card[data-platform="primevideo"] .cuenta-header {
    background: linear-gradient(135deg, #00a8e1, #0066cc) !important;
  }

  .cuenta-card[data-platform="spotify"] .cuenta-header {
    background: linear-gradient(135deg, #1db954, #1aa34a) !important;
  }

  .cuenta-card[data-platform="appletv+"] .cuenta-header {
    background: linear-gradient(135deg, #000000, #333333) !important;
  }

  .cuenta-card[data-platform="paramount+"] .cuenta-header {
    background: linear-gradient(135deg, #0064ff, #004bcc) !important;
  }

  .cuenta-card[data-platform="hulu"] .cuenta-header {
    background: linear-gradient(135deg, #1ce783, #14b86d) !important;
  }

  .cuenta-card[data-platform="youtubepremium"] .cuenta-header {
    background: linear-gradient(135deg, #ff0000, #cc0000) !important;
  }

  .cuenta-card[data-platform="crunchyroll"] .cuenta-header {
    background: linear-gradient(135deg, #f47521, #e65100) !important;
  }

  /* Animaciones para los logos */
  .platform-logo-container {
    animation: logoFloat 3s ease-in-out infinite;
  }

  @keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
  }

  .cuenta-card:hover .platform-logo-container {
    animation: logoSpin 0.8s ease-in-out;
  }

  @keyframes logoSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
  }

  /* Shimmer effect para cuando cargan las imágenes */
  .platform-logo {
    animation: shimmer 2s infinite;
  }

  @keyframes shimmer {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
  }

  .platform-logo:hover {
    animation: none;
    transform: scale(1.05);
  }

  /* Responsive para logos */
  @media (max-width: 768px) {
    .cuenta-header {
      padding: 15px;
      min-height: 70px;
      gap: 12px;
    }

    .platform-logo-container {
      min-width: 50px;
      height: 50px;
    }

    .platform-logo {
      width: 30px;
      height: 30px;
    }

    .platform-emoji-fallback {
      font-size: 1.5rem;
    }

    .plataforma-nombre {
      font-size: 1.2rem;
    }

    .plataforma-icon {
      height: 60px;
    }

    .platform-logo-small {
      width: 40px;
      height: 40px;
    }

    .emoji-fallback {
      font-size: 2.5rem;
    }
  }

  /* Estilos específicos para página de detalle */
  .cuenta-header-detalle {
    background: linear-gradient(135deg, #6c5ce7, #5f3dc4) !important;
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
  }

  .cuenta-header-detalle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
  }

  .platform-logo-container-large {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255,255,255,0.4);
    position: relative;
    z-index: 1;
  }

  .platform-logo-large {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    padding: 8px;
    transition: all 0.3s ease;
  }

  .platform-logo-large:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  }

  .platform-emoji-fallback-large {
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .header-text-container {
    flex: 1;
    position: relative;
    z-index: 1;
  }

  .header-text-container h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    color: white !important;
  }

  .descuento-grande {
    background: rgba(255,255,255,0.95);
    color: #e50914;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    text-shadow: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
  }

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

  /* Responsive para detalle */
  @media (max-width: 768px) {
    .cuenta-header-detalle {
      padding: 20px;
      gap: 15px;
      flex-direction: column;
      text-align: center;
    }

    .platform-logo-container-large {
      min-width: 80px;
      height: 80px;
    }

    .platform-logo-large {
      width: 50px;
      height: 50px;
    }

    .platform-emoji-fallback-large {
      font-size: 2.5rem;
    }

    .header-text-container h1 {
      font-size: 2rem;
    }

    .descuento-grande {
      font-size: 12px;
      padding: 6px 15px;
    }
  }
  