
.boton-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px;
    background-color: #bf82f0b4;
    color: #65419d;
    border: 1px solid #a76ef3;
    border-radius: 10px;
    font-size: 0.97rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(75, 45, 120, 0.07);
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.boton-home:hover {
    background-color: #f5edfc;
    border-color: #b99bdd;
    color: #50317f;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(75, 45, 120, 0.12);
}




.imagen-flotante {
  float: right;
  margin-right: 25px;
  /* Espacio a la derecha de la imagen */
  margin-bottom: 0px;
  /* Espacio inferior */
  margin-top: 0px;
  width: 100px;
  /*Ajusta el ancho de tu foto */
  height: auto;
  object-fit: cover;
  border-radius: 30%;
  border: 3px solid #D8C9E8;
  padding: 3px;
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);

}



/* Limpia los flotados para que no afecten a los elementos de abajo */
.contenedor::after {
  /* puntos dobles :: permite aplicar estilos a partes especificas*/
  content: "";
  display: table;
  clear: both;
}

.cuerpo {
  margin: 0;
  margin-bottom: 0px;
  background-color: #f3eff9;
}
.cuerpo.boton-home{
    margin: 20px 25px 0;
}

#contenedor-primario {
  /* background-color: aqua; */
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  box-sizing: border-box;
  font-size: 17px;
  width: 100% - margin-left;
  gap: 1px;
  margin-left: 50px;
  margin-bottom: 20px;

}

.contenedor-btn-ver-cv {
  display:inline-flex;
  justify-content: center;
  align-items: center;
  margin-left: 20px;
  margin-right: 80px;
  margin-top: auto;
  margin-bottom: 20px;
  width: fit-content;
  height:auto ;
  justify-content: flex-end;
  box-sizing: border-box;
  gap: 6px; /*espacio entre icono y texto*/
  flex-wrap: nowrap; /*evita que el contenido se divida*/
  flex-shrink: 0; /* evita que el boton se comprima*/
}

/* Adaptación para celulares */
@media (max-width: 480px) {
    .boton-home {
        font-size: 12px;
        padding: 6px 10px;
        gap: 4px;
    }

    .boton-home i {
        font-size: 12px;
    }
}


.datos-contacto {
  text-align: center;
  display: flex;
  flex-direction: row;
  background-color: lightgray;
  width: 100%;
  flex-shrink: 0;
  justify-content: space-evenly;

}

.datos-contacto .item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease-in-out;

}

.datos-contacto .item i {
  font-size: 22px;
  width: 25px;
  text-align: center;
  display: inline-block;

}

.datos-contacto .item:hover {
  color: blueviolet;
  transform: translateY(-2px);
}

.negrita {
  font-weight: bold;
}



#full-stack {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-right: 200px;
}



.titulo-violeta {
  color: blueviolet;
  text-align: center
}

.margen-izquierdo-30px {
  margin-left: 30px;
}

.margen-izquierdo-50px {
  margin-left: 50px;
}
@media print {
    .boton-home {
        display: none;
    }
    nav {
        display: none !important;
    }

    body {
        background: white;
    }
}

#btn-descargar-cv{
  position: fixed; /*mantiene ubicacion respecto de la ventana*/
  bottom: 20px;
  right: 15px;
  z-index: 1000; /*queda por encima de otros elementos, flotando !!*/
}

.boton-descargar {
    background-color: #7652b8b0;
    color: #ffffff;
    border-color: #7552b8;
}

.boton-descargar:hover {
    background-color: #62419f;
    color: #ffffff;
    border-color: #62419f;
}


/* ENCABEZADO Y NAVEGACIÓN */

.encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 7%;
    background-color: #ffffff;
    border-bottom: 1px solid #eee7f5;
    gap: 20px;
    flex-wrap: wrap; /*permite que se baje si no entra en la pantalla*/
     position: sticky;  /*que se mantenga fijo */
    top: 0;
    z-index: 1000; /* eje z=>delante de otros elementos inferiores como (z-index:500)*/
}

.nombre-logo {
    color: #302642;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.nombre-logo span {
    color: #8054b8;
}

.navegacion {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.navegacion a {
    color: #51465f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.navegacion a:hover {   /* :hover= al mover el mouse*/
    color: #8054b8;
}
.navegacion a.boton-home {
    color: #3c1972;
    background-color: #d7c8ec;
    border: 1px solid #9e66e9;
    border-radius: 10px;
    padding: 10px 18px;
}

.navegacion a.boton-home:hover {
    color: #50317f;
    background-color: #f3edfc;
    border-color: #b99bdd;
}


/* PRESENTACIÓN PRINCIPAL */

.presentacion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 70px 10%;
    background-color: #faf8fc;
}

.presentacion-texto {
    max-width: 600px;
}

.etiqueta-presentacion {
    color: #8054b8;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.presentacion h1 {
    color: #302642;
    font-size: 42px;
    margin-bottom: 12px;
}

.presentacion h1 span {
    color: #8054b8;
}

.presentacion h2 {
    color: #51465f;
    font-size: 23px;
}

.presentacion-texto > p:not(.etiqueta-presentacion) {
    color: #62596c;
    line-height: 1.8;
}

.boton-principal {
    display: inline-block;
    margin-top: 15px;
    padding: 13px 20px;
    border-radius: 8px;
    background-color: #8054b8;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

.boton-principal:hover {
    background-color: #684096;
    transform: translateY(-2px);
}

.presentacion-foto img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 8px 25px rgba(48, 38, 66, 0.12);
}

/* ADAPTACIÓN A CELULARES */

@media (max-width: 650px) {
    .encabezado {
        justify-content: center;
        text-align: center;
    }

    .navegacion {
        justify-content: center;
        gap: 14px;
    }

    .presentacion {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 7%;
        gap: 25px;
    }

    .presentacion h1 {
        font-size: 32px;
    }

    .presentacion h2 {
        font-size: 20px;
    }

    .presentacion-foto img {
        width: 170px;
        height: 170px;
    }
}

/* SECCIÓN SOBRE MÍ */
.sobre-mi {
    padding: 65px 12%;
    background-color: #ffffff;
    text-align: center;
}

.etiqueta-seccion {
    color: #8054b8;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.sobre-mi h2,
.proyectos h2 {
    color: #302642;
    font-size: 32px;
    margin-bottom: 20px;
}

.sobre-mi > p:last-child {
    max-width: 750px;
    margin: 0 auto;
    color: #62596c;
    line-height: 1.9;
}

/* SECCIÓN PROYECTOS */
.proyectos {
    padding: 65px 8%;
    background-color: #faf8fc;
    text-align: center;
}

.descripcion-proyectos {
    color: #62596c;
    margin-bottom: 35px;
}

.contenedor-proyectos {
    display: flex;
    justify-content: start;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

.tarjeta-proyecto {
     display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-sizing: border-box;
    flex: 1 1 280px;
    max-width: 450px;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #d8c6ef;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(75, 45, 120, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarjeta-proyecto:hover {  /*:hover = efecto al mover el mouse*/
     transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(75, 45, 120, 0.17);
}

.icono-proyecto {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: #f1eafa;
    color: #8054b8;
    font-size: 23px;
}

.tarjeta-proyecto h3 {
    color: #302642;
    font-size: 22px;
    margin-bottom: 10px;
}

.tarjeta-proyecto > p {
    color: #62596c;
    line-height: 1.7;
}

.tecnologias {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 25px;
}

.tecnologias span {
    padding: 6px 10px;
    border-radius: 6px;
    background-color: #f4eff9;
    color: #684096;
    font-size: 12px;
    font-weight: bold;
}

.tarjeta-proyecto > a {
    margin-top: auto;
    padding-top: 10px;
    color: #8054b8;
    font-weight: bold;
    text-decoration: none;
}

.tarjeta-proyecto > a:hover {
    color: #684096;
}

@media (max-width: 650px) {
    .sobre-mi,
    .proyectos {
        padding: 45px 7%;
    }

    .sobre-mi h2,
    .proyectos h2 {
        font-size: 27px;
    }

    .tarjeta-proyecto {
        flex-basis: 100%;
        padding: 24px;
    }
}

/* SECCIÓN DE CONTACTO */
.contacto {
    padding: 65px 8%;
    text-align: center;
    background-color: #ffffff;
}

.contacto h2 {
    color: #302642;
    font-size: 32px;
    margin-bottom: 15px;
}

.contacto > p:not(.etiqueta-seccion) {
    max-width: 600px;
    margin: 0 auto;
    color: #62596c;
    line-height: 1.8;
}

.enlaces-contacto {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border: 1px solid #eee7f5;
    border-radius: 10px;
    color: #51465f;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contacto-item i {
    color: #8054b8;
    font-size: 20px;
}

.contacto-item:hover {
    color: #684096;
    border-color: #8054b8;
    background-color: #faf8fc;
    transform: translateY(-3px);
}

/* PIE DE PÁGINA */
.pie-de-pagina {
    padding: 25px 7%;
    background-color: #302642;
    color: #ffffff;
    text-align: center;
}

.pie-de-pagina a {
    color: #e0cef8;
    text-decoration: none;
}

.pie-de-pagina a:hover {
    text-decoration: underline;
}

@media (max-width: 650px) {
    .contacto {
        padding: 45px 7%;
    }

    .contacto h2 {
        font-size: 27px;
    }

    .enlaces-contacto {
        flex-direction: column;
        align-items: stretch;
    }

    .contacto-item {
        justify-content: center;
    }
}
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px;
}

.imagen-proyecto {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* BOTÓN VER DETALLES */
.boton-detalles {
    margin-top: 12px;
    padding: 11px 16px;
    border: none;
    border-radius: 8px;
    background-color: #8054b8;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;  /*cursor se transforma en icono de mano con el indice levantado*/
    transition: background-color 0.2s ease;
}

.boton-detalles:hover {
    background-color: #684096;
}

/* VENTANA MODAL */
.modal-proyecto {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(30, 22, 40, 0.65);
    overflow-y: auto;
}

.modal-proyecto.modal-visible {
    display: flex;
}

.contenido-modal {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.contenido-modal h2 {
    color: #302642;
    font-size: 28px;
}

.contenido-modal h3 {
    color: #51465f;
    margin-top: 25px;
}

.contenido-modal p {
    color: #62596c;
    line-height: 1.8;
}

.cerrar-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    color: #51465f;
    font-size: 30px;
    cursor: pointer;
}

.cerrar-modal:hover {
    color: #8054b8;
}

#modal-github {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 18px;
    border-radius: 8px;
    background-color: #8054b8;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 650px) {
    .contenido-modal {
        padding: 28px 22px;
    }

    .contenido-modal h2 {
        font-size: 24px;
    }
}

/* Encabezado del CV */
.encabezado-cv {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px;
    margin-bottom: 25px;
}

/* Foto del CV */
.foto-cv {
    width: 150px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Datos principales */
.datos-principales {
    flex: 1;
}

.datos-principales h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.datos-principales h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.datos-principales p {
    margin: 6px 0;
    line-height: 1.5;
}

/* Adaptación a celulares */
@media (max-width: 600px) {
    .encabezado-cv {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Secciones del CV */
.seccion-cv {
    display: flex;
    flex-direction: column;
    gap: 20px;
     margin: 30px 25px;
    padding: 24px;
    background-color: #faf8fd;
    border: 1px solid #e5d9f2;
    border-radius: 16px;
}

/* Perfil profesional */
.perfil-profesional p {
    margin: 0;
    line-height: 1.8;
    text-align: center;
    color: #45404f;
}

/* Proyectos del CV */
.lista-proyectos-cv {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
}

.tarjeta-cv {
   flex: 1 1 300px;
    min-width: 0;
    box-sizing: border-box;
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid #d8c6ef;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(75, 45, 120, 0.12);
}

.tarjeta-cv h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #7552b8;
    font-size: 1.3rem;
}

.tecnologias-cv {
    color: #65518a;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.6;
}

.tarjeta-cv ul {
    padding-left: 20px;
    line-height: 1.7;
}

.tarjeta-cv li {
    margin-bottom: 8px;
}

.tarjeta-cv a {
    display: inline-block;
    margin-top: 12px;
    color: #7552b8;
    font-weight: 600;
    text-decoration: none;
}

.tarjeta-cv a:hover {
    text-decoration: underline;
}

/* Experiencia laboral */
.lista-experiencias {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.tarjeta-experiencia {
   padding: 22px 26px;
    background-color: #ffffff;
    border: 1px solid #d8c6ef;
    border-left: 5px solid #7552b8;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(75, 45, 120, 0.10);
}

.encabezado-experiencia h3 {
    display: inline;
    margin: 0;
    color: #7552b8;
    font-size: 1.15rem;
}

.encabezado-experiencia span {
    margin-left: 8px;
    color: #45404f;
    font-weight: 600;
}

.fecha-experiencia {
    margin: 8px 0;
    color: #777080;
    font-size: 0.9rem;
}

.tarjeta-experiencia ul {
    margin-bottom: 0;
    padding-left: 22px;
    line-height: 1.7;
}

.tarjeta-experiencia li {
    margin-bottom: 6px;
}

/* Stack tecnológico */
.lista-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.tarjeta-stack:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 10px);
}
.tarjeta-stack {
     min-width: 0;
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid #d8c6ef;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(75, 45, 120, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarjeta-stack:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(75, 45, 120, 0.17);


}
.icono-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 10px;
    background-color: #f3edfc;
    color: #7552b8;
    font-size: 1.2rem;
}

.tarjeta-stack h3 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #7552b8;
    font-size: 1.15rem;
}

.tarjeta-stack ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.tarjeta-stack li {
    margin-bottom: 4px;
}

.nota-stack {
    display: inline-block;
    margin: 12px 0 0;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: #f3edfc;
    color: #7552b8;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Adaptación a celulares */
@media (max-width: 650px) {
    .lista-stack {
        grid-template-columns: 1fr;
    }
     .tarjeta-stack:last-child {
        grid-column: auto;
        width: 100%;
        box-sizing: border-box;
    }
}

.tarjeta-formacion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid #e8e0f1;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(48, 38, 66, 0.05);
    background-color: #ffffff;
border: 1px solid #d8c6ef;
box-shadow: 0 6px 18px rgba(75, 45, 120, 0.12);
}

.icono-formacion {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #f3edfc;
    color: #7552b8;
    font-size: 1.4rem;
}

.datos-formacion {
    min-width: 0;
    
}

.datos-formacion h3 {
    margin: 0 0 12px;
    color: #7552b8;
    font-size: 1.15rem;
    line-height: 1.5;
}

.institucion-formacion {
    margin: 0 0 10px;
    color: #45404f;
    font-weight: 600;
}

.estado-formacion {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #f3edfc;
    color: #7552b8;
    font-size: 0.85rem;
    font-weight: 600;
}

.promedio-formacion {
    margin: 0;
    color: #65518a;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .tarjeta-formacion {
        gap: 14px;
        padding: 18px;
    }

    .datos-formacion h3 {
        font-size: 1rem;
    }
}


.lista-cursos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tarjeta-curso {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid #d8c6ef;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(75, 45, 120, 0.12);
}
.tarjeta-curso:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 10px);
}

@media (max-width: 650px) {
    .tarjeta-curso:last-child {
        grid-column: auto;
        width: 100%;
        box-sizing: border-box;
    }
}
.icono-curso {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: #f3edfc;
    color: #7552b8;
    font-size: 1.2rem;
}

.datos-curso {
    min-width: 0;
}

.datos-curso h3 {
    margin: 0 0 10px;
    color: #7552b8;
    font-size: 1.1rem;
    line-height: 1.5;
}

.institucion-curso {
    margin: 0 0 12px;
    font-weight: 600;
    color: #45404f;
}

.estado-curso {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #eee5fb;
    color: #65419d;
    font-size: 0.8rem;
    font-weight: 600;
}

.datos-curso > p:last-child {
    margin-bottom: 0;
    line-height: 1.7;
    color: #45404f;
}

@media (max-width: 650px) {
    .lista-cursos {
        grid-template-columns: 1fr;
    }
}
.seccion-portfolio {
 margin: 45px 25px;
    padding: 35px;
    background-color: #eee6f8;
    border: 1px solid #d8c6ef;
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(75, 45, 120, 0.08);
}

@media print {
    .tarjeta-cv,
    .tarjeta-stack,
    .tarjeta-formacion,
    .tarjeta-curso {
        break-inside: avoid;
    }
    
    .seccion-cv {
        margin: 10px 0;
        padding: 12px;
        box-shadow: none;
    }

    .tarjeta-cv {
        margin-bottom: 8px;
        padding: 12px;
    }

    .tarjeta-cv h3 {
        margin-top: 0;
    }

    .seccion-cv h2 {
        margin-top: 0;
        margin-bottom: 10px;
    }

    .seccion-cv p,
    .seccion-cv li {
        line-height: 1.4;
    }

    .seccion-cv ul {
        margin-top: 6px;
        margin-bottom: 6px;
    }

}
/* Galería oculta por defecto */
.modal-galeria {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(20, 30, 45, 0.8);
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

/* Mostrar la galería */
.modal-galeria.modal-visible {
    display: flex;
}

/* Contenido de la ventana */
.contenido-galeria {
    position: relative;
    background-color: #fff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

/* Captura del proyecto */
#galeria-imagen {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    margin: 20px auto;
}

/* VENTANA MODAL DE GALERÍA */
.modal-galeria {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(30, 22, 40, 0.65);
    overflow-y: auto;
}

.modal-galeria.modal-visible {
    display: flex;
}

.contenido-galeria {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.contenido-galeria h2 {
    color: #302642;
    font-size: 28px;
}

#galeria-imagen {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    margin: 20px auto;
}

/* Botón de cierre */
.cerrar-galeria {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    color: #51465f;
    font-size: 30px;
    cursor: pointer;
}

.cerrar-galeria:hover {
    color: #8054b8;
}

/* Botones Anterior y Siguiente */
.controles-galeria {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.controles-galeria button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid #8054b8;
    border-radius: 8px;
    background-color: #8054b8;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.controles-galeria button:hover {
    background-color: #684194;
    border-color: #684194;
}

.controles-galeria button:focus-visible,
.cerrar-galeria:focus-visible {
    outline: 2px solid #8054b8;
    outline-offset: 3px;
}

#galeria-contador {
    color: #62596c;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .contenido-galeria {
        padding: 45px 15px 20px;
    }

    .contenido-galeria h2 {
        font-size: 22px;
    }

    .controles-galeria {
        gap: 10px;
    }

    .controles-galeria button {
        padding: 10px 12px;
        font-size: 13px;
    }
}

.botones-proyecto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    padding-top: 20px;
    flex-wrap: wrap;
}
