@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #ffeef2 !important;
    /* rosa pastel muy claro */

    line-height: 1.6;
}

/* HEADER */
.centered-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    background-color: transparent !important;
}

.logo {
    height: 120px;
}

/* HERO SECTION */
.hero {
    background: none !important;
    /* Elimina cualquier fondo heredado como imágenes */
    background-color: #ffeef2 !important;
    text-align: center;
    padding: 3rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgb(0, 0, 0);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgb(0, 0, 0);
}

/* MAIN SECTION */
.main-content {
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* MODULES */
.moduleIndex {
    background-color: white;
    color: #333;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.moduleIndex:hover {
    transform: translateY(-5px);
}

.moduleIndex h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #c71585;
    /* rosa fuerte/magenta para contraste */
}

.module h2,
h1.page-heading {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #c71585;
    /* rosa fuerte/magenta para contraste */
}



.module {
    background-color: white;
    color: #333;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

/* FOOTER */
footer {
    background-color: #fea5ba;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 4rem;
}

/*Botones*/
.btn-primary {
    background-color: #c71585 !important;
    border-color: #c71585 !important;
}

.btn-primary:hover {
    background-color: #a20f6d !important;
    border-color: #a20f6d !important;
}


/* Al pasar el mouse */
.navbar-nav li a:hover {
    color: #fff !important;
    /* Texto rosa fuerte */
    background-color: #c71585 !important;
    /* Fondo claro rosado */
    text-decoration: none;
}

/* Cuando está activo o seleccionado */
.navbar-nav li.active a,
.navbar-nav li a.active {
    color: #fff;
    background-color: #c71585 !important;
    border-radius: 0.25rem;
}


/*MASTHEAD*/

.account-masthead {
    background-color: #ff1573 !important;
    /* Rosa claro */
    padding: 1rem 0;
}

.account-masthead .avatar.authed ul {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.account-masthead .avatar.authed li {
    list-style: none;
    border: none;
    background: none;
    box-shadow: none;
    position: relative;
}

.account-masthead .avatar.authed li::before {
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.account-masthead .avatar.authed a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fff;
    color: #c71585;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.account-masthead .avatar.authed a:hover {
    background-color: #c71585;
    color: white;
}

.account-masthead .avatar.authed a .fa,
.account-masthead .avatar.authed a .user-image {
    width: 20px;
    height: 20px;
}

.account-masthead .avatar.authed .username {
    font-weight: 600;
}

.account-masthead .avatar.authed form {
    margin: 0;
}

.account-masthead .avatar.authed form button {
    background-color: transparent;
    color: #c71585;
    border: none;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.account-masthead .avatar.authed form button:hover {
    background-color: #c71585;
    color: white;
}

.account-masthead .avatar.authed form button {
    background-color: #fff;
    color: #c71585;
    border: none;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-masthead .avatar.authed form button:hover {
    background-color: #c71585;
    color: white;
}



/* Estilo general del footer */
.site-footer {
    background-color: #ff1573 !important;
    color: white;
    padding: 2rem 0;
    font-size: 0.95rem;
}

/* Enlaces del footer */
.site-footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #ffe1f0;
    text-decoration: underline;
}

/* Listas */
.site-footer .footer-links ul {
    padding: 0;
    margin-bottom: 1rem;
}

.site-footer .footer-links ul li {
    list-style: none;
    margin-bottom: 0.5rem;
}

/* Logo de CKAN */
.site-footer .ckan-footer-logo {
    display: inline-block;
    background: url('/base/images/ckan-logo.png') no-repeat;
    width: 80px;
    height: 20px;
    text-indent: -9999px;
}

/* Selector de idioma */
.site-footer .lang-select label {
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.site-footer .select2-choice {
    background-color: white !important;
    color: #c71585 !important;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    border: none;
}

.site-footer .select2-arrow b {
    border-color: #c71585 transparent transparent transparent !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .site-footer .row {
        flex-direction: column;
        gap: 2rem;
    }
}