/* =========================
   CONTENEDOR DERECHO - PRINCIPAL
========================= */
.main {
  display: grid;
  row-gap: 1.5rem;
  padding-block: 8.5rem 4rem;
  background: #fff;
  padding: 30px;
  margin-top: 10px;
  min-height: 600px;
}

/* =========================
   BLOQUE 1: PERFIL
========================= */
.banner{
  position: relative;
}

.baner-img {
  background-color: #cccccc;
  width: 100%;
  height: 400px;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
}

.baner-img img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  cursor: pointer;
}

.editar-portada{
  position: absolute;
  top: 15px;
  right: 15px;
  background: #2196f3;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 20px;
  transition: 0.3s;
}

.editar-portada:hover{
  background: #2196f3;
}

.datos-perfil-responsive {
  display: none;
}
.datos-perfil {
  display: flex;
  gap: 10px;
  padding: 10px;
  margin-top: -100px;
  margin-left: 40px;
  margin-bottom: 15px;
  z-index: 2;
  position: relative;
}

.logo-perfil {
    position: relative;
}

.logo-perfil img{
  height: 200px;
  width: 200px;
  border-radius: 50%;
  border: 7px solid #fff;
  background: #fff;
  cursor: pointer;
}

.editar-perfil{
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #2196f3;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 18px;
  border: 3px solid #fff;
  transition: 0.3s;
}

.editar-perfil:hover{
  transform: scale(1.1);
}

.informacion-perfil {
  margin-top: 110px;
  width: 100%;
}

.informacion-perfil .nombre-verificado {
  display: flex;
}

.informacion-perfil h2{
  font-size: 28px;
  white-space: nowrap;        /* evita salto de línea */
  overflow: hidden;           /* oculta lo que sobra */
  text-overflow: ellipsis;    /* pone los ... */
  max-width: 100%;            /* importante */
}


.informacion-perfil .img-verificado {
  height: 30px;
  width: 30px;
}

.informacion-perfil span{
  font-size: 14px;
  color: #1da1f2;
}

/* CONTENEDOR BOTONES */
.botones-banner{
  position: absolute;
  right: 40px;
  bottom: 60px;
  display: flex;
  gap: 15px;
  z-index: 10; /* 🔥 AGREGA ESTO */
}


/* ESTILO BOTON */
.btn-banner{
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  color: #393939;
  font-weight: 700;
  font-size: 14px;
  transition: 0.3s;
}

#btnLike {
    color: #393939;
    transition: 0.2s ease;
    cursor: pointer;
}

#btnLike:hover {
    color: #2196f3;
}

#btnLike.activo {
    color: #2196f3;
}

.btn-donar {
    background: #2196f3;
    color: white;
}

@media (max-width: 1050px){
    .datos-perfil {
        margin-top: -100px;
        margin-left: -4px;
    }

    .informacion-perfil {
      margin-top: 110px;
  }
  .logo-perfil img{
      height: 200px;
      width: 200px;
      border: 5px solid #fff;
  }

  .informacion-perfil h2{
      font-size: 25px;
      margin-bottom: -4px;
  }

  .informacion-perfil span{
      font-size: 13px;
      margin-top: -11px;
      font-weight: 400;
  }

  .informacion-perfil .img-verificado {
  height: 30px;
  width: 30px;
}


  .botones-banner {
    right: 20px !important;
    bottom: 60px;
}
}

@media (max-width: 700px) {
  .header {
    margin-bottom: -30px;
}
.main {
    margin-top: 30px !important;
    padding: 0px;
}

.baner-img {
    background-color: #cccccc;
    width: 100%;
    height: 200px;
    border-radius: 0px;
}

.baner-img img {
    border-radius: 0px;
    height: 100%;
    width: 100%;
}

.datos-perfil {
    margin-top: -70px;
    margin-left: -4px;
}

.informacion-perfil {
  margin-top: 70px;
}

.logo-perfil img{
  height: 150px;
  width: 150px;
  border: 5px solid #fff;
}

.informacion-perfil h2{
  font-size: 20px;
  margin-bottom: -4px;
}

.informacion-perfil span{
  font-size: 13px;
  margin-top: -11px;
  font-weight: 400;
}

.informacion-perfil .img-verificado {
  height: 25px;
  width: 25px;
}

.botones-banner{
  position: static; /* quitamos absolute */
  margin-top: -35px;
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  padding: 15px;
}

.btn-banner{
  width: 47%;
  text-align: center;
}
}

@media (max-width: 370px){

  .datos-perfil {
    margin-top: -70px;
    margin-left: -4px;
}

.logo-perfil img{
  height: 120px;
  width: 120px;
  border: 5px solid #fff;
}

.informacion-perfil {
  margin-top: 65px;
}

.informacion-perfil h2{
  font-size: 17px;
  margin-bottom: -4px;
}

.informacion-perfil span{
  font-size: 10px;
  margin-top: -11px;
  font-weight: 400;
}

.informacion-perfil .img-verificado {
  height: 20px;
  width: 20px;
}
}

@media screen and (min-width: 968px) {
  .main {
    margin-inline: 17.8rem 0rem;
    border-top-left-radius: 40px;
    row-gap: 2.5rem;
  }
}

/* =========================
   BLOQUE 2: MARKETPLACE
========================= */

    .card-clave{
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f2f5;
    max-width: 480px;
    margin-top: 20px;
}

.card-header-clave h3{
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1c1e21;
}

.card-header-clave p{
    margin: 6px 0 20px;
    font-size: 13px;
    color: #65676b;
}

.input-wrapper{
    position: relative;
    margin-bottom: 15px;
}

.input-wrapper input,
#vistaCodigo input{
    width: 100%;
    padding: 12px 40px 12px 12px;
    border-radius: 10px;
    border: 1px solid #dddfe2;
    background: #f0f2f5;
    font-size: 14px;
    outline: none;
}

.icono-ver{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #1877f2;
}

.btn-primario,
.btn-secundario{
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

.btn-primario{
    background: #1877f2;
    color: #fff;
}

.btn-primario:hover{
    background: #166fe5;
}

.btn-secundario{
    background: #42b72a;
    color: #fff;
    margin-top: 10px;
}

.btn-secundario:hover{
    background: #36a420;
}

/* Loader interno botón */
.btn-loading{
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after{
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    animation: spin 0.7s linear infinite;
}

@keyframes spin{
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ===============================
   BLOQUE 3: CONFIGURACION
================================= */

#contenido-configuracion {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 40px 60px;
    background: #f9fafc;
    box-sizing: border-box;
}

/* Título */
#contenido-configuracion h2 {
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 600;
    color: #2c3e50;
}

/* GRID PRINCIPAL */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
}

/* Columnas ocupan todo el espacio */
.col-izquierda,
.col-derecha {
    width: 100%;
}

/* Bloques */
.corre,
.ubigeo,
.direccion,
.bloque {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #eef1f5;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

/* Subtítulos */
#contenido-configuracion h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #34495e;
}

/* Groups */
.group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.group label {
    font-size: 13px;
    margin-bottom: 6px;
    color: #555;
}

/* Inputs */
#contenido-configuracion input,
#contenido-configuracion select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #dcdfe6;
    font-size: 14px;
    transition: 0.3s;
    outline: none;
    box-sizing: border-box;
}

#contenido-configuracion input:focus,
#contenido-configuracion select:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
}

#contenido-configuracion input[readonly] {
    background: #f1f3f6;
}

/* Botones */
.btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

.btn-yellow {
    background: #f4b400;
    color: white;
}

.btn-yellow:hover {
    background: #e0a800;
}

.btn-primary {
    background: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background: #357abd;
}

/* Whatsapp */
.whatsapp-box {
    display: flex;
    width: 100%;
}

.whatsapp-box span {
    background: #eef1f5;
    padding: 12px 14px;
    border: 1px solid #dcdfe6;
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.whatsapp-box input {
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    border-left: none;
}

/* ===============================
   RESPONSIVE CELULARES
================================= */

@media (max-width: 900px) {
    #contenido-configuracion {
        padding: 25px 20px;
    }

    .config-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===============================
   BLOQUE 4: VERIFICACION
================================= */

#contenido-verificar {
    width: 100%;
    max-width: 800px;
    margin: 100px auto;
    padding: 40px 30px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 16px;
}

/* Título */
#contenido-verificar h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 35px;
    color: #2c3e50;
}

/* ===============================
   TARJETAS DE ESTADO
================================= */

#contenido-verificar > div {
    padding: 25px;
    border-radius: 14px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    margin-bottom: 25px;
}

/* Verificado */
#contenido-verificar div[style*="#e3f2fd"] {
    background: #eaf4ff !important;
    border: 1px solid #cfe3ff;
    color: #0d6efd;
}

/* No verificado */
#contenido-verificar div[style*="#f8d7da"] {
    background: #fdeaea !important;
    border: 1px solid #f5c2c7;
    color: #dc3545;
}

/* En proceso */
#contenido-verificar div[style*="#fff3cd"] {
    background: #fff8e1 !important;
    border: 1px solid #ffe69c;
    color: #856404;
}

/* Íconos */
#contenido-verificar i {
    font-size: 22px;
}

/* ===============================
   FORMULARIO DE SOLICITUD
================================= */

#contenido-verificar input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: 1px solid #dcdfe6;
    font-size: 14px;
    transition: 0.3s;
    box-sizing: border-box;
}

#contenido-verificar input[type="text"]:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
    outline: none;
}

/* Checkbox */
#contenido-verificar label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 25px;
    color: #555;
}

#contenido-verificar input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Botón */
#contenido-verificar button {
    padding: 14px;
    width: 100%;
    border-radius: 12px;
    border: none;
    background: #4a90e2;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

#contenido-verificar button:hover {
    background: #357abd;
    transform: translateY(-1px);
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 600px) {
    #contenido-verificar {
        padding: 30px 15px;
    }

    #contenido-verificar h2 {
        font-size: 22px;
    }
}

/* ===============================
   BLOQUE 5: ELIMINAR CUENTA
================================= */

#contenido-eliminar {
    width: 100%;
    max-width: 800px;
    margin: 100px auto;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f2f5;
    box-sizing: border-box;
}

/* Título */
#contenido-eliminar h2 {
    font-size: 26px;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 25px;
}

/* Caja advertencia */
#contenido-eliminar > div:first-of-type {
    background: #fff5f5;
    border: 1px solid #f5c2c7;
    padding: 18px 20px;
    border-radius: 12px;
    color: #842029;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
}

/* Botón enviar código */
#btnEnviarCodigoEliminar {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #dc3545;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

#btnEnviarCodigoEliminar:hover {
    background: #bb2d3b;
    transform: translateY(-1px);
}

/* Caja código */
#boxCodigoEliminar {
    margin-top: 25px;
}

/* Input código */
#codigoEliminar {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #dcdfe6;
    font-size: 15px;
    text-align: center;
    letter-spacing: 2px;
    transition: 0.3s;
    box-sizing: border-box;
}

#codigoEliminar:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.15);
    outline: none;
}

/* Botón confirmar */
#btnConfirmarEliminar {
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #111111;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

#btnConfirmarEliminar:hover {
    background: #000000;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 600px) {
    #contenido-eliminar {
        margin: 40px 15px;
        padding: 30px 20px;
    }

    #contenido-eliminar h2 {
        font-size: 22px;
    }
}


/* =========================================================================
                               ADICIONALES
=========================================================================== */

/* =========================
         VER IMAGEN
========================= */

.modal-ver {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.modal-ver.active {
    opacity: 1;
    visibility: visible;
}

.modal-ver img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    transform: scale(0.9);
    transition: 0.3s ease;
}

.modal-ver.active img {
    transform: scale(1);
}

.modal-img{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-img.active{
  display: flex;
}

.modal-contenido{
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 300px;
  text-align: center;
  animation: fadeIn 0.2s ease;
}

.modal-contenido h3{
  margin-bottom: 20px;
}

.btn-modal{
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-modal.eliminar{
  background: #ff4d4d;
  color: white;
}

.btn-cerrar{
  background: transparent;
  border: none;
  margin-top: 10px;
  cursor: pointer;
  color: #777;
}

@keyframes fadeIn{
  from{transform:scale(0.9);opacity:0;}
  to{transform:scale(1);opacity:1;}
}
