/* Notedejes.cl - Premium Custom CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-red: #b30000;
    --primary-red-hover: #e60000;
    --secondary-gold: #d4a017;
    --secondary-gold-hover: #f1b71c;
    --dark-bg: #070b13;
    --dark-card: #0f172a;
    --dark-card-border: rgba(255, 255, 255, 0.08);
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-body: #f8fafc;
    --body-bg: #f8fafc;
    --font-primary: 'Outfit', sans-serif;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 20px 40px -15px rgba(179, 0, 0, 0.15);
    --border-radius-premium: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    background-color: var(--body-bg);
    color: #1e293b;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gold);
}

/* Glassmorphic Navbar */
.navbar-premium {
    background: rgba(7, 11, 19, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}
.navbar-premium .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}
.navbar-premium .nav-link:hover, 
.navbar-premium .nav-link.active {
    color: var(--text-white) !important;
    background: rgba(255, 255, 255, 0.05);
}
.navbar-premium .navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    color: var(--text-white) !important;
}

/* Button Customizations */
.btn-premium-red {
    background-color: var(--primary-red);
    color: var(--text-white);
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(179, 0, 0, 0.3);
    transition: var(--transition-smooth);
}
.btn-premium-red:hover {
    background-color: var(--primary-red-hover);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179, 0, 0, 0.4);
}
.btn-premium-outline {
    background: transparent;
    color: var(--text-white);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.72rem 1.75rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
}
.btn-premium-outline:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 80% 20%, rgba(179, 0, 0, 0.12) 0%, transparent 50%), 
                linear-gradient(135deg, #070b13 0%, #0d1527 100%);
    padding: 160px 0 100px 0;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--body-bg), transparent);
    z-index: 2;
}
.hero-badge {
    background: rgba(212, 160, 23, 0.1);
    color: var(--secondary-gold);
    border: 1px solid rgba(212, 160, 23, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.hero-title span {
    color: var(--secondary-gold);
}
.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 600px;
}
.hero-mascot-wrapper {
    position: relative;
    z-index: 3;
    animation: floatAnimation 6s ease-in-out infinite;
}
.hero-mascot {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
.hero-trust {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.hero-avatars {
    display: flex;
}
.hero-avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #0d1527;
    margin-right: -12px;
    object-fit: cover;
}
.hero-trust-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.hero-trust-stars {
    color: var(--secondary-gold);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

/* Floating Animation */
@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Category Cards Section */
.section-title {
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.section-title span {
    color: var(--primary-red);
}
.category-card {
    background: var(--text-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-premium);
    padding: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}
.category-card:hover::before {
    transform: scaleX(1);
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(179, 0, 0, 0.1);
}
.category-icon-box {
    width: 65px;
    height: 65px;
    background: rgba(179, 0, 0, 0.06);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin: 0 auto 20px auto;
    font-size: 1.8rem;
    transition: var(--transition-smooth);
}
.category-card:hover .category-icon-box {
    background: var(--primary-red);
    color: var(--text-white);
    transform: scale(1.1);
}
.category-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #0f172a;
}
.category-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}
.category-link {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
}
.category-link i {
    transition: var(--transition-smooth);
}
.category-card:hover .category-link {
    color: var(--primary-red-hover);
}
.category-card:hover .category-link i {
    transform: translateX(5px);
}

/* Article Cards */
.article-card {
    background: var(--text-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius-premium);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(179, 0, 0, 0.15);
}
.article-image-box {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.article-card:hover .article-img {
    transform: scale(1.08);
}
.article-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary-red);
    color: var(--text-white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.article-title {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #0f172a;
    transition: var(--transition-smooth);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card:hover .article-title {
    color: var(--primary-red);
}
.article-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-meta {
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
}
.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #475569;
}
.article-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(179, 0, 0, 0.1);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Stats Section */
.stats-section {
    background: #070b13;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding: 60px 0;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary-gold);
    line-height: 1;
    margin-bottom: 10px;
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact/Consultation Area */
.consultation-section {
    background: radial-gradient(circle at 10% 90%, rgba(214, 160, 23, 0.05) 0%, transparent 60%), 
                linear-gradient(180deg, #070b13 0%, #0c1221 100%);
    padding: 100px 0;
    color: var(--text-white);
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.consultation-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.consultation-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

/* Chat Mockup */
.chat-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}
.chat-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    margin-bottom: 15px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
}
.chat-bubble.left {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
.chat-bubble.right {
    background: var(--primary-red);
    color: var(--text-white);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    margin-left: auto;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    text-decoration: none !important;
}
.whatsapp-float:hover {
    background-color: #20ba5a;
    color: #FFF;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}
.whatsapp-float-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary-red);
    border: 2px solid #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* Search and Filters Section on Blog */
.blog-header {
    background: linear-gradient(135deg, #070b13 0%, #0d1527 100%);
    padding: 120px 0 60px 0;
    color: var(--text-white);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.search-container {
    max-width: 650px;
    margin: 30px auto 0 auto;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: var(--text-white) !important;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.search-input::placeholder {
    color: var(--text-muted);
}
.search-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(179, 0, 0, 0.2);
    outline: none;
}
.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
}

.category-filter-btn {
    background: var(--text-white);
    color: #475569;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    margin-bottom: 10px;
}
.category-filter-btn:hover,
.category-filter-btn.active {
    background: var(--primary-red);
    color: var(--text-white);
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(179, 0, 0, 0.2);
}

/* Ranking Sidebar Panel */
.ranking-panel {
    background: var(--text-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius-premium);
    padding: 25px;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 100px;
}
.ranking-panel-title {
    font-weight: 800;
    font-size: 1.3rem;
    color: #0f172a;
    border-bottom: 2px solid rgba(179, 0, 0, 0.08);
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ranking-panel-title i {
    color: var(--secondary-gold);
}
.ranking-list-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 15px;
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
}
.ranking-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.ranking-list-item:hover {
    color: var(--primary-red);
}
.ranking-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(179, 0, 0, 0.05);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.ranking-list-item:hover .ranking-number {
    background: var(--primary-red);
    color: var(--text-white);
    transform: scale(1.1);
}
.ranking-number.top-three {
    background: rgba(212, 160, 23, 0.15);
    color: var(--secondary-gold);
}
.ranking-list-item:hover .ranking-number.top-three {
    background: var(--secondary-gold);
    color: var(--text-white);
}
.ranking-item-details {
    display: flex;
    flex-direction: column;
}
.ranking-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ranking-item-stats {
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Article Detail View */
.article-detail-header {
    background: linear-gradient(135deg, #070b13 0%, #0d1527 100%);
    padding: 150px 0 80px 0;
    color: var(--text-white);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.article-detail-container {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}
.article-detail-body {
    background: var(--text-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius-premium);
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
}
.article-detail-image-box {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    height: 400px;
}
.article-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-detail-content p {
    margin-bottom: 25px;
}
.article-detail-content h2, 
.article-detail-content h3 {
    color: #0f172a;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Footer Section */
.footer-premium {
    background: #05080f;
    color: var(--text-white);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: inline-block;
    color: var(--text-white);
    text-decoration: none;
}
.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}
.footer-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}
.footer-social-btn {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    text-decoration: none;
}
.footer-social-btn:hover {
    background: var(--primary-red);
    color: var(--text-white);
    transform: translateY(-3px);
}
.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive Customization */
@media (max-width: 991px) {
    .hero-section {
        padding: 120px 0 60px 0;
        text-align: center;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-mascot-wrapper {
        margin-top: 40px;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-trust {
        justify-content: center;
    }
    .consultation-section {
        text-align: center;
        padding: 60px 0;
    }
    .consultation-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .chat-container {
        margin-top: 40px;
    }
    .article-detail-body {
        padding: 30px;
    }
    .article-detail-image-box {
        height: 250px;
    }
}
@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}
