
* {
  margin: 0px;
  padding: 0px;
}

body {
  background-color: #FAFAFA; 
  font-family: 'Segoe UI';
}

#wrapper {
  width: 70%;
  height: 80%;
  overflow: hidden;
  margin: 50px auto;
  padding: 10px;
}

.w-left {
  width: 50%;
  float: left;
  text-align: right;
}

.w-right {
  width: 50%;
  float: right;
}

.app-stores {
  text-align: center;
  margin: 25px 0;
}

.app-stores img {
  max-width: 220px;
  width: 100%;
  height: auto;
}

/*COMENTARIO VISIBLE OCULTAR*/
.comentarios {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.comentarios.visible {
    max-height: 1000px; /* ajusta según la cantidad máxima de comentarios por post */
}
/*FIN DE COMENTARIO VISIBLE OCULTAR*/


/*INDEX OLVIDASTE*/
/* Link debajo del botón */
.main-content .l-part form .forgot-link {
    display: block;
    text-align: center;
    margin-top: 5px;   /* separación del botón */
    font-size: 13px;
    color: #3897f0;
    text-decoration: none;
}

.main-content .l-part form .forgot-link:hover {
    text-decoration: underline;
}/*FIN DE INDEX OLVIDASTE*/


/*BUSQUEDA*/
.h-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #dbdbdb;
    position: sticky;
    top: 0;
    z-index: 999;
}

.h-logo img {
    max-height: 40px;
}

.h-search {
    flex: 1;
    margin: 0 20px;
    position: relative;
}

.h-account {
    display: flex;
    align-items: center;
}

.h-account a {
    margin-left: 10px;
}

.i-icon {
    height: 30px;
    width: 30px;
}

/* Input de búsqueda */
#buscarUsuario {
    width: 150px;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    transition: width 0.3s;
}
#buscarUsuario:focus {
    width: 250px;
    outline: none;
}
#resultadosBusqueda div:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}
.h-account a[href="subir.php"] img.i-icon {
    width: 30px;    /* reduce el tamaño del icono */
    height: 30px;
}
/*FIN BUSQUEDA*/


/*COMENTARIOS*/
/* Comentarios y form responsive */
.hl-section-comments {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    max-height: 300px; /* limita la altura si hay muchos comentarios */
    overflow-y: auto; /* scroll vertical si excede altura */
    padding: 5px;
}

.hl-section-comments .comment {
    font-size: 14px;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.add-comment-form {
    display: flex;
    flex-direction: row;
    margin-top: 5px;
    width: 100%;
}

.add-comment-form input[type="text"] {
    flex: 1;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.add-comment-form button {
    padding: 8px 12px;
    margin-left: 5px;
    font-size: 14px;
    border: none;
    background-color: #3897f0;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.add-comment-form button:hover {
    background-color: #2a7bd6;
}

/*FIN COMENTARIOS*/

/* MEDIA QUERY */ 
@media (max-width: 768px) {

  /* Contenedor principal */
  #wrapper {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
  }

  /* Eliminar columnas */
  .w-left {
    display: none;
  }

  .w-right {
    width: 100%;
    float: none;
  }

 .main-content,
  .sub-content {
    width: 100%;
    max-width: 380px;
    margin: 0 auto 15px;
    padding: 20px;
    box-sizing: border-box;
  }

  .input,
  .btn {
    width: 100%;
    font-size: 16px;
    padding: 12px;
  }

.app-stores img {
    max-width: 200px;
  }
/*HEADER*/
  .main-content .header {
    text-align: center; /* centra cualquier contenido inline */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .main-content .header img {
    margin: 0 auto;
    max-width: 80%; /* evita que el logo sea demasiado grande */
    height: auto;
    left: 0; /* asegura que no se mueva */
  }
 .h-header {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 8px 10px;
    }

    .h-logo {
        margin-bottom: 5px;
    }

    .h-search {
        width: 100%;
        order: 3;
        margin: 5px 0;
    }

    #buscarUsuario {
        width: 100%;
    }

    .h-account {
        width: 100%;
        order: 2;
        justify-content: space-around;
        margin-bottom: 5px;
    }

    .i-icon {
        height: 28px;
        width: 28px;
    }
/*FIN HEADER*/
/*COMENTARIOS*/
.add-comment-form input[type="text"] {
        font-size: 13px;
        padding: 6px;
    }
    .add-comment-form button {
        font-size: 13px;
        padding: 6px 10px;
    }
    .hl-section-comments {
        max-height: 200px;
        padding: 3px;
    }
/*FIN DE COMENTARIOS*/

/*LOGO INDEX*/
    .main-content .header {
        text-align: center; /* centra el contenido */
        display: flex;
        justify-content: center; /* centra horizontalmente */
        align-items: center;
    }

    .main-content .header img {
        margin: 0 auto; /* asegura que la imagen quede centrada */
        max-width: 80%;  /* opcional: evita que sea demasiado grande en móvil */
        height: auto;
    }
/*FIN LOGO INDEX*/

/*OLVIDASTE INDEX*/
.main-content .l-part form .forgot-link {
        font-size: 12px;
        margin-top: 8px; /* un poco más de espacio en móvil */
    }
/*FIN OLVIDASTE INDEX*/
/*PERFIL PUBLICACIONES*/
.p-mid{
	grid-template-columns:repeat(2, 1fr);
}
/*FIN DE PERFIL PUBLICACIONES*/

}
/*FIN MEDIA QUERY*/




.hl-likes-count {
    padding: 5px 10px;
    font-weight: bold;
    font-size: 14px;
    color: #262626;
    clear: both;
}

.main-content {
  width: 250px;
  margin: 10px auto;
  background-color: #fff;
  border: 1px solid #e6e6e6;
  padding: 40px 50px;
}

.header {
  border: 0px solid #000;
  margin-bottom: 5px;
}

.header img {
  height: 50px;
  width: 175px;
  margin: auto;
  position: relative;

}

.input {
  width: 100%;
  margin-bottom: 5px;
  padding: 8px 12px;
  border: 1px solid #dbdbdb;
  box-sizing: border-box;
  border-radius: 3px;
}

.overlap-text {
  position: relative;
}

.overlap-text a {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #003569;
  font-size: 14px;
  text-decoration: none;
  font-family: 'Segoe UI', monospace;
  font-weight: 400;
}

.btn {
  width: 100%;
  background-color: #3897f0;
  border: 1px solid #3897f0;
  padding: 5px 12px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
}

.btn:focus {
    background-color: #C4E0FB;
}

.sub-content {
  width: 250px;
  margin: 10px auto;
  border: 1px solid #e6e6e6;
  padding: 35px 50px;
  background-color: #fff;
}

.s-part {
  text-align: center;
  font-family: 'Segoe UI', monospace;
  font-weight: 400;
  color: #333;
}

.s-part a {
  text-decoration: none;
  cursor: pointer;
  color: #3897f0;
  font-family: 'Segoe UI', monospace;
  font-weight: 400;
}

.myButton {
  background-color:#3e3ed6;
  -moz-border-radius:10px;
  -webkit-border-radius:10px;
  border-radius:10px;
  display:inline-block;
  cursor:pointer;
  color:#ffffff;
  font-family:Arial;
  font-size:17px;
  padding:15px 41px;
  text-decoration:none;
  text-shadow:0px 1px 0px #2768b8;
  border: 0px;
}
.myButton:hover {
  background-color:#1e32b8;
}
.myButton:active {
  position:relative;
  top:1px;
}

.button_white {
  background-color: white;
  -moz-border-radius:6px;
  -webkit-border-radius:6px;
  border-radius:6px;
  display:inline-block;
  cursor:pointer;
  color:#262626;
  font-size:16px;
  padding:6px 9px;
  text-decoration:none;
  border: 1px solid #DBDBDB;
  font-family: 'Segoe UI', monospace;
  font-weight: 600;
  line-height: 18px;
}
.button_white:active {
  position:relative;
  top:1px;
}

.button_blue {
  background-color: #3897F0;
  -moz-border-radius:6px;
  -webkit-border-radius:6px;
  border-radius:6px;
  display:inline-block;
  cursor:pointer;
  color:white;
  font-size:16px;
  padding:6px 9px;
  text-decoration:none;
  border: 0px solid #DBDBDB;
  font-family: 'Segoe UI', monospace;
  font-weight: 600;
  line-height: 18px;
}
.button_blue:active {
  position:relative;
  top:1px;
}

.button_edit_on {
  background-color: white;
  display:inline-block;
  cursor:pointer;
  color:#262626;
  font-size:18px;
  padding:20px 30px;
  text-decoration:none;
  border-left: 2px solid black;
  border-right: 0px;
  border-top: 0px;
  border-bottom: 0px;
  font-family: 'Segoe UI', monospace;
  font-weight: 600;
  line-height: 20px;
}
.button_edit {
  background-color: white;
  display:inline-block;
  cursor:pointer;
  color:#262626;
  font-size:18px;
  padding:20px 30px;
  text-decoration:none;
  border-left: 0px solid #999;
  border-right: 0px;
  border-top: 0px;
  border-bottom: 0px;
  font-family: 'Segoe UI', monospace;
  font-weight: 400;
  line-height: 20px;
}
.button_edit:hover {
  background-color: white;
  display:inline-block;
  cursor:pointer;
  color:#262626;
  font-size:18px;
  padding:20px 28px;
  text-decoration:none;
  border-left: 2px solid #999;
  border-right: 0px;
  border-top: 0px;
  border-bottom: 0px;
  font-family: 'Segoe UI', monospace;
  font-weight: 400;
  line-height: 20px;
}

/* HOME */

.h-header {width: 100%; height: 79px; border-bottom: 1px solid #E6E6E6; position: relative; background-color: #FFF;}
  .h-logo {position: absolute; top: 30%;height: 70%; width: 20%; text-align: center;}
  .h-search {position: absolute; top: 30%; left: 35%; height: 90%; width: 30%; text-align: center;}
  .h-account {position: absolute; top: 30%; left: 70%; height: 90%; width: 20%;}
  .h-account a:link {text-decoration: none;}
    .i-icon {padding: 0px 15px;}

.h-content {width: 65%; margin: auto; margin-top: 70px;}
  .h-left {width: 65%; float: left; margin-right: 5%;}
    .hl-cont {width: 100%; margin-bottom: 60px; float: left; border: 1px solid #E6E6E6;}
    .hl-top {width: 100%; height: 60px;}
      .hl-profile {width: 10%; height: 60px; float: left; position: relative;}
        .hl-pic {width: 100%; position: absolute; top: 12%; left: 10%;}
      .hl-username {width: 90%; height: 60px; float: left; position: relative;}
        .hl-name {width: 100%; height: 30px; float: left; color: #262626; position: absolute; top: 10%; left: 3vh; font-weight: 600;}
        .hl-name a:link{text-decoration: none; color: #262626; font-weight: 600;}
        .hl-name a:visited{text-decoration: none; color: #262626; font-weight: 600;}
        .hl-location {width: 100%; height: 30px; float: left; font-family: 'Segoe UI'; font-weight: 400; color: #262626; position: absolute; top: 50%; font-size: 12px;}
      .hl-menu {width: 100%; margin-bottom: 60px; text-align: center;}
        .hl-icon {width: 33.3%; float: left;}
    .hl-middle {width: 100%;}
    .hl-bottom {width: 100%; height: 30px; padding: 10px;}
    .hl-section-likes {width: 100%; height: 44px;}
    .hl-section-likes img {padding: 10px;}

  .h-right {width: 30%; float: right;}      
    .hr-top {width: 100%; height: 100px;}
      .hr-profile {width: 30%; height: 100px; float: left; position: relative;}
        .hr-pic {width: 100%; position: absolute; top: 12%; left: 10%;}
      .hr-username {width: 70%; height: 100px; float: left; position: relative;}
        .hr-name {width: 100%; height: 50px; float: left; color: #262626; position: absolute; top: 10%; font-weight: 600;}
        .hr-name a:link{text-decoration: none; color: #262626; font-weight: 600;}
        .hr-name a:visited{text-decoration: none; color: #262626; font-weight: 600;}
        .hr-nombre {width: 100%; height: 50px; float: left; font-family: 'Segoe UI'; font-weight: 400; color: #999999; position: absolute; top: 35%; font-size: 12px;}
    



  /* SEARCH FORM */

  .search {padding: 6px 40px; border-radius: 4px 4px 4px 4px; -moz-border-radius: 4px 4px 4px 4px; -webkit-border-radius: 4px 4px 4px 4px;
border: 1px solid #DBDBDB; }


/* TOP BAR CONFIRM */

.topbarc {width: 100%; height: 30px; background-color: #66CCCC; text-align: center; padding-top: 10px;}

 .topbarc a:link, a:visited{color: black; text-decoration: none;}
 .topbarc a:hover{color: black; text-decoration: underline;}


/* CAMBIAR INPUT POR IMAGEN */

.image-upload > input {display: none;}
.image-upload img {cursor: pointer;}


/* CAMBIAR RADIO POR IMAGEN */

.imgcheck{
    position:relative;
    display: inline-block;
}
  .imgcheck label > input{ /* HIDE RADIO */
  visibility: hidden; /* Makes input not-clickable */
  position: absolute; /* Remove input from document flow */
}
.imgcheck label > input + img{ /* IMAGE STYLES */
  cursor:pointer;
  border:2px solid transparent;
}
.imgcheck label > input:checked + img{ /* (RADIO CHECKED) IMAGE STYLES */
  border:2px solid #f00;
}


/* PERFIL */

.p-top {width: 90%; height: 210px; margin: auto; clear: both;}
  .p-foto {width: 30%; height: 210px; float: left;}
    .p-foto img {margin-top: 20px; margin-left: 20px;}
  .p-name {width: 70%; height: 60px; float: left;}
    .p-user {margin-right: 4%; height: 60px; float: left; font-size: 32px; line-height: 32px; font-weight: 200;}
    .p-editar {margin-right: 4%; height: 60px; float: left;}
    .p-config {margin-right: 4%; height: 60px; float: left;}
  .p-info {width: 70%; height: 40px; float: left;}
    .p-infor {width: 33.3%; height: 40px; float: left; font-size: 18px; font-weight: 400; line-height: 18px; color: #262626;}
  .p-nombre {width: 70%; height: 30px; float: left; font-size: 18px; font-weight: 600; line-height: 18px; color: #262626;}
  .p-location {width: 70%; height: 30px; float: left; font-size: 18px; font-weight: 400; line-height: 18px; color: #262626;}
  .p-description {width: 70%; height: 50px; float: left; font-size: 16px; font-weight: 400; line-height: 18px; color: #262626;}

.p-mid {display:grid; grid-template-columns: repeat(3,1fr); gap: 5px;}
  .p-pub {width: 100%; padding-top:100%; background-size:cover; background-position: center; position: relative; overflow: hidden; border-radius: 8px;}


/* EDITAR PERFIL */

.e-mid {width: 100%; height: 210px; margin: auto; clear: both; padding-top: 10px;}
	.e-left {width: 29%; float: left; border-left: 1px solid #DBDBDB; border-top: 1px solid #DBDBDB; 
		border-bottom: 1px solid #DBDBDB;}
	.e-right {width: 70%; float: left; border: 1px solid #DBDBDB;}
		.e-contenido {width: 80%; margin: auto; clear: both; padding: 30px;}
			.e-title {width: 20%; float: left; font-weight: 600; color:#262626; font-size: 18px;}
			.e-input {width: 80%; float: left; font-weight: 400; color:black; font-size: 22px; line-height: 22px}
			.e-input p {width: 300px; padding: 5px; font-weight: bold; color:#3897F0; font-size: 14px;}
			.e-input input {width: 300px; border: 1px solid #DBDBDB; padding: 5px; font-weight: 400; color:#262626; font-size: 17px;}
			.e-input select {width: 150px; border: 1px solid #DBDBDB; padding: 5px; font-weight: 400; color:#262626; font-size: 17px;}
			.e-but input {border: 1px solid #DBDBDB; padding: 5px; font-weight: 400; color:#262626; font-size: 17px;}