/* ==================== */
/* RESET Y ESTILOS BASE */
/* ==================== */
body {
    margin: 0;
    min-height: 100vh;
    background-image: url('https://tamalddulce.neocities.org/documentos/fondo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Bungee', arial;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ================ */
/* FUENTES CUSTOM */
/* ================ */
@font-face {
    font-family: 'Honk';
    src: url('https://tamalddulce.neocities.org/documentos/Honk-Regular-VariableFont_MORF,SHLN.ttf') format('woff2');
    font-style: normal;
}

@font-face {
    font-family: 'Bytesized';
    src: url('https://tamalddulce.neocities.org/documentos/Bytesized-Regular.ttf') format('woff2');
    font-style: normal;
}

@font-face {
    font-family: '04B';
    src: url('https://tamalddulce.neocities.org/documentos/04B_30__.TTF') format('woff2');
    font-style: normal;
}

@font-face {
    font-family: 'Bungee';
    src: url('https://tamalddulce.neocities.org/documentos/Bungee-Regular.ttf') format('woff2');
    font-style: normal;
}

/* ================= */
/* COMPONENTE BANNER */
/* ================= */
.banner {
    width: 80%;
    height: auto;
    max-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    position: relative;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.2);
}

.imagen {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

#imagen { 
    max-width: 100%;
    max-height: 100%;
    display: block;
}

#titulo {
    position: absolute;
    right: 0%;
    bottom: 10%;
    transform: rotate(-30deg);
    transform-origin: right bottom;
    padding: 5px 15px;
    font-size: 1.5vw;
    white-space: nowrap;
    z-index: 2;
    animation: pulse 2s infinite;
    font-family: '04B';
    color: #DFFC4B;
}

/* ================== */
/* LAYOUT PRINCIPAL */
/* ================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.grid-item {
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

/* ===================== */
/* VENTANA ESTILO WINDOWS & ALTURA IGUALADA */
/* ===================== */

/* Contenedor principal de ambas ventanas */
.window {
    width: 400px;
    /* ALTURA GLOBAL AJUSTADA para igualar ambas ventanas */
    height: 350px; 
    background-color: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    border-radius: 0;
    display: flex; 
    flex-direction: column;
}

/* Barra de título */
.title-bar {
    background: linear-gradient(to right, #398180, #79AD97, #93BA9B, #CCED94);
    color: white;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #c0c0c0;
    overflow: hidden; /* Necesario para la marquesina */
    flex-shrink: 0;
}

/* Texto del título / Contenedor de Marquesina */
.title-bar-text {
    flex-grow: 1;
    font-family: '04B', sans-serif;
    white-space: nowrap;
    padding-right: 10px;
}

/* Estilo para el texto estático (Redes Sociales) */
.title-text {
    flex-grow: 1;
    font-family: '04B', sans-serif;
}

/* La marquesina */
marquee {
    display: block;
    width: 100%;
}

.window-buttons {
    display: flex;
    flex-shrink: 0;
}

.window-button {
    width: 16px;
    height: 14px;
    margin-left: 2px;
    background-color: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    font-size: 10px;
    text-align: center;
    line-height: 10px;
    color: black;
    cursor: pointer;
    padding: 0;
    box-sizing: content-box;
    border-radius: 0;
}

/* Área de contenido de la ventana de REDES SOCIALES */
.content {
    flex-grow: 1;
    padding: 8px;
    overflow-y: scroll;
    background-color: white;
    margin: 4px;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

/* ===================== */
/* CHAT WINDOW ESPECÍFICO */
/* ===================== */

.chat-content-body {
    flex-grow: 1; 
    padding: 4px; 
    overflow: hidden;
    background-color: white;
    margin: 4px;
    display: flex;
}

#chattable {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    /* Efecto de "panel hundido" para el chat */
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080; 
    background-color: white;
    box-sizing: border-box;
    border-radius: 0;
}


/* ===================== */
/* ESTILOS DE SCROLLBAR */
/* ===================== */
.content::-webkit-scrollbar, .chat-content-body::-webkit-scrollbar {
    width: 16px;
}

.content::-webkit-scrollbar-track, .chat-content-body::-webkit-scrollbar-track {
    background: linear-gradient(45deg, #c0c0c0 25%, white 25%, white 50%, #c0c0c0 50%, #c0c0c0 75%, white 75%);
    background-size: 4px 4px;
    border-left: 2px solid #808080;
    border-right: 2px solid white;
}

.content::-webkit-scrollbar-thumb, .chat-content-body::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
}

.status-bar {
    background-color: #c0c0c0;
    padding: 2px 4px;
    font-size: 11px;
    border-top: 2px solid #808080;
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
}

/* ================ */
/* ANIMACIONES */
/* ================ */
@keyframes pulse {
    0% { transform: rotate(-30deg) scale(1); }
    50% { transform: rotate(-30deg) scale(1.1); }
    100% { transform: rotate(-30deg) scale(1); }
}

/* ===================== */
/* AJUSTES PARA MÓVILES */
/* ===================== */
@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .window, .chat-window {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .content {
        height: auto;
        max-height: 300px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group label {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .window-button {
        width: 20px;
        height: 18px;
        font-size: 12px;
    }
}

/* ===================== */
/* MEDIA QUERIES */
/* ===================== */
@media (max-width: 768px) {
    #titulo {
        font-size: 16px;
        right: 5%;
        bottom: 5%;
    }
    .banner {
        width: 95%;
        border-width: 3px;
        box-shadow: 0 0 0 3px #2ecc71;
    }
}

@media (max-width: 480px) {
    #titulo {
        font-size: 12px;
        padding: 2px 8px;
        right: 5%;
        bottom: 5%;
    }
    .banner {
        border-width: 2px;
        box-shadow: 0 0 0 2px #2ecc71;
    }
}

/* ESTILOS DE COMENTARIOS ELIMINADOS */
/* Se eliminaron: .comment-form, .form-group, .form-control, .btn, .comment, .comment-header, .comment-name, .comment-date, .comment-text, .input-group, .input-group label, .comments-content */