html, body{
    height: 100%;
    margin: 0;
    padding: 0;
	font-family: 'Poppins', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
/* WebKit (Chrome, Safari, Edge) */
.scroll-thin {
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #ccc transparent;
}

/* Webkit-based browsers (Chrome, Safari, Edge) */
.scroll-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scroll-thin::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.scroll-thin::-webkit-scrollbar-track {
    background-color: transparent;
}

.scroll-thin::-webkit-scrollbar-button {
    display: none;
}
#content {
    height: 100%;
}

/* Estilos para enlaces */
a{
    text-decoration: none; /* Sin subrayado */
}
a .white{
    color: white; /* Texto blanco */
    text-decoration: none; /* Sin subrayado */
}
a .black{
    /*color: black; *//* Texto negro */
    text-decoration: none; /* Sin subrayado */
}

/* Enlaces al pasar el mouse */
a:hover {
   /* color: white; /* Mantiene el color blanco al pasar el mouse */
    text-decoration:underline; 
}
a:visited{
    /* color: white; /* Mantiene el color blanco al pasar el mouse */
    text-decoration: none; /* Asegura que no se subraye */
}

/* Estado visible */

#entrance {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 40px 60px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    opacity: 1;
    transition: all 1s ease;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1.5s cubic-bezier(0.4, 0.0, 0.2, 1); /* easing suave */
}
/* Estado oculto */
#entrance.exit {
  opacity: 0;
}

h1{
	font-weight:100;
}
h2{
	font-weight:300;
}
logo{
	font-weight: 300;
	font-size: 24px;
}

/* Sidebar flotante */
#sidebar {
    position: fixed;
	overflow-y: auto; /* Muestra la barra de desplazamiento solo cuando el contenido sea mï¿½s grande que el ï¿½rea visible */
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: rgba(30, 30, 30, 0.95);
    color: white;
    padding: 20px;
    z-index: 10000; /* Para estar por encima de todo */
    
	color:white;
	 
}
#menu-content {
    margin-top: 60px; /* Deja sitio para el tirador */
	color:white;
}

#sidebar-handle {
    position: fixed;
    top: 10px;
    left: 0px;
    width: 40px;
    height: 40px;
    background: #444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
	z-index: 10001;
}



/* Sidebar derecha flotante */
#sidebar-right {
    position: fixed;
    top: 0;
    right: 0; /* Cambia left por right */
    width: 250px;
    height: 100%;
    background: rgba(30, 30, 30, 0.95);
    color: white;
    padding: 20px;
    overflow-y: auto;
    z-index: 10000;
	color:white;
}

#menu-content-right {
    margin-top: 60px;
	color:white;
}

/* Tirador de la sidebar derecha */
#sidebar-handle-right {
    position: fixed;
    top: 10px;
    right: 0px; /* A la derecha */
    width: 40px;
    height: 40px;
    background: #444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    z-index: 10001;
}


/*GALLERY*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 300px;
    gap: 1px;
}

.gallery-item.double-width {
    grid-column: span 2;
}

.gallery-item.double-height {
    grid-row: span 2;
}

.gallery-item.quad {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #eee;
}

.gallery-item img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.6s ease;
}


/* ðŸš€ Nuevo efecto hover que mantiene proporciÃ³n */
.hover-grow img {
    transform: scale(1.2);
}

/*PROJECT GALLERY*/


.gallery-project {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin-left:20%; 
    gap: 1px;
}

.gallery-project .gallery-item {
    width: 100%;
    height: 100vh; /* altura de la ventana */
    flex-shrink: 0; /* evita que colapse a menos de 100vh */
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-project .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    font-family: Arial, sans-serif;
    pointer-events: none;
    overflow-y: auto;
}

.overlay.show {
    opacity: 1;
    transform: translateY(0px);
}

.overlay .title {
    font-weight: bold;
    font-size: 12px;
}

.overlay .description {
    font-size: 10px;
    margin-top: 2px;
    overflow-y: auto;
}

/* Overlay para gallery-project */
.gallery-project .overlay {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* blanco translÃºcido */
    color: black;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Activar overlay al hacer hover */
.gallery-project .gallery-item:hover .overlay {
    opacity: 1;
    transform: translateX(0);
   
}

/* AnimaciÃ³n del contenido interno */
.gallery-project .overlay .title,
.gallery-project .overlay .description {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease 0.2s; /* empieza un poco despuÃ©s del overlay */
}

/* Cuando se muestra el overlay, tambiÃ©n mostrar el contenido */
.gallery-project .gallery-item:hover .overlay .title,
.gallery-project .gallery-item:hover .overlay .description {
    opacity: 1;
    transform: translateX(0);
}

/* TipografÃ­a del tÃ­tulo y descripciÃ³n */
.gallery-project .overlay .title {
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 10px;
}

.gallery-project .overlay .description {
    font-size: 18px;
     z-index:1000000;
}

/* Habilitar el .show para el overlay en proyecto */
.gallery-project .overlay.show {
  opacity: 1;
  transform: translateX(0);
}
.gallery-grid .gallery-item {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



ul {
    list-style: none;
    /*display: flex;
    gap: 20px;*/
}

.icon-link {
    position: relative;
    font-size: 24px;
    color: white;
    text-decoration: none;
}

.icon-link:hover {
    color: #f0f0f0;
}

.icon-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 5px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
	margin-left: 30px;
}

.icon-link:hover::after {
    opacity: 1;
    visibility: visible;
}

.search-container {
    position: relative; /* Para posicionar la lupa dentro */
    width: 190px;
    list-style: none;
	margin-top: 20px;
}

.rounded-input {
    width: 100%;
    padding: 8px 40px 8px 12px; /* Deja espacio a la derecha para la lupa */
    border: none;
    border-radius: 12px;
    background-color: #f0f0f0;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none; /* La lupa no intercepta clicks */
}

/*AUTOR*/

/* Perfil lateral en la pï¿½gina de perfil */
#profile {
    width: 20%;
    height: 100%; /* Que ocupe toda la altura de la ventana */
    background: white;
    color: #1a1a1a; /* 85% negro aproximadamente */
    padding: 20px;
	padding-top: 75px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 900; /* Debajo de los sidebars laterales */
}

.profile-photo img {
    width: 100%;
    border-radius: 4px; /* Un poco de suavidad en la foto */
    margin-bottom: 20px;
}

.profile-info {
    font-family: 'Poppins', sans-serif; /* Si sigues usando Poppins */
}

.profile-info h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.profile-description {
    font-size: 14px;
    margin-bottom: 15px;
    color: #555; /* Un poco mï¿½s suave para la descripciï¿½n corta */
}

.profile-bio {
    font-size: 13px;
    line-height: 1.6;
}

.profile-project {
    font-size: 13px;
    line-height: 1.6;
}

.profile-title{
	font-size: 13px;
    line-height: 1.6;
	font-weight: 800;
}

 .button {
        display: inline-block;
        padding: 10px 20px;
        background-color: #f9f9f9;
        color: #333;
        border: 1px solid #ccc;
        text-decoration: none;
        border-radius: 4px;
        font-weight: bold;
        transition: background-color 0.3s ease, border-color 0.3s ease;
	 text-align: center;
    }

    .button:hover {
        background-color: #f1f1f1;
        border-color: #999;
    }

/*PROYECTO*/
.photo-name {
    display: flex;
    align-items: flex-end; /* Alinea al borde inferior */
    gap: 1px;
    margin-top: 0px;
}

.photo-name img {
    height: 100px;
    width: auto;
    display: block;
    border-radius: 8px;
}

.photo-name h4 {
    margin: 0;
    font-size: 16px;
    color: #1a1a1a;
	margin-bottom: 13px;
}




/* Responsive: una sola columna cuando el ancho sea 500px o menos */
@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .gallery-item.quad,
    .gallery-item.double-width,
    .gallery-item.double-height {
        grid-column: span 1;
        grid-row: span 1;
    }
}
@media (max-width: 1000px) {
    #profile {
        position: static;
        width: 100% !important;
        height: auto;
        padding-top: 75px; /* Ya no necesitas 150px cuando no es fixed */
        background: white;
        z-index: auto;
    }
	#gallery{
		margin-left:0px !important;
	}
    .gallery-project {
        margin-left:0px; 
        width: 100%;
    }
    /* Afecta a la galerÃ­a de perfil (#gallery) */
  #gallery.gallery-grid {
    /* Fuerza una sola columna en lugar de varias */
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    gap: 1px; /* o el que uses normalmente */
    margin-left: 0 !important;
  }

  /* Asegura que cada item ocupe toda la celda */
  #gallery.gallery-grid .gallery-item {
    width: 100% !important;
    height: auto !important;
  }
}



/*  Creamos una sola regla para ambas clases */
.sidebar-hidden,
.sidebar-visible,
.sidebar-right-hidden,
.sidebar-right-visible {
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

/*  Mantenemos sus transform/opacity normales */
.sidebar-hidden       { opacity: 0; transform: translateX(-100%); }
.sidebar-visible      { opacity: 1; transform: translateX(   0 ); }
.sidebar-right-hidden { opacity: 0; transform: translateX( 100%); }
.sidebar-right-visible{ opacity: 1; transform: translateX(   0 ); }


/* LIGHBOX*/
/* ========================
   Lightbox + Fullscreen
   ======================== */
#lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 9998;
}
#lightbox.show {
  opacity: 1;
  visibility: visible;
}
#lightbox img {
  width: 100%;
  /*height: 100%;*/
  box-shadow: 0 0 20px rgba(0,0,0,0.9);
}
#lightbox .lightbox-close,
#lightbox .lightbox-fullscreen {
  position: absolute;
  top: 10px;
  left: 50%;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  z-index:100000;
}
#lightbox .lightbox-close {
  transform: translateX(20px);
}
#lightbox .lightbox-fullscreen {
  transform: translateX(-20px);
  opacity: 0.8;
  transition: opacity 0.2s;
}
#lightbox .lightbox-fullscreen:hover {
  opacity: 1;
}

/* 1) Capa blanca translÃºcida a la derecha dentro del lightbox */
#lightbox .lightbox-info {
  position: absolute;
  top:       0;
  right:     0;
  width:     30%;               /* ajusta al ancho que necesites */
  height:    100%;
  background: rgba(255,255,255,0.7);  /* blanco 70% opacidad */
  color:     rgba(0,0,0,0.8);    /* texto negro al 80% */
  padding:   20px;
  box-sizing: border-box;
  overflow-y: auto;
  display:   flex;
  flex-direction: column;
  justify-content: center;
}

/* Titular y descripciÃ³n dentro de la capa */
#lightbox .lightbox-info .lightbox-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
}
#lightbox .lightbox-info .lightbox-description {
  font-size: 1rem;
  line-height: 1.4;
}

/* â€”â€”â€”â€”â€” Lightbox + Fullscreen Ajustes â€”â€”â€”â€”â€” */
#lightbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

}
#lightbox.show {
  opacity: 1;
  visibility: visible;
}
#lightbox .lightbox-close,
#lightbox .lightbox-fullscreen {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}
#lightbox .lightbox-fullscreen  {
  margin-right:30px;
    /* Opcional: hace más nítido el icono */
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 1));
}
#lightbox .lightbox-close {
  margin-left:30px;
    /* Opcional: hace más nítido el icono */
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 1));
}
#lightbox .lightbox-info {
  position: absolute;
  top: 0; right: 0;
  width: 30%; height: 100%;
  background: rgba(255,255,255,0.7);
  color: rgba(0,0,0,0.8);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Fullscreen solo el lightbox */
#lightbox:fullscreen,
#lightbox:-webkit-full-screen,
#lightbox:-ms-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0,0,0,0.8) !important;
  display: flex !important;
  flex-direction: column; /* en fullscreen siempre imagen+info */
  justify-content: center !important;
  align-items: center !important;
  z-index: 2147483647 !important; /* por encima de todo */
}

/* Por defecto: la imagen se ajusta al ancho */
#lightbox img {
  width: 100%;
  height: auto;
  object-fit: contain;
}


#lightbox-description {
   /* Limita la altura para que nunca ocupe más del viewport */
  max-height: 80vh;
  /* Activa barra vertical sólo si el contenido desborda */
  overflow-y: auto;
  /* Opcional: un padding a la derecha para que no se solape el scrollbar */
  padding-right: 10px;
}


/* Forzar visible mientras esté el cursor encima */
#sidebar:hover,
#sidebar-handle:hover,
#sidebar-right:hover,
#sidebar-handle-right:hover {
  transform: translateX(0) !important;
  opacity: 1       !important;
  transition: none !important; 
}


/* Para cuando #lightbox entra en fullscreen real */
/* regla genérica para vertical (sigue igual) */
#lightbox.vertical img {
margin: 0 auto;
  width: 100% !important;
  height: auto !important;
}

/* override cuando además tenga .fs */
#lightbox.vertical.fs img {
margin: 0 auto;
  width: auto !important;
  height: 100% !important;
}

/*botones subior y bajar*/
/* CSS */
.gallery-wrapper {
  position: fixed;
  bottom:120px;
  right:0px;
  z-index:9999;
  width:100px;
  height: 100px;         /* ajusta a tu necesidad */
  overflow: hidden;
}

.gallery-project {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.8);
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.arrow-up   { top: 0.5rem; }
.arrow-down { bottom: 0.5rem; }



/*  1000px: apilar en columna */
@media (max-width: 1000px) {
  #lightbox { flex-direction: column; justify-content: flex-start;   overflow-y:auto; }
  #lightbox img { max-width: 100%; height: auto; }
  #lightbox .lightbox-info {
    position: relative; width: 100%; height: 100%; margin-top: 10px; padding-top: 150px !important; padding-bottom: 150px !important; background: rgba(255, 255, 255, 1) !important;
  }
 /* Posición + sombra y fondo para mejor contraste */
#lightbox .lightbox-close,
#lightbox .lightbox-fullscreen {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);

}

}

/* BLOG */
#blog-list {
    display: flex;
    flex-direction: column;
    width: 70%;
    margin-left:20%; 
    padding: 5%;
    overflow-y: auto;
}

.post-item {
  margin-bottom: 3em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2em;
  border-bottom: 2px black solid;
}

.post-item:last-child {
  border-bottom: none;
}

.post-title {
  font-size: 1.8rem;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.post-media {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 1em;
}

.post-pano{
  height:500px !important;
}

.post-media img,
.post-media video,
.post-media .pano {
  flex: 1 1 calc(45% - 0.5em);
  max-width: calc(45% - 0.5em);
  object-fit: cover;
  height: 300px;
  border: 1px #555 solid;
  padding: 10px;
  cursor: pointer;
}

.post-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-right:150px;
}

@media (max-width: 1000px) {
  #blog-list {
    width: 95%;
    margin-left:2%; 
    padding: 1%;
}

.post-media img,
.post-media video,
.post-media .pano {
  flex: 1 1 calc(90% - 0.5em);
  max-width: calc(90% - 0.5em);
}

}