/* ==================== Variables y Reset ==================== */
:root {
    --primary-gradient: linear-gradient(135deg, #E0F2FE 0%, #DBEAFE 50%, #E0E7FF 100%);
    --secondary-gradient: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    --success-gradient: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    --lavender-gradient: linear-gradient(135deg, #EDE9FE 0%, #E0E7FF 100%);
    --glass-white: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.35);
    --shadow-light: 0 8px 32px 0 rgba(148, 163, 184, 0.12);
    --shadow-medium: 0 15px 35px 0 rgba(148, 163, 184, 0.18);
    --shadow-heavy: 0 20px 50px 0 rgba(148, 163, 184, 0.25);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== Body y Fondo ==================== */
body {
    font-family: 'Inter', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #E0F2FE 0%, #FEFCE8 25%, #F0F9FF 50%, #EDE9FE 75%, #FEFCE8 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/img/bg1.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.05;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==================== Efectos Glassmorphism ==================== */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-light);
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.glass-navbar {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(148, 163, 184, 0.1);
    position: relative;
    z-index: 2000;
}

.glass-navbar .navbar-brand,
.glass-navbar .nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.glass-navbar .nav-link:hover {
    color: #3b82f6 !important;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* ==================== Contenedores y Layout ==================== */
.modern-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-wrapper {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 30px;
    padding: 50px;
    margin: 30px auto;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-heavy);
}

/* ==================== Cards y Tarjetas ==================== */
.vlog-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.vlog-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    background: rgba(255, 255, 255, 0.85);
}

.vlog-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vlog-card:hover img {
    transform: scale(1.1);
}

.vlog-card-body {
    padding: 25px;
    background: rgba(255, 255, 255, 0.3);
}

.vlog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.vlog-card-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ==================== Botones Modernos ==================== */
.btn-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(148, 163, 184, 0.15);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.btn-gradient {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
    background: linear-gradient(135deg, #BFDBFE 0%, #93C5FD 100%);
}

/* ==================== Hero Section ==================== */
.hero-section {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.95) 0%, rgba(237, 233, 254, 0.95) 50%, rgba(254, 243, 199, 0.95) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 0 0 50px 50px;
    padding: 100px 0;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(148, 163, 184, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Blog Específico ==================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.featured-post {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.95) 0%, rgba(252, 211, 77, 0.9) 50%, rgba(253, 230, 138, 0.95) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 30px;
    padding: 50px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-heavy);
    border: 2px solid rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.featured-post::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== Formularios ==================== */
.form-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 15px 20px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-glass:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: #93C5FD;
    outline: none;
    box-shadow: 0 0 20px rgba(147, 197, 253, 0.3);
    color: var(--text-primary);
}

.form-glass::placeholder {
    color: var(--text-light);
}

/* ==================== Badges y Etiquetas ==================== */
.badge-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    margin: 5px;
    transition: all 0.3s ease;
}

.badge-glass:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(148, 163, 184, 0.15);
}

/* ==================== Tablas ==================== */
.table-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.table-glass thead {
    background: rgba(255, 255, 255, 0.8);
}

.table-glass th,
.table-glass td {
    border: none;
    color: var(--text-primary);
    padding: 18px;
}

.table-glass tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.table-glass tbody tr:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ==================== Animaciones y Utilidades ==================== */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Scrollbar Personalizada ==================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(191, 219, 254, 0.8);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 197, 253, 0.9);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .content-wrapper {
        padding: 30px 20px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .vlog-card img {
        height: 220px;
    }
}

/* ==================== Compatibilidad Antigua ==================== */
.boxblur {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 30px;
    margin: 30px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-light);
}

/* ==================== Colores Espirituales - Utilidades ==================== */
.bg-spiritual-blue {
    background: linear-gradient(135deg, #E0F2FE 0%, #BFDBFE 100%);
}

.bg-spiritual-lavender {
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
}

.bg-spiritual-gold {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.bg-spiritual-mint {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
}

.text-spiritual {
    color: var(--text-primary) !important;
}

/* ==================== Dropdowns y Menus ==================== */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.2);
    border-radius: 15px;
    padding: 10px;
    z-index: 2100;
}

.z-index-100 {
    z-index: 2100 !important;
}

.dropdown-item {
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: rgba(191, 219, 254, 0.4);
    transform: translateX(5px);
    color: #3b82f6;
}

/* ==================== Paginación ==================== */
.pagination {
    margin: 0;
}

.pagination .page-link {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    margin: 0 5px;
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 197, 253, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #BFDBFE 0%, #93C5FD 100%);
    border-color: rgba(147, 197, 253, 0.9);
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(147, 197, 253, 0.3);
}

.pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ==================== Alerts ==================== */
.alert {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    color: var(--text-primary);
}

.alert-success {
    background: rgba(209, 250, 229, 0.8);
    border-color: rgba(167, 243, 208, 0.9);
}

.alert-danger {
    background: rgba(254, 226, 226, 0.8);
    border-color: rgba(252, 165, 165, 0.9);
}

.alert-warning {
    background: rgba(254, 243, 199, 0.8);
    border-color: rgba(253, 230, 138, 0.9);
}

.alert-info {
    background: rgba(224, 242, 254, 0.8);
    border-color: rgba(191, 219, 254, 0.9);
}

/* ==================== Spinner y Loading ==================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* ==================== Texto y Tipografía ==================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

.text-white-80 {
    color: var(--text-secondary) !important;
}

.text-white-60 {
    color: var(--text-light) !important;
}

/* ==================== Links y Enlaces ==================== */
a {
    transition: all 0.3s ease;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link) {
    color: var(--text-primary);
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* ==================== Sombras Personalizadas ==================== */
.shadow-glass {
    box-shadow: var(--shadow-light) !important;
}

.shadow-glass-md {
    box-shadow: var(--shadow-medium) !important;
}

.shadow-glass-lg {
    box-shadow: var(--shadow-heavy) !important;
}

