:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --aislados-purple: #9b59b6;
    --aislados-yellow: #f1c40f;
    --step-1-color: #3498db;
    --step-2-color: #9b59b6;
    --step-3-color: #e74c3c;
    --step-4-color: #27ae60;
    --deep-blue: #2c3e50;
    --steel-blue: #4b77be;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-gray);
    color: #333;
    min-height: 100vh;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
    background: #f3f3f3;
}
::-webkit-scrollbar-thumb {
    background: var(--aislados-purple);
    border-radius: 6px;
}

.btn, .form-control {
    border-radius: 10px !important;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.btn-primary {
    background: var(--primary-color);
    border: none;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--aislados-purple);
    color: #fff;
}
.form-control:focus {
    border-color: var(--aislados-purple);
    box-shadow: 0 0 0 0.18rem rgba(155,89,182,0.13);
}

input[type="search"]::-webkit-input-placeholder { color: #b6b6b6; }
input[type="search"]::-moz-placeholder { color: #b6b6b6; }
input[type="search"]:-ms-input-placeholder { color: #b6b6b6; }
input[type="search"]::placeholder { color: #b6b6b6; }

.navbar-brand img {
    max-height: 70px;
    transition: transform 0.2s;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s;
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(6px);
}

.navbar:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

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

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--aislados-purple) !important;
    text-shadow: 0 1px 8px rgba(155,89,182,0.08);
}

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #BF1C79, var(--aislados-purple));
    color: white;
    padding: 3rem 0 3.5rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.12);
    overflow: hidden;
    backdrop-filter: blur(2px);
}
.hero-section::before {
    content: '';
    position: absolute;
    left: -20%;
    top: -20%;
    width: 140%;
    height: 140%;
    background: linear-gradient(120deg, var(--aislados-purple), var(--primary-color), var(--step-4-color));
    z-index: 0;
    animation: heroBgMove 12s ease-in-out infinite alternate;
}
@keyframes heroBgMove {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.04) translateY(12px); }
}
.hero-section > .container {
    position: relative;
    z-index: 1;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(channels4_banner.png);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 2rem;
    backdrop-filter: blur(2px);
}
.hero-section h1 {
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 12px rgba(44,62,80,0.09);
}
.hero-section p {
    font-weight: 400;
    font-size: 1.13rem;
    max-width: 740px;
    margin: 0 auto 0.5rem auto;
    text-shadow: 0 1px 8px rgba(44,62,80,0.07);
}
.hero-section .text-light {
    color: #fffbe6 !important;
    font-size: 1rem;
    opacity: 0.92;
}

.hero-banner-image {
    display: none;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 18px;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-weight: 300;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section .text-light {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section .badge {
    margin-top: 0.75rem;
}

.report-card {
    background: rgba(255,255,255,0.98);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(44,62,80,0.10);
    transition: transform 0.25s cubic-bezier(.22,.61,.36,1), box-shadow 0.25s cubic-bezier(.22,.61,.36,1);
    margin-bottom: 1.8rem;
    border-top: 5px solid var(--primary-color);
    border-bottom: 1.5px solid #eee;
    border-right: 1.5px solid #f3f3f3;
}

.report-card:hover {
    transform: translateY(-9px) scale(1.025);
    box-shadow: 0 16px 44px rgba(44,62,80,0.18);
    border-top-color: var(--aislados-purple);
}

.report-header {
    padding: 1.15rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.report-title {
    font-weight: 700;
    font-size: 1.22rem;
    margin: 0;
    color: var(--aislados-purple);
    letter-spacing: -0.5px;
}

.report-body {
    padding: 1.45rem 1.5rem 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.1rem;
}

.report-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.report-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
    color: var(--dark-gray);
}

.report-date {
    color: #6c757d;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    font-style: italic;
}

.report-body {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 150px;
    margin: 0;
}

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

.stat-icon {
    width: 32px;
    height: 32px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.stat-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stat-text.with-date {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

.stat-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-value span {
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
    font-style: italic;
}

.stat-value.with-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-date {
    font-size: 0.85em;
    font-style: italic;
    color: #666;
    font-weight: normal;
}

.report-footer {
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-view-report {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-view-report:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.search-bar {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-input {
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding-right: 40px;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.footer {
    background-color: var(--dark-gray);
    color: rgba(255, 255, 255, 0.9);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: white;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.footer .small {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer a:hover {
    color: white;
    transform: translateX(5px);
}

.footer a i {
    margin-right: 8px;
    font-size: 1.1em;
}

.footer ul.list-unstyled li {
    margin-bottom: 0.8rem;
}

.footer .fa-youtube {
    color: #FF0000;
}

.footer .fa-spotify {
    color: #1DB954;
}

.footer {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--aislados-purple) 100%);
    color: #fff;
    padding: 2.5rem 0 1.2rem 0;
    border-radius: 24px 24px 0 0;
    margin-top: 3rem;
    box-shadow: 0 -4px 32px rgba(44,62,80,0.10);
}
.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}
.footer a, .footer a:visited {
    color: #fffbe6;
    opacity: 0.88;
    transition: color 0.2s, opacity 0.2s;
}
.footer a:hover {
    color: #fff;
    opacity: 1;
    text-decoration: underline;
}
.footer .fa-brands, .footer .fa-solid {
    font-size: 1.7rem;
    margin: 0 0.4rem;
    transition: color 0.2s, transform 0.2s;
}
.footer .fa-brands:hover, .footer .fa-solid:hover {
    color: var(--aislados-yellow);
    transform: scale(1.13) rotate(-8deg);
}
.footer .fa-apple {
    color: #A2AAAD;
}

.footer .fa-instagram {
    color: #E1306C;
}

.footer .text-center {
    color: rgba(255, 255, 255, 0.7);
}

/* Estilos para diferentes categorías de palabras */
.category-high {
    border-top-color: var(--accent-color);
}

.category-medium {
    border-top-color: #f39c12;
}

.category-ingeniero {
    border-top-color: #27ae60;
}

.category-inmobiliarias {
    border-top-color: var(--steel-blue);
}

.category-purple {
    border-top-color: var(--aislados-purple);
}

.podcast-info {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.podcast-info-header {
    background: linear-gradient(135deg, var(--aislados-purple), var(--primary-color));
    color: white;
    padding: 1.25rem;
}

.podcast-info-header h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
    font-size: 1.5rem;
}

.podcast-info-header p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1rem;
}

.podcast-info-body {
    padding: 1.25rem;
    background-color: white;
}

.podcast-info-body p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-color);
}

.social-youtube {
    background-color: #FF0000;
}

.social-spotify {
    background-color: #1DB954;
}

.social-twitter {
    background-color: #1DA1F2;
}

.social-instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.methodology-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.methodology-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.methodology-header h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
    position: relative;
    z-index: 2;
}

.methodology-header p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.methodology-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    z-index: 1;
}

.methodology-body {
    padding: 1.25rem;
}

.methodology-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.methodology-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.methodology-step:hover {
    transform: translateX(5px);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.step-1 {
    background-color: var(--step-1-color);
}

.step-2 {
    background-color: var(--step-2-color);
}

.step-3 {
    background-color: var(--step-3-color);
}

.step-4 {
    background-color: var(--step-4-color);
}

.step-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: white;
}

.step-text {
    flex: 1;
    padding-top: 0.25rem;
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--dark-gray);
}

.step-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.no-results {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.no-results i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.no-results h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pagination {
    --bs-pagination-color: var(--aislados-purple);
    --bs-pagination-active-bg: var(--aislados-purple);
    --bs-pagination-active-border-color: var(--aislados-purple);
    --bs-pagination-hover-color: var(--aislados-purple);
    --bs-pagination-focus-color: var(--aislados-purple);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(155, 89, 182, 0.25);
}

.page-link {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-item.active .page-link {
    background-color: var(--aislados-purple);
    border-color: var(--aislados-purple);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    .hero-section::before {
        display: none;
    }

    .hero-banner-image {
        display: block;
    }

    .hero-section > .container {
        background-image: none;
        background: linear-gradient(135deg, #BF1C79, var(--aislados-purple));
    }

    .hero-section .text-light {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-section .badge {
        margin-top: 0.75rem;
    }
    
    .report-card {
        margin-bottom: 1.5rem;
    }
    .report-header, .report-body, .report-footer {
        padding: 1rem;
    }
    .report-title {
        font-size: 1.3rem;
    }
    .methodology-step {
        margin-bottom: 1.2rem;
        padding-bottom: 1.2rem;
    }
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 1rem;
    }
    .report-body {
        flex-direction: column;
    }
    .stat-item {
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .stat-icon {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

/* Variante especial para las últimas dos cards */
.report-card.special-variant {
    position: relative;
    border: none;
    background: white;
    overflow: visible;
    margin: 3px;
    border-radius: 15px;
}

.report-card.special-variant::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-color), var(--aislados-purple), var(--accent-color));
    border-radius: 17px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

.report-card.special-variant .report-header,
.report-card.special-variant .report-body,
.report-card.special-variant .report-footer {
    background: white;
    margin: 0;
    position: relative;
    z-index: 1;
}

.report-card.special-variant .report-header {
    border-radius: 15px 15px 0 0;
}

.report-card.special-variant .report-footer {
    border-radius: 0 0 15px 15px;
}

@keyframes borderGlow {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

.report-card.special-variant .report-title {
    color: var(--dark-gray);
    position: relative;
    z-index: 2;
}

.report-card.special-variant .report-date {
    color: #6c757d;
    position: relative;
    z-index: 2;
}

.report-card.special-variant .report-body {
    background: white;
    position: relative;
    z-index: 2;
}

.report-card.special-variant .stat-label {
    color: #6c757d;
}

.report-card.special-variant .stat-value {
    color: var(--dark-gray);
}

.report-card.special-variant .btn-view-report {
    background: linear-gradient(45deg, var(--primary-color), var(--aislados-purple));
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    color: white;
    font-weight: 600;
}

.report-card.special-variant .btn-view-report:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.report-card.special-variant:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Ajustar el grid para mostrar más cards por fila en pantallas grandes */
@media (min-width: 1200px) {
    .report-item {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        padding: 0 0.75rem;
    }
} 