@import url("./fuentes.css");


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Wix Madefor Display", sans-serif;
}


html{
    scroll-behavior: smooth;
    min-height:100%;
    background-color:#55b9df;
}

img, picture, video{
    -webkit-user-drag: none;
}

img{
    user-select: none;
}


body{
    min-height: 100vh;
    min-height: 100dvh;

    position: relative;

    isolation: isolate;

    background:transparent;
}


@supports (-webkit-touch-callout:none){
    html,
    body{
        min-height:100vh;
        min-height:100lvh;
        background-color:#55b9df;
    }

}

body::before{
    content: "";

    position: fixed;

    inset: 0;

    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #ffffff 22%,
        #dff4fb 52%,
        #9bdcf3 78%,
        #55b9df 100%
    );

    pointer-events: none;

    z-index: -1;
}


body.perfil-color-personalizado::before{
    background-color:#ffffff;
    background-image:linear-gradient(
        to bottom,
        #ffffff 0%,
        #ffffff 18%,
        rgba(var(--perfil-color), .18) 48%,
        rgba(var(--perfil-color), .72) 100%
    );
}


a{
    text-decoration: none;
}


.toast-contenedor{
    position:fixed;
    right:22px;
    bottom:22px;
    z-index:10000;
    width:min(360px, calc(100% - 30px));
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:9px;
    pointer-events:none;
}


.toast-mensaje{
    width:fit-content;
    max-width:100%;
    position:relative;
    display:block;
    overflow:hidden;
    padding:13px 18px 13px 23px;
    border:1px solid rgba(255,255,255,.78);
    border-radius:18px;
    background:rgba(247,252,253,.88);
    color:#111;
    font:600 11px/1.4 "Wix Madefor Display",Arial,sans-serif;
    text-align:left;
    cursor:pointer;
    pointer-events:auto;
    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);
    box-shadow:0 16px 42px rgba(7,16,20,.18);
    animation:toast-entrada .42s cubic-bezier(.22,1,.36,1) both;
}


.toast-mensaje::before{
    content:"";
    width:5px;
    position:absolute;
    top:7px;
    bottom:7px;
    left:7px;
    border-radius:100px;
    background:#59bee8;
}


.toast-mensaje.error::before{
    background:#e45d68;
}


.toast-mensaje.exito::before{
    background:#58b98b;
}


.toast-mensaje.saliendo{
    animation:toast-salida .26s ease both;
}


@keyframes toast-entrada{
    from{opacity:0;transform:translateY(14px) scale(.96)}
    to{opacity:1;transform:translateY(0) scale(1)}
}


@keyframes toast-salida{
    to{opacity:0;transform:translateX(20px) scale(.97)}
}


@media (max-width:800px){
    .toast-contenedor{
        right:15px;
        bottom:calc(94px + env(safe-area-inset-bottom));
        width:calc(100% - 30px);
        align-items:stretch;
    }

    .toast-mensaje{
        width:100%;
        text-align:center;
    }
}


@media (prefers-reduced-motion:reduce){
    .toast-mensaje,
    .toast-mensaje.saliendo{
        animation:none;
    }
}


/* =========================
   MENU
========================= */

header{
    width: 100%;
    height: 105px;

    position: relative;

    z-index: 1000;
}


nav{
    position: fixed;

    top: 25px;
    left: 7%;
    right: 7%;

    height: 64px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 34px;

    border: 1.5px solid rgba(255,255,255,0.90);

    border-radius: 40px;

    background: rgba(255,255,255,0.42);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    z-index: 1000;

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.45s ease,
        background 0.45s ease;
}


nav.compacto{
    transform: scale(0.88);
}


nav > .logo{
    position:static;
    transform:none;
}


@media (min-width:1001px){
    nav{
        top:12px;
        transform:scale(.91);
    }

    nav.compacto{
        transform:scale(.80);
    }

}


@media (min-width:1001px) and (max-width:1250px){
    .pagina-inicio .inicio-contenido > .titulo{
        padding-top:34px;
    }

    .pagina-inicio .titulo h1{
        font-size:36px;
    }

    .pagina-inicio .galeria-feed{
        max-width:800px;
        margin-top:18px;
        gap:22px;
    }
}


.logo{
    display: flex;

    align-items: center;

    height: 100%;
}


.logo img{
    width: 120px;
    height: auto;
    max-width: 100%;

    display: block;
}


.botones{
    display: flex;

    align-items: center;

    gap: 42px;

    transition:
        transform 0.45s ease;
}


.botones a{
    color: #111111;

    font-size: 14px;

    white-space: nowrap;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.botones a:hover{
    opacity: 0.6;
}


.botones a:not(.menu-avatar){
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:10px 18px;
    border:1px solid transparent;
    border-radius:100px;
}


.botones a:not(.menu-avatar)::before{
    content:"";
    width:16px;
    height:16px;
    flex:0 0 16px;
    background:currentColor;
    -webkit-mask:var(--menu-icon) center / contain no-repeat;
    mask:var(--menu-icon) center / contain no-repeat;
}


.botones a[href="index.php"]{
    --menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11 12 4l9 7v9h-6v-6H9v6H3Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.botones a[href="buscar.php"]{
    --menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m15.5 15.5 5 5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.botones a[href="panel.php"]{
    --menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.botones a[href="logout.php"]{
    --menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 5H5v14h5M14 8l4 4-4 4M9 12h9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.botones a[href="login.php"]{
    --menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 21c1-5 4-7 8-7s7 2 8 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.botones a[href="registro.php"]{
    --menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M2 21c1-5 3-7 7-7 2 0 3 .5 4 1M18 11v8M14 15h8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}


@media (min-width:801px){
    nav{
        box-shadow:
            0 14px 38px rgba(7,16,20,0.12),
            0 2px 8px rgba(7,16,20,0.05);
        transition:
            transform .55s cubic-bezier(.22,1,.36,1),
            height .55s cubic-bezier(.22,1,.36,1),
            background .35s ease;
    }
}


@media (min-width:951px){
    .botones a{
        transition:
            background .35s cubic-bezier(.22,1,.36,1),
            color .35s ease,
            opacity .25s ease,
            transform .35s cubic-bezier(.22,1,.36,1);
    }

    .botones a:hover{
        opacity:1;
        transform:translateY(-1px);
    }

    .botones a:not(.activo):not(.menu-avatar):hover{
        background:rgba(255,255,255,.68);
        border-radius:100px;
    }

    .botones a:active{
        transform:scale(.95);
    }
}


.botones a.activo{
    padding:10px 18px;
    border-radius:100px;
    border:1px solid rgba(255,255,255,.32);
    background:#000;
    color:#fff;
    backdrop-filter:blur(36px) saturate(150%);
    -webkit-backdrop-filter:blur(36px) saturate(150%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.22),
        0 0 22px rgba(0,0,0,.38),
        0 10px 30px rgba(7,16,20,.30);
}


@media (min-width:801px) and (max-width:1000px){
    .botones a.activo{
        padding:13px 10px;
    }
}


@media (max-width:800px){
    .botones a.activo{
        padding:11px 5px;
    }
}


.botones a.menu-avatar{
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin-left: -28px;
    padding: 0;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.95);
    border-radius: 50%;
    background: #071014;
}


.botones a.menu-avatar.activo{
    border-color:#000;
    box-shadow:
        0 0 0 4px #000,
        0 8px 24px rgba(7,16,20,.24);
}


.menu-avatar img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


@media (min-width:1001px){
    nav{
        width:min(calc(100% - 40px), 1135px);
        left:50%;
        right:auto;
        padding:0 25px;
    }

    .logo img{
        width:120px;
    }

    .botones{
        gap:16px;
    }

    .botones a:not(.menu-avatar){
        padding:9px 13px;
        font-size:13px;
    }

    .botones a.menu-avatar{
        margin-left:-8px;
    }
}


@media (min-width:1001px) and (max-width:1250px){
    nav{
        transform:translateX(-50%) scale(.91);
    }

    nav.compacto{
        transform:translateX(-50%) scale(.80);
    }
}


@media (min-width:1251px){
    nav{
        top:16px;
        transform:translateX(-50%);
    }

    nav.compacto{
        transform:translateX(-50%) scale(.88);
    }
}


/* =========================
   TITULO
========================= */

.titulo{
    text-align: center;

    padding: 25px 15px 0;
}


.titulo h1{
    font-size: 40px;

    font-weight: 400;

    line-height: 1.1;
}


.titulo h4{
    font-size: 11px;

    font-weight: 600;

    margin-top: 7px;
}


.titulo h6{
    font-size: 6px;

    font-weight: 400;

    margin-top: 5px;
}


/* =========================
   GALERIA
========================= */

.galeria{
    width: 100%;

    max-width: 900px;

    margin: 22px auto 0;

    padding: 0 20px 60px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 26px;
}


.foto{
    width: 100%;

    position:relative;

    aspect-ratio: 3 / 4;

    overflow: hidden;

    border:1px solid rgba(255,255,255,.76);
    border-radius: 23px;

    cursor: pointer;

    box-shadow:0 8px 24px rgba(7,16,20,.07);

    transition:
        border-color .45s ease,
        box-shadow .55s cubic-bezier(.22,1,.36,1);
}

.galeria-feed .foto.imagen-vertical,
.pagina-perfil .galeria .foto.imagen-vertical{aspect-ratio:3 / 4}
.galeria-feed .foto.imagen-horizontal,
.pagina-perfil .galeria .foto.imagen-horizontal{aspect-ratio:4 / 3}
.galeria-feed .foto.imagen-cuadrada,
.pagina-perfil .galeria .foto.imagen-cuadrada{aspect-ratio:1 / 1}

.pagina-perfil .galeria{align-items:start}
.pagina-perfil .galeria .foto{height:auto;align-self:start}


.foto img{
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    touch-action:manipulation;

    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}


.foto:hover img{
    transform: scale(1.10);
}

.foto > video{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    border-radius:inherit;
    cursor:pointer;
    transition:transform .7s cubic-bezier(.16,1,.3,1);
}

.foto > video::-webkit-media-controls,
.imagen-visor > video::-webkit-media-controls,
.imagen-contenedor > video::-webkit-media-controls,
.guardado-imagen > video::-webkit-media-controls{
    display:none !important;
    -webkit-appearance:none;
}

.foto > video::-webkit-media-controls-enclosure,
.imagen-visor > video::-webkit-media-controls-enclosure{
    display:none !important;
}

.foto:hover > video{transform:scale(1.04)}


.like-doble-feedback{
    width:84px;
    height:84px;
    position:absolute;
    top:50%;
    left:50%;
    z-index:4;
    background:rgba(255,255,255,.96);
    pointer-events:none;
    filter:drop-shadow(0 10px 20px rgba(0,0,0,.28));
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.35-9.5-8.5C.5 9 2.5 5 6.5 5 8.7 5 10 6.2 12 8.2 14 6.2 15.3 5 17.5 5c4 0 6 4 4 7.5C19 16.65 12 21 12 21Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.35-9.5-8.5C.5 9 2.5 5 6.5 5 8.7 5 10 6.2 12 8.2 14 6.2 15.3 5 17.5 5c4 0 6 4 4 7.5C19 16.65 12 21 12 21Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
    animation:like-doble .82s cubic-bezier(.22,1,.36,1) both;
}


@keyframes like-doble{
    0%{opacity:0;transform:translate(-50%,-50%) scale(.35) rotate(-10deg)}
    35%{opacity:1;transform:translate(-50%,-50%) scale(1.12) rotate(4deg)}
    65%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0)}
    100%{opacity:0;transform:translate(-50%,-58%) scale(.92)}
}


.publicacion,
.galeria:not(.galeria-feed) > .foto{
    overflow:hidden;
    border:1px solid rgba(255,255,255,.72);
    border-radius:30px;
    background:rgba(255,255,255,.50);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    box-shadow:0 10px 35px rgba(35,130,160,.07);
    transform:translateZ(0);
    transition:
        transform .7s cubic-bezier(.16,1,.3,1),
        box-shadow .7s cubic-bezier(.16,1,.3,1);
}


.galeria-feed .foto{
    position:relative;
    border:0;
    border-radius:28px 28px 24px 24px;
    box-shadow:none;
}

.galeria-feed .foto img{
    border-radius:inherit;
}


.publicacion-like{
    position:static;
    flex:0 0 auto;
    margin-right:14px;
    min-width:40px;
    height:26px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    padding:0 8px;
    border:1px solid rgba(255,255,255,.52);
    border-radius:100px;
    background:rgba(0,0,0,.62);
    color:#fff;
    font:600 9px Arial,sans-serif;
    cursor:pointer;
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    box-shadow:0 7px 20px rgba(0,0,0,.20);
    transition:transform .2s ease, background .2s ease, opacity .2s ease;
}


.publicacion-acciones{
    width:auto;
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:7px;
}

.publicacion-acciones .publicacion-like{
    width:auto;
    min-width:40px;
    padding:0 7px;
    margin-right:0;
}

.publicacion-acciones .publicacion-like-total{
    display:inline;
}

.publicacion-comentar{
    width:auto;
    min-width:40px;
    height:26px;
    flex:0 0 auto;
    box-sizing:border-box;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    padding:0 7px;
    border:1px solid rgba(255,255,255,.52);
    border-radius:100px;
    background:rgba(0,0,0,.62);
    color:#59BEE8;
    cursor:pointer;
    box-shadow:0 7px 20px rgba(0,0,0,.20);
    transition:transform .2s ease, background .2s ease;
}

.publicacion-comentar-total{color:inherit;font:600 9px Arial,sans-serif;line-height:1}

.publicacion-comentar:hover{
    transform:scale(1.05);
    background:rgba(0,0,0,.82);
}

.publicacion-comentar-icono{
    width:11px;
    height:11px;
    flex:0 0 11px;
    display:block;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linejoin:round;
}

.publicacion-guardar{
    width:26px;
    height:26px;
    flex:0 0 26px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.52);
    border-radius:50%;
    background:rgba(0,0,0,.62);
    color:#59bee8;
    cursor:pointer;
    box-shadow:0 7px 20px rgba(0,0,0,.20);
    transition:transform .2s ease, background .2s ease, opacity .2s ease;
}

.publicacion-guardar:hover{
    transform:scale(1.05);
    background:rgba(0,0,0,.82);
}

.publicacion-guardar:disabled{
    opacity:.55;
    cursor:wait;
}

.publicacion-guardar-icono{
    width:11px;
    height:11px;
    display:inline-block;
    flex:0 0 11px;
    background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12v18l-6-4-6 4Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12v18l-6-4-6 4Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.publicacion-guardar.activo .publicacion-guardar-icono,
#botonGuardar.activo .publicacion-guardar-icono{
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12v18l-6-4-6 4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12v18l-6-4-6 4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}


.publicacion-like:hover{
    transform:scale(1.05);
    background:rgba(0,0,0,.82);
}


.publicacion-like.activo{
    background:#000;
    color:#fff;
}


.publicacion-like:disabled{
    opacity:.55;
    cursor:wait;
}

.publicacion-menu{
    position:fixed;
    z-index:9000;
    width:200px;
    display:grid;
    gap:3px;
    padding:7px;
    border:1px solid rgba(255,255,255,.78);
    border-radius:18px;
    background:rgba(244,251,253,.97);
    box-shadow:0 18px 50px rgba(7,16,20,.24);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
}

.publicacion-menu button{padding:10px 11px;border:0;border-radius:12px;background:transparent;color:#111;text-align:left;font-size:10px;cursor:pointer}
.publicacion-menu button:hover{background:rgba(85,185,223,.14)}
.publicacion-menu button.peligro{color:#a83333}
.denuncia-dialogo{width:min(440px,calc(100% - 30px));padding:0;border:0;border-radius:28px;background:transparent;color:#111}
.denuncia-dialogo::backdrop{background:rgba(3,8,11,.64);backdrop-filter:blur(10px)}
.denuncia-panel{position:relative;display:grid;gap:8px;padding:27px;border:1px solid rgba(255,255,255,.8);border-radius:28px;background:rgba(244,251,253,.98)}
.denuncia-panel h2{font-size:22px;font-weight:500}
.denuncia-panel>p{margin-bottom:5px;color:rgba(0,0,0,.68);font-size:10px;line-height:1.5}
.denuncia-panel label{padding:8px 10px;border-radius:12px;font-size:11px;cursor:pointer}
.denuncia-panel label:hover{background:rgba(85,185,223,.10)}
.denuncia-panel textarea{min-height:75px;padding:11px;border:1px solid rgba(0,0,0,.09);border-radius:15px;resize:vertical;font:10px inherit}
.denuncia-cerrar{position:absolute;top:13px;right:13px;width:30px;height:30px;border:0;border-radius:50%;background:rgba(0,0,0,.07);cursor:pointer}
.denuncia-enviar{margin-top:5px;padding:11px;border:0;border-radius:100px;background:#071014;color:#fff;font-size:10px;cursor:pointer}


.publicacion-like-icono,
#iconoLike{
    width:11px;
    height:11px;
    flex:0 0 11px;
    display:inline-block;
    color:#59BEE8;
    font-size:0;
    line-height:0;
    background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.35-9.5-8.5C.5 9 2.5 5 6.5 5 8.7 5 10 6.2 12 8.2 14 6.2 15.3 5 17.5 5c4 0 6 4 4 7.5C19 16.65 12 21 12 21Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.35-9.5-8.5C.5 9 2.5 5 6.5 5 8.7 5 10 6.2 12 8.2 14 6.2 15.3 5 17.5 5c4 0 6 4 4 7.5C19 16.65 12 21 12 21Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}


.publicacion-like.activo .publicacion-like-icono,
#botonLike.activo #iconoLike{
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.35-9.5-8.5C.5 9 2.5 5 6.5 5 8.7 5 10 6.2 12 8.2 14 6.2 15.3 5 17.5 5c4 0 6 4 4 7.5C19 16.65 12 21 12 21Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.35-9.5-8.5C.5 9 2.5 5 6.5 5 8.7 5 10 6.2 12 8.2 14 6.2 15.3 5 17.5 5c4 0 6 4 4 7.5C19 16.65 12 21 12 21Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}


@media (min-width:801px){
    .publicacion:hover,
    .galeria:not(.galeria-feed) > .foto:hover{
        transform:translateY(-3px);
        box-shadow:
            0 18px 45px rgba(35,130,160,.13);
    }

    .publicacion:hover .foto img,
    .galeria:not(.galeria-feed) > .foto:hover img{
        transform:scale(1.04);
    }
}


/* =========================
   REGISTRO
========================= */

.registro{
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 25px;

    width: fit-content;

    margin: 5px auto 70px;

    padding: 9px 13px 9px 18px;

    background: rgba(255,255,255,0.70);

    border: 1px solid rgba(110,190,215,0.35);

    border-radius: 8px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.registro p{
    font-size: 15px;
}


.registro a{
    color: white;

    background: #000000;

    padding: 8px 25px;

    border-radius: 6px;

    font-size: 12px;
}


.registro a:hover{
    background: #222222;
}


.feed-secciones{
    width:fit-content;
    display:flex;
    align-items:center;
    gap:3px;
    margin:18px auto 0;
    padding:3px;
    position:sticky;
    top:105px;
    z-index:900;
    border:1px solid rgba(255,255,255,.72);
    border-radius:100px;
    background:rgba(255,255,255,.42);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    box-shadow:0 8px 25px rgba(7,16,20,.10);
    transition:top .3s ease, gap .3s ease, padding .3s ease, background .3s ease, box-shadow .3s ease;
}


.feed-secciones a{
    min-width:86px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:7px 13px;
    border-radius:100px;
    color:#111;
    font-size:10px;
    font-weight:600;
    text-align:center;
    transition:min-width .3s ease, padding .3s ease, font-size .3s ease, background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.22,1,.36,1);
}

.video-sonido{
    width:34px;
    height:34px;
    position:absolute;
    right:12px;
    bottom:12px;
    z-index:6;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid rgba(255,255,255,.32);
    border-radius:50%;
    background:rgba(0,0,0,.58);
    color:#fff;
    cursor:pointer;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    box-shadow:0 7px 20px rgba(0,0,0,.22);
}

.video-sonido span{
    width:15px;
    height:15px;
    background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4V9Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='m17 10 4 4m0-4-4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4V9Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='m17 10 4 4m0-4-4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.video-sonido.activo span{
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4V9Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M17 9c1 2 1 4 0 6M20 6c3 4 3 8 0 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4V9Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M17 9c1 2 1 4 0 6M20 6c3 4 3 8 0 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}


@media (min-width:801px){
    .feed-secciones a:hover{
        background:rgba(255,255,255,.68);
        transform:translateY(-1px);
    }

    .feed-secciones a.activo:hover{
        background:#000;
        color:#fff;
        box-shadow:
            0 0 22px rgba(0,0,0,.34),
            0 9px 22px rgba(7,16,20,.28);
    }

    .feed-secciones a:active{
        transform:scale(.95);
    }
}


.feed-secciones.compacto{
    gap:3px;
    padding:3px;
    background:rgba(255,255,255,.62);
    box-shadow:0 7px 20px rgba(7,16,20,.16);
}


.feed-secciones.compacto a{
    min-width:86px;
    padding:7px 13px;
    font-size:10px;
}

.feed-secciones a.activo{
    border:1px solid rgba(255,255,255,.30);
    background:#000;
    color:#fff;
    box-shadow:
        0 0 18px rgba(0,0,0,.26),
        0 7px 18px rgba(7,16,20,.22);
}

.perfil-secciones{
    position:static !important;
    margin:22px auto 0 !important;
    transform:none !important;
}

.perfil-compartir{
    margin-top:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 14px;
    border:1px solid rgba(0,0,0,.08);
    border-radius:100px;
    background:rgba(255,255,255,.58);
    color:#111;
    font:600 11px "Wix Madefor Display",sans-serif;
    cursor:pointer;
    box-shadow:0 8px 22px rgba(7,16,20,.08);
    transition:transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.perfil-compartir:hover{
    transform:translateY(-1px);
    background:rgba(255,255,255,.78);
}

.perfil-compartir-texto{display:none}
.perfil-compartir-icono{
    width:16px;
    height:16px;
    display:block;
    background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14V3m0 0L8 7m4-4 4 4M5 11v8h14v-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14V3m0 0L8 7m4-4 4 4M5 11v8h14v-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width:800px){
    .perfil-publico .perfil-acciones{
        width:auto;
        max-width:calc(100% - 30px);
        flex-wrap:nowrap;
        justify-content:center;
        gap:6px;
        margin-inline:auto;
    }

    .perfil-publico .perfil-acciones .perfil-seguir,
    .perfil-publico .perfil-acciones .perfil-mensaje,
    .perfil-publico .perfil-acciones .perfil-compartir{
        min-width:0;
        flex:0 1 110px;
        padding-right:8px;
        padding-left:8px;
        white-space:nowrap;
    }

    .perfil-publico .perfil-acciones .perfil-compartir{
        width:40px;
        min-width:40px;
        flex:0 0 40px;
        padding:0;
    }

    .perfil-publico .perfil-compartir-texto{display:none}
    .perfil-publico .perfil-compartir-icono{
        width:16px;
        height:16px;
        display:block;
        background:currentColor;
        -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14V3m0 0L8 7m4-4 4 4M5 11v8h14v-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14V3m0 0L8 7m4-4 4 4M5 11v8h14v-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }
}

.perfil-actualizaciones{
    width:min(380px,calc(100% - 40px));
    display:grid;
    gap:22px;
    margin:22px auto 80px;
}

.perfil-actualizaciones .publicacion{padding:0}
.perfil-actualizaciones .publicacion{display:flex;flex-direction:column}
.perfil-actualizaciones .publicacion--actualizacion{height:max-content;min-height:0;align-self:start;display:grid;grid-template-rows:max-content max-content max-content}
.perfil-actualizaciones .publicacion--actualizacion>.publicacion-cabecera{order:1}
.perfil-actualizaciones .publicacion--actualizacion>.publicacion-actualizacion{order:2}
.perfil-actualizaciones .publicacion--actualizacion>.publicacion-pie{order:3}
.perfil-actualizaciones .publicacion>.publicacion-actualizacion{order:1}
.perfil-actualizaciones .publicacion>.publicacion-cabecera{order:2}
.perfil-actualizaciones .publicacion>.publicacion-pie{order:3}
.publicacion-cabecera{display:flex;align-items:center;gap:8px;padding:8px 10px 5px}
.publicacion-autor{min-width:0;flex:1;display:flex;align-items:center;gap:7px;margin:0;padding:4px 2px;color:#111;text-decoration:none}
.publicacion-avatar{width:27px;height:27px;flex:0 0 27px;overflow:hidden;border-radius:50%;background:#071014}
.publicacion-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.publicacion-datos{min-width:0;flex:1}
.publicacion-datos p{display:block;overflow:visible;margin:0;font-size:10px;font-weight:600;white-space:nowrap}
.publicacion-datos small{display:block;margin-top:2px;color:rgba(0,0,0,.5);font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.publicacion-cabecera .publicacion-datos{min-width:0;flex:1;font-size:10px;font-weight:600}
.publicacion-menu-boton{width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:inherit;font-weight:700;cursor:pointer}
.publicacion-actualizacion{padding:16px 18px;color:#111;font-size:18px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;cursor:pointer}
.publicacion-estado{display:block;margin-top:14px;color:rgba(0,0,0,.68);font-size:11px;font-weight:600}
.perfil-actualizaciones .publicacion-pie{display:flex;justify-content:flex-end;padding:5px 14px 14px}
.perfil-actualizaciones .publicacion-acciones{width:100%;justify-content:flex-start}
.perfil-actualizaciones .publicacion-guardar{margin-left:auto}
.perfil-contenido-vacio{grid-column:1/-1;padding:50px 20px;text-align:center;color:rgba(0,0,0,.5);font-size:14px}
.guardado-actualizacion{display:flex;align-items:center;aspect-ratio:auto !important;min-height:210px;padding:24px;color:#111;font-size:14px;line-height:1.5;white-space:pre-wrap}
.guardado-actualizacion small{display:block;margin-top:12px;color:rgba(0,0,0,.68);font-size:10px}
.actualizacion-visor{width:100%;padding:34px;color:#111;font-size:20px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.imagen-visor.es-actualizacion{height:auto;min-height:280px;aspect-ratio:auto;display:flex;align-items:center;background:rgba(255,255,255,.58)}
.visor-cabecera-datos{display:flex;align-items:center;justify-content:space-between;gap:12px}
.visor-cabecera-acciones{display:flex;align-items:center;gap:7px;margin-left:auto}
.visor-fecha{display:block;margin-top:7px;color:rgba(0,0,0,.68);font-size:8px;white-space:nowrap}
.visor-menu-publicacion{width:34px;height:34px;flex:0 0 34px;border:0;border-radius:50%;background:rgba(255,255,255,.85);font-weight:700;cursor:pointer}


@media (max-width:1000px){
    .feed-secciones a,
    .feed-secciones.compacto a{
        display:flex;
        align-items:center;
        justify-content:center;
        text-align:center;
    }
}


@media (min-width:1001px){
    .inicio-contenido > .titulo{
        padding-top:55px;
    }

    .feed-secciones{
        position:fixed;
        top:90px;
        left:50%;
        margin:0;
        transform:translateX(-50%);
    }

    .feed-secciones.compacto{
        top:86px;
        transform:translateX(-50%);
    }
}


@media (min-width:1001px) and (max-width:1250px){
    .feed-secciones{
        top:82px;
    }

    .feed-secciones.compacto{
        top:78px;
    }
}


.insignia-verificada{
    width: 20px;
    height: 20px;
    display: inline-flex;
    vertical-align: middle;
    margin-left: 5px;
    background: url("../img/verificacion_icono.svg") center / contain no-repeat;
    color: transparent;
    font-size: 0;
}


.insignia-verificada--compacta{
    width: 11px;
    height: 11px;
    margin-left: 2px;
}


.insignia-verificada[hidden]{
    display: none;
}


.perfil-publico{
    width: min(100% - 30px, 900px);
    margin: 0 auto;
    padding-top: 25px;
}


.perfil-avatar-principal{
    display: flex;
    justify-content: center;
    margin: 0 0 16px;
    position: relative;
}


.perfil-avatar-principal .perfil-avatar-imagen{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.95);
    background: #071014;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}


.perfil-seguir{
    min-width:110px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:12px;
    padding:10px 22px;
    border:1px solid #000;
    border-radius:100px;
    background:#000;
    color:#fff;
    font:600 11px "Wix Madefor Display",sans-serif;
    cursor:pointer;
    box-shadow:0 8px 22px rgba(7,16,20,.20);
    transition:transform .2s ease, background .2s ease, color .2s ease;
}


.perfil-seguir:hover{
    transform:translateY(-1px);
}


.perfil-seguir.siguiendo{
    border-color:rgba(0,0,0,.22);
    background:rgba(255,255,255,.52);
    color:#111;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}


.perfil-seguir:disabled{
    opacity:.58;
    cursor:wait;
}

.perfil-acciones{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
}

.perfil-mensaje{
    min-width:110px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:12px;
    padding:10px 22px;
    border:1px solid rgba(0,0,0,.12);
    border-radius:100px;
    background:rgba(255,255,255,.58);
    color:#111;
    font:600 11px "Wix Madefor Display",sans-serif;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    box-shadow:0 8px 22px rgba(7,16,20,.10);
    transition:transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.perfil-mensaje:hover{
    transform:translateY(-1px);
    background:rgba(255,255,255,.78);
}

/* Acciones del perfil: una sola familia visual, separada de las pestañas. */
.perfil-publico .perfil-acciones .perfil-seguir,
.perfil-publico .perfil-acciones .perfil-mensaje,
.perfil-publico .perfil-acciones .perfil-compartir,
.perfil-publico > .perfil-seguir{
    width:118px;
    min-width:118px;
    height:38px;
    min-height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    margin:12px 0 0;
    padding:0 14px;
    border:1px solid #000;
    border-radius:100px;
    background:#000;
    color:#fff;
    font:600 11px "Wix Madefor Display",sans-serif;
    text-decoration:none;
    box-shadow:0 8px 22px rgba(7,16,20,.16);
    transition:transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.perfil-publico .perfil-acciones .perfil-seguir:hover,
.perfil-publico .perfil-acciones .perfil-mensaje:hover,
.perfil-publico .perfil-acciones .perfil-compartir:hover,
.perfil-publico > .perfil-seguir:hover{
    transform:translateY(-1px);
    background:#111;
}

.perfil-publico .perfil-acciones .perfil-seguir.siguiendo{
    border-color:#000;
    background:#000;
    color:#fff;
}

.perfil-publico .perfil-acciones .perfil-compartir{
    width:40px;
    min-width:40px;
    flex:0 0 40px;
    padding:0;
}

@media (max-width:800px){
    .perfil-publico .perfil-acciones{
        width:auto;
        max-width:calc(100% - 30px);
        flex-wrap:nowrap;
        justify-content:center;
        gap:6px;
        margin-inline:auto;
    }

    .perfil-publico .perfil-acciones .perfil-seguir,
    .perfil-publico .perfil-acciones .perfil-mensaje{
        min-width:0;
        flex:0 1 110px;
        padding-right:8px;
        padding-left:8px;
        white-space:nowrap;
    }

    .perfil-publico .perfil-acciones .perfil-compartir{
        width:40px;
        min-width:40px;
        flex:0 0 40px;
        padding:0;
    }
}

.botones a[href="mensajes.php"]{
    --menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v12H9l-5 4V4Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}


.perfil-categoria{
    margin:7px auto 0;
    color:rgba(0,0,0,.68);
    font-size:10px;
    font-weight:600;
}


.perfil-sitio{
    display:inline-block;
    margin-top:7px;
    color:#087eb5;
    font-size:11px;
    font-weight:600;
    overflow-wrap:anywhere;
}


.registro.registro-flotante{
    position:fixed;
    left:50%;
    bottom:25px;
    width:max-content;
    max-width:calc(100% - 30px);
    margin:0;
    padding:6px 8px 6px 11px;
    gap:8px;
    border-radius:20px;
    opacity:0;
    visibility:hidden;
    transform:translate(-50%, 25px);
    z-index:1450;
    transition:
        opacity .35s ease,
        visibility .35s ease,
        transform .45s cubic-bezier(.22,1,.36,1);
}


.registro.registro-flotante.visible{
    opacity:1;
    visibility:visible;
    transform:translate(-50%, 0);
}


.registro-acciones{
    display:flex;
    align-items:center;
    gap:6px;
}


.registro-flotante p{
    font-size:10px;
}


.registro-flotante .registro-acciones a{
    padding:6px 11px;
    border-radius:100px;
    font-size:9px;
}


.registro a.registro-login{
    border:1px solid rgba(0,0,0,.10);
    background:rgba(255,255,255,.72);
    color:#111;
}


.registro a.registro-login:hover{
    background:#fff;
}


/* =========================
   MODAL
========================= */

.modal{
    position: fixed;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background: rgba(0,0,0,0.30);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    z-index: 2000;
}


.modal.activo{
    display: flex;
}


/* =========================
   VISOR
========================= */

.visor{
    width: 780px;

    max-width: 90vw;

    height: 600px;

    max-height: 88vh;

    display: flex;

    align-items: center;

    gap: 60px;

    padding: 30px 40px;

    background: rgba(255,255,255,0.78);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,0.65);

    border-radius: 55px;

    position: relative;

    overflow: hidden;
}


.imagen-visor{
    width:auto;
    position:relative;
    height:auto;
    max-width:min(48%, 355px);
    max-height:100%;
    flex:0 1 auto;

    display:flex;
    align-items:center;
    justify-content:center;
    overflow: hidden;

    border-radius: 36px;
}


.imagen-visor img{
    width:auto;
    height:auto;
    max-width: 100%;
    max-height: 100%;

    display: block;

    object-fit: contain;
    border-radius:inherit;
}

.imagen-visor video{
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    display:block;
    object-fit:contain;
    border-radius:inherit;
    background:#000;
}

.imagen-visor video[hidden],
.imagen-visor img[hidden]{display:none}

.visor.visor--video{width:min(1500px,98vw);max-width:98vw;height:min(900px,97dvh);max-height:97dvh;display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,230px);align-items:center;gap:12px;padding:10px 12px;overflow:hidden}
.visor--video .imagen-visor{max-width:100%;max-height:calc(97dvh - 20px);justify-self:center;background:#000;transition:width .22s ease,height .22s ease}
.visor--video .imagen-visor.video-cargando{width:min(80vw,1180px);aspect-ratio:16 / 9}
.visor--video .datos{width:100%;min-width:0;max-width:none;max-height:100%;align-self:center;padding-top:12px;overflow-x:hidden;overflow-y:auto}
.visor--video .perfil{margin-bottom:14px}

@media (max-width:800px){
    .visor.visor--video{width:calc(100vw - 6px);height:calc(100dvh - 6px);max-height:calc(100dvh - 6px);grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:6px;padding:6px}
    .visor--video .imagen-visor{max-width:100%;max-height:72dvh;align-self:center}
    .visor--video .imagen-visor.video-cargando{width:100%}
    .visor--video .datos{width:100%;min-width:0;max-width:none;min-height:0;padding:2px 5px 8px}
}

@media (orientation:landscape) and (max-width:1000px){
    .visor.visor--video{width:calc(100vw - 4px);height:calc(100dvh - 4px);max-height:calc(100dvh - 4px);grid-template-columns:minmax(0,1fr) minmax(175px,205px);grid-template-rows:1fr;gap:6px;padding:6px}
    .visor--video .imagen-visor{max-width:100%;max-height:calc(100dvh - 16px)}
    .visor--video .datos{min-width:175px;max-width:205px}
}

.visor-video-sonido[hidden]{display:none !important}

.visor-video-linea{
    width:calc(100% - 32px);
    height:12px;
    position:absolute;
    right:16px;
    bottom:7px;
    left:16px;
    z-index:9;
    margin:0;
    padding:0;
    border:0;
    outline:0;
    background:transparent;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
}

.visor-video-linea[hidden]{display:none !important}
.visor-video-linea::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:linear-gradient(to right,#fff 0 var(--progreso,0%),rgba(255,255,255,.34) var(--progreso,0%) 100%)}
.visor-video-linea::-webkit-slider-thumb{width:0;height:0;margin:2px 0 0;border:0;background:transparent;appearance:none;-webkit-appearance:none;box-shadow:none}
.visor-video-linea::-moz-range-track{height:4px;border-radius:999px;background:rgba(255,255,255,.34)}
.visor-video-linea::-moz-range-progress{height:4px;border-radius:999px;background:#fff}
.visor-video-linea::-moz-range-thumb{width:0;height:0;border:0;background:transparent}


/* =========================
   INFORMACION
========================= */

.datos{
    flex: 1;

    align-self: flex-start;

    padding-top: 35px;

    min-width: 0;

    max-height: 100%;

    overflow-y: auto;

}


.perfil{
    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 30px;
}


.avatar{
    width: 50px;

    height: 50px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #071014;
}


.perfil h3{
    display: inline;

    font-size: 13px;

    font-weight: 600;
}


.perfil h4{
    display: inline;

    font-size: 12px;

    font-weight: 600;
}


.datos > p{
    font-size: 10px;

    line-height: 1.12;

    max-width: 280px;
}


.interacciones-foto{
    display:flex;
    align-items:center;
    gap:8px;
    margin:-12px 0 16px;
}


.interacciones-foto button{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:7px 11px;
    border:1px solid rgba(0,0,0,.08);
    border-radius:100px;
    background:rgba(255,255,255,.58);
    color:#111;
    font-size:9px;
    cursor:pointer;
}


.interacciones-foto button:hover{
    background:rgba(255,255,255,.90);
}

.interacciones-foto .visor-menu-publicacion{
    width:auto;
    height:auto;
    min-width:34px;
    padding:7px 11px;
    font-size:12px;
    line-height:1;
    letter-spacing:1px;
}


.interacciones-foto #botonLike.activo{
    border-color:rgba(89,190,232,.35);
    background:rgba(89,190,232,.12);
    color:#111;
}

.interacciones-foto #botonGuardar.activo{
    border-color:rgba(89,190,232,.35);
    background:rgba(89,190,232,.12);
}


#iconoLike{
    width:11px;
    height:11px;
    flex-basis:11px;
}


.comentarios-foto{
    margin-top:18px;
    padding-top:14px;
    border-top:1px solid rgba(255,255,255,.72);
}


.comentarios-foto h5{
    margin-bottom:10px;
    font-size:9px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
}


.lista-comentarios{
    max-height:130px;
    overflow-y:auto;
}


.comentario-item{
    display:flex;
    gap:8px;
    margin-bottom:10px;
}


.comentario-avatar{
    width:25px;
    height:25px;
    flex:0 0 25px;
    overflow:hidden;
    border-radius:50%;
    background:#071014;
}


.comentario-avatar img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}


.comentario-contenido{
    min-width:0;
}


.comentario-contenido strong{
    display:block;
    font-size:8px;
}


.comentario-contenido p{
    margin-top:2px;
    font-size:8px;
    line-height:1.3;
    overflow-wrap:anywhere;
}


.comentario-contenido time{
    display:block;
    margin-top:3px;
    color:rgba(0,0,0,.64);
    font-size:7px;
}


.comentarios-vacios{
    padding:8px 0 12px;
    color:rgba(0,0,0,.68);
    font-size:8px;
}


#formComentario{
    display:flex;
    gap:6px;
    margin-top:10px;
}


#formComentario input{
    flex:1;
    min-width:0;
    padding:9px 11px;
    border:1px solid rgba(0,0,0,.08);
    border-radius:100px;
    outline:none;
    background:rgba(255,255,255,.68);
    font-size:8px;
}


#formComentario button{
    padding:9px 12px;
    border:0;
    border-radius:100px;
    background:#000;
    color:#fff;
    font-size:8px;
    cursor:pointer;
}


/* =========================
   BOTON CERRAR
========================= */

.cerrar{
    position: absolute;

    top: 15px;

    right: 15px;

    width: 28px;

    height: 28px;

    border: none;

    border-radius: 50%;

    background: rgba(255,255,255,0.85);

    color: #222;

    font-size: 21px;

    line-height: 25px;

    cursor: pointer;

    z-index: 2200;
}


.cerrar:hover{
    background: white;
}


/* =========================
   FLECHAS
========================= */

.flecha{
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: none;

    color: white;

    font-size: 75px;

    font-weight: 200;

    cursor: pointer;

    z-index: 2100;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.flecha:hover{
    opacity: 0.65;
}


.izquierda{
    left: calc(50% - 525px);
}


.derecha{
    right: calc(50% - 525px);
}


/* =========================
   IPAD / TABLET
   801px - 1000px
========================= */

@media (min-width: 801px) and (max-width: 1000px){

    header{
        height: 135px;
    }


    nav{
        top: 15px;

        left: 0;
        right: 0;

        height: 90px;

        justify-content: center;

        padding: 0;

        border: none;

        border-radius: 0;

        background: transparent;

        backdrop-filter: none;

        -webkit-backdrop-filter: none;

        transform: none !important;
    }

    nav > .logo{
        position:absolute;
        left:50%;
        transform:translateX(-50%);
    }


    nav::before{
        content: "";

        position: absolute;

        top: -15px;

        left: 0;
        right: 0;

        height: 130px;

        background: linear-gradient(
            to bottom,
            rgba(255,255,255,0.95) 0%,
            rgba(255,255,255,0.82) 35%,
            rgba(255,255,255,0.40) 65%,
            rgba(255,255,255,0) 100%
        );

        backdrop-filter: blur(13px);

        -webkit-backdrop-filter: blur(13px);

        mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 45%,
            transparent 100%
        );

        -webkit-mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 45%,
            transparent 100%
        );

        z-index: -1;
    }


    .logo img{
        width:135px;
    }


    .botones{
        position: fixed;

        left: 50%;

        bottom: 14px;

        transform: translateX(-50%);

        width: calc(100% - 60px);

        max-width: 600px;

        padding: 10px;

        gap: 10px;

        justify-content: center;

        background: rgba(255,255,255,0.38);

        backdrop-filter: blur(18px);

        -webkit-backdrop-filter: blur(18px);

        border: 1px solid rgba(255,255,255,0.28);

        border-bottom: 1px solid rgba(255,255,255,0.90);

        border-radius: 100px;

        z-index: 1500;

        transition:
            transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }


    .botones.compacto{
        transform:
            translateX(-50%)
            scale(0.78);
    }


    .botones a{
        flex: 1;

        text-align: center;

        padding: 13px 10px;

        color: #111111;

        font-size: 14px;

        background: rgba(255,255,255,0.62);

        border-radius: 100px;
    }


    .botones a.menu-avatar{
        width:44px;
        height:44px;
        flex:0 0 44px;
        margin-left:0;
        padding:0;
    }


    .titulo{
        padding-top: 30px;

        padding-bottom: 10px;
    }


    .titulo h1{
        font-size: 36px;
    }


    .galeria{
        max-width: 800px;

        grid-template-columns: repeat(2, 1fr);

        gap: 24px;

        padding: 0 30px 110px;
    }


    .foto{
        aspect-ratio: 3 / 4;

        border-radius: 24px;
    }


    .registro{
        margin-bottom: 120px;
    }


    /* VISOR TABLET */

    .modal{
        padding: 25px;
    }


    .visor{
        width: 90vw;

        max-width: 760px;

        height: 560px;

        max-height: 90vh;

        gap: 35px;

        padding: 25px 30px;

        border-radius: 45px;
    }


    .imagen-visor{
        width:auto;

        height:auto;

        max-width:min(48%, 320px);

        max-height:500px;

        border-radius: 32px;
    }

    .imagen-visor img{
        width:auto;
        height:auto;
        max-width:100%;
        max-height:500px;
        object-fit:contain;
        border-radius:inherit;
    }


    .datos{
        padding-top: 45px;
    }


    .datos > p{
        max-width: 250px;
    }


    .flecha{
        font-size: 65px;
    }


    .izquierda{
        left: 10px;
    }


    .derecha{
        right: 10px;
    }


    .cerrar{
        top: 13px;

        right: 13px;
    }

}


/* =========================
   IPHONE / MOBILE
   800px O MENOS
========================= */

@media (max-width: 800px){

    body::before{
        background: linear-gradient(
            to bottom,
            #ffffff 0%,
            #eaf8fc 24%,
            #a8dff1 70%,
            #5abce0 100%
        );
    }


    header{
        height: 115px;
    }


    /* LOGO ARRIBA */

    nav{
        top: 15px;

        left: 0;
        right: 0;

        height: 90px;

        justify-content: center;

        padding: 0;

        border: none;

        border-radius: 0;

        background: transparent;

        backdrop-filter: none;

        -webkit-backdrop-filter: none;

        transform: none !important;
    }

    nav > .logo{
        position:absolute;
        left:50%;
        transform:translateX(-50%);
    }


    nav::before{
        content: "";

        position: absolute;

        top: -15px;

        left: 0;
        right: 0;

        height: 130px;

        background: linear-gradient(
            to bottom,
            rgba(255,255,255,0.95) 0%,
            rgba(255,255,255,0.82) 35%,
            rgba(255,255,255,0.40) 65%,
            rgba(255,255,255,0) 100%
        );

        backdrop-filter: blur(13px);

        -webkit-backdrop-filter: blur(13px);

        mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 45%,
            transparent 100%
        );

        -webkit-mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 45%,
            transparent 100%
        );

        z-index: -1;
    }


    .logo img{
        width:135px;
    }


    /* BOTONES ABAJO */

    .botones{
        position: fixed;

        left: 50%;

        bottom: 14px;

        transform: translateX(-50%);

        width: calc(100% - 30px);

        max-width: 390px;

        padding: 9px;

        gap: 9px;

        justify-content: center;

        background: rgba(255,255,255,0.38);

        backdrop-filter: blur(18px);

        -webkit-backdrop-filter: blur(18px);

        border: 1px solid rgba(255,255,255,0.28);

        border-bottom: 1px solid rgba(255,255,255,0.90);

        border-radius: 100px;

        z-index: 1500;

        transition:
            transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }


    .botones.compacto{
        transform:
            translateX(-50%)
            scale(0.78);
    }


    .botones a{
        flex: 1;

        text-align: center;

        padding: 11px 5px;

        color: #111111;

        font-size: 12px;

        background: rgba(255,255,255,0.62);

        border-radius: 100px;
    }


    .botones a.menu-avatar{
        margin-left: 0;
    }


    .botones a.menu-avatar{
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        margin-left: 0;
    }


    /* TITULO */

    .titulo{
        padding-top: 15px;
    }


    .titulo h1{
        font-size: 28px;
    }


    .titulo h4{
        font-size: 10px;

        margin-top: 7px;
    }


    .titulo h6{
        font-size: 6px;
    }


    /* GALERIA */

    .galeria{
        display: flex;

        flex-direction: column;

        width: 100%;

        max-width: none;

        gap: 20px;

        padding: 0 30px 110px;

        margin-top: 28px;
    }


    .foto{
        width: 100%;

        aspect-ratio: 3 / 4;

        border-radius: 20px;
    }


    .foto img{
        border-radius: 20px;
    }


    /* REGISTRO */

    .registro{
        margin-bottom: 115px;

        width: calc(100% - 30px);

        max-width: 390px;

        gap: 12px;

        padding: 8px 10px 8px 14px;
    }


    .registro p{
        font-size: 12px;
    }


    .registro a{
        padding: 8px 18px;

        font-size: 11px;
    }


    .registro.registro-flotante{
        bottom:130px;
        width:max-content;
        max-width:calc(100% - 20px);
        margin:0;
        padding:7px 8px;
        flex-direction:row;
        gap:7px;
        text-align:center;
    }


    .registro-flotante p{
        font-size:9px;
    }


    .registro-flotante .registro-acciones{
        width:auto;
    }


    .registro-flotante .registro-acciones a{
        flex:0 0 auto;
    }


    /* MODAL MOBILE */

    .modal{
        padding: 15px;
    }


    .visor{
        width: calc(100vw - 30px);

        max-width: 390px;

        height: auto;

        max-height: 90vh;

        flex-direction: column;

        align-items: stretch;

        gap: 15px;

        padding: 15px;

        border-radius: 32px;

        overflow-y: auto;

        overflow-x: hidden;

        flex-shrink: 0;
    }


    .imagen-visor{
        width: 100%;

        height: auto;

        aspect-ratio: auto;

        max-width:100%;

        max-height:58dvh;

        border-radius: 22px;
    }


    .imagen-visor img{
        width: auto;

        height: auto;

        max-width: 100%;

        max-height:58dvh;

        object-fit: contain;

        margin:0 auto;

        border-radius:inherit;
    }


    .datos{
        padding: 3px 5px 12px;

        min-width: 0;
    }


    .perfil{
        margin-bottom: 15px;
    }


    .avatar{
        width: 40px;

        height: 40px;
    }


    .perfil h3{
        font-size: 10px;
    }


    .perfil h4{
        font-size: 9px;
    }


    .datos > p{
        font-size: 8px;

        line-height: 1.2;

        max-width: none;
    }


    /* X ARRIBA A LA DERECHA */

    .cerrar{
        top: 10px;

        right: 10px;

        width: 25px;

        height: 25px;

        font-size: 18px;

        background: rgba(255,255,255,0.85);
    }


    .flecha{
        font-size: 50px;
    }


    .izquierda{
        left: 1px;
    }


    .derecha{
        right: 1px;
    }

}


@media (max-width:800px){
    .botones{
        background:rgba(255,255,255,.20);
        border-color:rgba(255,255,255,.18);
    }

    .botones a{
        background:rgba(255,255,255,.40);
    }

    .botones a.activo{
        background:#000;
    }
}


/* Correcciones de usabilidad móvil. */
@media (max-width:800px){
    .botones{
        bottom:calc(14px + env(safe-area-inset-bottom));
        transition:transform .35s ease, opacity .25s ease;
        box-shadow:
            0 14px 34px rgba(7,16,20,.18),
            0 2px 9px rgba(7,16,20,.08);
    }

    .botones a{
        min-width:0;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .botones a:not(.menu-avatar){
        gap:0;
        font-size:0;
    }

    .botones a:not(.menu-avatar)::before{
        width:20px;
        height:20px;
        flex-basis:20px;
    }

    .botones.compacto{
        transform:translateX(-50%) scale(.78);
        opacity:1;
        pointer-events:auto;
    }

    .botones .inicio-perfil{
        display:none;
    }

    .galeria{
        padding-bottom:calc(110px + env(safe-area-inset-bottom));
    }

    .registro.registro-flotante{
        display:flex !important;
        width:min(360px, calc(100% - 30px));
        max-width:none;
        padding:9px;
        flex-direction:column;
        gap:7px;
        border-color:rgba(255,255,255,.72);
        border-radius:20px;
        box-shadow:
            0 10px 26px rgba(7,16,20,.14),
            0 2px 8px rgba(7,16,20,.06);
    }

    .registro-flotante .registro-acciones{
        width:100%;
        display:flex;
        gap:7px;
    }

    .registro-flotante .registro-acciones a{
        flex:1;
        padding:8px 10px;
        font-size:9px;
    }

    .registro-flotante p{
        font-size:10px;
        text-align:center;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .visor{
        max-height:90vh;
        max-height:90dvh;
    }

    .datos{
        max-height:none;
        overflow:visible;
    }

    .flecha{
        width:44px;
        height:44px;
        display:flex;
        align-items:center;
        justify-content:center;
        border-radius:50%;
        background:rgba(255,255,255,.72);
        font-size:36px;
    }

    input,
    textarea,
    select{
        font-size:16px !important;
    }

    .perfil-publico h1,
    .perfil-publico h4,
    .perfil-publico p{
        overflow-wrap:anywhere;
        word-break:break-word;
    }
}


@media (orientation:landscape) and (min-width:480px) and (max-width:1000px) and (max-height:1024px) and (hover:none) and (pointer:coarse){
    header{height:82px}
    nav{top:4px;left:0;right:0;height:68px;justify-content:center;padding:0;border:0;border-radius:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;transform:none !important}
    nav::before{content:"";position:absolute;top:-4px;left:0;right:0;height:86px;background:linear-gradient(to bottom,rgba(255,255,255,.95),rgba(255,255,255,.62) 55%,rgba(255,255,255,0));backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px);z-index:-1}
    nav > .logo{position:absolute;left:50%;transform:translateX(-50%)}
     .logo img{width:135px}
    .botones{position:fixed;left:50%;bottom:calc(8px + env(safe-area-inset-bottom));transform:translateX(-50%);width:calc(100% - 30px - env(safe-area-inset-left) - env(safe-area-inset-right));max-width:760px;padding:7px;gap:7px;justify-content:center;background:rgba(255,255,255,.20);border:1px solid rgba(255,255,255,.26);border-bottom-color:rgba(255,255,255,.90);border-radius:100px;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 14px 34px rgba(7,16,20,.18),0 2px 9px rgba(7,16,20,.08)}
    .botones.compacto{transform:translateX(-50%) scale(.88)}
    .botones a,.botones a:not(.menu-avatar){flex:1;min-width:0;gap:0;padding:10px 5px;overflow:hidden;font-size:0;text-overflow:ellipsis;background:rgba(255,255,255,.40);border-radius:100px}
    .botones a:not(.menu-avatar)::before{width:20px;height:20px;flex-basis:20px}
    .botones a.menu-avatar{width:38px;height:38px;flex:0 0 38px;margin-left:0;padding:0}
    .botones .inicio-perfil{display:flex}
    .registro.registro-flotante{display:none !important}
    .feed-secciones{
        width:min(48vw,340px);
        height:30px;
        position:sticky;
        top:68px;
        gap:3px;
        margin-top:8px;
        padding:2px;
    }
    .feed-secciones a,
    .feed-secciones.compacto a{
        min-width:0;
        flex:1;
        display:flex;
        align-items:center;
        justify-content:center;
        padding:5px 18px;
        font-size:9px;
        text-align:center;
    }
    .feed-secciones.compacto{gap:3px;padding:2px}
    .titulo{padding-top:8px}
    .galeria{width:100%;max-width:900px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:14px auto 0;padding:0 16px calc(82px + env(safe-area-inset-bottom))}
    .foto{width:100%;overflow:hidden;border-radius:24px}
    .foto img{border-radius:inherit}
    .publicacion{border-radius:30px}
    .publicacion .foto{border-radius:28px 28px 24px 24px}
    .modal{padding:8px calc(8px + env(safe-area-inset-right)) 8px calc(8px + env(safe-area-inset-left))}
    .visor{width:100%;max-width:none;height:calc(100dvh - 16px);max-height:none;flex-direction:row;align-items:center;gap:16px;padding:12px;border-radius:24px;overflow:hidden}
    .imagen-visor{width:auto;height:auto;max-width:min(58vw,calc(100% - 230px));max-height:calc(100dvh - 40px);aspect-ratio:auto;flex:0 1 auto;border-radius:18px}
    .imagen-visor img{width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 40px);object-fit:contain;border-radius:inherit}
    .datos{flex:1 1 0;min-width:0;max-height:100%;padding:24px 5px 8px;overflow-y:auto}
    .lista-comentarios{max-height:90px}
    .flecha{width:36px;height:36px;font-size:28px}
}

/* Visor conversacional para publicaciones de texto. */
.visor-identidad{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.visor-identidad strong{
    overflow:hidden;
    color:#111;
    font-size:12px;
    font-weight:700;
    line-height:1.1;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.visor-identidad-usuario{
    display:flex;
    align-items:center;
    gap:5px;
    color:rgba(0,0,0,.68);
    font-size:9px;
}

.visor-comentario-icono{
    width:14px;
    height:14px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
}

.visor.visor--actualizacion{
    width:min(620px, 90vw);
    height:auto;
    max-height:88dvh;
    display:block;
    box-sizing:border-box;
    padding:0;
    border-radius:38px;
}

.visor--actualizacion .cerrar{
    top:20px;
    right:20px;
    left:auto;
}

.visor--actualizacion .imagen-visor.es-actualizacion{
    display:none;
}

.visor--actualizacion .datos{
    width:auto;
    max-height:88dvh;
    display:flex;
    flex-direction:column;
    align-self:auto;
    max-width:100%;
    box-sizing:border-box;
    padding:24px 30px 26px;
    overflow-x:hidden;
    overflow-y:auto;
}

.visor--actualizacion .visor-cabecera-datos{
    order:1;
    min-height:42px;
    padding-right:44px;
}

.visor--actualizacion .perfil{
    min-width:0;
    margin:0;
}

.visor--actualizacion .avatar{
    width:42px;
    height:42px;
}

.visor--actualizacion .actualizacion-visor{
    order:2;
    width:auto;
    max-width:100%;
    min-height:130px;
    display:block;
    padding:28px 2px 22px;
    color:#111;
    font-size:clamp(19px, 2.2vw, 24px);
    line-height:1.45;
    white-space:normal;
}

.visor--actualizacion .actualizacion-visor[hidden]{
    display:none;
}

.visor--actualizacion .actualizacion-visor p{
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}

.actualizacion-visor-estado{
    width:max-content;
    max-width:100%;
    display:block;
    margin-top:18px;
    padding:7px 11px;
    border:1px solid rgba(89,190,232,.28);
    border-radius:100px;
    background:rgba(89,190,232,.10);
    color:rgba(0,0,0,.66);
    font-size:9px;
    font-weight:600;
    line-height:1.2;
}

.actualizacion-visor-estado[hidden]{
    display:none;
}

.visor--actualizacion .visor-fecha{
    order:3;
    margin:0 2px 18px;
    font-size:9px;
}

.visor--actualizacion .interacciones-foto{
    order:4;
    justify-content:space-around;
    gap:18px;
    margin:0;
    padding:10px 0;
    border-top:1px solid rgba(0,0,0,.07);
    border-bottom:1px solid rgba(0,0,0,.07);
}

.visor--actualizacion .interacciones-foto button{
    min-width:48px;
    justify-content:center;
    padding:7px 12px;
    border:0;
    background:transparent;
    font-size:10px;
}

.visor--actualizacion .interacciones-foto button:hover{
    background:rgba(89,190,232,.10);
}

.visor--actualizacion #textoGuardar{
    display:none;
}

.visor--actualizacion .comentarios-foto{
    order:5;
    margin-top:0;
    padding-top:22px;
    border-top:0;
}

.visor--actualizacion .comentarios-foto h5{
    margin-bottom:16px;
}

.visor--actualizacion .lista-comentarios{
    max-height:none;
}

.visor--actualizacion .comentario-item{
    gap:11px;
    margin-bottom:16px;
}

.visor--actualizacion .comentario-avatar{
    width:32px;
    height:32px;
    flex-basis:32px;
}

.visor--actualizacion .comentario-contenido strong{
    font-size:10px;
}

.visor--actualizacion .comentario-contenido p{
    margin-top:4px;
    font-size:11px;
    line-height:1.45;
}

.visor--actualizacion .comentario-contenido time{
    margin-top:5px;
    font-size:8px;
}

.visor--actualizacion .comentarios-vacios{
    padding:4px 0 16px;
    font-size:10px;
}

.visor--actualizacion #formComentario{
    gap:8px;
    margin-top:14px;
}

.visor--actualizacion #formComentario input,
.visor--actualizacion #formComentario button{
    font-size:10px;
}

@media (max-width:800px){
    .modal.modal--actualizacion{
        padding:10px;
    }

    .visor.visor--actualizacion{
        width:min(calc(100vw - 20px), 560px);
        max-width:none;
        max-height:calc(100dvh - 20px);
        border-radius:28px;
        overflow:hidden;
    }

    .visor--actualizacion .datos{
        max-height:calc(100dvh - 20px);
        padding:20px 18px 22px;
    }

    .visor--actualizacion .cerrar{
        top:17px;
        right:17px;
        left:auto;
    }

    .visor--actualizacion .visor-cabecera-datos{
        padding-right:40px;
    }

    .visor--actualizacion .actualizacion-visor{
        min-height:110px;
        padding:24px 1px 18px;
        font-size:clamp(18px, 5.3vw, 22px);
    }

    .modal--actualizacion .flecha{
        display:none;
    }
}

@media (orientation:portrait) and (min-width:801px) and (max-width:1000px){
    .botones a:not(.activo):not(.menu-avatar){
        border-color:transparent;
        background:transparent;
        box-shadow:none;
    }
}

/* Proporciones del visor en dispositivos táctiles. */
@media (max-width:1000px){
    .visor .perfil{
        margin-bottom:16px;
    }

    .visor .avatar{
        overflow:hidden;
        border:1.5px solid rgba(255,255,255,.88);
        box-shadow:0 4px 12px rgba(7,16,20,.10);
    }

    .visor .interacciones-foto{
        margin:0 0 14px;
    }

    .visor #formComentario{
        width:min(100%, 280px);
        align-items:center;
        justify-content:center;
        margin:9px auto 0;
    }

    .visor #formComentario input{
        padding:7px 10px;
        font-size:11px !important;
        text-align:center;
    }

    .visor #formComentario button{
        padding:7px 10px;
        font-size:8px;
    }
}

@media (orientation:landscape) and (min-width:480px) and (max-width:1000px) and (max-height:1024px) and (hover:none) and (pointer:coarse){
    .visor .perfil{
        margin-bottom:14px;
    }

    .visor .avatar{
        overflow:hidden;
        border:1.5px solid rgba(255,255,255,.88);
        box-shadow:0 4px 12px rgba(7,16,20,.10);
    }

    .visor .interacciones-foto{
        margin:0 0 12px;
    }

    .visor #formComentario{
        width:min(100%, 250px);
        align-items:center;
        justify-content:center;
        margin:8px auto 0;
    }

    .visor #formComentario input{
        padding:6px 9px;
        font-size:10px !important;
        text-align:center;
    }

    .visor #formComentario button{
        padding:6px 9px;
        font-size:8px;
    }
}

/* Formatos del visor según la orientación original. */
.imagen-visor.imagen-horizontal{
    aspect-ratio:4 / 3;
}

.imagen-visor.imagen-vertical{
    aspect-ratio:3 / 4;
}

.imagen-visor.imagen-cuadrada{
    aspect-ratio:1 / 1;
}

.imagen-visor.imagen-horizontal,
.imagen-visor.imagen-vertical,
.imagen-visor.imagen-cuadrada{
    overflow:hidden;
    border-radius:clamp(18px, 3vw, 36px);
}

.imagen-visor.imagen-horizontal img,
.imagen-visor.imagen-vertical img,
.imagen-visor.imagen-cuadrada img{
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:inherit;
}



/* =========================
   COLECCIONES PRIVADAS
========================= */

.guardados-contenido{
    width:min(1100px, calc(100% - 40px));
    margin:0 auto;
    padding:45px 0 100px;
}

.guardados-cabecera{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.guardados-cabecera > p:first-child,
.coleccion-titulo p{
    font-size:9px;
    font-weight:700;
    letter-spacing:.16em;
    opacity:.5;
}

.guardados-cabecera h1{
    margin-top:5px;
    font-size:42px;
    font-weight:400;
}

.coleccion-crear{
    width:min(420px, 100%);
    display:flex;
    gap:8px;
    margin-top:22px;
    padding:7px;
    border:1px solid rgba(255,255,255,.76);
    border-radius:100px;
    background:rgba(255,255,255,.56);
    box-shadow:0 10px 30px rgba(7,16,20,.08);
}

.coleccion-crear input{
    min-width:0;
    flex:1;
    padding:0 14px;
    border:0;
    outline:0;
    background:transparent;
    font-size:12px;
}

.coleccion-crear button,
.coleccion-titulo button{
    padding:10px 18px;
    border:0;
    border-radius:100px;
    background:#071014;
    color:#fff;
    font-size:10px;
    cursor:pointer;
}

.guardados-mensaje{
    margin-top:14px;
    font-size:11px;
    font-weight:600;
    color:#187c54;
}

.guardados-mensaje.error{
    color:#b53642;
}

.colecciones-lista{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
    margin:35px 0 42px;
}

.colecciones-lista a{
    display:inline-flex;
    align-items:center;
    gap:9px;
    padding:10px 15px;
    border:1px solid rgba(255,255,255,.72);
    border-radius:100px;
    background:rgba(255,255,255,.48);
    color:#111;
    font-size:11px;
    font-weight:600;
}

.colecciones-lista a span{
    min-width:21px;
    padding:3px 6px;
    border-radius:100px;
    background:rgba(7,16,20,.08);
    text-align:center;
    font-size:9px;
}

.colecciones-lista a.activo{
    background:#071014;
    color:#fff;
    box-shadow:0 10px 25px rgba(7,16,20,.22);
}

.colecciones-lista a.activo span{
    background:rgba(255,255,255,.16);
}

.coleccion-titulo{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px;
}

.coleccion-titulo h2{
    margin-top:3px;
    font-size:28px;
    font-weight:500;
}

.coleccion-titulo button{
    background:rgba(181,54,66,.12);
    color:#9b2632;
}

.guardados-galeria{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:24px;
}

.guardado-tarjeta{
    overflow:hidden;
    border:1px solid rgba(255,255,255,.76);
    border-radius:28px;
    background:rgba(255,255,255,.52);
    box-shadow:0 12px 35px rgba(7,16,20,.08);
    transform:translateZ(0);
    transition:
        transform .7s cubic-bezier(.16,1,.3,1),
        box-shadow .7s cubic-bezier(.16,1,.3,1);
}

@media (hover:hover) and (pointer:fine){
    .guardado-tarjeta:hover{
        transform:translateY(-3px);
        box-shadow:0 17px 42px rgba(7,16,20,.11);
    }
}

.guardado-imagen{
    display:block;
    aspect-ratio:3 / 4;
    overflow:hidden;
}

.guardado-imagen.imagen-vertical{aspect-ratio:3 / 4}
.guardado-imagen.imagen-horizontal{aspect-ratio:4 / 3}
.guardado-imagen.imagen-cuadrada{aspect-ratio:1 / 1}

.guardado-imagen img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:transform .75s cubic-bezier(.16,1,.3,1);
}

.guardado-imagen video{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.guardado-imagen:hover img{
    transform:scale(1.035);
}

.guardado-info{
    display:flex;
    align-items:center;
    gap:8px;
    padding:11px 12px;
}

.guardado-info > a{
    min-width:0;
    flex:1;
    overflow:hidden;
    color:#111;
    font-size:11px;
    font-weight:600;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.guardado-mover select{
    max-width:115px;
    padding:7px 9px;
    border:1px solid rgba(7,16,20,.08);
    border-radius:100px;
    background:rgba(255,255,255,.72);
    font-size:9px;
}

.guardado-quitar{
    width:30px;
    height:30px;
    border:0;
    border-radius:50%;
    background:rgba(7,16,20,.08);
    color:#111;
    font-size:18px;
    cursor:pointer;
}

.guardados-vacio{
    padding:70px 20px;
    border:1px solid rgba(255,255,255,.60);
    border-radius:28px;
    background:rgba(255,255,255,.30);
    text-align:center;
    font-size:12px;
    color:rgba(7,16,20,.58);
}

@media (max-width:1000px){
    .guardados-contenido{
        padding-top:20px;
        padding-bottom:120px;
    }

    .guardados-galeria{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:600px){
    .guardados-contenido{
        width:calc(100% - 28px);
    }

    .guardados-cabecera h1{
        font-size:34px;
    }

    .colecciones-lista{
        justify-content:flex-start;
        flex-wrap:nowrap;
        margin:28px -14px 34px;
        padding:0 14px 5px;
        overflow-x:auto;
    }

    .colecciones-lista a{
        flex:0 0 auto;
    }

    .guardados-galeria{
        grid-template-columns:1fr;
        gap:18px;
    }

    .coleccion-titulo{
        align-items:flex-start;
        flex-direction:column;
    }
}

@media (orientation:landscape) and (min-width:590px) and (max-width:1000px) and (max-height:1024px) and (hover:none) and (pointer:coarse){
    .galeria{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (orientation:landscape) and (min-width:801px) and (max-width:1000px) and (max-height:700px){
    .pagina-inicio .galeria-feed{
        max-width:900px;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:18px;
        padding-bottom:calc(110px + env(safe-area-inset-bottom));
    }

    .pagina-inicio .galeria-feed .foto{
        aspect-ratio:3 / 4;
    }
}


@media (orientation:landscape) and (min-width:480px) and (max-width:1000px) and (max-height:1024px) and (hover:none) and (pointer:coarse){
    header{height:82px}
    nav{top:4px;left:0;right:0;height:68px;justify-content:center;padding:0;border:0;border-radius:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;transform:none !important}
    nav::before{display:block}
    nav.compacto{transform:none !important}
     .logo img{width:135px}
    .botones{position:fixed;left:50%;bottom:calc(8px + env(safe-area-inset-bottom));transform:translateX(-50%);width:calc(100% - 30px - env(safe-area-inset-left) - env(safe-area-inset-right));max-width:760px;flex:initial;padding:4px;gap:7px;justify-content:center;background:rgba(255,255,255,.20);border:1px solid rgba(255,255,255,.26);border-bottom-color:rgba(255,255,255,.90);border-radius:100px;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 14px 34px rgba(7,16,20,.18),0 2px 9px rgba(7,16,20,.08)}
    .botones.compacto{transform:translateX(-50%) scale(.88)}
    .botones a,.botones a:not(.menu-avatar){flex:1;width:auto;height:auto;padding:6px 5px;background:rgba(255,255,255,.40)}
    .botones a.activo{background:#000}
    .botones a:not(.menu-avatar)::before{width:18px;height:18px;flex-basis:18px}
    .botones a.menu-avatar{width:32px;height:32px;flex:0 0 32px}
    .titulo{padding-top:8px}
    .titulo h1{font-size:28px}
    .titulo h4{font-size:10px}
    .galeria{width:calc(100% - 96px - env(safe-area-inset-left) - env(safe-area-inset-right));max-width:700px;padding-left:0;padding-right:0;padding-bottom:calc(82px + env(safe-area-inset-bottom));gap:20px}
    .perfil-publico{width:calc(100% - 96px - env(safe-area-inset-left) - env(safe-area-inset-right));max-width:700px;padding-top:8px}
    .perfil-avatar-principal{margin-bottom:8px}
    .perfil-avatar-principal .perfil-avatar-imagen{width:72px;height:72px;border-width:3px}
    .perfil-publico h1{font-size:24px}
    .perfil-publico h4{font-size:9px;margin-top:4px}
    .perfil-publico>p{max-width:420px !important;margin-top:8px !important;font-size:11px !important;line-height:1.35 !important}
}


@media (max-width:800px){
    nav::before{display:block}
    .logo img{filter:none;box-shadow:none}
}


@media (min-width:801px) and (max-width:1100px){
    nav{box-shadow:none}
    nav::before{display:block}
    .logo img{filter:none;box-shadow:none}
}

@media (orientation:landscape) and (min-width:801px) and (max-width:1100px) and (hover:none) and (pointer:coarse){
    .galeria:not(.galeria-feed){
        grid-template-columns:repeat(2,minmax(0,1fr));
        max-width:860px;
        gap:22px;
    }
}


/* El menú público adopta el mismo diseño móvil del panel. */
@media (max-width:800px){
    .botones{
        width:calc(100% - 24px);
        max-width:none;
        bottom:calc(12px + env(safe-area-inset-bottom));
        padding:8px;
        gap:7px;
        background:rgba(255,255,255,.22);
        border-color:rgba(255,255,255,.26);
    }

    .botones.compacto{
        transform:translateX(-50%) scale(.82);
    }

    .botones a,
    .botones a:not(.menu-avatar){
        min-width:0;
        flex:1;
        padding:12px 8px;
        border:1px solid transparent;
        background:transparent;
    }

    .botones a.activo,
    .botones a.activo:not(.menu-avatar){
        border:1px solid rgba(255,255,255,.32);
        background:#000;
        color:#fff;
    }

    .botones a.menu-avatar{
        width:auto;
        height:auto;
        flex:1;
        margin:0;
        padding:12px 8px;
        overflow:visible;
        border:0;
        background:transparent;
        color:#111;
        order:4;
    }

    .botones a.menu-avatar::before{
        content:"";
        width:20px;
        height:20px;
        flex:0 0 20px;
        background:currentColor;
        -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 21c1-5 4-7 8-7s7 2 8 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
        mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 21c1-5 4-7 8-7s7 2 8 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .botones a.menu-avatar img{
        display:none;
    }

    .botones a.menu-avatar.activo{
        border:1px solid rgba(255,255,255,.32);
        background:#000;
        color:#fff;
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.22),
            0 0 22px rgba(0,0,0,.38),
            0 10px 30px rgba(7,16,20,.30);
    }

    .botones a[href="logout.php"]{
        order:5;
    }
}


@media (orientation:landscape) and (min-width:480px) and (max-width:1000px) and (max-height:1024px) and (hover:none) and (pointer:coarse){
    .botones a,
    .botones a:not(.menu-avatar),
    .botones a.menu-avatar{
        padding:6px 5px;
        background:transparent;
    }

    .botones a.activo,
    .botones a.activo:not(.menu-avatar),
    .botones a.menu-avatar.activo{
        background:#000;
    }

    .botones a.menu-avatar{
        width:auto;
        height:auto;
        flex:1;
        border-radius:100px;
        order:4;
    }

    .botones a[href="logout.php"]{order:5}

    .botones a.menu-avatar img{
        display:none;
    }

    .botones a.menu-avatar::before{
        content:"";
        width:18px;
        height:18px;
        flex:0 0 18px;
        background:currentColor;
        -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 21c1-5 4-7 8-7s7 2 8 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
        mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 21c1-5 4-7 8-7s7 2 8 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }
}


@media (max-width:800px){
    .botones a.menu-avatar{
        width:38px;
        height:38px;
        flex:0 0 38px;
        padding:0;
        overflow:hidden;
        border:1px solid rgba(255,255,255,.95);
        background:#071014;
        order:5;
    }

    .botones a[href="logout.php"]{order:4}

    .botones a.menu-avatar::before{
        display:none;
    }

    .botones a.menu-avatar img{
        width:100%;
        height:100%;
        display:block;
        object-fit:cover;
    }

    .botones a.menu-avatar.activo{
        border:1px solid #000;
        background:#071014;
        box-shadow:
            0 0 0 2px #000,
            0 8px 24px rgba(7,16,20,.24);
    }
}


@media (orientation:landscape) and (min-width:480px) and (max-width:1000px) and (max-height:1024px) and (hover:none) and (pointer:coarse){
    .botones a.menu-avatar{
        width:32px;
        height:32px;
        flex:0 0 32px;
        padding:0;
        overflow:hidden;
        border:1px solid rgba(255,255,255,.95);
        background:#071014;
        order:5;
    }

    .botones a[href="logout.php"]{order:4}

    .botones a.menu-avatar::before{display:none}

    .botones a.menu-avatar img{
        width:100%;
        height:100%;
        display:block;
        object-fit:cover;
    }

    .botones a.menu-avatar.activo{
        border:1px solid #000;
        background:#071014;
        box-shadow:
            0 0 0 2px #000,
            0 8px 24px rgba(7,16,20,.24);
    }
}


@media (hover:none) and (pointer:coarse){
    .imagen-visor{
        touch-action:pan-y;
        user-select:none;
        -webkit-user-select:none;
    }

    .flecha{
        display:none;
    }
}

/* Fuente única de tamaño y recorte para el visor. */
.imagen-visor.imagen-horizontal,
.imagen-visor.imagen-vertical,
.imagen-visor.imagen-cuadrada{
    flex:none;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border-radius:clamp(18px, 3vw, 36px);
}

.imagen-visor.imagen-horizontal{
    width:min(48vw, 500px);
    height:auto;
    aspect-ratio:4 / 3;
}

.imagen-visor.imagen-vertical{
    width:auto;
    height:min(72vh, 530px);
    aspect-ratio:3 / 4;
}

.imagen-visor.imagen-cuadrada{
    width:auto;
    height:min(65vh, 500px);
    aspect-ratio:1 / 1;
}

.imagen-visor.imagen-horizontal > img,
.imagen-visor.imagen-vertical > img,
.imagen-visor.imagen-cuadrada > img,
.imagen-visor.imagen-horizontal > video,
.imagen-visor.imagen-vertical > video,
.imagen-visor.imagen-cuadrada > video{
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    display:block;
    object-fit:cover;
    border-radius:inherit;
}

.imagen-visor.imagen-horizontal > video,
.imagen-visor.imagen-vertical > video,
.imagen-visor.imagen-cuadrada > video{
    object-fit:contain;
}

.imagen-visor > img[hidden],
.imagen-visor > video[hidden]{
    display:none !important;
}

@media (orientation:portrait) and (max-width:800px){
    .pagina-inicio .galeria-feed .foto.imagen-horizontal,
    .pagina-perfil .galeria .foto.imagen-horizontal{
        aspect-ratio:4 / 3;
    }

    .pagina-inicio .galeria-feed .foto.imagen-vertical,
    .pagina-perfil .galeria .foto.imagen-vertical{
        aspect-ratio:3 / 4;
    }

    .pagina-inicio .galeria-feed .foto.imagen-cuadrada,
    .pagina-perfil .galeria .foto.imagen-cuadrada{
        aspect-ratio:1 / 1;
    }

    .pagina-inicio .galeria-feed .foto[class*="imagen-"] > img,
    .pagina-perfil .galeria .foto[class*="imagen-"] > img{
        width:100%;
        height:100%;
        object-fit:cover;
        border-radius:inherit;
    }
}

@media (orientation:portrait) and (max-width:800px){
    .imagen-visor.imagen-horizontal{
        width:100%;
        height:auto;
    }

    .imagen-visor.imagen-vertical{
        width:auto;
        height:min(55dvh, 520px);
        max-width:100%;
    }

    .imagen-visor.imagen-cuadrada{
        width:min(100%, 360px);
        height:auto;
    }
}

@media (orientation:landscape) and (max-height:1024px){
    .imagen-visor.imagen-horizontal{
        width:min(55vw, 560px);
        height:auto;
    }

    .imagen-visor.imagen-vertical{
        width:auto;
        height:calc(100dvh - 40px);
    }

    .imagen-visor.imagen-cuadrada{
        width:auto;
        height:calc(100dvh - 40px);
    }
}

.imagen-visor.video-proporcion-original{
    width:min(70vw,700px);
    height:auto;
    max-height:calc(100dvh - 40px);
}

@media (orientation:portrait) and (max-width:800px){
    .imagen-visor.video-proporcion-original{
        width:100%;
        height:auto !important;
        max-width:100%;
        max-height:65dvh;
    }
}

@media (orientation:landscape) and (max-width:1000px) and (max-height:1024px){
    .imagen-visor.video-proporcion-original{
        width:min(62vw, calc(100% - 220px));
        height:auto !important;
        max-width:none;
        max-height:calc(100dvh - 40px);
    }
}


@supports (-webkit-touch-callout:none){
    body{
        background:transparent;
    }

    body::before{
        display:block;
        bottom:auto;
        height:100vh;
        height:100lvh;
    }
}

/* Ajuste compacto para navegación táctil. */
@media (orientation:portrait) and (max-width:800px){
    .pagina-inicio .feed-secciones{
        transform:translateY(0) scale(1);
        transform-origin:center top;
        transition:top .3s ease, gap .3s ease, padding .3s ease, background .3s ease, box-shadow .3s ease, transform .35s cubic-bezier(.22,1,.36,1);
    }

    .pagina-inicio .feed-secciones.compacto{
        transform:translateY(-13px) scale(.92);
    }

    .pagina-inicio .feed-secciones.restaurando{
        transform:translateY(0) scale(.92);
    }
}

@media (orientation:landscape) and (min-width:480px) and (max-width:1000px) and (max-height:1024px) and (hover:none) and (pointer:coarse){
    .logo img{
        width:110px;
    }

    .pagina-inicio .feed-secciones{
        width:min(42vw,300px);
        height:26px;
        margin-top:2px;
        padding:1px;
        transform:translateY(0);
    }

    .pagina-inicio .feed-secciones.compacto{
        transform:translateY(-6px);
    }

    .pagina-inicio .feed-secciones a,
    .pagina-inicio .feed-secciones.compacto a{
        padding:4px 14px;
        font-size:8px;
    }

    .botones{
        padding:3px;
        gap:5px;
    }

    .botones a,
    .botones a:not(.menu-avatar){
        padding:5px 4px;
    }

    .botones a:not(.menu-avatar)::before{
        width:17px;
        height:17px;
        flex-basis:17px;
    }
}

@media (max-width:1000px){
    .visor--actualizacion .perfil{
        margin-bottom:0;
    }

    .visor--actualizacion .interacciones-foto{
        margin:0;
    }

    .visor--actualizacion #formComentario{
        width:auto;
        max-width:100%;
        justify-content:stretch;
        margin:14px 0 0;
    }

    .visor--actualizacion #formComentario input{
        text-align:left;
    }
}
