:root {
    --focus-color: #0d6efd;
}

/* Accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Utilities */
.text-muted {
    color: #495057 !important;
}

.bg-accent {
    background: #0d6efd;
}

.bg-accent-light {
    background: #0f7bff;
}

.text-accent {
    color: #0d6efd;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #25D366;
    color: #fff;
    padding: .7rem 1rem;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    text-decoration: none;
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    color: #fff;
}

.whatsapp-float i {
    font-size: 1.25rem;
}

/* UI Enhancements */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
header.bg-accent h1 {
    letter-spacing: -0.02em;
}

/* Cards Hover Effect */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

/* Mejoras para Mis Publicaciones */
.card-publication {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.card-publication.pagado {
    border-left-color: #28a745;
}

.card-publication.pendiente {
    border-left-color: #ffc107;
}

.card-publication.rechazado {
    border-left-color: #dc3545;
}

.card-publication:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.btn-pay-now {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-pay-now:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    color: white;
}

/* Botones de acción mejorados */
.gap-2 {
    gap: 0.5rem !important;
}

/* Modal PDF Preview */
.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.ratio-16x9 {
    --bs-aspect-ratio: 56.25%;
    overflow: hidden;
}

.ratio-16x9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Ribbons de Estado */
.ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ribbon::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.ribbon-success {
    background: #28a745;
}

.ribbon-success::after {
    border-top: 5px solid #1e7e34;
}

.ribbon-info {
    background: #17a2b8;
}

.ribbon-info::after {
    border-top: 5px solid #117a8b;
}

.ribbon-warning {
    background: #ffc107;
    color: #000;
}

.ribbon-warning::after {
    border-top: 5px solid #d39e00;
}