/* 🌞 MODO LIGHT (default) */
:root {
    --bg: #faf7f2;
    --text: #000;
    --card: #ffffff;
    --muted: #666;
    --primary: #0a66c2;
    --border: #e0e0e0;
}

html {
    background: #111315;
    scroll-behavior: smooth;
}

/* 🌙 MODO DARK */
html.dark {
    --bg: #111315;
    --text: #f7f8fa;
    --card: #1b1d21;
    --muted: #fff;
    --primary: #2d88ff;
    --border: #3a3b3c;
}

/* RESET */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    transition: background .3s ease, color .3s ease;
}

/* ================= LOGO ================= */

.floating-logo{
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}

.floating-logo img{
    width: clamp(140px, 18vw, 260px);
    height: auto;
    display: block;
    object-fit: contain;
}

/* ================= HERO ================= */

.hero{
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero-bg{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 50vh;
    object-fit: cover;
}

.hero-overlay{
    position: absolute;
    inset: 0;
    background:
    linear-gradient(
        to bottom,
        rgba(0,0,0,.30),
        rgba(0,0,0,.72)
    );
}

.hero-content{
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 950px;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-content h1{
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: .95;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 0 4px 18px rgba(0,0,0,.45);
    animation: fadeHero 1s ease;
}

.hero-content p{
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.8;
    max-width: 760px;
    margin: auto auto 35px;
    color: rgba(255,255,255,.92);
    font-weight: 300;
    animation: fadeHero 1.4s ease;
}

@keyframes fadeHero{
    from{
        opacity: 0;
        transform: translateY(25px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= LAYOUT ================= */

.container{
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.layout{
    display:flex;
    align-items:flex-start;
    gap:30px;
}

/* ================= MAIN ================= */

.main-wrapper{
    flex:1;
    min-width:0;
}

.main{
    width:100%;
    max-width:700px;
}

.upload-box,
.post{
    background: var(--card);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 10px 30px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.04);
    transition: .25s ease;
}

.post:hover{
    transform: translateY(-3px);
    box-shadow:
        0 15px 40px rgba(0,0,0,.45);
}

.post-description{
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 18px;
    letter-spacing: -.2px;
}

.post img{
    width:100%;
    border-radius:18px;
    display:block;
}

/* ================= SIDEBAR ================= */

.sidebar{
    width:280px;
    flex-shrink:0;

    position: sticky;
    top: 20px;

    height: fit-content;
    align-self: flex-start;
}

.card{
    background: var(--card);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card h3{
    margin-bottom: 10px;
    font-size: 16px;
}

.card p{
    font-size: 14px;
    color: var(--muted);
}

/* ================= BOTONES ================= */

button{
    background: var(--primary);
    color: #000;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover{
    background: #004182;
}

button,
.btn-primary,
.sidebar-btn{
    background: #7CC8C9;
}

.sidebar-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    margin-top:18px;
    padding:14px 18px;
    border-radius:14px;
    background:
    linear-gradient(
        135deg,
        #f97316,
        #fb923c
    );
    color:#000;
    font-weight:600;
    text-decoration:none;
    transition:.25s ease;
    box-shadow:
    0 10px 25px rgba(249,115,22,.25);
}

.sidebar-btn:hover{
    transform:translateY(-2px);
    box-shadow:
    0 14px 32px rgba(249,115,22,.35);
}

/* ================= DARK BUTTON ================= */

.dark-btn{
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.9);
    color: #111;
    border: none;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: .95rem;
    backdrop-filter: blur(10px);
}

/* ================= LINKS ================= */

a{
    text-decoration:none;
    color:var(--text);
}

/* ================= TOPICS ================= */

.topics{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin:25px 0 35px;
}

.topic-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 14px;
    min-height:36px;
    border-radius:8px;
    background:transparent;
    color:var(--text);
    text-decoration:none;
    font-weight:500;
    font-size:14px;
    border:1px solid var(--border);
    transition:.2s ease;
    white-space:nowrap;
}

.topic-btn:hover{
    background:var(--card);
}

.active-topic{
    background:#7ad7e0;
    color:#000;
    border-color:#7ad7e0;
}

/* ================= POST ACTIONS ================= */

.post-actions{
    /*display:flex;
    gap:14px;
    align-items:center;
    margin-top:14px;*/
    
    display:flex;
    gap:10px;
    align-items:stretch;
    margin-top:14px;
    flex-wrap:wrap;
}

.action-btn{
    /*
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 14px;
    border-radius:999px;
    font-size:14px;
    background:transparent;
    border:1px solid var(--border);
    color:var(--text);
    text-decoration:none;
    cursor:pointer;
    transition:all .2s ease;*/
    
    flex:1 1 0;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:10px 12px;
    border-radius:16px;
    font-size:14px;
    background:transparent;
    border:1px solid var(--border);
    color:var(--text);
    text-decoration:none;
    cursor:pointer;
    transition:all .2s ease;
    text-align:center;
}

.action-btn:hover{
    background:rgba(0,0,0,0.05);
}

.like-btn.liked{
    color:#ff4d6d;
    transform:scale(1.05);
}

/* ================= COMMENTS ================= */

.comment{
    background: var(--border);
    padding: 6px;
    border-radius: 5px;
    margin-top: 5px;
}

.hidden-comment{
    display:none;
}

/* ================= FORM ================= */

input{
    padding:8px;
    margin:5px 0;
    width:100%;
}

.anon-form input,
.anon-form textarea{
    width:100%;
    padding:10px;
    margin:8px 0;
    border-radius:8px;
    border:1px solid var(--border);
    background:var(--bg);
    color:var(--text);
    font-size:14px;
}

.anon-form textarea{
    min-height:90px;
    resize:none;
}

.anon-form button{
    width:100%;
    border-radius:999px;
    margin-top:10px;
}

/* ================= TOAST ================= */

.toast{
    position:fixed;
    bottom:30px;
    left:50%;
    transform:translateX(-50%);
    background:#111;
    color:#fff;
    padding:14px 22px;
    border-radius:14px;
    font-size:14px;
    opacity:0;
    transition:.3s;
    z-index:9999;
}

.toast.show{
    opacity:1;
    bottom:50px;
}

/* ================= FOOTER ================= */

.footer-copy{
    text-align:center;
    padding:20px 0;
    font-size:14px;
    color:#777;
}

.footer-copy p{
    margin:0;
}

/* ================= BACK TO HERO ================= */

.back-to-hero{
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background: #FFB86A;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-hero.show{
    opacity:1;
    visibility:visible;
}

/* ================= COOKIE ================= */

.cookie-banner{
    position:fixed;
    bottom:20px;
    left:20px;
    right:20px;
    z-index:99999;
    display:none;
}

.cookie-content{
    max-width:900px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:18px 22px;
    border-radius:18px;
    background:rgba(20,20,20,.92);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 40px rgba(0,0,0,.35);
}

.cookie-content p{
    color:#fff;
    font-size:14px;
    line-height:1.6;
    margin:0;
}

/* ================= SOCIALS ================= */

.socials{
    display:flex;
    align-items:center;
    gap:14px;
    margin-top:28px;
    flex-wrap:wrap;
}

.social{
    width:33px;
    height:33px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#fff;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
    transition:.3s ease;
}

.social svg{
    width:17px;
    height:17px;
}

.social:hover{
    transform:translateY(-4px) scale(1.05);
}

.social.instagram:hover{
    background:linear-gradient(135deg,#fd5949,#d6249f,#285AEB);
}

.social.facebook:hover{
    background:#1877F2;
}

.social.youtube:hover{
    color:#ff0000;
}

.social.pinterest:hover{
    background:#e60023;
}

/* ================= SOS ================= */

.sos-floating-btn{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:9999;
    padding:14px 20px;
    border-radius:18px;
    background:rgba(239,68,68,0.92);
    color:white;
    text-decoration:none;
    font-weight:700;
    backdrop-filter:blur(10px);
}

/* ================= MOBILE ================= */

@media (max-width:768px){

    .hero{
        min-height:85vh;
    }

    .hero-content h1{
        letter-spacing:-1px;
    }

    .hero-content p{
        line-height:1.6;
    }

    .dark-btn{
        width:44px;
        height:44px;
        padding:0;
        justify-content:center;
        border-radius:50%;
    }

    .dark-btn .text{
        display:none;
    }

    .floating-logo{
        top:15px;
        left:15px;
    }

    .floating-logo img{
        width:clamp(120px,38vw,180px);
    }

    .layout{
        flex-direction:column;
    }

    .sidebar{
        order:1;
        width:100%;
        position:static;
    }

    .main-wrapper{
        order:2;
        width:100%;
    }

    .main{
        max-width:100%;
    }

    .post-description{
        font-size:.95rem;
        line-height:1.5;
    }

    .topics{
        gap:8px;
    }

    .topic-btn{
        font-size:13px;
        padding:7px 12px;
        min-height:34px;
    }

    .cookie-content{
        flex-direction:column;
        align-items:flex-start;
    }
}

/* MOBILE SOCIALS */

@media (max-width:500px){

    .socials{
        justify-content:center;
    }

    .social{
        width:50px;
        height:50px;
        border-radius:16px;
    }

    .social svg{
        width:22px;
        height:22px;
    }
    
    .post-actions{
        display:grid;
        grid-template-columns:repeat(3,1fr);
    }

    .action-btn{
        font-size:13px;
        padding:10px 8px;
        border-radius:14px;
    }
    
    
    
    
}