body{
    font-family:'Segoe UI', Arial, sans-serif;
    background:#f1f5f9;
    color:#1e293b;
    padding:20px;
    margin:0;
}

/* HEADER */
.header-box{
    background:white;
    padding:25px;
    border-radius:16px;
    margin-bottom:30px;
    box-shadow:0 10px 25px rgba(0,0,0,0.05);
}

.header-flex{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.header-left{
    text-align:left;
    flex:1;
    min-width:0;
}

.header-left h1{
    margin:0;
    font-size:32px;
    color:#1e293b;
}

.header-left p{
    color:#64748b;
    font-size:14px;
    margin-top:8px;
    margin-bottom:0;
}

.header-right{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:16px;
    font-size:14px;
    color:#475569;
    white-space:nowrap;
    text-align:right;
    flex-wrap:wrap;
}

.header-right strong{
    color:#1e3a8a;
}

.ip-label{
    display:inline-flex;
    align-items:center;
    gap:4px;
}

/* CONTROL DARK MODE */
.theme-control{
    display:flex;
    align-items:center;
    gap:10px;
}

.theme-label{
    font-size:13px;
    font-weight:700;
    color:#64748b;
    letter-spacing:.2px;
}

.theme-toggle{
    position:relative;
    display:inline-flex;
    align-items:center;
    cursor:pointer;
}

.theme-toggle input{
    display:none;
}

.theme-slider{
    width:68px;
    height:34px;
    background:#cbd5e1;
    border-radius:999px;
    position:relative;
    transition:all .35s ease;
    box-shadow:inset 0 0 0 1px rgba(0,0,0,0.08);
}

.theme-slider::before{
    content:"OFF";
    position:absolute;
    top:50%;
    right:8px;
    transform:translateY(-50%);
    width:26px;
    text-align:center;
    font-size:11px;
    font-weight:700;
    color:#000000;
    transition:all .35s ease;
    letter-spacing:.4px;
}

.theme-knob{
    position:absolute;
    top:4px;
    left:4px;
    width:26px;
    height:26px;
    background:#ffffff;
    border-radius:50%;
    box-shadow:0 3px 10px rgba(0,0,0,0.2);
    transition:all .35s ease;
}

.theme-toggle input:checked + .theme-slider{
    background:#2563eb;
}

.theme-toggle input:checked + .theme-slider::before{
    content:"ON";
    right:34px;
    width:26px;
    color:#000000;
}

.theme-toggle input:checked + .theme-slider .theme-knob{
    transform:translateX(34px);
}

/* TITULOS */
h2{
    margin-top:30px;
    border-left:5px solid #2563eb;
    padding-left:10px;
    color:#2563eb;
    font-size:22px;
}

/* CARD PUBLICA PREMIUM */
.card-premium{
    display:flex;
    gap:24px;
    padding:24px;
    border-radius:18px;
    margin:20px 0;
    align-items:center;
    position:relative;
    overflow:hidden;
    background:transparent;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    border:1px solid #dbeafe;
    box-shadow:none;
    color:#1e293b;
    transition:0.3s;
}

.card-premium:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,0.06);
}

.card-img{
    flex:0 0 420px;
}

.card-img img{
    width:420px;
    height:240px;
    object-fit:cover;
    border-radius:14px;
    transition:0.4s;
    display:block;
}

.card-premium:hover .card-img img{
    transform:scale(1.03);
}

.card-content{
    flex:1;
    min-width:0;
}

.card-content h3{
    font-size:22px;
    font-weight:700;
    margin:0 0 10px;
    color:#1e3a8a;
    line-height:1.3;
}

.card-content .desc{
    font-size:14px;
    color:#334155;
    line-height:1.7;
    margin:0 0 12px 0;
    white-space:normal;
    word-break:break-word;
    overflow-wrap:break-word;
    max-width:100%;
}

.card-premium::before{
    display:none;
}

.meta{
    list-style:none;
    padding:0;
    margin:14px 0 0;
}

.meta li{
    font-size:13px;
    margin-bottom:6px;
    color:#475569;
    line-height:1.5;
}

.btn-download{
    display:inline-block;
    padding:10px 14px;
    border-radius:10px;
    color:white;
    text-decoration:none;
    font-size:14px;
    font-weight:bold;
    transition:0.3s;
    background:#2563eb;
    margin-top:10px;
}

.btn-download:hover{
    background:#1d4ed8;
    transform:scale(1.05);
}

/* TRANSICION SUAVE GLOBAL */
body,
.header-box,
.header-left h1,
.header-left p,
.header-right,
.header-right strong,
.theme-label,
h2,
.card-premium,
.card-content h3,
.card-content .desc,
.meta li,
.btn-download,
.theme-slider,
.theme-slider::before,
.theme-knob,
.card-img img{
    transition:
        background-color .35s ease,
        color .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        transform .35s ease,
        opacity .35s ease;
}

/* DARK MODE NEGRO / GRIS ELEGANTE */
body.dark{
    background:#0b0b0c;
    color:#e5e7eb;
}

body.dark .header-box{
    background:#151618;
    box-shadow:0 10px 30px rgba(0,0,0,0.45);
}

body.dark .header-left h1{
    color:#f3f4f6;
}

body.dark .header-left p{
    color:#9ca3af;
}

body.dark .header-right{
    color:#d1d5db;
}

body.dark .header-right strong{
    color:#f9fafb;
}

body.dark .theme-label{
    color:#e5e7eb;
}

body.dark .theme-slider{
    background:#1f2937;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,0.10);
}

body.dark .theme-slider::before{
    color:#d1d5db;
}

body.dark .theme-toggle input:checked + .theme-slider{
    background:linear-gradient(135deg,#3b82f6,#2563eb);
}

body.dark .theme-toggle input:checked + .theme-slider::before{
    color:#ffffff;
}

body.dark .theme-knob{
    background:#f8fafc;
    box-shadow:0 3px 12px rgba(0,0,0,0.35);
}

body.dark h2{
    color:#d1d5db;
    border-left-color:#6b7280;
}

body.dark .card-premium{
    background:#151618;
    border:1px solid #2a2d31;
    box-shadow:none;
    color:#e5e7eb;
}

body.dark .card-premium:hover{
    box-shadow:0 10px 22px rgba(0,0,0,0.35);
}

body.dark .card-content h3{
    color:#f3f4f6;
}

body.dark .card-content .desc{
    color:#d1d5db;
}

body.dark .meta li{
    color:#9ca3af;
}

body.dark .btn-download{
    background:#2b2f36;
    color:#ffffff;
}

body.dark .btn-download:hover{
    background:#3a3f47;
}

body.dark .card-img img{
    box-shadow:0 10px 24px rgba(0,0,0,0.35);
}

/* RESPONSIVE */
@media(max-width:900px){
    .card-premium{
        flex-direction:column;
        align-items:flex-start;
    }

    .card-img{
        flex:1 1 auto;
        width:100%;
    }

    .card-img img{
        width:100%;
        height:auto;
        max-height:320px;
    }
}

@media(max-width:768px){
    .header-flex{
        flex-direction:column;
        align-items:flex-start;
    }

    .header-right{
        width:100%;
        justify-content:space-between;
        text-align:left;
        white-space:normal;
    }
}

@media(max-width:600px){
    body{
        padding:14px;
    }

    .header-left h1{
        font-size:26px;
    }

    .card-content h3{
        font-size:20px;
    }

    .card-premium{
        padding:18px;
        gap:16px;
    }

    .theme-control{
        gap:8px;
    }

    .theme-label{
        font-size:12px;
    }

    .theme-slider{
        width:62px;
        height:32px;
    }

    .theme-knob{
        width:24px;
        height:24px;
    }

    .theme-toggle input:checked + .theme-slider .theme-knob{
        transform:translateX(30px);
    }

    .theme-toggle input:checked + .theme-slider::before{
    left:30px;
}
    }