







/*      IMPORTANTE
Al usar el mismo navbar y no usar iframes, el código para navbar es el mismo,
deslice hasta que encuentre el comentario que indique el apartado nuevo
*/




/* ----------------------------- ESTILOS GENERALES -----------------------------*/

*, *:after, *:before {
    box-sizing: border-box;
}

@font-face
        {
            font-family: "Aspira"; 
            src: url("../fonts/Aspira\ Regular.otf") format("truetype");
            font-weight: normal; 
            font-style: normal; 
        }
      
  
body {
    margin: 0;
    font-family: "Lexend", sans-serif;
    overflow-x: hidden;
    width: 100%;
    background-color: #060608;
    display: red;
}


p{
    color: back
}


section a{
    color: #09f;
    font-size: 1.5rem;
}

section a:visited{
    color: #09f;
}

section a:hover 
            {
                color: #51abff;    
            }

/* ----------------------------- ESTILOS GENERALES -----------------------------*/

/* ----------------------------- Navbar -----------------------------*/
.logo
{
    /* border: solid 1px red; */
    padding-left: 3.5rem;

    height: 100%;
    width: 35rem;
    overflow: hidden;
    display: flex;
    
    

}
.logo img
{
/* border:solid 2px #09f; */
height: 100%;
padding: 1.1em
}

.logo p
{   
    margin: 22px;
   
    color: white;
    display: flex;
    padding: 1rem;
    margin: 0;
    
    height: 100%;
    width: 18rem;
    
    font-family: Lexend;
    align-items: center;
    font-size: 1.5rem;

  
}

.navbar {
    position: sticky;
    top: 0;
    padding: 0px;
    background-color: #0a0a0e;
    
    z-index: 1000;
    height: 8dvh;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    align-items: center;
    padding-right: 1.5rem;
    overflow: visible;
}

.navbar nav {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    height: 100%;
    
}

.navbar a {
    color: white;
    text-decoration: none;
    
    transition: color 0.3s;
    margin: 0;
}

.navbar a:hover {
    color: #09f;
    transition: 1s;
}


.navbar ul {
    
    height: 100%;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    align-items: center;
    
    display: flex; 
    background-clip: content-box;
}

.navbar li {
    /* border: solid 2px blue; */

    height: 100%;
    width: max-content;
    font-family: "Lexend";
    transition: 0.7s;
    padding: 0px;
    margin: 0;
    overflow: hidden;
    background-clip: content-box;
}

.navbar li a {

    display: block;
    align-content: center;
    color: white;
    text-align: center;
    padding: 16px;
    text-decoration: none;
    font-weight: bold;
    margin: 0;
    height: 100%;
    overflow: visible;
    
}

.navbar li:hover {
    background-color: #28262c;
     background-clip: content-box;
    
    
}

/* Contenedor principal de la lista con el dropdown */


/* Estilo de los enlaces principales */
.navbar .dropdown > a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: white;
}

/* Contenido del dropdown (submenú) */
.navbar .dropdown-content {
    opacity: 0;
    position: absolute;
    background-color: #0a0a0e;
    min-width: 160px;
    z-index: 1;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    transition: opacity 0.3s ease-in-out;
    
}

/* Mostrar el submenú al hacer hover sobre el contenedor dropdown */
.navbar .dropdown:hover .dropdown-content {
    opacity: 1;
}

/* Estilo de los enlaces dentro del submenú */
.navbar .dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    transition: background-color 0.3s ease;
}

/* Cambio de color al pasar el mouse sobre los enlaces del submenú */
.navbar .dropdown-content a:hover {
    background-color: #28262c; /* Fondo al hacer hover */
}


#lastoption:hover
{   

    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Mostrar el submenú cuando se pasa el ratón por encima del item */
.navbar .dropdown:hover .dropdown-content {
    opacity: 1;
}




/* ----------------------------- Navbar -----------------------------*/




/*----------------------------- FOOTER -------------------------- */
#piedePagina {
    
    z-index: 1000;
    height: 14dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #070707;
    margin: 0;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

footer p {
    margin: 5px 0;
    font-size: 1rem;
    line-height: 1.6;
}

footer span {
    color: #09f;
    font-weight: bold;
}

footer a {
    color: #09f;
    text-decoration: none;
    font-size: 14px;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    font-size: 16px;
    color: #09f;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: rgb(62, 177, 253);
}



  
 
  
/*----------------------------- FOOTER -------------------------- */











/*----------------------------- ANIMACIONES -------------------------- */


@keyframes fade-away {
    to { opacity: 0; }
}
@keyframes fade-in {
    from { opacity: 0; }
    to  { opacity: 1; }
}
@keyframes scale-up {
    to { transform: scale(2.5); }
}
@keyframes slideInFromBottom {
    from {
        transform: translateY(100%); /* Empuja desde la parte inferior */
        opacity: 0; /* Empieza con opacidad 0 */
    }
    to {
        transform: translateY(0); /* Finaliza en la posición original */
        opacity: 1; /* Termina con opacidad 1 */
    }
}





/*----------------------------- ANIMACIONES -------------------------- */





/* ---------------------------------------------------------- Apartado nuevo ----------------------------------------------------------*/


.gallery {
    padding: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.project-thumbnails img {
    width: 200px;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s;
}

.project-thumbnails img:hover {
    transform: scale(1.05);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 20, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.overlay.hidden {
    display: none;
}

.overlay img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 1rem;
}

#prevBtn { left: 10px; }
#nextBtn { right: 10px; }

#closeOverlay {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    flex-direction: column;
}

.overlay-image {
    max-width: 80%;
    max-height: 80%;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
}

.overlay-prev,
.overlay-next,
.overlay-close {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    z-index: 2001;
}

.overlay-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.overlay-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.overlay-close {
    top: 20px;
    right: 30px;
}


.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
  }
  .overlay img {
    max-width: 80%;
    max-height: 80%;
  }
  .overlay.hidden {
    display: none;
  }
  .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
  }
  #prevBtn { left: 20px; }
  #nextBtn { right: 20px; }
  #closeOverlay {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
  }


  .project-grid {
    border: solid 2 px blue;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    row-gap: 2rem;
    padding: 2rem;
  }
  
  .project {
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .thumb-container{
    aspect-ratio: 16 / 9;
    width: 100%;

    overflow:hidden ;
  }
  
  .project img {
    
    
    
    width: 100%;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    
    transition: transform 0.3s;
  }
  
  .project img:hover {
    transform: scale(1.05);
  }
  
  .project p {
    margin-top: 0.5rem;
    font-weight: 500;
    color: #fff;
  }
  
dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  width: 90vw;
  max-width: 1000px;
  aspect-ratio: 16 / 9; /* ← Aquí está la clave */
  z-index: 9999;
  overflow: hidden;
  
}


.dialog-content {
  position: relative;
  width: 100%;
  height: 100%;
}

#overlayImage {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
}

/* Botón de cerrar */
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  padding: 6px;
  cursor: pointer;
  z-index: 10;
}

.close-button img {
  width: 20px;
  height: 20px;
}

/* Flechas de navegación */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  cursor: pointer;
  user-select: none;
  z-index: 5;
  border-radius: 8px;
}

#prevBtn {
  left: 10px;
}

#nextBtn {
  right: 10px;
}

/* View Transition */
:root { view-transition-name: none; }
::view-transition { pointer-events: none; }

::view-transition-group(.vt-element-animation),
::view-transition-group(.vt-element-animation-closing) {
  animation-duration: 500ms;
  animation-timing-function: cubic-bezier(0.38, 0.48, 0, 1);
}

::view-transition-old(.vt-element-animation),
::view-transition-new(.vt-element-animation),
::view-transition-old(.vt-element-animation-closing),
::view-transition-new(.vt-element-animation-closing) {
  height: 100%;
  min-height: 100%;
  overflow: clip;
  object-position: left top;
}

@keyframes vt-fade-in {
  from { opacity: 0; }
}

@keyframes vt-fade-out {
  to { opacity: 0; }
}

::view-transition-old(.vt-element-animation) {
  animation: vt-fade-out 550ms both cubic-bezier(0.38, 0.49, 0, 1);
}

::view-transition-new(.vt-element-animation) {
  animation: vt-fade-in 200ms both cubic-bezier(0.38, 0.49, 0, 1);
}

::view-transition-old(.vt-element-animation-closing) {
  animation: vt-fade-out 100ms both cubic-bezier(1, 0, 1, 0);
}

::view-transition-new(.vt-element-animation-closing) {
  animation: vt-fade-in 200ms both cubic-bezier(0.75, 0, 0.41, -0.06);
}

 @view-transition{
    navigation: auto;
    animation-duration:3s;
 }
    



 