/* =======================================================
   🎨 1. VARIABLES Y ESTILOS GLOBALES
   ======================================================= */
:root {
    --primary-red: #e61d2b;
    --red-glow: rgba(230, 29, 43, 0.15);
    --bg-dark: #0b0f19;
    --text-main: #2d3b55;
    --text-muted: #64748b;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    top: 0px !important;
}


/* =======================================================
   📑 2. ESTILOS DE BLOG Y CONTENEDORES PRINCIPALES
   ======================================================= */
.blog-header {
    background: linear-gradient(to right, #2d3b55, #1d273a);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}

.blog-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

#blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 20px;
}

.blogPost {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #edf2f7;
}

.blogPost:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
}

.blogPost img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px 0;
}

.blogPost h3 a {
    color: #2d3b55;
    text-decoration: none;
    font-weight: 700;
}

.blogPost h3 a:hover {
    color: #007bff;
}

.cat-btn {
    color: #ad945c;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.cat-btn:hover {
    border-bottom: 2px solid #ad945c;
    background-color: #fdfbf7;
}

.subscribe-box {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 20px;
}

.subscribe-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.subscribe-box button {
    width: 100%;
    padding: 10px;
    background-color: #2d3b55;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.subscribe-box button:hover {
    background-color: #1d273a;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
}


/* =======================================================
   🗂️ 3. TARJETAS Y CONTENEDORES DE CARDS (BLOG)
   ======================================================= */
.cards-container-blog {
    display: flex;
    padding-top: 3%;
    flex-wrap: wrap;
    margin: 0 auto;
    align-items: center;
    max-width: 100%;
    flex-direction: row;
    justify-content: center;
}

.card-blog {
    border-radius: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin: 10px;
    max-width: 250px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    margin-left: 20px;
}

.search {
    margin-right: 20px;
}

.header img {
    width: 100%;
    display: block;
}

.card-content {
    padding: 20px;
}

.card-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 16px;
    line-height: 1.5;
}

.card-footer {
    padding: 20px;
    background-color: #2d3b55;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    text-align: center;
}

.card-footer a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
}

.card-icons {
    display: flex;
    justify-content: space-around;
}


/* =======================================================
   🔍 4. BARRAS DE BÚSQUEDA
   ======================================================= */
/* Buscador lateral (Widget) */
.sidebar .widget-search .search-container {
    display: flex;
    align-items: center;
}

.sidebar .widget-search .search-container input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.sidebar .widget-search .search-container button {
    padding: 8px 12px;
    border: none;
    background-color: #ad945c;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

/* Buscador principal del blog */
#search-form-blog {
    position: relative;
    display: inline-block;
}

#search-input-blog {
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 18px;
    background-color: #ffffff;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
    width: 200px;
    max-width: 100%;
    left: 90%;
}

#search-button-blog {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #2d3b55;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0px 1px 5px rgba(255, 255, 255, 0.1);
}

#search-button-blog .search-icon-blog {
    font-size: 24px;
    color: #ffffff;
    text-align: center;
}


/* =======================================================
   📂 5. SIDEBAR Y WIDGETS
   ======================================================= */
.sidebar .widget {
    margin-bottom: 30px;
}

.sidebar .widget h4 {
    background-color: #ccc;
    padding: 10px;
    margin: 0 0 10px 0;
}

.sidebar .widget p {
    color: #232324;
}

.sidebar .widget ul {
    list-style: none;
    padding: 0;
}

.sidebar .widget ul li {
    margin-bottom: 10px;
}

.sidebar .widget ul li a {
    text-decoration: none;
    color: #232324;
}


/* =======================================================
   🔗 6. BOTONES, ENLACES Y REDES SOCIALES
   ======================================================= */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-buttons .social-button {
    color: #232324;
    font-size: 24px;
    text-decoration: none;
}

.social-icon {
    display: inline-block;
    margin-right: 10px;
    color: #2d3b55;
    font-size: 20px;
}

.social-icon:hover {
    color: #2d3b55;
}

.custom-link {
    display: inline-block;
    padding: 5px 10px;
    background-color: #2d3b55;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.custom-link:hover {
    background-color: #45a049;
}

/* Botones de Navegación */
.blog-navigation {
    text-align: center;
}

.btn-izquierda {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 5px;
}

.btn-derecha {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-izquierda:hover, 
.btn-derecha:hover {
    opacity: 0.8;
    cursor: pointer;
}


/* =======================================================
   📑 7. PESTAÑAS (TABS)
   ======================================================= */
.tabs {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.tab {
    background-color: #ffffff;
    color: #2d3b55;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab i {
    margin-right: 8px;
}

.tab:hover {
    background-color: #2d3b55;
    color: #ccc;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
}

.tab-content.active {
    display: block;
}


/* =======================================================
   🖼️ 8. MODAL Y VENTANAS EMERGENTES
   ======================================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 10px;
    text-align: center;
}

.modal-content .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modal-content .close:hover,
.modal-content .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content audio {
    width: 100%;
    margin-top: 20px;
}

.modal-content .large-icon {
    font-size: 48px;
}


/* =======================================================
   🌐 9. BARRA SUPERIOR Y TRADUCTOR
   ======================================================= */
.top-bar {
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    width: 100%;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-socials {
    display: flex;
    gap: 18px;
}

.top-socials a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.top-socials a:hover {
    color: var(--primary-red);
    transform: translateY(-1px);
}

.btn-top-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-top-action i {
    font-size: 0.8rem;
    color: var(--primary-red);
}

.btn-top-action:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 0 12px rgba(230, 29, 43, 0.4);
    transform: translateY(-1px);
}

.btn-top-action:hover i {
    color: #ffffff;
}

#google_translate_element {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame {
    display: none !important;
}


/* =======================================================
   📄 10. DETALLE DE BLOG Y COMPARTIR SOCIALES
   ======================================================= */
.blog-content {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.blog-content h1 {
    font-weight: 700;
    color: #2d3b55;
    margin-bottom: 20px;
}

.blog-content img {
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
}

.blog-content .meta-info {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.share-buttons {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-buttons a { 
    padding: 8px 15px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 14px; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.share-buttons a:hover {
    opacity: 0.8;
}

.share-facebook { background-color: #3b5998; }
.share-twitter { background-color: #1da1f2; }
.share-linkedin { background-color: #0077b5; }
.share-whatsapp { background-color: #25d366; }


/* =======================================================
   📱 11. MEDIA QUERIES (RESPONSIVE)
   ======================================================= */
@media screen and (max-width: 768px) {
    .card-blog {
        max-width: 100% !important;
    }
}

@media screen and (min-width: 769px) {
    .card-blog {
        max-width: 550px;
        left: -20%;
    }
}
