body {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    width: 100%;
    margin: 0;
    background: var(--background-color);
    color: #333;
}

:root {
    --background-color: #fbfbfb;
    --grey-color: #8c8c8c;
    --dark-grey-color: #333;
    --mid-light-grey-color: #c4c4c4;
    --light-grey-color: #fafafa;
    --accent-color: #51c33b;
    --accent-color-dark: #398829;
    --main-color: #3A1D51;
    --main-color-light: #5a2d7d;
    --secondary-color-light: #A682BA;
    --main-color-hover: #e9e2e4;
    --swiper-pagination-color: #51c33b;
    --swiper-pagination-bullet-inactive-color: #ccc;
    --swiper-pagination-bullet-inactive-opacity: 0.8;
    --swiper-pagination-bullet-opacity: 1;
    --swiper-pagination-bullet-size: 12px;
    --swiper-pagination-bullet-horizontal-gap: 6px;
}

h1,
h2 {
    font-family: 'Exo', sans-serif;
    text-transform: uppercase;
    color: #333;
}

a {
    color: var(--main-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color-dark);
    text-decoration: underline;
}

#repositorio-container {
    display: flex;
    margin: auto;
    justify-content: center;
    width: 85%;
    gap: 20px;
}

#repositorio {
    width: 75%
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* espacio entre ícono y texto */
    text-decoration: none;
    background: none;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--accent-color-dark);
    /* cambia esto al color que prefieras */
    border: none;
    cursor: pointer;
    padding: 0;
}

.back-icon {
    width: 0.5rem;
    height: 0.5rem;
}

#menu-toggle,
#menu-toggle-repo {
    display: none
}

#link-descarga {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: var(--main-color);
    color: white;
    font-family: 'Exo', sans-serif;
    font-size: 1.25rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

#link-descarga:hover {
    background-color: var(--accent-color-dark);
}

.icono-descarga {
    width: 25px;
    height: 25px;
}

.repositorio-muestra {
    margin: auto;
    width: 60%
}

.header-right {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: right;
    text-align: center;
}

.header-right {
    flex-direction: row;
    justify-content: right;
    gap: 10px;
}

.header-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    background-color: #ffffff10;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
}

.header-icon:hover {
    background-color: var(--main-color);
    /* Modificá este valor a tu gusto */
}

.header-icon img {
    width: 12px;
    height: 12px;
}

/* Descripción de la sección */
.muestra-descripcion {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 60%;
    margin: 50px auto;
    margin-bottom: 100px;
    font-family: 'Exo', sans-serif;
    color: var(--grey-color);
}

.muestra-descripcion .icono {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    background-color: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.5s ease;
}

.muestra-descripcion .icono:hover {
    background-color: var(--secondary-color-light);
}

.muestra-descripcion .icono img {
    width: 100px;
    height: 100px;
}

.muestra-descripcion .texto {
    flex: 1;
    font-size: 1rem;
    line-height: auto;
    text-indent: 20px;
}

/* LOGO */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 2rem 0;
    perspective: 1000px;
}

.logo-observatorio {
    width: 60%;
    height: auto;
    max-width: 80vw;
    transition: transform 0.2s ease, filter 0.3s ease;
    transform-style: preserve-3d;
}

/* Mostrar solo el horizontal por defecto */
.logo-mobile {
    display: none;
}

/* BOTÓN PARA SUBIR */
#botonTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 10px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--light-grey-color);
    cursor: pointer;
    padding: 10px;
    border-radius: 100%;
    transition-duration: 0.5s;
}

#botonTop:hover {
    background-color: var(--accent-color);
}

.topIcon {
    width: auto;
    height: 2em;
}


/* CONTENIDO */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 50px;
    margin: auto;
    justify-content: center;
}

.content p {
    font-family: 'Exo', sans-serif;
    font-size: 1.25rem;
    color: var(--dark-grey-color);
    text-align: justify;
    line-height: 1.5;
}

/* BOTÓN LEY */
.boton-ley-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
}

.boton-ley {
    appearance: none;
    background-color: transparent;
    border: 2px solid var(--main-color);
    border-radius: 15px;
    box-sizing: border-box;
    color: var(--main-color);
    cursor: pointer;
    display: inline-block;
    font-family: 'Exo', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: normal;
    margin: 0;
    min-height: 80px;
    outline: none;
    padding: 1rem 3rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    width: auto;
    will-change: transform;
}

.boton-ley:disabled {
    pointer-events: none;
    opacity: 0.6;
}

.boton-ley:hover {
    color: #fff;
    background-color: var(--main-color);
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-2px);
    text-decoration: none;
}

.boton-ley:active {
    box-shadow: none;
    transform: translateY(0);
}

/* ----- MODAL PDF ----- */
.modal-pdf-content {
    width: 90%;
    max-width: 900px;
    height: 90%;
    padding: 2rem;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--main-color);
    text-align: center;
    margin-bottom: 0.125rem;
    text-transform: none;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--grey-color);
    text-align: center;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    max-width: 90%;
}

.modal-pdf-content iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    margin-bottom: 1.5rem;
}

/* ----- BOTÓN INFERIOR DEL MODAL ----- */
.boton-modal-link {
    appearance: none;
    background-color: transparent;
    border: 2px solid var(--main-color);
    border-radius: 12px;
    color: var(--main-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Exo', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
}

.boton-modal-link:hover {
    color: #fff;
    background-color: var(--main-color);
    box-shadow: rgba(0, 0, 0, 0.25) 0 6px 12px;
    transform: translateY(-2px);
    text-decoration: none;
}

.boton-modal-link:active {
    box-shadow: none;
    transform: translateY(0);
}

.boton-modal-icon {
    width: 1.2rem;
    height: 1.2rem;
    object-fit: contain;
}

.boton-modal-link:hover .boton-modal-icon {
    filter: invert(1);
}

/* ----- BLOQUE MISION VISION VALORES ----- */
.bloque-mvv {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin: 100px 0;
}

.card-mvv {
    display: flex;
    align-items: center;
    background-color: #EEEEEE;
    border-radius: 15px;
    padding: 2rem 3rem;
    width: 70%;
    font-size: 1.125rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, background-color 0.3s ease, opacity 0.8s ease, transform 0.8s ease;
    opacity: 0;
    transform: translateY(50px);
}

.card-mvv:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    background-color: var(--main-color-hover);
}

.card-mvv.visible {
    opacity: 1;
    transform: translateY(0);
}

.icono-mvv {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 2rem;
}

.icono-mvv-arriba {
    flex: 0 0 auto;
    display: none;
    justify-content: center;
    align-items: center;
    margin: 0 2rem;
}

.icono-mvv-derecha {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 2rem;
}

.img-mvv {
    width: 150px;
    height: 150px;
    transition: transform 0.3s ease;
}

.card-mvv:hover .img-mvv {
    transform: scale(1.2);
}

.texto-mvv {
    flex: 1;
    text-align: justify;
    font-size: 1.25rem;
}

.texto-mvv h2 {
    font-family: 'Exo', sans-serif;
    color: var(--main-color);
    text-transform: none;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.texto-mvv p {
    color: var(--dark-grey-color);
    line-height: 1.5;
}

.texto-mvv ul li {
    line-height: 1.5;
}

/* CARROUSEL DE IMAGENES */
.novedades-section {
    width: 100%;
    text-align: center;
    margin: 100px 0px;
}

.novedades-swiper {
    width: 75%;
    max-width: 1500px;
    margin: 0 auto;
}

.swiper-wrapper {
    align-items: center;
}

.novedades-swiper,
.swiper,
.swiper-wrapper {
    overflow-y: visible !important;
}

.swiper-slide {
    width: 60% !important;
    height: 50vh !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.45s cubic-bezier(.22, .9, .32, 1), filter 0.45s ease, box-shadow 0.45s ease;
    filter: blur(2px) brightness(0.85);
    transform: scale(0.95);
    box-sizing: border-box;
    cursor: default !important;
}

.swiper-slide-active {
    transform: scale(1.05);
    filter: none;
    z-index: 2;
}

.swiper-slide:hover {
    transform: scale(1.1);
    filter: none;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
    z-index: 3;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.swiper-pagination {
    position: absolute;
    bottom: -50px !important;
    left: 0;
    right: 0;
}

.swiper-pagination-bullet {
    background: #ccc;
    opacity: 0.8;
    color: var(--accent-color);
}

.swiper-pagination-bullet-active {
    background: var(--accent-color-dark);
    background-color: var(--accent-color);
    opacity: 1;
}

/* DIRECTORIO */
.directorio-section {
    margin: 100px 0px;
    text-align: center;
}

.directorio-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--main-color);
}

.directorio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 75%;
    max-width: 1400px;
    margin: 0 auto;
}

.directora-card {
    background: #EEEEEE;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.5s ease;
    text-align: center;
}

.directora-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background-color: var(--main-color-hover);
}

.directora-img {
    width: 100%;
    height: 40vh;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.directora-nombre {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 0px 20px;
}

.directora-card:hover .directora-nombre {
    color: var(--main-color)
}

.directora-desc {
    font-size: 1rem;
    color: #444;
    padding: 0px 20px;
    margin-bottom: 30px;
}

/* EQUIPO TÉCNICO */ 
.equipo-section {
    width: 75%;
    margin: 100px auto;
}

.equipo-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--main-color)
}

.card-equipo {
    background: #EEEEEE;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.5s;
    text-align: center;
    padding: 20px;
    width: 100%;
}

.card-equipo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background-color: var(--main-color-hover);
}

.card-nombre {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 5px;
}

.card-equipo:hover .card-nombre {
    color: var(--main-color)
}

.card-cargo {
    font-size: 1rem;
    color: #444;
    margin: 5px;
}

/* EQUIPO TÉCNICO */
.equipo-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 100px;
}

.equipo-grid .card-equipo {
    flex: 1 1 calc(33.33% - 20px);
    max-width: 320px;
}

.equipo-proyecto {
    display: flex;
    margin-top: 50px;
    gap: 40px;
    align-items:center;
}

.proyecto-titulo {
    flex: 1;
    font-size: 1.5rem;
    font-weight: bold;
}

.proyecto-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}