:root {
    --color-primary: #ff6f25;
    --color-secondary: #004f2c;
    --color-text: #333333;
    --color-background: #ffffff;
    --color-light-gray: #f5f5f5;
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--color-text);
    line-height: 1.7;
    background-color: var(--color-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Tipografía */


h1 {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-align: center;
    padding-bottom: 1.5rem;
    padding-top: 1.5rem;
}

h2 {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-align: center;
}


h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-primary);

}

a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;

}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}


.notas {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.notas a {
    color: var(--color-primary);
    text-decoration: none;
    display: inline !important;

}

.footer-info a {
    color: var(--color-primary);
    text-decoration: none;
    display: inline !important;
}



.notas a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}


.sin-salto {
    white-space: nowrap;
    display: inline;
    word-break: keep-all;
}

.divvoces a {
    color: var(--color-primary);
    text-decoration: none;
}

.divvoces a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}


/* Header y Navegación */
.header {
    background-color: var(--color-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    padding: 10px;
    transition: height 0.3s ease, padding 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    
    margin: 0;
    padding: 0;
    transition: gap 0.3s ease;
    font-size: 0.9rem;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    display: block;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Estilos del botón hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Contenido Principal */
.main-content {
    margin-top: 80px;
    padding: 2rem 1rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
}

.container {
    width: 100%;

}

.container img {
    width: 100%;
}


/* Footer */
.footer {
    background-color: var(--color-secondary);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-app {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.btn-app:hover {
    background-color: var(--color-secondary);
}

.btn-app a {
    color: white;
    text-decoration: none;
}

.divlimpio {
    all: unset;
}


.elementoscentrados {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    /* <--- esto alinea a la izquierda */
}





/* Barra de búsqueda */
.search-container {
    width: 100%;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    padding: 2rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    width: 80%;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    font-size: 1rem;
    min-height: 4rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.search-button:hover {
    background-color: var(--color-primary);
}

.search-results {
    max-width: 800px;
    margin: 0 auto;
}

.espacio {
    height: 50px;
}



.contenedor-flex {
    display: flex;
    /* Activa el contexto Flexbox */
    flex-wrap: wrap;
    /* Permite que los elementos pasen a la siguiente línea si no caben */
    gap: 1rem;
    /* Espacio entre las columnas (opcional) */
}

.columna-flex {
    background-color: #f0f0f0;
    /* Color de fondo para visualización */
    padding: 1rem;
    border: 1px solid #ccc;
    box-sizing: border-box;
    /* Incluye padding y border en el ancho total */

    /* Por defecto (móvil): 2 columnas */
    /* Cada columna ocupa cerca del 50% menos el espacio del gap */
    flex-basis: calc(50% - 0.5rem);
    /* (100% / 2) - (gap / 2) */
    flex-grow: 1;
    /* Permite que las columnas crezcan si hay espacio extra */
}

.columna-flex img {
    width: 100%;

}



.contenedor-flex a {
    text-decoration: none;
    color: var(--color-text);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 4rem;
}



/* REVISADO */
.article-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: darkslategray;


}

/* REVISADO */
.article-title a {
    color: darkslategray;
    font-size: 1.25rem;
    text-decoration: none;
}

.article-title a:hover {
    text-decoration: underline;
}



.article-meta {
    display: flex;
    justify-content: space-between;
    font-weight: 400;
    font-size: 0.8rem;
    color: #666;
}

.article-meta a {
    color: var(--color-text);
    text-decoration: none;
}

.article-author {
    font-weight: 400;
    font-size: 0.8rem;
}

.article-category {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 400;


}


.contenedorperfil {
    font-size: 1.2rem;

}

.contenedorperfil h1 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-secondary);
}

.contenedorperfil h5 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-secondary);
}





.contenedorautores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 2rem;
}

.linksredes {
    gap: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.linksredes a {
    text-decoration: underline;
    color: var(--color-text);
    font-size: 1.2rem;
    padding: 0.5rem 0.5rem;
}





.botonperfil {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem 1rem;
    text-decoration: none;
}


.cardautor {
    background-color: #f0f0f0;
    border-radius: 4%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transition: transform 0.2s ease;
    line-height: 1.5;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-secondary);
}


.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.article-item {
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.article-item h3 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-secondary);
}

.article-item a {
    text-decoration: none;
    color: var(--color-text);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-info p {
    font-size: 1.2rem;
    font-weight: 500;
}


.articulo-detalle {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-size: 1.2rem;
}

.meta-info {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.resumen,
.contenido {
    line-height: 1.6;
}


/* ----- Definicios de webparts ----- */

.articuloenlista_wp {
    display: flex;
    flex-direction: column;
    padding-bottom: 3rem;
}

.articuloenlista_wp h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;

}

.articuloenlista_wp p {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text);
    margin: 0;
    padding: 0;
}

.articuloenlista_wp a {
    text-decoration: none;
    color: var(--color-text);
}

.articuloenlista_wp a:hover {
    text-decoration: underline;
}


.btn-paginacion {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    /* suave al pasar el mouse */
    margin: 0.5rem;
}

.btn-paginacion a {
    color: white;
    text-decoration: none;
}



.checkbox-inline {


    display: flex;
    align-items: end;
    align-content: center;
    font-family: sans-serif;
    font-size: 14px;
    white-space: nowrap;

}

.checkbox-inline input {
    margin-top: 0.5rem;
    width: 1rem;

}

.checkbox-inline label {
    margin-left: 0.5rem;

}


.elementoscentrados {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.table-striped a {
    text-decoration: none;
    color: black;
}

.table-striped a:hover {
    text-decoration: underline;
}



.page-link {
    color: var(--color-primary);
}

.page-link:hover {
    color: var(--color-primary);
}

.page-item.active .page-link {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}




.contenido-texto {

    font-weight: 500;
    color: black;
}

.contenido-texto p {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 2;
    color: black;
}

.contenido-texto h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: black;
}

.contenido-texto a {
    color: var(--color-primary);
    text-decoration: none;
}

.contenido-texto a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.parrafo-impacto {
    font-size: 1.7rem;
    font-weight: 500;
    color: gray;
}













/* Media Query para pantallas más grandes (escritorio): 3 columnas */
@media (min-width: 768px) {

    /* Puedes ajustar este breakpoint según tus necesidades */
    .columna-flex {
        /* Cada columna ocupa cerca del 33.33% menos el espacio del gap */
        flex-basis: calc(33.333% - 0.67rem);
        /* (100% / 3) - (gap * 2 / 3) */
    }
}

/* Ajuste para que si solo hay 1 o 2 elementos en la última fila en móvil, ocupen todo el ancho disponible */
@media (max-width: 767px) {

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .columna-flex:last-child:nth-child(odd) {
        /* Si es el último y es impar (queda solo en una fila de 2) */
        flex-basis: 100%;
    }


    .search-form {
        width: 100%;
    }
}


/* Contenido centrado horizontalmente y verticalmente , elementos en una columna    */















/* Responsive Design */
/* Media query para pantallas medianas (tablets y laptops pequeñas) */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nav-container {
        padding: 0.8rem;
    }
    
    .logo img {
       
        
        padding: 8px;
    }
}

/* Media query para pantallas pequeñas de computadora */
@media (max-width: 1200px) and (min-width: 1025px) {
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.9rem;
    }
    
    .nav-container {
        padding: 0.9rem;
    }
}

/* Media query para pantallas medianas-grandes */
@media (max-width: 1400px) and (min-width: 1201px) {
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0.95rem;
    }
}

/* Media query para móviles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--color-background);
        flex-direction: column;
        padding: 80px 2rem 2rem;
        box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        display: flex;
        right: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    /* Animación del botón hamburguesa */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

   

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .article-header {
        padding: 0.75rem;
    }

    .article-content {
        padding: 1rem;
    }



    .search-form {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #e65a1a;
}

/* Tablas */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-light-gray);
}

.table th {
    background-color: var(--color-secondary);
    color: white;
}

.table tr:hover {
    background-color: var(--color-light-gray);
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}


.textarea-full {
    width: 100%;
    box-sizing: border-box;
    /* asegura que padding no rompa el layout */
    height: 100%;
}

/* Estilos para las tarjetas de artículos */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background-color: #f8fafc;
    border-radius: 6px;
    overflow: hidden;
    height: auto;
    border: 1px solid #ccc;
    margin: 0.5rem;
    padding: 1.5rem;
    min-height: 200px;

}



.article-header {
    padding: 1rem;
    color: white;
}

/* Títulos de artículos */


.article-content {
    padding: 1rem;
}

.article-meta {
    display: flex;
    flex-direction: column;

    font-size: 0.9rem;
    color: var(--color-text);
}

.article-author {
    font-weight: 500;
    color: var(--color-secondary);
}

.article-date {
    color: #666;
}

.article-category {
    color: gray;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-summary {
    font-size: 1rem;
    color: var(--color-text);
    padding: 1rem;
}


.list-group-articulos {
    padding: 10px;
}

.list-group-articulos h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-secondary);

}

.list-group-articulos a {
    text-decoration: none;
    color: var(--color-text);
}

.list-group-articulos a:hover {
    text-decoration: underline;
}

.list-group-articulos p {
    font-size: 1rem;
    color: var(--color-text);
}




.formularios form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.formularios form label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.formularios textarea {
    width: 100%;
    height: 10rem;
}

form input,
form select {
    padding: 1rem;
    font-size: 1rem;
    height: 2rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}


form select {
    color: black;
}

form textarea {
    padding: 1rem;
    font-size: 1rem;
    height: 2rem;
    border-radius: 0.5rem;
}





.opcion-placeholder {
    color: gray !important;
}

.formularios form button {
    padding: 0.75rem;
    font-size: 1rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.formularios form button:hover {
    background-color: var(--color-primary);
}




.imagenescategorias h4 {
    color: black;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
}





/* Clase principal para el select */
.select-personalizado {
    background-color: white;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 200px;
    height: 50px;
}

/* Efecto hover */

/* Cuando está enfocado */
.select-personalizado:focus {
    background-color: #ffffff;


}

/* Estilo para el placeholder */
.opcion-placeholder {
    color: #666;
    font-style: italic;
}

/* Estilos para las opciones */
.select-personalizado option {
    background-color: #ffffff;
    color: #333;
    padding: 10px;
}

.select-personalizado option:hover {
    background-color: #e3f2fd;
}




/* Media Queries */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.1rem;
    }

    .article-title h3 {
        font-size: 1rem;
        color: var(--color-primary);
    }
}

/* Ajustes para pantallas más grandes */
@media (min-width: 769px) {
    .articles-container {
        padding: 2rem;
        margin: 2rem auto;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 2rem;
    }
}

/* Ajustes para pantallas muy grandes */
@media (min-width: 1200px) {
    .articles-container {
        padding: 2.5rem;
    }


    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 1.5rem;
    }




}

/* fin de la hoja de estilo */