/**
 * Estilos personalizados para LegallyMail
 */

/* Estilos generales */
body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Estilos para el menú de navegación - textos más grandes */
.navbar-nav .nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
}

.navbar-nav .nav-link i {
    font-size: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

section {
    padding: 4rem 0;
}

p {
    line-height: 1.6;
}

p strong {
    color: #0d6efd;
}

a {
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.text-center h1,
.text-center h2,
.text-center h3,
.text-center .lead {
    margin-left: auto;
    margin-right: auto;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #5a5c69;
}

/* Banner principal */
.hero-banner {
    color: #fff;
    padding: 4rem 0;
    margin-bottom: 0;
}

.hero-banner h1,
.hero-banner p,
.hero-banner .lead {
    color: #fff;
}

.hero-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Tarjetas de características */
.feature-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    padding: 25px;
    height: 100%;
    text-align: center;
}

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

.feature-card .feature-icon {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 20px;
    text-align: center;
}

.feature-card .feature-icon .feature-img {
    max-width: 100px;
    height: auto;
    margin: 0 auto;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Tarjetas de precios */
.pricing-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    margin-bottom: 30px;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card .pricing-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.pricing-card .pricing-header h3 {
    margin-bottom: 0;
    font-weight: 600;
}

.pricing-card .pricing-body {
    padding: 30px 20px;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 20px;
}

.pricing-card .price small {
    font-size: 1rem;
    color: #6c757d;
}

.pricing-card.popular {
    border: 2px solid #0d6efd;
    transform: scale(1.05);
}

.pricing-card.popular .pricing-header {
    background: #0d6efd;
    color: #fff;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card.popular .pricing-header h3 {
    color: #fff;
}

/* Formularios */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
}

/* Estilos para correos certificados */
.email-card {
    border-left: 4px solid #0d6efd;
    margin-bottom: 15px;
    transition: transform 0.2s;
}

.email-card:hover {
    transform: translateX(5px);
}

.email-card.read {
    border-left-color: #6c757d;
}

.email-status-badge {
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.email-status-badge.sent {
    background-color: #cfe2ff;
    color: #0d6efd;
}

.email-status-badge.read {
    background-color: #d1e7dd;
    color: #198754;
}

.email-timestamp {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Dashboard */
.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.stat-card .stat-icon {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 15px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Footer */
footer {
    width: 100%;
    margin: 0;
    padding: 2rem 0;
}

footer .container-fluid {
    padding-left: 5rem;
    padding-right: 5rem;
}

footer a {
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.8;
}

/* Secciones con imágenes SVG */
.svg-section {
    margin: 2rem 0;
}

.svg-section img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.bg-light .svg-section h2,
.bg-light .svg-section .h1,
.bg-light .svg-section .lead {
    color: #333;
}

.testimonial-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.stars-rating {
    height: 30px;
    width: auto;
}

/* Sección de Preguntas Frecuentes */
.accordion {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.accordion-item {
    border: none;
    border-bottom: 1px solid #e3e6f0;
}

.accordion-button {
    font-weight: 600;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #e3e6f0;
}

.accordion-body {
    padding: 1.5rem;
    background-color: #fff;
}

/* Llamada a la acción */
.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
}

.bg-primary h2,
.bg-primary p,
.bg-primary .lead {
    color: #fff;
}

/* Alternar fondos de secciones para mejor UX */
.bg-light-subtle {
    background-color: #f8f9fc;
}

/* Espaciado entre secciones */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Para móviles y tablets */
@media (max-width: 991.98px) {
    .hero-banner {
        padding: 3rem 0;
    }

    .hero-banner h1 {
        font-size: 2rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: scale(1) translateY(-10px);
    }

    .h1 {
        font-size: 2rem;
    }

    footer .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Estilos para visualización responsiva de SVG */
@media (max-width: 767.98px) {
    .feature-card .feature-icon .feature-img {
        max-width: 80px;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-6 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    h1,
    .h1 {
        font-size: 1.8rem;
    }

    footer .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Estilos para TinyMCE editor */
.tox-tinymce {
    border-radius: 0.375rem;
    border-color: #ced4da !important;
}

.tox-tinymce:focus-within {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.tox-statusbar {
    border-top: 1px solid #ced4da !important;
}

.tox-toolbar__group {
    border-right: 1px solid #ced4da !important;
}

/* Estilos para el contenido dentro de TinyMCE */
.mce-content-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    padding: 10px;
}

.mce-content-body p {
    margin-bottom: 1rem;
}

.mce-content-body h1,
.mce-content-body h2,
.mce-content-body h3,
.mce-content-body h4,
.mce-content-body h5,
.mce-content-body h6 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.mce-content-body table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}

.mce-content-body table th,
.mce-content-body table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.mce-content-body table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #f8f9fa;
}

/* Estilos para vista previa del correo */
.preview-content {
    padding: 1rem;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #fff;
}

/* Estilos para alertas permanentes */
.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    border-left-width: 5px;
    /* Borde izquierdo más ancho */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Sombra suave */
    padding-right: 3rem;
    /* Espacio para el botón de cerrar */
}

.alert-content {
    padding: 0.25rem 0.5rem;
    margin-left: 1.5rem;
    /* Espacio para el ícono */
}

.alert .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert .btn-close:hover {
    opacity: 1;
}

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    border-left-color: #198754;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    border-left-color: #dc3545;
    color: #842029;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    border-left-color: #ffc107;
    color: #664d03;
}

.alert-info {
    background-color: #cff4fc;
    border-color: #b6effb;
    border-left-color: #0dcaf0;
    color: #055160;
}

/* Agregar ícono a las alertas */
.alert-success::before,
.alert-danger::before,
.alert-warning::before,
.alert-info::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
}

.alert-success::before {
    content: "\f058";
    /* Icono de check-circle */
}

.alert-danger::before {
    content: "\f057";
    /* Icono de times-circle */
}

.alert-warning::before {
    content: "\f071";
    /* Icono de exclamation-triangle */
}

.alert-info::before {
    content: "\f05a";
    /* Icono de info-circle */
}

/* Nuevas tarjetas de estadísticas modernas para el dashboard */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    border: none;
    height: 280px;
    display: flex;
    flex-direction: column;
}

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

.stats-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-card-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stats-card-warning {
    background: linear-gradient(135deg, #ac7911 0%, #b8860b 25%, #daa520 75%, #ffd700 100%);
}

.stats-card-info {
    background: linear-gradient(145deg, #1a8cf1 0%, #04d9fe 100%);
}


.stats-card-body {
    padding: 2rem;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
    z-index: 1;
}

/* Icono de fondo adicional para la caja de emails disponibles */
.stats-background-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
    z-index: 0;
    pointer-events: none;
}

.stats-content {
    color: white;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Número más grande para la caja de emails disponibles - REMOVIDO para igualar tamaños */

.stats-label {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 500;
}

.stats-card-footer {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos de barras de progreso eliminados */

.stats-card-footer .btn {
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.stats-card-footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.stats-card-footer .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

.stats-card-footer .btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
}

.stats-card-footer .btn-light:hover {
    background: white;
    color: #333;
    transform: translateY(-1px);
}

.stats-card-footer .btn-group {
    gap: 0.5rem;
}

.stats-card-footer .btn-group .btn {
    flex: 1;
}

/* Botones vistosos con efectos de brillo */
.btn-glow {
    position: relative;
    overflow: hidden;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

/* Botón dorado para suscripción */
.btn-warning.btn-glow {
    background: linear-gradient(45deg, #ffd700, #ffb347);
    border: none;
    color: #705000;
    font-weight: 800;
}

.btn-warning.btn-glow:hover {
    background: linear-gradient(45deg, #ffb347, #ffd700);
    color: #705000;
}

/* Botón verde para comprar emails */
.btn-success.btn-glow {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    font-weight: 800;
}

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

/* Botón azul llamativo para comprar emails */
.btn-primary.btn-glow {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    color: white;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary.btn-glow:hover {
    background: linear-gradient(45deg, #0056b3, #007bff);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Botón moderno principal con efecto pulso */
.btn-modern {
    position: relative;
    overflow: hidden;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
    background: linear-gradient(45deg, #0056b3, #007bff);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

/* Efecto pulso animado */
.btn-pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    }

    50% {
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6), 0 0 0 10px rgba(0, 123, 255, 0.1);
    }

    100% {
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    }
}

.btn-pulse:hover {
    animation: none;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
}

/* Botón moderno para header de tabla */
.modern-card-header .btn-modern {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.modern-card-header .btn-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Tabla moderna */
.modern-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: none;
    margin-bottom: 2rem;
}

.modern-card-header {
    background: linear-gradient(135deg, #0a58ca 0%, #0d6efd 100%) !important;
    color: white;
    padding: 0.7rem 2rem;
    border: none;
}

.modern-card-header .header-content h5 {
    color: white;
    font-weight: 700;
    margin: 0;
}

.modern-card-body {
    padding: 0;
}

.modern-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table thead th {
    background: #00458f;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    border: none;
    border-bottom: 2px solid #34495e;
}

.modern-table thead th i {
    color: #ecf0f1;
    font-size: 0.8rem;
}

.table-row {
    transition: all 0.3s ease;
    border: none;
    background: #ffffff;
}

.table-row:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Filas clickeables */
.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.table-row:nth-child(even) {
    background: #f8f9fa;
}

.table-row:nth-child(even):hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.table-row td {
    padding: 0.75rem 1.5rem;
    border: none;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    color: #2c3e50;
}

/* Avatar circular */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Todos los avatares tienen el mismo estilo */

.recipient-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.subject-text {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badges de estado modernos */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.status-badge i {
    font-size: 0.6rem;
    margin-right: 0.5rem;
    color: #ffffff;
}

/* Colores específicos para badges con mejor contraste */
.status-badge.bg-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: #ffffff !important;
}

.status-badge.bg-primary {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: #ffffff !important;
}

.status-badge.bg-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    color: #ffffff !important;
}

.status-badge.bg-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: #ffffff !important;
}

.status-badge.bg-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
    color: #ffffff !important;
}

/* Información de fecha */
.date-info {
    text-align: center;
}

.date-text {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Botones de acción modernos */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.view-btn:hover {
    background: linear-gradient(135deg, #138496, #17a2b8);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

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

.download-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.expertise-btn {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
    position: relative;
}

.expertise-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #5a32a3, #6f42c1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.expertise-btn.disabled {
    background: #6c757d;
    opacity: 0.6;
    cursor: not-allowed;
}

.expertise-check {
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 0.6rem;
    color: #28a745;
    background: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.report-btn:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Efectos de partículas decorativas */
.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 20s linear infinite;
    z-index: 0;
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Ajustes para pantallas de portátil de 14" (1366px) */
@media (min-width: 1200px) and (max-width: 1400px) {

    /* Solo aplicar altura reducida a las cajas de facturación financiera */
    .row.mb-4 .stats-card {
        height: 140px;
        margin-bottom: 1rem;
    }

    .row.mb-4 .stats-card-body {
        padding: 1rem;
    }

    .row.mb-4 .stats-number {
        font-size: 1.8rem;
    }

    .row.mb-4 .stats-label {
        font-size: 0.8rem;
    }

    .row.mb-4 .stats-subtitle {
        font-size: 0.7rem;
    }

    .row.mb-4 .stats-net-amount {
        font-size: 0.65em !important;
    }

    .row.mb-4 .stats-icon {
        font-size: 2rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    /* Asegurar que las 5 cajas de facturación entren en una línea */
    .row.mb-4 .col-lg {
        flex: 0 0 20%;
        max-width: 20%;
    }

    /* Mantener altura normal para las cajas de recuento de emails */
    .row.mb-5 .stats-card {
        height: 280px;
        /* Altura normal para mostrar botones */
    }

    .row.mb-5 .stats-card-body {
        padding: 2rem;
        /* Padding normal */
    }

    .row.mb-5 .stats-number {
        font-size: 2.5rem;
        /* Tamaño normal */
    }

    .row.mb-5 .stats-label {
        font-size: 0.9rem;
        /* Tamaño normal */
    }

    .row.mb-5 .stats-subtitle {
        font-size: 0.8rem;
        /* Tamaño normal */
    }

    .row.mb-5 .stats-icon {
        font-size: 3rem;
        /* Tamaño normal */
        top: 1.5rem;
        right: 1.5rem;
    }

    /* Asegurar que las 4 cajas de emails entren en una línea */
    .row.mb-5 .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .stats-card {
        height: 260px;
    }

    .stats-number {
        font-size: 25px;
    }

    /* .stats-card-info .stats-number - REMOVIDO para igualar tamaños */

    .stats-icon {
        font-size: 2rem;
    }

    .stats-card-body {
        padding: 1.5rem;
    }

    .stats-card-footer {
        padding: 0.8rem 1.5rem;
    }

    /* Mobile buttons inside cards - smaller text */
    .stats-card-footer .btn-sm {
        font-size: 0.65rem !important;
        padding: 0.4rem 0.5rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .stats-card-footer .btn-sm i {
        font-size: 0.6rem !important;
        margin-right: 0.3rem !important;
    }

    /* Ensure buttons fit in one line within cards */
    .stats-card-footer {
        display: flex;
        gap: 0.4rem;
        flex-wrap: nowrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .stats-card {
        height: 240px;
    }

    .stats-card-footer .btn-group {
        flex-direction: column;
    }

    .stats-card-footer .btn-group .btn {
        margin-bottom: 0.5rem;
    }

    .btn-glow {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .btn-modern {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }

    .modern-card-header {
        padding: 1rem 1.5rem;
    }

    .modern-table thead th {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .table-row td {
        padding: 0.6rem 1rem;
    }

    .avatar-circle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Colores personalizados para proveedores de email */
.text-yahoo {
    color: #7c3aed !important;
    /* Púrpura de Yahoo */
}

.text-gmail {
    color: #ea4335 !important;
    /* Rojo de Gmail */
}

.text-outlook {
    color: #0078d4 !important;
    /* Azul de Microsoft */
}

.text-apple {
    color: #000000 !important;
    /* Negro de Apple */
}

.text-protonmail {
    color: #8b5cf6 !important;
    /* Púrpura de ProtonMail */
}

.text-aol {
    color: #00a86b !important;
    /* Verde de AOL */
}

/* Estilos minimalistas para badges de estado */
.status-minimal {
    padding: 0.4em 0.8em;
    border-radius: 1rem;
    /* Redondeo más pronunciado para look minimalista */
    font-size: 0.75em;
    /* Tamaño de fuente más pequeño */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1.5px solid;
    /* Borde un poco más grueso */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    backdrop-filter: blur(10px);
    /* Efecto de cristal minimalista */
}

.status-minimal i {
    font-size: 0.6em;
    /* Icono más pequeño */
    margin-right: 0.4em;
}

/* Colores minimalistas - cada estado con color único */
.status-minimal.status-read {
    color: #10b981;
    /* Verde esmeralda */
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.status-minimal.status-sent {
    color: #3b82f6;
    /* Azul */
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.status-minimal.status-delivered {
    color: #8b5cf6;
    /* Púrpura */
    border-color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.1);
}

.status-minimal.status-pending {
    color: #f59e0b;
    /* Ámbar */
    border-color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.1);
}

.status-minimal.status-failed {
    color: #ef4444;
    /* Rojo */
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.status-minimal.status-unknown {
    color: #6b7280;
    /* Gris */
    border-color: #6b7280;
    background-color: rgba(107, 114, 128, 0.1);
}

.status-minimal:hover {
    opacity: 0.8;
}

/* Estilos para planes de suscripción con colores temáticos - Mayor especificidad */
.stats-card.stats-card-plan-free {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%) !important;
}

.stats-card.stats-card-plan-bronze {
    background: linear-gradient(135deg, #c27d39 0%, #efad0a 100%) !important;
}

.stats-card.stats-card-plan-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e5e7eb 100%) !important;
}

.stats-card.stats-card-plan-gold {
    background: linear-gradient(135deg, #d18d02 0%, #fbd111 100%) !important
}

.stats-card.stats-card-plan-diamond {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Iconos específicos para cada plan - Mayor especificidad */
.stats-card.stats-card-plan-free .stats-icon {
    color: rgba(255, 255, 255, 0.3) !important;
}

.stats-card.stats-card-plan-bronze .stats-icon {
    color: rgba(255, 255, 255, 0.3) !important;
}

.stats-card.stats-card-plan-silver .stats-icon {
    color: rgba(0, 0, 0, 0.3) !important;
}

.stats-card.stats-card-plan-gold .stats-icon {
    color: rgba(255, 255, 255, 0.3) !important;
}

.stats-card.stats-card-plan-diamond .stats-icon {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Texto específico para cada plan - Mayor especificidad */
.stats-card.stats-card-plan-free .stats-content {
    color: white !important;
}

.stats-card.stats-card-plan-bronze .stats-content {
    color: white !important;
}

.stats-card.stats-card-plan-silver .stats-content {
    color: #1f2937 !important;
}

.stats-card.stats-card-plan-gold .stats-content {
    color: #fefefe !important;
}

.stats-card.stats-card-plan-diamond .stats-content {
    color: #ffffff !important;
}

/* Botones específicos para cada plan - Mayor especificidad */
.stats-card.stats-card-plan-free .btn-glow {
    background: linear-gradient(45deg, #6a53f9, #307cff) !important;
    color: white !important;
    border: none !important;
    animation: button-shimmer 5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo plateado que se mueve de izquierda a derecha */
.stats-card.stats-card-plan-free .btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: silver-shimmer 5s ease-in-out infinite;
}

/* Brillo pulsante solo al hacer hover */
.stats-card.stats-card-plan-free .btn-glow:hover {
    animation: auto-glow 1s ease-in-out infinite, button-shimmer 5s ease-in-out infinite;
}

@keyframes auto-glow {
    0% {
        box-shadow: 0 4px 15px rgba(106, 83, 249, 0.3);
        transform: translateY(0);
    }

    50% {
        box-shadow: 0 8px 25px rgba(106, 83, 249, 0.6), 0 0 0 10px rgba(106, 83, 249, 0.1);
        transform: translateY(-2px);
    }

    100% {
        box-shadow: 0 4px 15px rgba(106, 83, 249, 0.3);
        transform: translateY(0);
    }
}

/* Efecto shimmer en el botón cada 5 segundos */
@keyframes button-shimmer {
    0% {
        box-shadow: 0 4px 15px rgba(106, 83, 249, 0.3);
    }

    2% {
        box-shadow: 0 8px 25px rgba(106, 83, 249, 0.7), 0 0 0 8px rgba(106, 83, 249, 0.2);
    }

    4% {
        box-shadow: 0 4px 15px rgba(106, 83, 249, 0.3);
    }

    100% {
        box-shadow: 0 4px 15px rgba(106, 83, 249, 0.3);
    }
}

/* Animación del brillo plateado que se mueve de izquierda a derecha */
@keyframes silver-shimmer {
    0% {
        left: -100%;
    }

    10% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}


.stats-card.stats-card-plan-bronze .btn-glow {
    background: linear-gradient(45deg, #cd7f32, #b8860b) !important;
    color: white !important;
    border: none !important;
}

.stats-card.stats-card-plan-silver .btn-glow {
    background: linear-gradient(45deg, #c0c0c0, #e5e7eb) !important;
    color: #1f2937 !important;
    border: none !important;
}

.stats-card.stats-card-plan-gold .btn-glow {
    background: linear-gradient(45deg, #eb8400, #aa3400) !important;
    color: #ffffff !important;
    border: none !important;
}

.stats-card.stats-card-plan-diamond .btn-glow {
    background: linear-gradient(45deg, #6a53f9, #307cff) !important;
    color: white !important;
    border: none !important;
}

/* Animación de sobres voladores para idioma árabe (RTL) */
html[dir="rtl"] .envelope {
    animation: flyingEnvelopeRTL 15s linear infinite;
}

html[dir="rtl"] .envelope:nth-child(1) {
    top: 20%;
    right: -60px;
    left: auto;
    animation-delay: 0s;
}

html[dir="rtl"] .envelope:nth-child(2) {
    top: 40%;
    right: -60px;
    left: auto;
    animation-delay: 3s;
}

html[dir="rtl"] .envelope:nth-child(3) {
    top: 60%;
    right: -60px;
    left: auto;
    animation-delay: 6s;
}

html[dir="rtl"] .envelope:nth-child(4) {
    top: 30%;
    right: -60px;
    left: auto;
    animation-delay: 9s;
}

html[dir="rtl"] .envelope:nth-child(5) {
    top: 70%;
    right: -60px;
    left: auto;
    animation-delay: 12s;
}

/* Animación RTL para sobres voladores - movimiento de derecha a izquierda */
@keyframes flyingEnvelopeRTL {
    0% {
        transform: translateX(60px) rotate(0deg) translateY(0) translateZ(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
        transform: translateX(calc(-10vw)) rotate(-5deg) translateY(-10px) translateZ(20px);
    }

    40% {
        opacity: 0.1;
        transform: translateX(calc(-40vw)) rotate(-160deg) translateY(10px) translateZ(-20px);
    }

    50% {
        opacity: 0.1;
        transform: translateX(calc(-50vw)) rotate(-180deg) translateY(10px) translateZ(-20px);
    }

    60% {
        opacity: 0.1;
        transform: translateX(calc(-60vw)) rotate(-200deg) translateY(10px) translateZ(-20px);
    }

    90% {
        opacity: 0.3;
        transform: translateX(calc(-90vw)) rotate(-355deg) translateY(-15px) translateZ(20px);
    }

    100% {
        transform: translateX(calc(-100vw - 60px)) rotate(-360deg) translateY(0) translateZ(0);
        opacity: 0;
    }
}

/* Estilo para validación de checkbox de confirmación */
.border-danger-validation {
    border: 2px solid #dc3545 !important;
    transition: border-color 0.3s ease;
}