/* --- ESTILOS DE TODO MAS O MENOS --- */
body {
    background-color: #dbb7c8; /* Fondo rosa pastel */
    background-image: radial-gradient(#ffffff 15%, transparent 15%); /* Puntitos blancos */
    background-size: 20px 20px;
    font-family: 'Courier New', Courier, monospace; /* Fuente retro */
    color:#5c5437 ;
    margin: 0;
    padding: 20px;
}

/* Contenedor Principal en forma de Grid */
.grid-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #e2f0cb; /* Verde pastel de fondo */
    border: 3px double #b5cf8c;
    border-radius: 12px;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr; /* 3 columnas */
    gap: 15px;
}

/* El Banner de arriba */
.header-banner {
    grid-column: span 3;
    background-color: #ffffff;
    border: 2px solid #ffb3ba;
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #ff6b8b;
    text-shadow: 1px 1px 0px #fff, 2px 2px 0px #ffb3ba;
}

/* Cajas de contenido comunes */
.box {
    background: #ffffff;
    border: 2px solid #ffb3ba;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 3px 3px 0px #ffb3ba;
}

.box h2 {
    margin-top: 0;
    font-size: 16px;
    background: #ffb3ba;
    color: white;
    padding: 5px;
    border-radius: 4px;
    text-align: center;
}

/* --- SECCIÓN: CONTADOR DE PELÍCULAS --- */
.movie-counter {
    text-align: center;
}
.huge-number {
    font-size: 48px;
    font-weight: bold;
    color: #ff416c;
    margin: 10px 0;
}
.bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100px;
    border-bottom: 2px solid #4a3b32;
    padding-bottom: 5px;
}
.bar {
    width: 30px;
    background: #ffb3ba;
    border: 1px solid #ff416c;
    text-align: center;
    font-size: 12px;
    color: black;
    font-weight: bold;
}

/* --- SECCIÓN: ANIME CORNER --- */
.anime-review {
    border-bottom: 1px dashed #ffb3ba;
    padding: 8px 0;
    font-size: 13px;
}

/* --- SECCIÓN: LOGS DE SALIDAS --- */
.outing-card {
    background: #fffdf0;
    border: 1px solid #ffe4e1;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
}
.outing-card img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

/* Inputs y Botones "Cute" */
input, button, textarea {
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
    border: 2px solid #ffb3ba;
    border-radius: 4px;
    padding: 5px;
    font-family: inherit;
}
button {
    background: #ffb3ba;
    color: white;
    cursor: pointer;
    font-weight: bold;
}
button:hover {
    background: #ff6b8b;
}

/* --- TARJETAS DE PERFIL --- */
.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;          
    margin-bottom: 12px; 
    background: #fffdf0; 
    padding: 10px;
    border: 2px solid #ffb3ba;
    box-shadow: 2px 2px 0px #ffb3ba;
    border-radius: 6px;  
    transition: all 0.3s ease; 
}

.profile-card:hover {
    border-color: #ff6b8b;         
    box-shadow: 5px 5px 0px #ffb3ba; 
    transform: translateY(-2px);   
    background-color: #fffdf9;     
    cursor: pointer;               
}

.profile-pic {
    width: 65px;             
    height: 65px;            
    object-fit: cover;       
    border-radius: 4px;      
    border: 2px solid #ffb3ba; 
    flex-shrink: 0;          
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-info p {
    margin: 0;
    font-size: 14px;
    color: #4a3b32;
}

/* --- SECCIÓN DIARIO --- */
.diary-card {
    display: flex;
    background: #ffffff;
    border: 2px solid #b3f6b3; 
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    gap: 15px;
    box-shadow: 3px 3px 0px #b3f6b3;
}

.polaroid {
    background: white;
    padding: 8px 8px 15px 8px;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    transform: rotate(-2deg); 
    width: 120px;
    flex-shrink: 0;
}

.polaroid img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 1px solid #eee;
}

.polaroid-caption {
    font-size: 10px;
    text-align: center;
    color: #666;
    margin-top: 8px;
    font-family: monospace;
}

.diary-text h3 {
    margin: 0 0 8px 0;
    color: #4a3b32;
    font-size: 16px;
}

.diary-chisme {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

.diary-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.diary-link:hover .diary-card {
    border-color: #ff6b8b;
    box-shadow: 5px 5px 0px #ffb3ba;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* ==========================================================================
   VENTANAS EMERGENTES FLOTANTES (MODALES RETRO CORREGIDOS SIN BLOQUEO)
   ========================================================================== */
.modal-box {
    display: none; /* Inician totalmente ocultas */
    position: fixed; /* Flotan fijas en la pantalla real */
    z-index: 9999; /* Por encima de la grid siempre */
    background-color: #fffdf0; 
    border: 3px solid #ffb3ba;
    border-radius: 8px;
    width: 320px;
    padding: 0; 
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
    animation: aparecer 0.2s ease-out;
}

.modal-header {
    background-color: #ffb3ba; 
    padding: 8px 12px;
    cursor: move; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff9aa2;
}

.modal-header h3 {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
    font-family: monospace;
}

.modal-content {
    padding: 20px;
    color: #4a3b32;
    font-family: sans-serif;
}

.close-btn {
    font-size: 14px;
    cursor: pointer;
    color: #ffffff;
    font-weight: bold;
    background: #ff6b8b;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #ff4f73;
}

.close-btn:hover {
    background: #ff3366;
}

@keyframes aparecer {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}