/* ==========================================
   IMPORTAR 98.CSS DE GITHUB
   ========================================== */
@import url('https://unpkg.com/98.css');

/* ==========================================
   FUENTES PERSONALIZADAS
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap');

@font-face {
    font-family: 'Chandia';
    src: url('fonts/Chandia_PERSONAL_USE_ONLY.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'invasion2000';
    src: url('fonts/INVASION2000.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'porky_s';
    src: url('fonts/PORKYS_.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'new_romantics';
    src: url('fonts/ROMANTIC.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ==========================================
   RESET Y CONFIGURACIÓN BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url("./images/CURSORS/hellokity.png") 8 8, auto !important;
}

html{
    font-family: "MS Sans Serif", Arial, sans-serif;
    background-image: url('images/bg/BG3.gif');
    background-repeat: repeat;
    background-size: auto auto;
    background-position: 0 0;
    padding: 20px;
    min-height: 100vh;
    cursor: url("./images/CURSORS/hellokity.png") 8 8, auto !important;
}

/* Forzar cursor en elementos incrustados y contenedores */
iframe, 
object, 
embed,
.guestbook-window,
.smartgb-iframe,
.guestbook-frame {
    cursor: url("./images/CURSORS/hellokity.png") 8 8, auto !important;
}

/* ==========================================
   CONFIGURACIÓN DEL CURSOR HELLO KITTY
   ========================================== */
a, 
button, 
.win95-button, 
.win-button, 
.menu-item, 
.nav-button, 
.nav-link, 
.friend-link, 
.title-bar-controls button,
input, 
textarea, 
select,
label {
    cursor: url("./images/CURSORS/hellokity.png") 8 8, pointer !important;
}

/* ==========================================
   ANIMACIONES (KEYFRAMES)
   ========================================== */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes digitGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255,0,255,0.7); }
    50% { box-shadow: 0 0 20px rgba(0,255,255,0.9); }
}

@keyframes borderPulse {
    0%, 100% { 
        border-color: #4b0082; 
        box-shadow: 0 0 30px rgba(75, 0, 130, 1), 0 0 60px rgba(0, 0, 0, 0.9);
    }
    50% { 
        border-color: #8b0000; 
        box-shadow: 0 0 30px rgba(139, 0, 0, 1), 0 0 60px rgba(43, 0, 43, 0.8);
    }
}

@keyframes bgShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes glitterDark {
    0%, 100% {
        text-shadow:
            0 0 4px #2b002b,
            0 0 10px #4b004b,
            0 0 18px #1a0033,
            0 0 28px #33001a,
            3px 3px 6px rgba(0,0,0,0.95);
    }
    50% {
        text-shadow:
            0 0 4px #1a001a,
            0 0 12px #330033,
            0 0 22px #000022,
            0 0 34px #220011,
            3px 3px 6px rgba(0,0,0,1);
    }
}

@keyframes glitter {
    0%, 100% { text-shadow: 0 0 5px #fff, 0 0 15px #ff00ff, 0 0 30px #00ffff; }
    25% { text-shadow: 0 0 5px #fff, 0 0 15px #00ffff, 0 0 30px #ffff00; }
    50% { text-shadow: 0 0 5px #fff, 0 0 15px #ffff00, 0 0 30px #00ff00; }
    75% { text-shadow: 0 0 5px #fff, 0 0 15px #00ff00, 0 0 30px #ff00ff; }
}

@keyframes textPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

@keyframes trailFade {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(2); }
}

/* ==========================================
   VENTANA PRINCIPAL ESTILO 98.CSS
   ========================================== */
.window {
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 
        5px 5px 0 rgba(0,0,0,0.3),
        10px 10px 30px rgba(0,0,0,0.5);
}

/* Usar clases de 98.css para la barra de título */
.title-bar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 3px 2px 3px 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.title-bar-text {
    font-weight: bold;
    color: white;
    letter-spacing: 0;
    margin-right: 24px;
    font-size: 11px;
}

.title-bar-controls {
    display: flex;
}

.title-bar-controls button {
    display: block;
    min-width: 16px;
    min-height: 14px;
    padding: 0;
}

/* Menu bar estilo 98.css */
.menu-bar {
    background-color: silver;
    border-top: 1px solid white;
    border-left: 1px solid white;
    display: flex;
    padding: 2px 5px;
}

.menu-item {
    padding: 2px 8px;
    font-size: 11px;
}

.menu-item:hover {
    background: navy;
    color: white;
}

/* Barra de navegación */
.nav-bar {
    background: silver;
    padding: 3px;
    border-bottom: 2px groove;
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.nav-button {
    min-width: 75px;
    min-height: 23px;
    padding: 0 12px;
    font-size: 11px;
}

.address-bar {
    flex: 1;
    padding: 3px 4px;
    font-size: 11px;
    min-width: 200px;
}

/* ==========================================
   ESTRUCTURA DE CONTENIDO (GRID)
   ========================================== */
.content-wrapper {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 15px;
    padding: 15px;
    background: silver;
    min-height: 600px;
}

.main-content {
    background: white;
    padding: 20px;
    border: 2px groove;
}

/* ==========================================
   WIDGETS ESTILO 98.CSS
   ========================================== */
.sidebar, .sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget {
    box-shadow: 1px 1px 0 1px #dfdfdf,
                -1px -1px 0 1px #0a0a0a,
                inset 1px 1px 0 1px #fff,
                inset -1px -1px 0 1px grey;
    background: silver;
    padding: 2px;
}

.widget-title {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 3px 2px 3px 3px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-content {
    padding: 12px 8px;
    font-size: 11px;
    background: silver;
}

.nav-link, .friend-link {
    display: block;
    color: #0000ff;
    text-decoration: underline;
    padding: 3px 0;
    font-size: 11px;
}

.nav-link:hover, .friend-link:hover {
    color: #ff00ff;
}

.nav-link:visited, .friend-link:visited {
    color: #800080;
}

/* ==========================================
   WIDGETS ESPECIALES (CONTADOR Y MARQUEE)
   ========================================== */
.counter {
    text-align: center;
}

.visitor-count {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 10px;
}

.visitor-count .digit {
    background: linear-gradient(135deg, #ff0000, #ff00ff, #0000ff, #00ffff, #00ff00, #ffff00);
    color: white;
    padding: 5px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.5);
    box-shadow: 0 0 10px rgba(255,0,255,0.7);
    animation: digitGlow 2s ease-in-out infinite;
}

.widget-content marquee img {
    display: block;
    width: 150px;
    height: auto;
    margin: 10px auto;
    image-rendering: pixelated;
}

/* ==========================================
   BANNER Y TEXTO GLITTER
   ========================================== */
.banner {
    background-image: 
        linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.8) 0%, 
    rgba(43, 0, 0, 0.7) 10%, 
    rgba(0, 0, 0, 0.8) 20%, 
    rgba(25, 0, 51, 0.7) 30%, 
    rgba(0, 0, 0, 0.8) 40%, 
    rgba(60, 0, 20, 0.7) 50%, 
    rgba(20, 20, 20, 0.8) 60%, 
    rgba(40, 0, 80, 0.7) 70%, 
    rgba(0, 0, 0, 0.8) 80%, 
    rgba(80, 0, 0, 0.7) 90% 
),
        url("./images/banner2.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 5px solid #fff;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 0;
    overflow: hidden;
    margin-bottom: 30px;
    animation: borderPulse 2s infinite;
    border-radius: 10px;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.8) 50%, transparent 70%);
    animation: shine 3s infinite;
    pointer-events: none;
}

.banner-text {
    font-family: inherit;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.glitter-text {
    font-family: 'porky_s', 'Impact', Arial, sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #e6e6e6; 
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow:
        0 0 4px #2b002b,
        0 0 10px #4b004b,
        0 0 18px #1a0033,
        0 0 28px #33001a,
        3px 3px 6px rgba(0,0,0,0.95);
    animation: glitterDark 1.5s infinite, textPulse 2.5s ease-in-out infinite;
    position: relative;
    z-index: 1 !important;
}

/* ==========================================
   POSTS DEL BLOG
   ========================================== */
.blog-post {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 
        inset -1px -1px #0a0a0a,
        inset 1px 1px #dfdfdf,
        inset -2px -2px grey,
        inset 2px 2px #fff;
}

.post-header h2 {
    color: #000080;
    font-size: 16px;
    margin-bottom: 8px;
}

.post-meta {
    color: #808080;
    font-size: 11px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #c0c0c0;
}

.post-content {
    font-size: 11px;
    line-height: 1.5;
    color: #000000;
}

/* ==========================================
   ELEMENTOS DE INTERFAZ (BOTONES E INPUTS)
   ========================================== */
.win95-button, .win-button {
    box-sizing: border-box;
    border: none;
    background: silver;
    box-shadow: inset -1px -1px #0a0a0a,
                inset 1px 1px #fff,
                inset -2px -2px grey,
                inset 2px 2px #dfdfdf;
    padding: 4px 12px;
    font-size: 11px;
    min-width: 75px;
    min-height: 23px;
    font-family: inherit;
    margin-top: 8px;
}

.win95-button:active, .win-button:active {
    box-shadow: inset -1px -1px #fff,
                inset 1px 1px #0a0a0a,
                inset -2px -2px #dfdfdf,
                inset 2px 2px grey;
    padding: 5px 11px 3px 13px;
}

.win95-button:focus, .win-button:focus {
    outline: 1px dotted #000000;
    outline-offset: -4px;
}

.input-field {
    box-sizing: border-box;
    border: none;
    box-shadow: inset -1px -1px #ffffff,
                inset 1px 1px #0a0a0a,
                inset -2px -2px #dfdfdf,
                inset 2px 2px grey;
    background-color: #fff;
    padding: 3px 4px;
    font-size: 11px;
    width: 100%;
    margin-bottom: 8px;
}

.blinking {
    animation: blink 1s infinite;
}

/* ==========================================
   PIE DE PÁGINA (FOOTER Y BADGES)
   ========================================== */
.footer {
    background: silver;
    border-top: 2px groove;
    padding: 12px;
    text-align: center;
}

.footer-content p {
    font-size: 11px;
    color: #000000;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.badge {
    background: linear-gradient(135deg, #ff0000, #ff00ff, #0000ff);
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255,0,255,0.5);
}

/* ==========================================
   ESTILOS PARA GUESTBOOK (IFRAME)
   ========================================== */
.guestbook-window {
    margin-top: 15px;
    box-shadow: inset -1px -1px #ffffff,
                inset 1px 1px #0a0a0a,
                inset -2px -2px #dfdfdf,
                inset 2px 2px grey;
    background: #ffffff;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.smartgb-iframe {
    width: 100%;
    height: 100%;
    filter: contrast(1.1); 
}

.blog-post.guestbook {
    padding: 15px;
}

/* ==========================================
   FIELDSET ESTILO 98.CSS
   ========================================== */
fieldset {
    border: 1px groove;
    padding: 10px;
    margin: 10px 0;
}

legend {
    background: silver;
    padding: 0 5px;
}

/* ==========================================
   DISEÑO RESPONSIVO (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
    .content-wrapper { 
        grid-template-columns: 1fr; 
    }
    .sidebar-right { 
        display: none; 
    }
}

@media (max-width: 768px) {
    .sidebar { 
        display: none; 
    }
    body { 
        padding: 5px; 
    }
    .nav-bar { 
        flex-direction: column; 
    }
    .address-bar { 
        width: 100%; 
    }
}