:root{
    /* Paleta sacada de tu logo */
    --bg0: #02091F;      /* fondo muy oscuro */
    --bg1: #061A32;      /* azul oscuro */
    --surface: #0F314C;  /* tarjeta / superficie */
    --surface2:#1B4C6B;  /* hover / borde */
    --text: #E4EDF1;     /* blanco frío */
    --muted:#749FB6;     /* texto secundario */
    --line: rgba(255,255,255,.14);
    --accent:#E58431;    /* naranja principal */
    --accent2:#F0A33D;   /* naranja claro */

    --radius: 16px;
    --shadow: 0 12px 34px rgba(0,0,0,.35);
    --shadow2: 0 10px 22px rgba(0,0,0,.25);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
    margin:0;
    font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background:
            radial-gradient(900px 500px at 20% -10%, rgba(229,132,49,.22), transparent 55%),
            radial-gradient(900px 600px at 85% 0%, rgba(116,159,182,.18), transparent 55%),
            linear-gradient(180deg, var(--bg1), var(--bg0));
}

a{ color: var(--text); text-decoration:none; }
a:hover{ color: var(--accent2); }

.wrap{
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px;
}

hr{
    border:0;
    border-top: 1px solid var(--line);
    margin: 28px 0;
}

/* Topbar */
.topbar{
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(2,9,31,.55);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar__row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 14px;
}

.brand{
    display:flex;
    align-items:center;
    gap: 12px;
    min-width: 240px;
}
.brand img{
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: var(--shadow2);
    object-fit: cover;
}
.brand__text{
    display:flex;
    flex-direction:column;
    line-height:1.1;
}
.brand__name{
    font-weight: 750;
    letter-spacing: .2px;
}
.brand__tag{
    color: var(--muted);
    font-size: 13px;
}

.nav{
    display:flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nav a{
    color: var(--muted);
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
}
.nav a:hover{
    color: var(--text);
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
}

/* Hero */
.hero{
    padding: 22px 0 10px;
}
.hero h1{
    margin: 0 0 8px;
    font-size: 30px;
    letter-spacing: .2px;
}
.hero p{
    margin:0;
    color: var(--muted);
    max-width: 70ch;
}

.pills{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.pill{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: var(--text);
}
.pill small{ color: var(--muted); }

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, var(--accent2), var(--accent));
    color: #02091F;
    font-weight: 650;
    box-shadow: var(--shadow2);
}
.btn:hover{ filter: brightness(1.04); }
.btn--ghost{
    background: rgba(255,255,255,.04);
    color: var(--text);
}
.btn--ghost:hover{ background: rgba(255,255,255,.07); }

/* Controls */
.controls{
    display:flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}
input[type="search"], select{
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--text);
    padding: 11px 12px;
    border-radius: 12px;
    outline: none;
}
input[type="search"]{
    flex: 1;
    min-width: 260px;
}
input[type="search"]::placeholder{ color: rgba(228,237,241,.55); }
select{ min-width: 200px; }

.metaRow{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap: 10px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

/* Grid cards */
.grid{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.card{
    background: linear-gradient(180deg, rgba(15,49,76,.72), rgba(6,26,50,.62));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow2);
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.card:hover{
    transform: translateY(-2px);
    border-color: rgba(240,163,61,.28);
}

.card img{
    width:100%;
    height: 165px;
    object-fit: cover;
    display:block;
    background: #000;
}

.card .p{
    padding: 12px;
}
.card h3{
    margin: 0 0 8px;
    font-size: 16px;
    letter-spacing: .2px;
}

.tags{
    display:flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tag{
    font-size: 12px;
    color: var(--muted);
    border: 1px solid rgba(255,255,255,.12);
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.03);
}

/* Sections */
.sectionTitle{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap: 12px;
}
.sectionTitle h2{
    margin: 0;
    font-size: 18px;
}
.sectionTitle p{
    margin:0;
    color: var(--muted);
    font-size: 14px;
}

.panel{
    margin-top: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow2);
}

/* Modal */
.modal{
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}
.modal[hidden]{ display:none; }

.modal__backdrop{
    position:absolute;
    inset:0;
    background: rgba(0,0,0,.62);
}

.modal__panel{
    position: relative;
    width: min(980px, 96vw);
    max-height: 88vh;
    overflow: auto;
    background: linear-gradient(180deg, rgba(15,49,76,.92), rgba(2,9,31,.92));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.modal__close{
    position:absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    color: var(--text);
    font-size: 18px;
    cursor:pointer;
}
.modal__close:hover{ background: rgba(255,255,255,.10); }

.media{
    margin-top: 10px;
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}
.media img, .media video{
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: #000;
}

.links{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.links a{
    display:inline-flex;
    align-items:center;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
}
.links a:hover{
    border-color: rgba(240,163,61,.28);
    background: rgba(255,255,255,.06);
}

.note{
    margin-top: 10px;
    color: var(--muted);
}

/* Footer */
footer{
    color: rgba(228,237,241,.55);
    padding: 26px 0 40px;
    text-align:center;
    font-size: 14px;
}

/* Responsive tweaks */
@media (max-width: 720px){
    .brand{ min-width: auto; }
    .hero h1{ font-size: 26px; }
    .nav{ justify-content:flex-start; }
}
