/* Estilos generales */
:root {
    --primary-color: #1A76D1;
    --text-color: #2C2D3F;
    --bg-light: #f8f9fa;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
}

/* Contenedor del logo y navegación */
#logo-container {
    background: white;
    padding: 0.75rem 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

#logo:hover {
    transform: scale(1.05);
}

/* Navegación */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Encabezado del blog */
.blog-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1A76D1 0%, #1557a0 100%);
    margin-bottom: 3rem;
    color: white;
}

.blog-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.blog-header p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Grid de artículos */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

/* Tarjetas de artículos */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.article-initials {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A76D1 0%, #1557a0 100%);
    color: white;
    font-size: 4rem;
    font-weight: bold;
}

.blog-card-content {
    padding: 1.75rem;
}

.blog-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0.5rem 0 1rem;
    line-height: 1.4;
    color: var(--text-color);
}

.blog-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card .date {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Botón leer más */
.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #1557a0;
    transform: translateX(5px);
}

/* Categorías */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Etiquetas */
.blog-card .tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.blog-card .tag {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 15px;
    color: #666;
}

/* Pie de página */
.footer {
    background: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer a:hover {
    text-decoration: underline;
}

/* Artículo individual */
.article-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1A76D1 0%, #1557a0 100%);
    padding: 3rem 2rem;
    color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.article-meta {
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.highlight-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.75rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin: 2rem 0;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    transform: translateX(-5px);
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    #logo-container {
        padding: 0.5rem 1rem;
    }

    #logo {
        height: 32px;
    }

    .nav-links {
        gap: 1rem;
    }

    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-header p {
        font-size: 1.1rem;
    }
    
    .blog-grid {
        padding: 0 1rem;
    }
    
    .article-header {
        padding: 2rem 1.5rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }
    
    #logo {
        height: 30px;
    }
    
    .blog-header {
        padding: 3rem 1rem;
    }
    
    .blog-header h1 {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) {

    .section2 {
        background-color: #f1f1f1;
        width: auto;
        padding: 20px;
        text-align: left;
    }
    
    .section2 .grid-container {
        display: grid;
        grid-template-columns: repeat(6, 1fr); /* Cambiamos de 2 a 5 columnas */
        gap: 20px;
        width: 100%; /* Ancho completo */
        font-family: "Roboto", sans-serif;
    }
    
    
    
    .section2 .column {
        background-color: #f1f1f1;
        padding: 20px;
        text-align: left;
    }
    
    .section2 h2 {
        margin-bottom: 10px;
        color: darkgray; /* Cambia "darkgray" al color gris oscuro deseado */
    
    }
    
    
   
 
    
    }
    
    .section3 {
        background-color: #333;
        color: white;
    }
    
    .footer {
        padding: 20px;
        text-align: center;
    }
    
    .section2 .no-bullets {
        list-style-type: none;
        padding-left: 0;
    }
    
    .section2 .no-bullets li {
        margin-bottom: 5px;
    }
    
    .section2 .no-bullets li a {
        text-decoration: none;
        text-align: left; /* Alinear el texto a la izquierda */
    }


    #ubicacion-options {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        border: 1px solid #ccc;
        border-top: none;
        max-height: 200px;
        overflow-y: auto;
        padding: 5px;
        color: #000;
        text-align: left;
        list-style: none;
        font-size: inherit;
        max-width: 600px; /* Limita el ancho máximo de las opciones */
        width: 100%; /* Ocupa el ancho completo */
        margin: 0 auto; /* Centra horizontalmente */
        display: none;
    }
    
    #ubicacion-options div {
        padding: 5px;
        cursor: pointer;
        width: 100%; /* Ocupa el ancho completo del contenedor */
        box-sizing: border-box; /* Incluye el padding en el ancho total */
    }
    
    #ubicacion-options div:hover {
        background-color: #f0f0f0;
    }
    
    #ubicacion-options div.selected {
        background-color: #000;
        color: #fff;
    }
    
    .container {
        max-width: 600px;
        margin: 0 auto;
    }
    
    #input-box {
        display: flex;
        align-items: center;
        justify-content: center; /* Centrar horizontalmente */
        position: relative;
    }
    
    #input-box input {
        flex-grow: 1;
        border: none;
        padding: 5px;
        outline: none;
        font-size: 16px;
        height: 40px;
        max-width: 600px; /* Ajusta el valor según tus necesidades */
    }
    
    
    #input-box span {
        cursor: pointer;
        color: #fff; /* Cambia el color del ícono a blanco */
        background-color: #485879; /* Agrega un fondo de color al ícono */
        font-size: 18px; /* Ajusta el tamaño de fuente según tus necesidades */
       
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
       
        line-height: 1; /* Alineación vertical precisa */
        height: 100%; /* Para que el ícono ocupe toda la altura del contenedor */
        padding: 8px; /* Añade un poco de espacio alrededor del ícono */
       
    }

    .search-icon-container {
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .search-icon-container span {
        cursor: pointer;
        color: #485879;
    }

