/* Variables CSS dinámicas */
:root {
    --primary-color: #28a745;
    --primary-color-rgb: 40, 167, 69;
    --secondary-color: #6c757d;
    --secondary-color-rgb: 108, 117, 125;
    --success-color: #28a745;
    --success-color-rgb: 40, 167, 69;
    --info-color: #17a2b8;
    --info-color-rgb: 23, 162, 184;
    --warning-color: #ffc107;
    --warning-color-rgb: 255, 193, 7;
    --danger-color: #dc3545;
    --danger-color-rgb: 220, 53, 69;
    --light-color: #f8f9fa;
    --light-color-rgb: 248, 249, 250;
    --dark-color: #343a40;
    --dark-color-rgb: 52, 58, 64;
    --white-color: #ffffff;
    --white-color-rgb: 255, 255, 255;
    --black-color: #000000;
    --black-color-rgb: 0, 0, 0;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --border-radius: 0.375rem;
    --border-radius-sm: 0.25rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-sm: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --box-shadow-xl: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --transition: all 0.15s ease-in-out;
    --transition-fast: all 0.075s ease-in-out;
    --transition-slow: all 0.3s ease-in-out;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.25rem;
    --line-height-base: 1.5;
    --line-height-sm: 1.25;
    --line-height-lg: 2;
}

/* Reset y estilos base */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-sans-serif);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--dark-color);
    background-color: var(--white-color);
    margin: 0;
    padding: 0;
}

/* Botones */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: rgba(var(--primary-color-rgb), 0.9);
    border-color: rgba(var(--primary-color-rgb), 0.9);
    color: var(--white-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

/* Texto y fondos con colores del tema */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Gradientes con el color del tema */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(var(--primary-color-rgb), 0.8) 100%) !important;
}

/* Resto del CSS original... */
/* Estilos principales para Cantarte.org */

/* Variables CSS */


/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* Navegación */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding-left: 30px;
    padding-right: 30px;
}

/* Override container max-width for navbar - Global fix */
.navbar .container {
    max-width: 100% !important;
    width: 100% !important;
}

/* Ensure navbar container uses Bootstrap's default container behavior */
.navbar .container {
    padding-right: 50px;
    padding-left: 50px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .navbar .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .navbar .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .navbar .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .navbar .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .navbar .container {
        max-width: 1320px;
    }
}

/* Global container fixes to prevent print media conflicts */
.container {
    min-width: auto !important;
    max-width: 100% !important;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px !important;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px !important;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px !important;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px !important;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px !important;
    }
}

/* Ensure body doesn't have min-width restrictions */
body {
    min-width: auto !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Main content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-title {
    font-weight: 600;
    color: var(--dark-color);
}

.card-text {
    color: var(--secondary-color);
}

/* Botones */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-width: 1px !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Asegurar que todos los botones tengan borde de 1px */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark {
    border-width: 1px !important;
}

.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark {
    border-width: 1px !important;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.form-control-lg {
    border-radius: 10px;
    padding: 12px 16px;
}

.form-select {
    border-radius: 8px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: .3125em .5em;
    font-size: 75%;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .3125rem;
    transition: all .2s ease-in-out;
}

@media (prefers-reduced-motion:reduce) {
    .badge {
        transition: none;
    }
}

a.badge:focus,a.badge:hover {
    text-decoration: none;
}

.badge:empty {
    display: inline-block !important;
}

/* SOLUCIÓN PARA CATEGORÍAS - Asegurar que siempre se muestren */
.categoria-badge,
.d-flex.flex-wrap .badge {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn .badge {
    position: relative;
    top: -1px;
}

.badge-pill {
    padding-right: .6em;
    padding-left: .6em;
    border-radius: 10rem;
}

.badge-primary {
    color: #fff;
    background-color: #377dff;
}

a.badge-primary:focus,a.badge-primary:hover {
    color: #fff;
    background-color: #045cff;
}

a.badge-primary.focus,a.badge-primary:focus {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(55,125,255,.5);
}

.badge-secondary {
    color: #fff;
    background-color: #71869d;
}

a.badge-secondary:focus,a.badge-secondary:hover {
    color: #fff;
    background-color: #596d82;
}

a.badge-secondary.focus,a.badge-secondary:focus {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(113,134,157,.5);
}

.badge-success {
    color: #fff;
    background-color: #00c9a7;
}

a.badge-success:focus,a.badge-success:hover {
    color: #fff;
    background-color: #00967d;
}

a.badge-success.focus,a.badge-success:focus {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0,201,167,.5);
}

.badge-info {
    color: #fff;
    background-color: #00c9db;
}

a.badge-info:focus,a.badge-info:hover {
    color: #fff;
    background-color: #009aa8;
}

a.badge-info.focus,a.badge-info:focus {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0,201,219,.5);
}

.badge-warning {
    color: #1e2022;
    background-color: #f5ca99;
}

a.badge-warning:focus,a.badge-warning:hover {
    color: #1e2022;
    background-color: #f0b26b;
}

a.badge-warning.focus,a.badge-warning:focus {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(245,202,153,.5);
}

.badge-danger {
    color: #fff;
    background-color: #ed4c78;
}

a.badge-danger:focus,a.badge-danger:hover {
    color: #fff;
    background-color: #e81e55;
}

a.badge-danger.focus,a.badge-danger:focus {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(237,76,120,.5);
}

.badge-light {
    color: #1e2022;
    background-color: #f9fafc;
}

a.badge-light:focus,a.badge-light:hover {
    color: #1e2022;
    background-color: #d7deeb;
}

a.badge-light.focus,a.badge-light:focus {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(249,250,252,.5);
}

.badge-dark {
    color: #fff;
    background-color: #132144;
}

a.badge-dark:focus,a.badge-dark:hover {
    color: #fff;
    background-color: #080e1c;
}

a.badge-dark.focus,a.badge-dark:focus {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(19,33,68,.5);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
    padding: 9rem 0;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 5.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3.5rem 0;
    }
}

.hero-section::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="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-stats .stat-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.hero-stats .stat-item h3 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Category cards */
.category-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Page header */
.page-header {
    border-bottom: .0625rem solid #e7eaf3;
    padding-bottom: 1.75rem;
    margin-bottom: 2.25rem;
}

/* Avatar styles for cards */
.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group-sm {
    gap: -0.5rem;
}

.avatar-circle {
    border-radius: 50%;
}

.avatar {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #e9ecef;
    transition: all 0.3s ease;
    z-index: 1;
}

.avatar:hover {
    transform: scale(1.2);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50%;
}

.z-index-2 {
    z-index: 2;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
}

.category-card .category-icon {
    transition: all 0.3s ease;
}

.category-card .category-icon i {
    transition: all 0.3s ease;
}

.category-card:hover .category-icon i {
    color: var(--primary-color) !important;
}

/* =================================
   NUEVA PRESENTACIÓN DE CATEGORÍAS
   ================================= */

/* Contenedor principal de categorías */
.categories-list-container {
    border-radius: 12px;
    overflow: hidden;
}

/* Columnas de categorías */
.categories-column {
    padding: 1rem;
}

/* Elementos de la lista de categorías */
.category-list-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-list-item:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.category-list-item:last-child {
    margin-bottom: 0;
}

/* Contenido del elemento de categoría */
.category-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Información de la categoría */
.category-info {
    flex: 1;
    min-width: 0; /* Para que el texto se corte correctamente */
}

.category-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.category-list-item:hover .category-name {
    color: var(--primary-color);
}

/* Contador de cantos */
.category-count {
    flex-shrink: 0;
}

.category-count .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.category-list-item:hover .category-count .badge {
    background: var(--primary-color);
    transform: scale(1.05);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .categories-list-container {
        border-radius: 8px;
    }
    
    .categories-column {
        padding: 0.75rem;
    }
    
    .category-list-item {
        padding: 0.75rem;
        margin-bottom: 0.4rem;
    }
    
    .category-item-content {
        gap: 0.75rem;
    }
    
    .category-name {
        font-size: 0.9rem;
    }
    
    .category-count .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .categories-column {
        padding: 0.5rem;
    }
    
    .category-list-item {
        padding: 0.6rem;
        margin-bottom: 0.3rem;
    }
    
    .category-name {
        font-size: 0.85rem;
    }
}

/* Search section */
.search-section .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Popular songs */
.popular-songs .card,
.new-songs .card,
.upcoming-masses .card {
    transition: all 0.3s ease;
}

.popular-songs .card:hover,
.new-songs .card:hover,
.upcoming-masses .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* =================================
   CARD DE CANTO ESTANDARIZADA
   ================================= */

/* Estilos base para todas las cards de canto */
.canto-card {
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #e9ecef;
}

.canto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Contenido de la card */
.canto-card .card-body {
    padding: 1.5rem;
}

/* Título del canto */
.canto-card .canto-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.canto-card:hover .canto-title {
    color: var(--primary-color);
}

/* Categoría del canto */
.canto-card .canto-category {
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.canto-card:hover .canto-category {
    color: var(--primary-color);
}

/* Icono de música */
.canto-card .category-icon {
    transition: all 0.3s ease;
}

.canto-card .category-icon i {
    transition: all 0.3s ease;
}

.canto-card:hover .category-icon i {
    color: var(--primary-color) !important;
}

/* Footer de la card */
.canto-card .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem;
}

/* Estadísticas en el footer */
.canto-card .card-footer .row {
    align-items: center;
}

.canto-card .card-footer small {
    font-weight: 500;
    transition: color 0.3s ease;
}

.canto-card:hover .card-footer small {
    color: var(--primary-color) !important;
}

/* Badges en el footer */
.canto-card .badge {
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Variantes de cards */
.canto-card-compact {
    max-width: 16rem !important;
}

.canto-card-compact .card-body {
    padding: 1rem;
}

.canto-card-compact .canto-title {
    font-size: 1rem;
}

.canto-card-featured {
    background: #ffffff;
    border: 2px solid #e9ecef;
}

.canto-card-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}



/* Estilos especiales para iconos en cantos populares */
.popular-songs .card .category-icon,
.new-songs .card .category-icon {
    transition: all 0.3s ease;
}

.popular-songs .card .category-icon i,
.new-songs .card .category-icon i {
    transition: all 0.3s ease;
}

.popular-songs .card:hover .category-icon i,
.new-songs .card:hover .category-icon i {
    color: var(--primary-color) !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    border-top: 1px solid #495057;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

.social-links a {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-stats .stat-item {
        margin-bottom: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    /* Ajustar padding del navbar en pantallas medianas */
    .navbar {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .navbar .container {
        padding-right: 30px;
        padding-left: 30px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .search-section .row {
        margin: 0;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    /* Reducir padding del navbar en pantallas pequeñas */
    .navbar {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar .container {
        padding-right: 20px;
        padding-left: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}



/* Loading spinner */
.spinner {
    border: 4px solid rgba(var(--primary-color-rgb), 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    .social-links {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* =================================
   HERO SECTION DE CATEGORÍA
   ================================= */

.categoria-hero-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark, #0056b3) 100%) !important;
    border: none !important;
}

.canto-hero-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark, #0056b3) 100%) !important;
    border: none !important;
}

/* =================================
   HEADER DEL PERFIL
   ================================= */

.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark, #0056b3) 100%) !important;
    color: white !important;
    padding: 2rem 0 !important;
    margin-bottom: 2rem !important;
}

.profile-header-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(var(--primary-color-rgb), 0.8) 100%) !important;
}

/* =================================
   PANEL DE ADMINISTRACIÓN
   ================================= */

/* Dashboard Admin */
.admin-dashboard,
.admin-users,
.admin-edit-user,
.admin-cantos,
.admin-categories,
.admin-settings,
.admin-lecturas {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    min-height: 100vh;
}

.admin-dashboard .container-fluid,
.admin-users .container-fluid,
.admin-edit-user .container-fluid,
.admin-cantos .container-fluid,
.admin-categories .container-fluid,
.admin-settings .container-fluid,
.admin-lecturas .container-fluid {
    max-width: 1400px;
}

/* Títulos del admin */
.dashboard-title,
.page-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Cards de estadísticas */
.stats-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
}

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

.stats-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.stats-icon.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.stats-icon.bg-success {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
}

.stats-icon.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
}

.stats-icon.bg-info {
    background: linear-gradient(135deg, var(--info-color), #138496);
}

.stats-content {
    flex: 1;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-label {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-change {
    font-size: 0.875rem;
    color: var(--success-color);
    font-weight: 500;
}

/* Cards generales del admin */
.admin-dashboard .card,
.admin-users .card,
.admin-edit-user .card,
.admin-cantos .card,
.admin-categories .card,
.admin-settings .card,
.admin-lecturas .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    background: white;
}

.admin-dashboard .card:hover,
.admin-users .card:hover,
.admin-edit-user .card:hover,
.admin-cantos .card:hover,
.admin-categories .card:hover,
.admin-settings .card:hover,
.admin-lecturas .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.admin-dashboard .card-header,
.admin-users .card-header,
.admin-edit-user .card-header,
.admin-cantos .card-header,
.admin-categories .card-header,
.admin-settings .card-header,
.admin-lecturas .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    border-radius: 16px 16px 0 0 !important;
    padding: 1.5rem 2rem;
    border: none;
}

.admin-dashboard .card-header h5,
.admin-users .card-header h5,
.admin-edit-user .card-header h5,
.admin-cantos .card-header h5,
.admin-categories .card-header h5,
.admin-settings .card-header h5,
.admin-lecturas .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.admin-dashboard .card-body,
.admin-users .card-body,
.admin-edit-user .card-body,
.admin-cantos .card-body,
.admin-categories .card-body,
.admin-settings .card-body,
.admin-lecturas .card-body {
    padding: 2rem;
}

/* Gráficos y listas de actividad */
.roles-chart {
    padding: 1.5rem 0;
}

.role-item {
    margin-bottom: 1.5rem;
}

.role-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.role-name {
    font-weight: 600;
    color: var(--dark-color);
}

.role-count {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.progress {
    height: 12px;
    border-radius: 6px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.progress-bar {
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 12px;
}

/* Listas de actividad */
.activity-list,
.recent-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.activity-list::-webkit-scrollbar,
.recent-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track,
.recent-list::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb,
.recent-list::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.activity-item,
.recent-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(var(--secondary-color-rgb), 0.1);
    transition: all 0.3s ease;
}

.activity-item:hover,
.recent-item:hover {
    background-color: rgba(var(--primary-color-rgb), 0.02);
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding: 1rem 0.5rem;
}

.activity-item:last-child,
.recent-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.activity-content {
    flex: 1;
}

.activity-description,
.recent-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.activity-time,
.recent-details {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Acciones rápidas */
.quick-actions .btn {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border: none;
    transition: all 0.3s ease;
}

.quick-actions .btn:hover {
    transform: translateX(8px);
}

/* Tablas mejoradas */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--info-color-rgb), 0.1));
    border: none;
    font-weight: 700;
    color: var(--primary-color);
    padding: 1.2rem 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(var(--primary-color-rgb), 0.02);
}

.table td {
    padding: 1.2rem 1rem;
    border-top: 1px solid rgba(var(--secondary-color-rgb), 0.1);
    vertical-align: middle;
}

/* Información de usuario en tablas */
.user-info strong {
    color: var(--dark-color);
    font-weight: 600;
}

.user-info small {
    color: var(--secondary-color);
}

/* Botones del admin - sobrescribiendo los inline */
.admin-dashboard .btn-outline-primary,
.admin-users .btn-outline-primary,
.admin-edit-user .btn-outline-primary,
.admin-cantos .btn-outline-primary,
.admin-categories .btn-outline-primary,
.admin-settings .btn-outline-primary,
.admin-lecturas .btn-outline-primary {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.admin-dashboard .btn-outline-primary:hover,
.admin-users .btn-outline-primary:hover,
.admin-edit-user .btn-outline-primary:hover,
.admin-cantos .btn-outline-primary:hover,
.admin-categories .btn-outline-primary:hover,
.admin-settings .btn-outline-primary:hover,
.admin-lecturas .btn-outline-primary:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.3) !important;
}

/* Responsive Design para Admin */
@media (max-width: 768px) {
    .dashboard-title,
    .page-title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .stats-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .stats-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-right: 1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .admin-dashboard .card-body,
.admin-users .card-body,
.admin-edit-user .card-body,
.admin-cantos .card-body,
.admin-categories .card-body,
.admin-settings .card-body,
.admin-lecturas .card-body {
    padding: 1.5rem;
}
    
    .activity-list,
    .recent-list {
        max-height: 300px;
    }
} 

/* Estilos para íconos del menú de categorías */
.navbar .dropdown-item i.fas.fa-tag {
    color: #6c757d !important; /* Color gris en lugar de azul */
}

.navbar .dropdown-item:hover i.fas.fa-tag {
    color: #495057 !important; /* Color gris más oscuro al hacer hover */
}

/* También aplicar a otros íconos del menú si es necesario */
.navbar .dropdown-item i {
    color: #6c757d !important;
}

.navbar .dropdown-item:hover i {
    color: #495057 !important;
}

/* Badges suaves personalizados */
.badge-soft-success {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.badge-soft-danger {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.badge-soft-info {
    color: #17a2b8;
    background-color: rgba(23, 162, 184, 0.1);
}

.badge-soft-primary {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.badge-soft-secondary {
    color: #6c757d;
    background-color: rgba(108, 117, 125, 0.1);
}

.badge-soft-warning {
    color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
}

.font-size-sm {
    font-size: 0.875rem;
}

/* Estilos para las lecturas del día */
.lecturas-section {
    margin-bottom: 3rem;
}

.lectura-card {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
}

.lectura-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: rgba(0,123,255,0.2);
}

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

.lectura-card .card-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.lectura-card .card-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 0;
}

/* Modal de lecturas */
#lecturaModal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#lecturaModal .modal-header {
    background: var(--primary-color);
    color: white;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
}

#lecturaModal .modal-title {
    font-weight: 600;
}

#lecturaModal .modal-body {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

#lecturaModal .lectura-content {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

#lecturaModal .modal-footer {
    border-top: 1px solid rgba(var(--secondary-color-rgb), 0.1);
    padding: 1rem 2rem;
}

/* Estilos generales para modales en el área de administración */
.admin-users .modal-content,
.admin-dashboard .modal-content,
.admin-cantos .modal-content,
.admin-categories .modal-content,
.admin-settings .modal-content,
.admin-lecturas .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.admin-users .modal-header,
.admin-dashboard .modal-header,
.admin-cantos .modal-header,
.admin-categories .modal-header,
.admin-settings .modal-header,
.admin-lecturas .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
}

.admin-users .modal-title,
.admin-dashboard .modal-title,
.admin-cantos .modal-title,
.admin-categories .modal-title,
.admin-settings .modal-title,
.admin-lecturas .modal-title {
    font-weight: 600;
}

/* Estilos para paginación en el área de administración */
.admin-users .pagination .page-link,
.admin-dashboard .pagination .page-link,
.admin-cantos .pagination .page-link,
.admin-categories .pagination .page-link,
.admin-settings .pagination .page-link,
.admin-lecturas .pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    border-radius: 6px;
    margin: 0 2px;
}

.admin-users .pagination .page-link:hover,
.admin-dashboard .pagination .page-link:hover,
.admin-cantos .pagination .page-link:hover,
.admin-categories .pagination .page-link:hover,
.admin-settings .pagination .page-link:hover,
.admin-lecturas .pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.admin-users .pagination .page-item.active .page-link,
.admin-dashboard .pagination .page-item.active .page-link,
.admin-cantos .pagination .page-item.active .page-link,
.admin-categories .pagination .page-item.active .page-link,
.admin-settings .pagination .page-item.active .page-link,
.admin-lecturas .pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Estilos para botones en el área de administración */
.admin-users .btn-group .btn,
.admin-dashboard .btn-group .btn,
.admin-cantos .btn-group .btn,
.admin-categories .btn-group .btn,
.admin-settings .btn-group .btn,
.admin-lecturas .btn-group .btn {
    border-radius: 6px;
    margin-right: 5px;
}

.admin-users .btn-outline-primary:hover,
.admin-dashboard .btn-outline-primary:hover,
.admin-cantos .btn-outline-primary:hover,
.admin-categories .btn-outline-primary:hover,
.admin-settings .btn-outline-primary:hover,
.admin-lecturas .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.admin-users .btn-outline-danger:hover,
.admin-dashboard .btn-outline-danger:hover,
.admin-cantos .btn-outline-danger:hover,
.admin-categories .btn-outline-danger:hover,
.admin-settings .btn-outline-danger:hover,
.admin-lecturas .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Responsive para lecturas */
@media (max-width: 768px) {
    .lectura-card .card-body {
        padding: 1.25rem 1rem;
    }
    
    .lectura-card .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .lectura-card .card-text {
        font-size: 0.95rem;
    }
    
    #lecturaModal .modal-body {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .lectura-card .card-body {
        padding: 1rem;
    }
    
    .lectura-card .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .lectura-card .card-text {
        font-size: 0.9rem;
    }
}

/* Hero especial para el admin (admin/lecturas) */
.admin-hero-section {
    background-color: var(--primary-color) !important;
    color: #fff;
    padding: 3rem 0 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    position: relative;
}
.admin-hero-section .dashboard-title,
.admin-hero-section .lead,
.admin-hero-section .stats-label,
.admin-hero-section .stats-number {
    color: #fff !important;
}
.admin-hero-section .btn-primary,
.admin-hero-section .btn-outline-primary {
    font-weight: 600;
    border-radius: 8px;
}
.admin-hero-section .btn-outline-primary {
    color: #fff;
    border-color: #fff;
}
.admin-hero-section .btn-outline-primary:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}
.admin-hero-section .stats-card {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}
.admin-hero-section .stats-icon {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}
@media (max-width: 768px) {
    .admin-hero-section {
        padding: 2rem 0 1rem 0;
    }
    .admin-hero-section .dashboard-title {
        font-size: 2rem;
    }
}

/* Estilos específicos para el botón de biografía del autor */
.author-info .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
}

.author-info .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.author-info .btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
    outline: none;
}

.author-info .btn-outline-primary i {
    margin-right: 6px;
    font-size: 0.875rem;
}

/* Regla global para asegurar que TODOS los botones tengan borde de 1px */
.btn,
.btn *,
[class*="btn-"] {
    border-width: 1px !important;
}

/* Sobrescribir cualquier borde que venga de otros archivos CSS */
.btn-outline-light,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-dark {
    border-width: 1px !important;
}
/* Estilos personalizados para Select2 */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.select2-container--default .select2-selection--single:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #495057;
    line-height: 36px;
    padding-left: 0.75rem;
    padding-right: 2rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    position: absolute;
    top: 1px;
    right: 1px;
    width: 20px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6c757d transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #6c757d transparent;
    border-width: 0 4px 5px 4px;
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.select2-container--default .select2-results__option {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--primary-color);
    color: white;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

/* Responsive para Select2 */
@media (max-width: 768px) {
    .select2-container {
        width: 100% !important;
    }
}

/* Incluir reglas globales para bordes de botones */
/* 
 * REGLAS GLOBALES PARA BORDES DE BOTONES
 * Este archivo asegura que TODOS los botones de la plataforma tengan borde de 1px
 * Se carga después de todos los demás CSS para máxima prioridad
 */

/* Regla universal para todos los botones */
.btn,
.btn *,
[class*="btn-"] {
    border-width: 1px !important;
}

/* Botones outline específicos */
.btn-outline-light,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-dark {
    border-width: 1px !important;
}

/* Botones sólidos */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark {
    border-width: 1px !important;
}

/* Botones de diferentes tamaños */
.btn-sm,
.btn-lg,
.btn-xl {
    border-width: 1px !important;
}

/* Botones en grupos */
.btn-group .btn,
.btn-toolbar .btn {
    border-width: 1px !important;
}

/* Botones en formularios */
.form-control + .btn,
.input-group .btn {
    border-width: 1px !important;
}

/* Botones en modales */
.modal .btn,
.modal-footer .btn {
    border-width: 1px !important;
}

/* Botones en cards */
.card .btn,
.card-footer .btn {
    border-width: 1px !important;
}

/* Botones en navbar */
.navbar .btn,
.navbar-nav .btn {
    border-width: 1px !important;
}

/* Botones en hero sections */
.hero-section .btn,
.admin-hero-section .btn {
    border-width: 1px !important;
}

/* Botones en tablas */
.table .btn,
.table-responsive .btn {
    border-width: 1px !important;
}

/* Botones en paginación */
.pagination .btn,
.page-link {
    border-width: 1px !important;
}

/* Botones en dropdowns */
.dropdown-menu .btn,
.dropdown-item.btn {
    border-width: 1px !important;
}

/* Botones en alerts */
.alert .btn,
.alert-dismissible .btn {
    border-width: 1px !important;
}

/* Botones en badges */
.btn .badge {
    border-width: 1px !important;
}

/* Botones en tooltips */
.tooltip .btn {
    border-width: 1px !important;
}

/* Botones en popovers */
.popover .btn {
    border-width: 1px !important;
}

/* Botones en carousels */
.carousel .btn {
    border-width: 1px !important;
}

/* Botones en accordions */
.accordion .btn {
    border-width: 1px !important;
}

/* Botones en tabs */
.nav-tabs .btn,
.tab-content .btn {
    border-width: 1px !important;
}

/* Botones en list groups */
.list-group .btn,
.list-group-item .btn {
    border-width: 1px !important;
}

/* Botones en breadcrumbs */
.breadcrumb .btn {
    border-width: 1px !important;
}

/* Botones en jumbotrons */
.jumbotron .btn {
    border-width: 1px !important;
}

/* Botones en wells */
.well .btn {
    border-width: 1px !important;
}

/* Botones en panels */
.panel .btn,
.panel-body .btn {
    border-width: 1px !important;
}

/* Botones en thumbnails */
.thumbnail .btn {
    border-width: 1px !important;
}

/* Botones en media objects */
.media .btn {
    border-width: 1px !important;
}

/* Botones en progress bars */
.progress .btn {
    border-width: 1px !important;
}

/* Botones en input groups */
.input-group .btn,
.input-group-addon .btn {
    border-width: 1px !important;
}

/* Botones en form groups */
.form-group .btn {
    border-width: 1px !important;
}

/* Botones en field sets */
fieldset .btn {
    border-width: 1px !important;
}

/* Botones en legends */
legend .btn {
    border-width: 1px !important;
}

/* Botones en labels */
.label .btn {
    border-width: 1px !important;
}

/* Botones en spans */
span.btn {
    border-width: 1px !important;
}

/* Botones en divs */
div.btn {
    border-width: 1px !important;
}

/* Botones en anchors */
a.btn {
    border-width: 1px !important;
}

/* Botones en buttons */
button.btn {
    border-width: 1px !important;
}

/* Botones en inputs */
input.btn {
    border-width: 1px !important;
}

/* Botones en textareas */
textarea.btn {
    border-width: 1px !important;
}

/* Botones en selects */
select.btn {
    border-width: 1px !important;
}

/* Botones en fieldsets */
fieldset .btn {
    border-width: 1px !important;
}

/* Botones en forms */
form .btn {
    border-width: 1px !important;
}

/* Botones en sections */
section .btn {
    border-width: 1px !important;
}

/* Botones en articles */
article .btn {
    border-width: 1px !important;
}

/* Botones en headers */
header .btn {
    border-width: 1px !important;
}

/* Botones en footers */
footer .btn {
    border-width: 1px !important;
}

/* Botones en asides */
aside .btn {
    border-width: 1px !important;
}

/* Botones en navs */
nav .btn {
    border-width: 1px !important;
}

/* Botones en mains */
main .btn {
    border-width: 1px !important;
}

/* Botones en containers */
.container .btn,
.container-fluid .btn {
    border-width: 1px !important;
}

/* Botones en rows */
.row .btn {
    border-width: 1px !important;
}

/* Botones en columns */
.col .btn,
[class*="col-"] .btn {
    border-width: 1px !important;
}

/* Botones en grids */
.grid .btn {
    border-width: 1px !important;
}

/* Botones en flexbox */
.d-flex .btn,
.flex .btn {
    border-width: 1px !important;
}

/* Botones en grid systems */
.grid-system .btn {
    border-width: 1px !important;
}

/* Botones en layouts */
.layout .btn {
    border-width: 1px !important;
}

/* Botones en themes */
.theme .btn {
    border-width: 1px !important;
}

/* Botones en skins */
.skin .btn {
    border-width: 1px !important;
}

/* Botones en templates */
.template .btn {
    border-width: 1px !important;
}

/* Botones en components */
.component .btn {
    border-width: 1px !important;
}

/* Botones en modules */
.module .btn {
    border-width: 1px !important;
}

/* Botones en plugins */
.plugin .btn {
    border-width: 1px !important;
}

/* Botones en extensions */
.extension .btn {
    border-width: 1px !important;
}

/* Botones en addons */
.addon .btn {
    border-width: 1px !important;
}

/* Botones en widgets */
.widget .btn {
    border-width: 1px !important;
}

/* Botones en gadgets */
.gadget .btn {
    border-width: 1px !important;
}

/* Botones en tools */
.tool .btn {
    border-width: 1px !important;
}

/* Botones en utilities */
.utility .btn {
    border-width: 1px !important;
}

/* Botones en helpers */
.helper .btn {
    border-width: 1px !important;
}

/* Botones en mixins */
.mixin .btn {
    border-width: 1px !important;
}

/* Botones en functions */
.function .btn {
    border-width: 1px !important;
}

/* Botones en classes */
.class .btn {
    border-width: 1px !important;
}

/* Botones en ids */
#btn,
[id*="btn"] {
    border-width: 1px !important;
}

/* Botones en data attributes */
[data-btn],
[data-button] {
    border-width: 1px !important;
}

/* Botones en aria labels */
[aria-label*="btn"],
[aria-label*="button"] {
    border-width: 1px !important;
}

/* Botones en roles */
[role="button"] {
    border-width: 1px !important;
}

/* Botones en types */
[type="button"],
[type="submit"],
[type="reset"] {
    border-width: 1px !important;
}

/* Botones en onclicks */
[onclick*="btn"],
[onclick*="button"] {
    border-width: 1px !important;
}

/* Botones en event handlers */
[onclick],
[onmouseover],
[onmouseout],
[onfocus],
[onblur] {
    border-width: 1px !important;
}

/* Botones en JavaScript */
.js-btn,
.js-button {
    border-width: 1px !important;
}

/* Botones en jQuery */
.jq-btn,
.jq-button {
    border-width: 1px !important;
}

/* Botones en Bootstrap */
.bs-btn,
.bs-button {
    border-width: 1px !important;
}

/* Botones en Foundation */
.fnd-btn,
.fnd-button {
    border-width: 1px !important;
}

/* Botones en Material Design */
.md-btn,
.md-button {
    border-width: 1px !important;
}

/* Botones en Semantic UI */
.sui-btn,
.sui-button {
    border-width: 1px !important;
}

/* Botones en Bulma */
.blm-btn,
.blm-button {
    border-width: 1px !important;
}

/* Botones en Tailwind */
.tw-btn,
.tw-button {
    border-width: 1px !important;
}

/* Botones en CSS Grid */
.css-grid .btn {
    border-width: 1px !important;
}

/* Botones en CSS Flexbox */
.css-flex .btn {
    border-width: 1px !important;
}

/* Botones en CSS Animations */
.css-animation .btn {
    border-width: 1px !important;
}

/* Botones en CSS Transitions */
.css-transition .btn {
    border-width: 1px !important;
}

/* Botones en CSS Transforms */
.css-transform .btn {
    border-width: 1px !important;
}

/* Botones en CSS Filters */
.css-filter .btn {
    border-width: 1px !important;
}

/* Botones en CSS Gradients */
.css-gradient .btn {
    border-width: 1px !important;
}

/* Botones en CSS Shadows */
.css-shadow .btn {
    border-width: 1px !important;
}

/* Botones en CSS Borders */
.css-border .btn {
    border-width: 1px !important;
}

/* Botones en CSS Backgrounds */
.css-background .btn {
    border-width: 1px !important;
}

/* Botones en CSS Colors */
.css-color .btn {
    border-width: 1px !important;
}

/* Botones en CSS Typography */
.css-typography .btn {
    border-width: 1px !important;
}

/* Botones en CSS Spacing */
.css-spacing .btn {
    border-width: 1px !important;
}

/* Botones en CSS Layout */
.css-layout .btn {
    border-width: 1px !important;
}

/* Botones en CSS Positioning */
.css-positioning .btn {
    border-width: 1px !important;
}

/* Botones en CSS Display */
.css-display .btn {
    border-width: 1px !important;
}

/* Botones en CSS Box Model */
.css-box-model .btn {
    border-width: 1px !important;
}

/* Botones en CSS Cascade */
.css-cascade .btn {
    border-width: 1px !important;
}

/* Botones en CSS Specificity */
.css-specificity .btn {
    border-width: 1px !important;
}

/* Botones en CSS Inheritance */
.css-inheritance .btn {
    border-width: 1px !important;
}

/* Botones en CSS Units */
.css-units .btn {
    border-width: 1px !important;
}

/* Botones en CSS Values */
.css-values .btn {
    border-width: 1px !important;
}

/* Botones en CSS Properties */
.css-properties .btn {
    border-width: 1px !important;
}

/* Botones en CSS Selectors */
.css-selectors .btn {
    border-width: 1px !important;
}

/* Botones en CSS Rules */
.css-rules .btn {
    border-width: 1px !important;
}

/* Botones en CSS Declarations */
.css-declarations .btn {
    border-width: 1px !important;
}

/* Botones en CSS Blocks */
.css-blocks .btn {
    border-width: 1px !important;
}

/* Botones en CSS Statements */
.css-statements .btn {
    border-width: 1px !important;
}

/* Botones en CSS Expressions */
.css-expressions .btn {
    border-width: 1px !important;
}

/* Botones en CSS Functions */
.css-functions .btn {
    border-width: 1px !important;
}

/* Botones en CSS Variables */
.css-variables .btn {
    border-width: 1px !important;
}

/* Botones en CSS Custom Properties */
.css-custom-properties .btn {
    border-width: 1px !important;
}

/* Botones en CSS Pseudo-classes */
.css-pseudo-classes .btn {
    border-width: 1px !important;
}

/* Botones en CSS Pseudo-elements */
.css-pseudo-elements .btn {
    border-width: 1px !important;
}

/* Botones en CSS Media Queries */
@media (max-width: 768px) {
    .btn,
    [class*="btn-"] {
        border-width: 1px !important;
    }
}

@media (max-width: 576px) {
    .btn,
    [class*="btn-"] {
        border-width: 1px !important;
    }
}

@media (min-width: 768px) {
    .btn,
    [class*="btn-"] {
        border-width: 1px !important;
    }
}

@media (min-width: 992px) {
    .btn,
    [class*="btn-"] {
        border-width: 1px !important;
    }
}

@media (min-width: 1200px) {
    .btn,
    [class*="btn-"] {
        border-width: 1px !important;
    }
}

@media (min-width: 1400px) {
    .btn,
    [class*="btn-"] {
        border-width: 1px !important;
    }
}

@media print {
    .btn,
    [class*="btn-"] {
        border-width: 1px !important;
    }
}

@media screen {
    .btn,
    [class*="btn-"] {
        border-width: 1px !important;
    }
}

@media all {
    .btn,
    [class*="btn-"] {
        border-width: 1px !important;
    }
}

/* Regla final con máxima especificidad */
html body .btn,
html body [class*="btn-"],
html body button,
html body input[type="button"],
html body input[type="submit"],
html body input[type="reset"],
html body a.btn {
    border-width: 1px !important;
}
 