/* Estilos ESPECÍFICOS para Héroes Ancestrales (copiados de blog.css, solo lo necesario para la vista de héroes) */
:root {
    --primary-blue: rgba(0, 51, 153, 0.6);
    --secondary-blue: #003366;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --section-bg: #ffffff;
    --card-bg: #f8f8f8;
    --spacing-sm: 0.8rem;
    --spacing-md: 1.2rem;
    --spacing-lg: 1.6rem;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

header {
    position: sticky;
    top: 0;
    background-color: var(--primary-blue);
    padding: 20px 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), background 0.3s, box-shadow 0.3s;
    will-change: transform;
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 150px;
    height: auto;
}

.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 48px 24px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-post {
    background: var(--card-bg);
    border-radius: 15px;
    padding: var(--spacing-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.post-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 16px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-video {
    width: 100%;
    max-width: 900px;
    height: 520px;
    min-height: 320px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    background: #000;
}

@media (max-width: 900px) {
    .blog-video {
        max-width: 100%;
        height: 260px;
    }
    .blog-container {
        padding: 24px 4vw;
    }
}

@media (max-width: 1000px) {
    .blog-video, .post-image {
        max-width: 100vw;
    }
    .blog-video {
        height: 260px;
        min-height: 160px;
    }
}

/* --- MENÚ RESPONSIVO IDÉNTICO AL SITIO PRINCIPAL --- */
.menu-toggle {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1001;
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

.main-nav {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--primary-blue);
    width: 250px;
    padding: 20px;
    display: none;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}
.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: #fff;
}

/* --- MEDIA QUERIES PARA RESPONSIVIDAD DEL MENÚ --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav a {
        padding: 10px;
        border-radius: 5px;
    }
    .main-nav a:hover {
        background-color: rgba(255,255,255,0.1);
    }
}
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    .main-nav {
        display: flex;
        position: static;
        background-color: transparent;
        width: auto;
        padding: 0;
        box-shadow: none;
    }
    .main-nav ul {
        flex-direction: row;
        gap: 30px;
        margin-top: 0;
    }
}

/* Footer y otros estilos necesarios (puedes agregar más si lo requieres) */
footer {
    background: linear-gradient(
        to bottom,
        var(--light-gray),
        white
    );
    color: var(--text-color);
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 60px 20px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    text-decoration: underline;
    color: #1877F3;
}

.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.social-name {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.social-link:hover .social-name {
    text-decoration: underline;
}

.footer-email {
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.copyright {
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}

.header-hide {
    transform: translateY(-100%);
}

/* No scroll cuando el menú está abierto */
.no-scroll {
    overflow: hidden;
}

/* Logo del footer igual que index */
.footer-logo {
    margin-bottom: 40px;
    text-align: center;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
}
