.DentroDeIzquierdaPrincipal {
    display: flex;
    width: 100%;
    align-items: center; 
}

.DentroDerecha {
    width: 50%;
}

@media (max-width: 600px) {
    .DentroDerecha {
        display: none;
    }
}

.FotoModificacion div, .FotoModificacion img {
    display: inline-block;
}

.TamanyoFoto {
    width: 15%;
    border-radius: 10%;
    margin-left: 10px;
    margin-bottom: 9px;
    aspect-ratio: 1/1;
    margin-top: 35px;
}
.LineaSeguir {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 6px;
    padding: 0 10px;
}
.LineaSeguir h1 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    word-break: break-word;
}
.LineaSeguirAcciones {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.LineaSeguirAcciones button {
    width: auto;
}
.NombreCompleto {
    margin: 4px 0 12px 10px;
    color: #555;
    font-size: 15px;
    word-break: break-word;
}

@media (max-width: 550px) {
    .LineaSeguir {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 0 10px;
    }
    .LineaSeguir h1 { font-size: 26px; line-height: 1.1; }
    .LineaSeguirAcciones { width: 100%; }
}

.NoMargen {
    margin-top: 0px;
    margin-bottom: 3px;
    margin-left: 10px;
}

.BotonLogout {
    font-family: "Passion One", sans-serif;
    color: #404040;
    width: 10%;
    margin-left: 10px;
    outline: none;
    background-color: rgb(255, 119, 119);
    border: none; 
    height: 35px;
    font-size: 16px;
    border-radius: 30px;
    transition: background-color 0.2s ease;  
}

.BotonLogout:hover {
    cursor: pointer;
    background-color: #ffc6c6; 
}

.BotonSeguir {
    font-family: "Passion One", sans-serif;
    color: #ffffff;
    outline: none;
    background-color: #35CB83;
    border: none;
    width: auto;
    height: 36px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 0 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
#BotonCambiarFoto{
    cursor: pointer;
    display: inline-block;
    width: auto;
    padding: 0 15px;
    line-height: 35px;
    margin: 0;
}

.BotonSeguir:hover {
    background-color: #0BA243;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(53, 203, 131, 0.25);
}
.BotonSeguir:active {
    transform: translateY(0px);
}


.CometariosRecientes {
    margin-top: 0px;
    margin-bottom: 10px;
}

.ComentariosPerfilLink {
    padding-top: 5px;
    padding-left: 12px;
    padding-right: 12px;
    background-color: white;
    border: 2px solid rgb(26, 23, 24);
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 9px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.ComentariosPerfilLink:hover {
    background-color: #E7E7E8;
    border-radius: 8px;
}

.link_actividad_comentario {
    text-decoration: none;
    color: black;
    margin-bottom: 100px;
}

.TitutoComenta {
    font-size: 20px;
    margin-top: 6px;
    margin-bottom: 0px;
    font-family: "Passion One", sans-serif;
}

.ComentariosPerfil, .ComentariosPerfilLink {
    word-break: break-word;
    margin-right: 0px;
}

#TextoActividades {
    margin-top: 14px;
    margin-left: 10px;
}
.imposible{
    text-align: left;
    margin-left: -9px;
    margin-top: 0px;
}

.Margenes {
    margin-left: 10px;
}

.DivPerfilBotones {
    display: flex;
}

.BotonPerfil {
    flex: 1;
    min-width: 0;
    padding-bottom: 16px;
    padding-top: 16px;
    padding-left: 6px;
    padding-right: 6px;
    border: none;
    background: none;
    position: relative;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    color: #444;
    font-family: inherit;
}

.BotonPerfil:hover {
    background-color: #d0d0d3;
    cursor: pointer;
}

.BotonPerfilIcono {
    color: #188a53;
    font-size: 15px;
    line-height: 1;
}

.BotonPerfilActivo {
    color: #00541C;
    font-weight: 600;
}

.BotonPerfilActivo .BotonPerfilIcono {
    color: #00541C;
}

/* Con 4 tabs el texto deja de caber bien en mobil/tablet: solo iconos,
   centrados y un poco más grandes para que se vean cómodos al toque. */
@media (max-width: 950px) {
    .BotonPerfilTexto {
        display: none;
    }
    .BotonPerfil {
        padding-top: 14px;
        padding-bottom: 14px;
        gap: 0;
    }
    .BotonPerfilIcono {
        font-size: 22px;
    }
}

.LineaBoton {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 4px;
    border-radius: 8px;
    margin-bottom: 1px;
    border: none;
    background-color: #188a53;
}

.LineaFalsaBoton {
    all: unset;
}

.PorDefecto {
  
}
/* ============== Banner de perfil ============== */
.PerfilBanner {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #35CB83;
}

.PerfilBannerVacio {
    background-color: #35CB83;
}

@media (max-width: 600px) {
    .PerfilBanner {
        height: 140px;
    }
}

/* Foto flotando sobre el banner: el contenedor que la rodea sube hacia el banner */
.FotoModificacion {
    position: relative;
    z-index: 2;
    margin-top: -80px;
    display: inline-block;
}

@media (max-width: 600px) {
    .FotoModificacion {
        margin-top: -60px;
    }
}

/* Reset margin-top de la foto (antes 35px, ahora la posición la marca FotoModificacion) */
.TamanyoFoto {
    margin-top: 0 !important;
    border: 4px solid white;
    background: white;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    width: 140px;
    height: 140px;
}

@media (max-width: 600px) {
    .TamanyoFoto {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
}

/* Mantener el resto del bloque a su altura natural, sin subir */
.DentroDeIzquierdaPrincipal {
    align-items: flex-end;
}

.EmailPrivadoNota {
    color: #888;
    font-size: 13px;
    margin-left: 5px;
}

/* ============== Modal de edición de perfil ============== */
.ModalPerfil {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.ModalPerfil.mostrar-modal {
    display: flex;
}

.ModalPerfilContenido {
    background-color: #ffffff;
    padding: 0;
    border-radius: 12px;
    width: 92%;
    max-width: 480px;
    max-height: 88vh;
    max-height: 88dvh;   /* mobile con teclado virtual */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 84, 28, 0.35);
    display: flex;
    flex-direction: column;
}
@media (max-width: 550px) {
    .ModalPerfilContenido {
        width: 96%;
        max-height: 94dvh;
        border-radius: 10px;
    }
    .ModalPerfilContenido h2 { font-size: 22px; padding: 14px 16px; }
    .ModalPerfilContenido form { padding: 16px 18px; }
    .ModalPerfilContenido .grupo-formulario input[type="text"],
    .ModalPerfilContenido .grupo-formulario input[type="file"] {
        font-size: 16px;   /* evita zoom iOS */
    }
    .ModalPerfilBotones { flex-wrap: wrap; gap: 8px; margin-top: 16px; }
}

/* Cabecera verde del modal, en línea con la paleta del resto */
.ModalPerfilContenido h2 {
    background-color: #35CB83;
    color: white;
    text-align: center;
    font-family: "Passion One", sans-serif;
    font-size: 30px;
    margin: 0;
    padding: 22px 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ModalPerfilContenido form {
    padding: 25px 28px 22px;
    overflow-y: auto;
}

.ModalPerfilContenido .grupo-formulario {
    display: block;
    margin-bottom: 18px;
    color: #00541C;
    font-weight: 600;
    font-size: 15px;
}

.ModalPerfilContenido .grupo-formulario label {
    display: block;
    margin-bottom: 6px;
}

.ModalPerfilContenido .grupo-formulario input[type="text"],
.ModalPerfilContenido .grupo-formulario input[type="file"] {
    width: 100%;
    padding: 10px 14px;
    background-color: #F4FFF9;
    border: 2px solid #35CB83;
    border-radius: 30px;
    box-sizing: border-box;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ModalPerfilContenido .grupo-formulario input[type="text"]:focus,
.ModalPerfilContenido .grupo-formulario input[type="file"]:focus {
    outline: none;
    border-color: #0BA243;
    box-shadow: 0 0 0 3px rgba(11, 162, 67, 0.18);
}

.ModalPerfilContenido .grupo-formulario input[type="file"] {
    padding: 8px 14px;
    background-color: #F4FFF9;
    cursor: pointer;
}

/* Texto auxiliar de "Actualmente: ... / Limpiar" que mete Django para ImageField */
.ModalPerfilContenido .grupo-formulario a {
    color: #0BA243;
    text-decoration: none;
    font-weight: 500;
}
.ModalPerfilContenido .grupo-formulario a:hover {
    text-decoration: underline;
}

.ModalPerfilContenido .grupo-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #F4FFF9;
    padding: 12px 16px;
    border-radius: 30px;
    border: 2px solid #35CB83;
}

.ModalPerfilContenido .grupo-checkbox label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    color: #00541C;
    flex: 1;
}

.ModalPerfilContenido .grupo-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0BA243;
}

.ModalPerfilBotones {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.ModalPerfilBotones .BotonSeguir {
    width: auto;
    padding: 0 26px;
    margin-left: 0;
}

.BotonSecundario {
    font-family: "Passion One", sans-serif;
    color: #404040;
    background-color: #E7E7E8;
    border: none;
    height: 35px;
    padding: 0 22px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.BotonSecundario:hover {
    background-color: #d0d0d0;
    transform: translateY(-1px);
}

#BotonEditarPerfil {
    width: auto;
    padding: 0 18px;
}

/* ============== Invita amigos (referidos) ============== */
.InvitaAmigosCard {
    margin-top: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #F4FFF9 0%, #E0F7EA 100%);
    border: 1px solid #B7E4C7;
    border-radius: 10px;
    max-width: 480px;
}
.InvitaAmigosTitulo {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1B5E20;
    display: flex;
    align-items: center;
    gap: 8px;
}
.InvitaAmigosTitulo i { color: #2E7D32; }
.InvitaContador {
    margin-left: auto;
    background: #2E7D32;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 14px;
}
.InvitaAmigosSub {
    margin: 6px 0 10px;
    font-size: 13px;
    color: #555;
}
.InvitaAmigosRow {
    display: flex;
    gap: 8px;
}
.InvitaAmigosRow input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #B7E4C7;
    border-radius: 6px;
    background: #fff;
    color: #333;
}
.InvitaAmigosRow .BotonSeguir {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 13px;
}
@media (max-width: 480px) {
    .InvitaAmigosRow { flex-direction: column; }
    .InvitaAmigosRow .BotonSeguir { width: 100%; }
}

.PWAControls {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.PWAControls .BotonSecundario {
    padding: 8px 14px;
    font-size: 13px;
    background: #fff;
    border: 1px solid #B7E4C7;
    color: #1B5E20;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.12s, transform 0.08s;
}
.PWAControls .BotonSecundario:hover {
    background: #E8F5E9;
    transform: translateY(-1px);
}
.PWAControls .BotonSecundario:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.PushEstado {
    font-size: 12px;
    color: #555;
    flex-basis: 100%;
}
