/**
 * 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: 1rem;
    font-weight: 480;
    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: #1c3b6d;
}

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: #475569;
    padding: 4rem 0;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    background: transparent !important;
    /* Override any existing blue background */
}

.hero-bg-1,
.hero-bg-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-1 {
    background-image: radial-gradient(at 40% 20%, hsla(250, 100%, 94%, 1) 0px, transparent 50%), radial-gradient(at 80% 0%, hsla(189, 100%, 96%, 1) 0px, transparent 50%), radial-gradient(at 0% 50%, hsla(341, 100%, 96%, 1) 0px, transparent 50%);
}

.hero-bg-2 {
    background-size: 60px 60px;
    background-image: linear-gradient(to right, rgba(99, 102, 241, 0.11) 1px, transparent 1px), linear-gradient(to bottom, rgba(99, 102, 241, 0.11) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

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

.hero-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0f172a;
    /* Blue for heading */
}

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

/* 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:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="search"]:hover,
textarea:hover {
    cursor: text !important;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea {
    caret-color: #000000 !important;
}

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

.btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-outline-primary {
    color: #4f46e5;
    border-color: #e2e8f0;
    background-color: transparent;
    font-weight: 500;
}

.btn-outline-primary:hover {
    color: #4338ca;
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

/* 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;
}

.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;
}

/* Tabla bonita para blog */
.mce-content-body table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #e3e6f0;
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.mce-content-body table th {
    background-color: #f8f9fc;
    color: #4e73df;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #e3e6f0;
    border-right: 1px solid #e3e6f0;
    text-align: left;
}

.mce-content-body table th:last-child {
    border-right: none;
}

.mce-content-body table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    color: #5a5c69;
    font-size: 0.95rem;
    border-bottom: 1px solid #e3e6f0;
    border-right: 1px solid #e3e6f0;
    line-height: 1.5;
}

.mce-content-body table td:last-child {
    border-right: none;
}

.mce-content-body table tr:last-child td {
    border-bottom: none;
}

.mce-content-body table tr:nth-child(even) {
    background-color: #f8f9fc;
}

.mce-content-body table tr:hover {
    background-color: #f1f3f9;
    transition: background-color 0.2s ease;
}

/* Mejora para celdas con negrita o énfasis */
.mce-content-body table td strong {
    color: #2e59d9;
    font-weight: 700;
}

/* 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;
}

/* Modern Service Status Alerts with Candle Flame Effect */
@keyframes candle-flicker {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 0 15px -2px var(--flicker-color);
    }

    33% {
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08), 0 0 25px 4px var(--flicker-color);
    }

    66% {
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04), 0 0 12px -2px var(--flicker-color);
    }
}

.service-alert-modern {
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    border-left: 6px solid transparent;
    /* Fixed width to prevent displacement */
    animation: candle-flicker 2s infinite ease-in-out;
}

.service-alert-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-alert-modern.alert-outage {
    background: linear-gradient(135deg, #fff5f5 0%, #fff1f1 100%);
    border-left-color: #dc3545;
    --flicker-color: rgba(220, 53, 69, 0.4);
}

.service-alert-modern.alert-degraded {
    background: linear-gradient(135deg, #fffcf0 0%, #fff9e6 100%);
    border-left-color: #ffc107;
    --flicker-color: rgba(255, 193, 7, 0.5);
}

.service-alert-modern.alert-maintenance {
    background: linear-gradient(135deg, #f0faff 0%, #e6f7ff 100%);
    border-left-color: #0dcaf0;
    --flicker-color: rgba(13, 202, 240, 0.4);
}

.service-alert-modern .alert-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    font-size: 1.5rem;
}

.alert-outage .alert-icon-container {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.alert-degraded .alert-icon-container {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.alert-maintenance .alert-icon-container {
    background: rgba(13, 202, 240, 0.1);
    color: #055160;
}

.service-alert-modern .alert-content-wrapper {
    flex: 1;
}

.service-alert-modern .alert-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.service-alert-modern .alert-message {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #555;
    opacity: 0.9;
}

.service-alert-modern .alert-actions {
    display: flex;
    gap: 0.75rem;
}

.service-alert-modern .btn-modern-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes live-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.live-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.live-indicator::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: live-pulse 2s infinite;
}

.status-outage-dot {
    background-color: #dc3545;
}

.status-degraded-dot {
    background-color: #ffc107;
}

.status-maintenance-dot {
    background-color: #0dcaf0;
}

/* 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-danger {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}


.stats-card-body {
    padding: 1.25rem;
    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: 1.6rem;
    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.8rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-subtitle {
    font-size: 0.7rem;
    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 - Estilo más minimalista */
.btn-modern {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    /* Menos redondeado para un look más moderno/minimalista */
    padding: 0.6rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    background: #4f46e5;
    /* Color sólido indigo */
    color: white;
    border: none;
}

.btn-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    background: #4338ca;
    color: white;
}

.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 - Ajustado para fondo blanco */
.modern-card-header .btn-modern {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    backdrop-filter: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modern-card-header .btn-modern:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Tabla moderna */
.modern-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    margin-bottom: 2rem;
}

.modern-card-header {
    background: #ffffff !important;
    color: #475569;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.modern-card-header h1,
.modern-card-header h2,
.modern-card-header h3,
.modern-card-header h4,
.modern-card-header h5,
.modern-card-header h6 {
    color: #475569 !important;
    font-weight: 600;
    margin: 0;
}

.modern-card-body {
    padding: 25px;
}

.modern-card .card-body {
    padding: 25px;
}

.modern-card-footer {
    background: #f8fafc !important;
    padding: 1.5rem 2rem;
    border-top: 1px solid #f1f5f9;
}

.modern-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #edf2f7;
}

.modern-table thead th:first-child {
    border-top-left-radius: 12px;
}

.modern-table thead th:last-child {
    border-top-right-radius: 12px;
}

.modern-table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.modern-table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.modern-table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 1px solid #edf2f7;
}

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

.modern-table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.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 0.75rem;
    border: none;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    color: #2c3e50;
    font-size: 0.85rem;
}

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

.avatar-circle-sm {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    font-size: 0.75rem !important;
}

.avatar-circle-md {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    font-size: 0.85rem !important;
}

.avatar-circle-lg {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    font-size: 2rem !important;
}

/* Todos los avatares tienen el mismo estilo */

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

.subject-text {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.85rem;
    max-width: 292px;
    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 - Premium Refinement */
.status-minimal {
    padding: 0.2rem 0.6rem;
    border-radius: 50rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.status-minimal i {
    font-size: 0.75em;
    margin-right: 0.4em;
}

.status-minimal.status-read {
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.3);
    background-color: rgba(16, 185, 129, 0.15);
}

.status-minimal.status-sent {
    color: #1e40af;
    border-color: rgba(59, 130, 246, 0.3);
    background-color: rgba(59, 130, 246, 0.15);
}

.status-minimal.status-delivered {
    color: #3730a3;
    border-color: rgba(139, 92, 246, 0.3);
    background-color: rgba(139, 92, 246, 0.15);
}

.status-minimal.status-pending {
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.3);
    background-color: rgba(245, 158, 11, 0.15);
}

.status-minimal.status-failed {
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.3);
    background-color: rgba(239, 68, 68, 0.15);
}

.status-minimal.status-deferred {
    color: #9a3412;
    border-color: rgba(249, 115, 22, 0.3);
    background-color: rgba(249, 115, 22, 0.15);
}

.status-minimal.status-unknown {
    color: #374151;
    border-color: rgba(107, 114, 128, 0.2);
    background-color: rgba(107, 114, 128, 0.1);
}

.status-minimal:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* 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;
}

/* Ocultar footer en modo PWA (standalone) */

/* Ocultar footer en modo PWA (standalone) */
@media all and (display-mode: standalone) {

    footer,
    .footer,
    #footer {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Regla de respaldo para navegadores que no soportan display-mode pero sí launch params específicos */
@media (display-mode: browser) {
    /* Normal behaviour */
}

/* Modern Status Pill - Premium Refinement */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.9rem;
    border-radius: 50rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.status-pill:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    position: relative;
}

/* Sophisticated Pulse Animation */
@keyframes status-pulse-ring {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    20% {
        opacity: 0.4;
    }

    80% {
        opacity: 0.1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    animation: status-pulse-ring 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background-color: inherit;
    z-index: -1;
}

/* Status variants with vibrant palettes */
.status-pill.status-read {
    background-color: rgba(16, 185, 129, 0.15);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.08);
}

.status-pill.status-read .status-dot {
    background-color: #10b981;
}

.status-pill.status-sent {
    background-color: rgba(59, 130, 246, 0.15);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.08);
}

.status-pill.status-sent .status-dot {
    background-color: #3b82f6;
}

.status-pill.status-delivered {
    background-color: rgba(99, 102, 241, 0.15);
    color: #3730a3;
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.08);
}

.status-pill.status-delivered .status-dot {
    background-color: #6366f1;
}

.status-pill.status-failed {
    background-color: rgba(239, 68, 68, 0.15);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.08);
}

.status-pill.status-failed .status-dot {
    background-color: #ef4444;
}

.status-pill.status-deferred {
    background-color: rgba(249, 115, 22, 0.15);
    color: #9a3412;
    border: 1px solid rgba(249, 115, 22, 0.25);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.08);
}

.status-pill.status-deferred .status-dot {
    background-color: #f97316;
}

.status-pill.status-pending {
    background-color: rgba(245, 158, 11, 0.15);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.08);
}

.status-pill.status-pending .status-dot {
    background-color: #f59e0b;
}

.status-pill.status-unknown {
    background-color: rgba(107, 114, 128, 0.12);
    color: #374151;
    border: 1px solid rgba(107, 114, 128, 0.2);
    box-shadow: 0 0 15px rgba(107, 114, 128, 0.05);
}

.status-pill.status-unknown .status-dot {
    background-color: #6b7280;
}

/* Modern CTA Button */
.btn-cta-modern {
    background: linear-gradient(135deg, #0057b5 0%, #004ba0 100%);
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0, 87, 181, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-cta-modern:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 87, 181, 0.4);
    color: white !important;
}

.btn-cta-modern:hover::before {
    opacity: 1;
}

.btn-cta-modern:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px rgba(0, 87, 181, 0.3);
}

.btn-cta-modern i {
    margin-right: 10px;
    font-size: 1.1em;
}

/* Gradient text for Email Certificado */
.text-gradient-special {
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    filter: drop-shadow(0 0 2px rgba(99, 102, 241, 0.2));
}

/* Estilos para Modales Modernos (Peritaje) */
.modal-modern .modal-content {
    border: none;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-modern .modal-header {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    padding: 1.5rem 2rem;
    border: none;
}

.modal-modern .modal-title {
    color: white !important;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.modal-modern .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.2s;
}

.modal-modern .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-modern .modal-body {
    padding: 2rem;
}

.expertise-banner {
    background: #f8fafc;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.expertise-banner-icon {
    width: 110px;
    height: 110px;
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 2px;
    overflow: hidden;
}

.expertise-banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-tile {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.2s;
}

.feature-tile:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1);
}

.feature-tile-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eef2ff;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.feature-tile-content {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.4;
}

.feature-tile-highlight {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.feature-tile-highlight .feature-tile-icon {
    background: #e0f2fe;
    color: #0ea5e9;
}

.price-section {
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-info {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.price-value-container {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.price-original {
    font-size: 1.1rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.price-discounted {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
}

.price-discounted span {
    font-size: 0.9rem;
    font-weight: 600;
}

.save-badge {
    background: #dcfce7;
    color: #166534;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-modern .modal-footer {
    padding: 0 2rem 2rem;
    border: none;
    display: flex;
    gap: 1rem;
}

.modal-modern .modal-footer .btn {
    flex: 1;
    margin: 0;
}

@media (max-width: 576px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .price-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .expertise-banner {
        flex-direction: column;
        text-align: center;
    }
}