/* --- 1. CONFIGURACIÓN GENERAL Y FONDO DE PUNTOS --- */
body {
    background-color: #efc5ff; 
    background-image: radial-gradient(#ffffff 20%, transparent 20%), radial-gradient(#ffffff 20%, transparent 20%);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
    font-family: 'Courier New', Courier, monospace; 
    color: #ff4d94;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* --- 2. EL CONTENEDOR DE LA VENTANA PRINCIPAL --- */
.window-container {
    background-color: #ffffff;
    border: 4px solid #ffb3d9;
    outline: 2px dashed #ff4d94;
    max-width: 950px;
    width: 100%;
    padding: 15px;
    box-shadow: 5px 5px 0px #ffb3d9;
    box-sizing: border-box;
}

/* --- 3. ENCABEZADO Y REPRODUCTOR --- */
.site-header {
    border: 2px solid #ffb3d9;
    margin-bottom: 15px;
    background: #fff0f5;
}

.header-title {
    background: #ffb3d9;
    color: white;
    padding: 6px 12px;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.music-player {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 2px 6px;
    border: 1px dashed #ff4d94;
    border-radius: 4px;
}

.music-label {
    font-size: 0.75rem;
    color: #ff4d94;
    font-weight: bold;
}

.custom-audio {
    height: 20px;
    width: 120px;
    outline: none;
}

.banner-placeholder {
    height: 150px;
    background: linear-gradient(45deg, #ffccd5, #ffb3d9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
}

.ticker {
    background-color: #fff;
    border-top: 2px dotted #ff4d94;
    border-bottom: 2px dotted #ff4d94;
    padding: 3px 0;
    font-size: 0.9rem;
}

/* --- 4. MAQUETACIÓN EN 3 COLUMNAS --- */
.main-layout {
    display: flex;
    gap: 15px;
}

/* Estilo común de los encabezados de las cajas */
.box-title {
    background-color: #66e0ff; 
    color: white;
    text-align: center;
    padding: 5px;
    font-weight: bold;
    border-radius: 10px;
    font-size: 0.9rem;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.15);
}

/* --- COLUMNA IZQUIERDA (MENÚ) --- */
.sidebar-left {
    width: 22%;
    display: flex;
    flex-direction: column;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.nav-item {
    text-decoration: none;
    padding: 6px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    font-size: 0.85rem;
}

.item-green { background-color: #b3ffb3; color: #2e7d32; }
.item-yellow { background-color: #ffffcc; color: #b37400; }
.item-pink { background-color: #ffccff; color: #cc00cc; }
.item-purple { background-color: #e6ccff; color: #6600cc; }
.item-blue { background-color: #ccffff; color: #008080; }

/* --- COLUMNA CENTRAL (CONTENIDO GENERAL) --- */
.content-center {
    width: 56%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.welcome-box, .drawing-box, .guestbook-box {
    border: 3px double #ffbbcc;
    background-color: #fff8fa;
    padding: 12px;
    box-sizing: border-box;
}

.section-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #ff3385;
    border-bottom: 2px dashed #ffb3d9;
    padding-bottom: 5px;
}

.section-subtitle {
    font-size: 0.75rem;
    margin: -5px 0 10px 0;
    color: #888;
    font-style: italic;
}

.welcome-content {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.avatar {
    border: 2px solid #ffb3d9;
    padding: 3px;
    background: white;
    border-radius: 5px;
}

/* --- PIZARRA DE DIBUJO Y BOTONES --- */
.canvas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#paintCanvas {
    border: 2px inset #ffb3d9;
    background: white;
    cursor: crosshair;
    max-width: 100%;
}

.canvas-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.canvas-controls button, .gb-submit {
    background-color: #ffccff;
    border: 2px solid #cc00cc;
    color: #cc00cc;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    box-shadow: 2px 2px 0px rgba(204, 0, 204, 0.2);
}

.canvas-controls button:active, .gb-submit:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

#colorPicker {
    border: 1px solid #ffb3d9;
    background: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 0;
}

/* --- LIBRO DE VISITAS --- */
.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gb-input, .gb-textarea {
    border: 2px inset #ffb3d9;
    padding: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #ff4d94;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
}

.gb-input:focus, .gb-textarea:focus {
    outline: 1px solid #ff4d94;
    background: #fff0f5;
}

.gb-submit {
    background-color: #b3ffb3;
    border-color: #2e7d32;
    color: #2e7d32;
    align-self: flex-end;
    box-shadow: 2px 2px 0px rgba(46, 125, 50, 0.2);
}

/* --- COLUMNA DERECHA --- */
.sidebar-right {
    width: 22%;
}

.todo-box {
    background: #fff;
    border: 2px solid #ffccd5;
    padding: 8px;
    font-size: 0.85rem;
}

.todo-box ul {
    list-style: none;
    padding-left: 5px;
    margin: 5px 0;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-top: 8px;
    justify-items: center;
}

.buttons-grid img {
    border: 1px solid #ffb3d9;
    width: 88px;
    height: 31px;
}

/* --- FOOTER --- */
.site-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px dotted #ff4d94;
    font-size: 0.8rem;
}

/* --- ESTILO PARA EL BANNER MÁS FINO --- */
.site-banner-img {
    width: 100%;
    height: 240px;        /* 🌸 Aquí controlas la altura. Puedes probar con 150px si lo quieres aún más fino */
    object-fit: cover;    /* 🌟 Esto hace que la imagen se recorte mágicamente en horizontal sin achicarse ni estirarse feo */
    object-position: center 30%; /* Centra el recorte para que se vea la carita de la maid */
    display: block;
    border-radius: 4px;
}