:root{
    --bg: #0f1115;
    --card: #0b0b0c;
    --muted: #9aa0a6;
    --accent-red: #e63946;
    --accent-yellow: #ffb703;
    --accent-green: #2cc070;
    --glass: rgba(255,255,255,0.04);
    --glass-2: rgba(255,255,255,0.02);
    --max-w: 1200px;
    --overlay: rgba(0,0,0,0.55);
    --panel-bg: #fff;
    --radius: 12px;
    --accent: #ff5959;
}
/* Reset */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg,#071024 0%, #0f1622 100%);
    color: #e6eef6;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    line-height:1.4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

/* Header */
header{
    position:fixed;left:0;right:0;top:0;
    backdrop-filter: blur(6px);
    background: linear-gradient(180deg, rgba(7,10,20,0.6), rgba(7,10,20,0.3));
    border-bottom: 1px solid rgba(255,255,255,0.03);
    z-index:200;
}
.nav{
    max-width:var(--max-w);
    margin:0 auto;
    display:flex;
    align-items:center;
    gap:1rem;
    padding:0.9rem 1rem;
    justify-content:space-between;
}
.hamburger {
    width: 50px;
    display: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    border: 1px solid var(--glass);
    border-radius: 10px;
}
.hamburger:hover{
    background: var(--glass);
}
.brand{
    display:flex;align-items:center;gap:0.8rem;cursor:pointer;
}
.logo-circle{
    width: 56px;
    height: 56px;
    /*
    width:44px;
    height:44px;
    border-radius:10px;*/
    /*background:linear-gradient(135deg,var(--accent-red),var(--accent-yellow));*/
    background: url("/assets/admin/img/logo-transparent.png");
    background-size: cover;
    background-repeat: no-repeat;
    /*
    display:flex;align-items:center;justify-content:center;font-weight:800;color:#06121a;
    box-shadow: 0 6px 20px rgba(230,60,70,0.12), 0 2px 6px rgba(0,0,0,0.6);
    */
}
.brand h1{font-size:1.05rem;letter-spacing:0.2px}
nav ul{display:flex;gap:1rem;align-items:center; list-style: none;}
nav a{
    padding:0.45rem 0.65rem;border-radius:8px;font-weight:600;color:var(--muted);
    transition:all .18s ease;
    border: 1px solid var(--glass);
}
nav a.active{color:white;background:var(--glass)}
nav a:hover{color:white;background:var(--glass)}
.cta{
    background: linear-gradient(90deg,var(--accent-green), #47d98d);
    color:#07121a;padding:0.5rem 0.9rem;border-radius:10px;font-weight:700;
    box-shadow: 0 8px 24px rgba(46,205,120,0.12);
    transition:transform .15s;
}
.cta:hover{transform:translateY(-3px)}

.nav-mobile {
    display: none;
    position: absolute;
    top: 70px;
    right: 10px;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.nav-mobile ul {
    list-style: none;
    padding: 0;
    display: block;
}
.nav-mobile li {
    padding: 8px 9px 8px 9px;
}
.nav-mobile li:hover{
    background: #0b0b0c8f;
    border-radius: 4px;
}

.nav-mobile a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border: none;
}
.nav-mobile.active {
    display: block;
}

.user-area{
    display:flex;gap:0.6rem;align-items:center
}

/* Main layout */
main{margin-top:78px; flex: 1;}

.btn{
    padding:0.7rem 1.05rem;border-radius:12px;font-weight:700;border:0;cursor:pointer;
    backdrop-filter: blur(4px);
}
.btn-primary{background:linear-gradient(90deg,var(--accent-red), var(--accent-yellow)); color:#08101b}
.btn-ghost{background:transparent;border:1px solid rgba(255,255,255,0.08);color:#fff}

/* How it works */
.how{
    max-width:var(--max-w);
    margin:2.5rem auto;padding:1rem;
    display:flex;flex-direction:column;gap:1rem;
}
.how h3{font-size:1.6rem;color:#fff}
.steps{
    display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1rem;
}
.step{
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    border-radius:14px;padding:1.2rem;border:1px solid rgba(255,255,255,0.03);
    display:flex;gap:0.9rem;align-items:flex-start;overflow:hidden;
    transform: translateY(0);transition:transform .45s cubic-bezier(.2,.9,.24,1), box-shadow .25s;
}
.step:hover{transform:translateY(-8px);box-shadow: 0 10px 40px rgba(2,8,23,0.6)}
.icon-wrap{
    min-width:64px;height:64px;border-radius:12px;display:flex;align-items:center;justify-content:center;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border:1px solid rgba(255,255,255,0.03);
    animation: float 3s ease-in-out infinite;
}
@keyframes float{0%{transform:translateY(0)}50%{transform:translateY(-8px)}100%{transform:translateY(0)}}
.step h4{font-size:1.02rem;margin-bottom:0.35rem}
.muted{color:var(--muted);font-size:0.95rem}

/* Categories */
.categories{
    max-width:var(--max-w);margin:1.8rem auto;padding:1rem;
}
.categories h3{font-size:1.4rem;margin-bottom:0.7rem}
.cats{margin-top: 10px;display:flex;flex-wrap:wrap;gap:0.6rem}
.cat{
    padding:0.6rem 0.9rem;border-radius:999px;font-weight:700;color:#06121a;
    background:linear-gradient(90deg,var(--accent-yellow),var(--accent-green));
    cursor:pointer;box-shadow: 0 10px 28px rgba(255,183,3,0.06);
    transition: transform .15s;
}
.cat.inactive{
    background:transparent;color:var(--muted);border:1px solid rgba(255,255,255,0.04);
    box-shadow:none;font-weight:600;
}
.cat:hover{transform:translateY(-4px)}

/* Raffles grid */
.raffles{
    max-width:var(--max-w);margin:2rem auto;padding:1rem;
}
.raffles h3{font-size:1.4rem;margin-bottom:1rem}
.grid{
    margin-top: 20px;
    display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;
}
.card{
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,0.03);
    transition: transform .25s, box-shadow .25s;
}
.card:hover{transform:translateY(-8px);box-shadow: 0 18px 60px rgba(2,8,23,0.6)}
.card .thumb{height:160px;overflow:hidden;background:#000}
.card .thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s}
.card:hover .thumb img{transform:scale(1.06)}
.card .meta{padding:0.9rem;display:flex;flex-direction:column;gap:0.45rem}
.label{
    display:inline-block;padding:0.28rem 0.5rem;border-radius:8px;font-weight:700;font-size:0.78rem;color:#07121a;
    background:linear-gradient(90deg,var(--accent-green),#7ef3b4);
    width:max-content;
}
.card h4{margin-top:0.25rem;font-size:1rem}
.card p{color:var(--muted);font-size:0.92rem;margin-top:0.2rem}

/* tag badges with colors depending category */
.tag{
    display:inline-block;padding:0.25rem 0.5rem;border-radius:999px;font-weight:700;font-size:0.78rem;color:#07121a;
    margin-right:0.45rem;
}

/* --- DROPDOWN --- */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: transparent;
    padding: 5px;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 20px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle .arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    right: 0;
    top: 120%;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    min-width: 180px;
    overflow: hidden;
    z-index: 100;
    background: white;
}

.dropdown-menu a,
.dropdown-menu button {
    padding: 10px 15px;
    text-align: left;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: rgba(242, 242, 242, 0.55);
}

/* Mostrar menú cuando está activo */
.dropdown.active .dropdown-menu {
    display: flex;
}

.dropdown.active .arrow {
    transform: rotate(180deg);
}

.cta-container { margin: 40px 0; text-align: center; }

.transparency-section, .mission-section {
    padding: 60px 20px;
    text-align: center;
    background: #425c7730;
}
.btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp svg{
    width: 34px;
}

/* Footer */
footer{
    border-top: 1px solid #eee; text-align: center;
    margin-top:2.5rem;padding:2rem 1rem;background:linear-gradient(180deg,#05060a,#0b1016);
    border-top:1px solid rgba(255,255,255,0.02);
}
.footer-wrap{max-width:var(--max-w);margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:1rem}
.footer-links a{margin-left:1rem;color:var(--muted);font-weight:600}
.foot-brand{display:flex;align-items:center;gap:0.6rem}
.small{color:var(--muted);font-size:0.95rem}


/* M O D A L */

/* Modal base - hidden by default (aria-hidden) */
.modal{
    position: fixed;
    inset: 0;
    display: none;            /* visually hidden when closed */
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

/* when open -> set via JS to display:flex and aria-hidden=false */
.modal[aria-hidden="false"]{
    display: flex;
}

/* overlay */
.modal__overlay{
    position: absolute;
    inset: 0;
    background: var(--overlay);
    opacity: 0;
    transition: opacity .22s ease;
}

/* panel */
.modal__panel{
    position: relative;
    width: 60%;
    max-width: var(--max-w);
    background: var(--panel-bg);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    transform: translateY(12px) scale(.98);
    opacity: 0;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 2;
    overflow: hidden;
}

/* header/body/footer */
.modal__header, .modal__footer{
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    background: none;
    color: black;
}
.modal__body{
    padding: 16px;
    color:#333;
    line-height:1.4;
    max-height: 60vh;
    overflow: auto;
}
.modal__footer{
    border-top: 1px solid #eee;
    border-bottom: none;
}

/* close button */
.modal__close{
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* show state transitions */
.modal[aria-hidden="false"] .modal__overlay{
    opacity: 1;
}
.modal[aria-hidden="false"] .modal__panel{
    transform: translateY(0) scale(1);
    opacity: 1;
}


/* Responsive */
@media (max-width: 1000px){
    .grid{grid-template-columns:repeat(2,1fr)}
    .slide-overlay{padding:2rem}
}
@media (max-width: 700px){
    nav ul{display:none}
    .grid{grid-template-columns:1fr}
    .slide-overlay{align-items:center;text-align:center;padding:1.6rem}
    .how{padding:1rem}
    .categories{padding:1rem}

    .nav-desktop {
        display: none; /* ocultar menú normal */
    }

    .hamburger {
        display: block;
    }
    .user-area {
        display: none; /* opcional: ocultar usuario en móvil */
    }
}

@media (max-width:520px){
    .modal__panel{ width: 96%; border-radius: 10px; }
    .modal__body{ max-height: 55vh; }
}
