body {
    margin: 0;
}

main {
    overflow-x: hidden;
}

/*Menú de navegación*/
.navbar {
    background-color: #DDDDDD; 
    overflow: hidden; 
    max-width: 960px; 
    margin-left: auto;
    margin-right: auto;
    margin-top: 4rem;
}

.navbar ul {
    list-style-type: none; 
    margin: 0;
    padding: 0;
    display: flex; 
}

.navbar li a {
    display: block; 
    color: black; 
    font-family: Menlo; 
    text-align: center; 
    padding: 14px 20px; 
    text-decoration: none; 
    transition: background-color 0.3s; 
}

.navbar li a:hover {
    background-color: #285835;
    color: white; 
}

.navbar li a.active {
    background-color: #285835; 
    color: white; 
}

.empujar-derecha {
    margin-left: auto; 
}

.menu-hamburguesa {
    margin-top: 0 !important;
    display: none; /* Oculto por defecto en pantallas grandes */
}

/* Estilos para el traductor */
#traductor-contenedor {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: flex-end;
    padding: 0px 0;
}

.goog-te-gadget img,
.goog-te-gadget > span,
.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    font-size: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.goog-te-gadget select {
    font-family: inherit !important;
    font-size: 13px !important;
    background-color: #285835 !important;
    color: white !important;
    border: 1px solid #285835 !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    cursor: pointer !important;
    outline: none !important;
}

.goog-te-gadget select:hover {
    background-color: #1e4228 !important;
}

/* Estilos para el menú responsive (móvil) */
@media screen and (max-width: 475px) {
    .navbar {
        margin-top: 0;
        width: 100%;
        max-width: none;
    }

    .navbar ul {
        flex-direction: column;
        position: relative;
    }

    /* Ocultamos todos los enlaces del menú por defecto en móvil */
    .navbar ul li:not(.menu-hamburguesa) {
        display: none;
    }

    /* Mostramos el botón de hamburguesa y hacemos que ocupe todo el ancho */
    .navbar ul li.menu-hamburguesa {
        display: block;
        width: 100%;
        background-color: #285835; /* Color de fondo verde */
    }

    .navbar ul li.menu-hamburguesa a {
        font-size: 1.6rem; /* Aumenta el tamaño del icono */
        padding-top: 8px; /* Ajusta el padding para centrarlo verticalmente */
        padding-bottom: 8px;
        color: white; /* Cambia el color del icono a blanco */
    }

    /* Cuando el menú tiene la clase .responsive (añadida con JS) */
    .navbar ul.responsive {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Mostramos todos los enlaces */
    .navbar ul.responsive li {
        display: block;
        width: 100%;
        text-align: left;
    }

    /* Quitamos el margen que empujaba los últimos elementos a la derecha */
    .navbar ul.responsive li.empujar-derecha {
        margin-left: 0;
    }
}

/*Index*/
.perfil {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.perfil h1 {
    font-family: "Donegal One", serif;
    font-weight: 400;
    font-size: 2.3rem;
    color: #285835;
    margin: 0;
}

.perfil p {
    font-family: "Newsreader", serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.textos-sobremi {
    max-width: 960px;
    margin: 2rem auto;
}

.actualidad-textos-sobremi h2 {
    text-align: left;
    font-family: "Donegal One", serif;
    font-weight: 400;
    font-size: 2.3rem;
    color: #285835;
    margin-bottom: 0.2rem;
    display: inline-block;
    padding-bottom: 1px;
    border-bottom: 2px solid #285835;
}

.actualidad-textos-sobremi p {
    text-align: left;
    font-family: "Red Hat Text", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

.background-textos-sobremi h2 {
    text-align: left;
    font-family: "Donegal One", serif;
    font-weight: 400;
    font-size: 2.3rem;
    color: #285835;
    margin-bottom: 0.2rem;
    display: inline-block;
    padding-bottom: 1px;
    border-bottom: 2px solid #285835;
}

.background-textos-sobremi p {
    text-align: left;
    font-family: "Red Hat Text", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

.proyectos-textos-sobremi h2 {
    text-align: left;
    font-family: "Donegal One", serif;
    font-weight: 400;
    font-size: 2.3rem;
    color: #285835;
    margin-bottom: 0.2rem;
    display: inline-block;
    padding-bottom: 1px;
    border-bottom: 2px solid #285835;
}

.proyectos-textos-sobremi p {
    text-align: left;
    font-family: "Red Hat Text", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

.proyectos {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2rem;
}

.imagen-proyectos {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.imagen-proyectos:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.encabezado-proyectos {
    font-family: "Read Hat Text", sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #285835;
    margin: 0;
    text-decoration: dotted underline;
}

.parrafo-proyectos {
    font-family: "Red Hat Text", sans-serif;
    font-size: 1.1rem;
    margin: 0.25rem 0 0 0;
}

.encabezado-proyectos a {
    color: inherit;
    text-decoration: none;
}

.texto-resaltado {
    color: #285835;
    font-weight: bold;
}

.texto-resaltado a {
    color: inherit;
    text-decoration: none;
}

.texto-resaltado a:hover {
    text-decoration: none;
}

.tecnologias-textos-sobremi h2 {
    text-align: left;
    font-family: "Donegal One", serif;
    font-weight: 400;
    font-size: 2.3rem;
    color: #285835;
    margin-bottom: 0.2rem;
    display: inline-block;
    padding-bottom: 1px;
    border-bottom: 2px solid #285835;
}

.tecnologias-textos-sobremi p {
    text-align: left;
    font-family: "Red Hat Text", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

.servicios-textos-sobremi h2 {
    text-align: left;
    font-family: "Donegal One", serif;
    font-weight: 400;
    font-size: 2.3rem;
    color: #285835;
    margin-bottom: 0.2rem;
    display: inline-block;
    padding-bottom: 1px;
    border-bottom: 2px solid #285835;
}

.servicios-textos-sobremi p {
    text-align: left;
    font-family: "Red Hat Text", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

    /* Cinta de tecnologías */
.cinta-tecnologias {
    overflow: hidden;
    padding: 20px 0;
    background-color: white;
    white-space: nowrap;
    position: relative;
    margin-top: 1.2rem;
}

.cinta-tecnologias:before,
.cinta-tecnologias:after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.cinta-tecnologias:before {
    left: 0;
    background: linear-gradient(to right, white, rgba(255,255,255,0));
}

.cinta-tecnologias:after {
    right: 0;
    background: linear-gradient(to left, white, rgba(255,255,255,0));
}

.cinta-logos {
    display: inline-block;
    animation: scroll 40s linear infinite;
}

.cinta-logos img {
    height: 50px;
    margin: 0 40px;
    vertical-align: middle;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}



/*Academico*/
.seccion-contenido {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.seccion-contenido h2 {
    text-align: center;
    font-family: "Donegal One", serif;
    font-weight: 400;
    font-size: 2.3rem;
    color: #285835; 
    margin-bottom: 1rem;
}

.encabezado-flexible {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
}

.icono-encabezado {
    height: 2.7rem; 
    width: auto;    
}

.texto-adicional-encabezado {
    font-size: 1.2rem;
    color: #285835;
    margin: 0;
    position: relative;
    top: -0.2em;
}

#palabra-rotativa {
    transition: opacity 0.5s ease-in-out;
}

.texto-adicional-encabezado a {
    color: inherit;
    text-decoration: underline;
    transition: text-decoration 0.3s;
}

.texto-adicional-encabezado a:hover {
    text-decoration: underline;
}

#palabra-rotativa.fade-out {
    opacity: 0;
}

.descripcion-seccion {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
}

.subdescripcion-seccion {
    font-size: 1.3rem;
    text-align: left;
    margin-top: 0.25rem;
    margin-left: 2rem;
}

.icono-ponencia {
    height: 1.3rem;
    vertical-align: middle;
    margin-right: 4px;
}

.separador-simbolo {
    max-width: 560px;
    margin: 2rem auto;
    text-align: center;
    font-size: 4rem;
    color: black;
}



/*Lecturas*/
.lecturas-seccion-texto {
    max-width: 960px;
    margin: 2rem auto;
}

.letra {
    width: 60px;
    height: auto;
}

.texto-lecturas {
    text-align: left;
    font-family: 'Red Hat Text', sans-serif;
    font-size: 1.2rem;
}

.lecturas-seccion-libros {
    max-width: 800px;
    margin: 2rem auto; 
    text-align: center;
}

.libro {
    display: inline-flex; 
    align-items: flex-start; 
    gap: 3rem; 
    text-align: left; 
    margin-bottom: 1.5rem;
}

#libroancho {
    gap: 1rem;
}

.portada-libro {
    flex-shrink: 0;
    max-width: 115px; 
    height: auto;
    transition: transform 0.3s ease;
}

#portadaancho {
    max-width: 175px;
}

.portada-libro:hover {
    transform: scale(1.1);
}

.libro-info {
    font-size: 1.1rem;
    flex-grow: 1;
    min-width: 0;
}

.titulo-libro {
    color: #285835;
    font-family: "Newsreader", serif;
    font-weight: 600;
    font-size: 1.3rem;
    max-width: 20rem;
}

.informacion-libro {
    font-family: "Newsreader", serif;
}

.lectura-libro {
    font-family: "Newsreader", serif;
}

.libro-info code {
    background-color: #F8F8F8;
    border: 1px solid #c7c5c5;
    border-radius: 4px;
    padding: 3px 6px;
    margin-right: 5px;
    font-size: 0.9em;
    color: #333;
}

.separador-libro {
    width: 70%; 
    margin: 0 auto 1.5rem auto; 
    border: none; 
    height: 1px;  
    background-color: #c7c5c5;
}



/*Blog*/
.post-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.post-list li {
    background-color: #285835;
    color: white;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.post-link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: white;
    transition: background-color 0.2s ease-in-out;
}

.post-title {
    font-family: "Red Hat Text", sans-serif;
    font-size: 1.3rem;
}

.post-excerpt {
    font-family: "Red Hat Text", sans-serif;
    font-size: 1rem;
    margin-top: 0.2rem;
    padding: 0 1rem 0.5rem 1rem;
    color: white;
}

.post {
    max-width: 960px;
    margin: 2rem auto;
    color: #285835;
}


/*Footer*/
footer {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 4rem;
    font-family: 'Newsreader', serif;
    font-size: 1.1rem;
}

footer a {
    color: #285835;
    text-decoration: none;
}

footer a:hover {
    text-decoration: none;
}