body {
    background-color: #f4eee6;
    /* textura de papel */
    background-image:
        radial-gradient(#ded2c5 1px, transparent 1px),
        radial-gradient(#ded2c5 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    
    /* TIPOGRAFÍA NUEVA: Estilo máquina de escribir antigua */
    font-family: "Courier New", Courier, monospace;
    font-size: 13px; /* Subido un puntito para mejor lectura en este estilo */
    color: #5c4d43;
    margin: 0;
    padding: 40px;
    
    cursor: url('conejito-cursor.png'), default;
}

a, nav a, .guestbook a {
    cursor: url('conejito-cursor.png'), pointer !important;
}

.container {
    width: 950px; /* Lo agrandé un poquitito para que las 3 columnas quepan súper cómodas */
    margin: auto;
    background: #fffaf3;
    border: 1px solid #dbcbbb;
    padding: 25px;
    box-shadow: 0 0 15px rgba(120,90,60,0.15);
}

header {
    background: #f8eee8;
    border: 1px solid #dfcfc3;
    padding: 25px;
    text-align: center;
    position: relative;
}

h1 {
    margin: 0;
    font-size: 34px;
    font-weight: normal;
    letter-spacing: 4px;
    color: #8b6f60;
}

.subtitle {
    margin-top: 5px;
    color: #9d8a7c;
    font-style: italic;
}

nav {
    background: #faf3ec;
    border: 1px solid #e2d4c8;
    padding: 10px;
    text-align: center;
    margin-bottom: 18px;
}

nav a {
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    color: #846b5f;
    text-decoration: none;
    padding: 6px 14px;
}

nav a:hover {
    background: #ecd9ca;
    border-radius: 3px;
}

/* ==========================================
   ALINEACIÓN DE LAS 3 COLUMNAS PRINCIPALES
========================================== */
.content {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

/* Barra izquierda */
.left-sidebar {
    width: 220px;
    flex-shrink: 0;
}

/* Caja central (Diario) */
main {
    flex: 1;
    background: #fffdfa;
    border: 1px solid #e6d8cb;
    padding: 20px;
    line-height: 1.8;
    min-width: 0; /* Evita que el contenido desborde el flex */
}

/* Barra derecha (Nueva) */
.right-sidebar {
    width: 220px;
    flex-shrink: 0;
}

/* Estilos compartidos para las cajas de los laterales */
aside, .right-sidebar {
    line-height: 1.7;
}

aside .box, .right-sidebar .box {
    background: #fcf7f3;
    border: 1px solid #e2d5c8;
    padding: 15px;
    margin-bottom: 15px;
}

aside h3, .right-sidebar h3 {
    margin-top: 0;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px dotted #ccb9aa;
    padding-bottom: 8px;
    color: #876b59;
}

main h2 {
    margin-top: 0;
    font-weight: normal;
    color: #9b6d72;
    border-bottom: 1px dashed #d8c1c1;
    padding-bottom: 8px;
}

footer {
    margin-top: 30px;
    text-align: center;
    font-size: 11px;
    color: #a38e80;
    border-top: 1px dotted #d3c3b5;
    padding-top: 12px;
}

.flower {
    color: #c9959c;
    font-size: 18px;
    letter-spacing: 8px;
    margin: 5px;
}

/* EXCEPCIÓN: Título del sitio web se mantiene elegante */
.title h1 {
    font-family: Georgia, serif !important;
    font-size: 38px;
    font-weight: normal;
    letter-spacing: 5px;
    color: #876b61;
    margin: 10px;
}

.title p {
    font-family: Georgia, serif !important;
    color: #a68c80;
    font-style: italic;
    font-size: 12px;
    letter-spacing: 2px;
}

.tape {
    width: 100px;
    height: 25px;
    background: #ead8c3;
    opacity: 0.8;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
}

.polaroid {
    background: white;
    padding: 10px;
    width: 150px;
    margin: auto;
    text-align: center;
    box-shadow: 2px 3px 8px rgba(0,0,0,.15);
    transform: rotate(-3deg);
}

.polaroid img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.polaroid p {
    font-family: cursive;
    color: #8d7469;
    margin: 8px;
}

.now-playing {
    text-align: center;
    margin-top: 20px;
    background: #fff8f2;
    border: 1px dotted #d8c7ba;
    padding: 12px;
}

.now-playing h3 {
    font-size: 12px;
    font-weight: normal;
    color: #9b7770;
}

.cd-old {
    width: 75px;
    height: 75px;
    margin: 15px auto;
    border-radius: 50%;
    background: conic-gradient(#ddd, #aaa, #f7f7f7, #999, #ddd);
    border: 2px solid #777;
    position: relative;
    animation: spin 8s linear infinite;
    box-shadow: inset 0 0 10px rgba(0,0,0,.2);
}

.cd-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 20px;
    height: 20px;
    background: #e8c8c8;
    border-radius: 50%;
    font-size: 10px;
    line-height: 20px;
    text-align: center;
    color: white;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   SECCIÓN INFERIOR (CALENDARIO ABAJO)
========================================== */
.bottom-sections {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.mini-section {
    background: #fffaf3;
    border: 1px dotted #d5c1b3;
    padding: 15px;
    width: 220px;
    text-align: center;
    position: relative;
}

.mini-section h3 {
    font-size: 13px;
    font-weight: normal;
    color: #9b7770;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.calendar td {
    padding: 5px;
    color: #806b61;
}

.calendar .today {
    background: #dcaeb2;
    color: white;
    border-radius: 50%;
}

.pin {
    font-size: 18px;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.calendar .special {
    background: #e8c3c7;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    position: relative;
}

.calendar .special::after {
    content: "♡";
    font-size: 8px;
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: #c98d95;
}

.guestbook {
    text-align: center;
    background: #fffaf3;
    border: 1px dotted #d5c1b3;
    padding: 15px;
}

.guestbook a {
    color: #9b7770;
    text-decoration: none;
}

.guestbook a:hover {
    text-decoration: underline;
}

.memories {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
}

.note {
    background: #fffaf3;
    padding: 10px;
    width: 130px;
    text-align: center;
    box-shadow: 2px 3px 8px rgba(0,0,0,.15);
    transform: rotate(-4deg);
    position: relative;
}

.note.friend {
    transform: rotate(4deg);
}

.note img {
    width: 110px;
    height: 110px;
    object-fit: cover;
}

/* ==========================================
   MUSEUM FRAME & ART CORNER
========================================== */
.museum-card {
    background: #6d4d2d;
    padding: 10px;
    border: 8px solid #b28b58;
    outline: 2px solid #5a3d24;
    display: inline-block;
    position: relative;
    transform: rotate(-4deg);
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
    transition: 0.3s;
}

.museum-card:hover {
    transform: rotate(-2deg) scale(1.03);
}

.museum-card img {
    display: block;
    width: 150px;
    height: auto;
    border: 10px solid #f8f4ec;
    box-sizing: border-box;
}

.washi {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    width: 90px;
    height: 22px;
    background: #eadfcf;
    opacity: .85;
    border-radius: 2px;
}

.museum-label {
    margin-top: 8px;
    background: #efe7dc;
    padding: 8px;
    text-align: center;
    font-size: 11px;
    color: #5f4a3d;
    border-top: 1px solid #d2c2b3;
    line-height: 1.5;
}

/* EXCEPCIÓN: La firma/texto de "Angels face a giga eyes" se queda Serif */
.museum-label span {
    font-family: Georgia, serif !important;
    font-style: italic;
    color: #8b7768;
    font-size: 10px;
}

/* EXCEPCIÓN: La fecha del cuadro "— an · 08 july 2026" se queda Serif */
.small-date {
    font-family: Georgia, serif !important;
    font-size: 10px !important;
    opacity: 0.75;
    font-style: italic;
}

/* ==========================================
   BARRA DERECHA: REDES, GIF Y DIARIO ABIERTO
========================================== */
.social-links {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    text-align: left;
}

.social-links li {
    margin-bottom: 8px;
}

.social-links a {
    color: #846b5f;
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}

.sidebar-gif {
    width: 160px;
    display: block;
    margin: 15px auto 5px;
}

.open-diary {
    display: flex;
    width: 100%;
    margin-top: 20px;
    background: #fffaf0;
    box-shadow: 4px 4px 0px #dbcbb8;
    border-radius: 5px;
    overflow: hidden;
}

.diary-page {
    width: 50%;
    padding: 12px;
    font-size: 11px;
    line-height: 1.6;
    min-height: 120px;
}

.left-page {
    border-right: 1px solid #d8c7b5;
}

.right-page {
    background: #fffdf8;
}

.date {
    font-size: 10px;
    text-align: center;
}

/* ==========================================
   CHARACTER SPOTLIGHT (EXCEPCIONES RACHEL BERRY)
========================================== */
.character-section {
    margin-top: 50px;
    text-align: center;
}

.gold-stars {
    color: #c9a24d;
    font-size: 22px;
    letter-spacing: 8px;
}

.film-title {
    font-family: "Cormorant Garamond", serif !important;
    font-size: 28px;
    letter-spacing: 3px;
    color: #5a3825;
    margin: 15px;
}

.small-spotlight {
    font-family: "Cormorant Garamond", serif !important;
    font-size: 14px !important;
    letter-spacing: 4px;
    font-weight: bold;
}

.film-frame {
    background: #f8e6e3;
    width: 80%;
    margin: auto;
    padding: 25px;
    border: 2px solid #8b5e45;
    box-shadow: 6px 6px 0px #d6b28c;
}

.film-strip {
    font-family: "Cormorant Garamond", serif !important;
    color: #5a3825;
    font-size: 18px;
    letter-spacing: 4px;
}

.film-frame img {
    width: 180px;
    margin: 25px auto;
    display: block;
    border: 5px solid #fff7ed;
}

.film-frame h2 {
    font-family: "Cormorant Garamond", serif !important;
    color: #6b4030;
    font-size: 32px;
}

.quote {
    font-family: "Lora", serif !important;
    font-style: italic;
    color: #8b5e45;
}

.character-text {
    font-family: "Lora", serif !important;
    font-size: 14px;
    line-height: 1.8;
    color: #4b3328;
}

.rating {
    margin-top: 20px;
    font-family: "Lora", serif !important;
}

.rating span {
    color: #c9a24d;
    font-size: 22px;
}

.signature {
    margin-top: 20px;
    font-family: "Allura", cursive !important;
    font-size: 28px;
    color: #8b5e45;
}

/* ==========================================
   OTRAS SECCIONES
========================================== */
.photo-week {
    margin-top: 25px;
    border-top: 1px dashed #b7a8a8;
    padding-top: 18px;
    text-align: center;
}

.photo-week h3 {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.featured-photo {
    background: #fff;
    padding: 6px;
    border: 1px solid #d8cfcf;
    box-shadow: 2px 2px 6px rgba(0,0,0,.12);
    border-radius: 8px;
}

.featured-photo img {
    width: 100%;
    border-radius: 5px;
    display: block;
}

.caption {
    font-size: 11px;
    color: #777;
    margin: 10px 0 18px;
    font-style: italic;
}

.film-roll {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.film-roll img {
    width: 48px;
    height: 70px;
    object-fit: cover;
    border: 5px solid black;
    border-top: 10px solid black;
    border-bottom: 10px solid black;
    transition: .25s;
}

.film-roll img:hover {
    transform: scale(1.08);
}

/* ¡El definitivo para dog.gif! El tamaño perfecto */
img[src*="dog.gif"] {
    width: 185px !important; 
    display: block;
    margin: 15px auto 5px;
    height: auto;
}

/* ==========================================
   SOBRE DE HAIKU (CORREGIDO Y AJUSTADO)
========================================== */
.envelope-container {
    text-align: center;
    margin: 40px auto; /* Le damos aire arriba y abajo para que no choque al abrirse */
    width: 220px;
}

.envelope {
    position: relative;
    width: 220px;
    height: 140px;
    margin: auto;
    background: #ecdccf; /* Color del fondo interior del sobre */
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(120,90,60,0.1);
}

/* El cuerpo del sobre (Frente) */
.envelope::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0e2d5; /* Cambiado a tus tonos pastel tierra/beige tierno */
    border-radius: 6px;
    z-index: 3; /* Cubre la carta cuando está guardada */
    pointer-events: none; /* Deja que el mouse interactúe con el sobre */
}

/* La solapa triangular de arriba (Tu idea con clip-path) */
.flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e2d1c1; /* Tono un poquito más oscuro para que resalte la solapa */
    clip-path: polygon(0 0, 50% 55%, 100% 0);
    transform-origin: top;
    transition: transform 0.5s ease, z-index 0.2s ease;
    z-index: 4; /* Siempre al frente al inicio */
}

/* La cartita con el contenido del Haiku */
.letter {
    position: absolute;
    left: 10px;
    top: 5px;
    width: 200px;
    height: 130px;
    background: #fffdfa; /* Papel tierno */
    padding: 10px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px dashed #d5c1b3;
    transition: transform 0.5s ease, z-index 0.4s ease;
    transform: translateY(0); /* Empieza alineada adentro */
    z-index: 2; /* Guardada detrás del frente del sobre */
    font-family: "Courier New", Courier, monospace; /* Tu fuente de máquina de escribir */
    text-align: center;
    overflow: hidden; /* Evita barras de scroll feas para que mantenga la estética */
}

/* ==========================================
   EFECTO MÁGICO: AL PASAR EL MOUSE (:HOVER)
========================================== */

/* 1. La solapa se abre hacia arriba */
.envelope:hover .flap {
    transform: rotateX(180deg);
    z-index: 1; /* Al abrirse por completo pasa por detrás de todo */
}

/* 2. La carta se desliza hacia arriba */
.envelope:hover .letter {
    transform: translateY(-95px); /* Sube lo exacto para mostrar el poema */
    z-index: 5; /* Pasa al frente de todo para poder leerse */
    height: auto; /* Se expande según tu texto si es necesario */
    box-shadow: 0 10px 20px rgba(120,90,60,0.15);
}

.open-text {
    margin-top: 20px;
    font-size: 11px;
    color: #a38e80;
    font-style: italic;
    font-family: "Courier New", Courier, monospace;
}

.haiku-note {
    width: 190px;
    margin: 20px auto;
    padding: 15px;
    background: #d9ecff;
    border-radius: 6px;
    box-shadow: 2px 3px 8px rgba(0,0,0,0.12);
    text-align: center;
   font-family: "Segoe Print", cursive;
}


.haiku-note h3 {
    color: #7b8fb8;
    font-size: 13px;
    margin: 8px 0 15px;
    font-weight: normal;
}


.ribbon {
    font-size: 12px;
    letter-spacing: 3px;
}


.haiku-text {
    background: rgba(255,255,255,0.5);
    padding: 10px;
    min-height: 70px;
    border-radius: 4px;
    color: #666;
    font-size: 12px;
    line-height: 1.7;
}

.haiku-gif {
    text-align: center;
    margin-top: 20px;
}

.haiku-gif img {
    width: 225px;
    image-rendering: pixelated;
}
/* ==========================================
   PECERA MÁGICA (VERSIÓN COMPACTA PARA COLUMNA)
========================================== */
.memory-aquarium {
    margin: 20px auto;
    width: 100%;
    max-width: 280px; /* ¡Ahora es más flaquita para que encaje perfecto! */
    background: #fffdfa;
    border: 1px dashed #dcaeb2;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    box-sizing: border-box; /* Evita que el padding sume ancho extra */
    box-shadow: 0 4px 15px rgba(220, 174, 178, 0.15);
}

.aquarium-title {
    font-family: "Courier New", Courier, monospace;
    font-size: 11px; /* Letra un cachito más chiquita */
    font-weight: bold;
    color: #9b6d72;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* El contenedor del agua */
.water {
    position: relative;
    width: 100%;
    height: 240px; /* Reducido para mantener la proporción estética */
    background: linear-gradient(180deg, #e4f1f5 0%, #cae3eb 100%);
    border: 2.5px solid #b9dae3;
    border-radius: 16px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: inset 0 0 15px rgba(120, 180, 195, 0.5);
}

/* DECORACIONES INTERNAS: Pececitos de colores y Estrellas */
.water::before {
    content: "🐠    🐡\A    ✨   𓆝  🌟   "; 
    white-space: pre-wrap;
    position: absolute;
    top: 15px;
    left: 8%;
    right: 8%;
    font-size: 16px; /* Más pequeñitos para el nuevo espacio */
    opacity: 0.65;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    animation: swimDecor 12s ease-in-out infinite alternate;
}

/* Estrellitas durmiendo en el suelo */
.water::after {
    content: "⭐   🐚   ⭐";
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    font-size: 12px;
    opacity: 0.5;
    text-align: center;
    letter-spacing: 25px; /* Espaciado más corto */
    pointer-events: none;
    z-index: 1;
}

@keyframes swimDecor {
    0% { transform: translateY(0) translateX(-5px); }
    100% { transform: translateY(10px) translateX(5px); }
}

/* ==========================================
   LAS FOTOS DE LOS PECECITOS (MÁS CHIQUITAS)
========================================== */
.memory-fish {
    position: absolute;
    width: 65px; /* Reducidas de 90px a 65px para que quepan de a tres */
    height: 65px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50%; 
    box-shadow: 0 3px 8px rgba(110, 150, 160, 0.25);
    transition: transform 0.3s ease, z-index 0.1s;
    z-index: 3;
}

/* Hover adaptado */
.memory-fish:hover {
    transform: scale(1.25) !important;
    animation-play-state: paused;
    z-index: 10;
    border-color: #e8c3c7;
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

/* Posiciones reajustadas para que no se encimen en la pecera flaquita */
.fish-one {
    top: 20px;
    left: 8%;
    animation: swimOne 5s ease-in-out infinite alternate;
}

.fish-two {
    top: 75px;
    right: 8%;
    animation: swimTwo 6s ease-in-out infinite alternate;
}

.fish-three {
    bottom: 40px;
    left: 25%;
    animation: swimOne 7s ease-in-out infinite alternate-reverse;
}

@keyframes swimOne {
    0% { transform: translate(0, 0) rotate(-3deg); }
    100% { transform: translate(15px, 8px) rotate(4deg); }
}

@keyframes swimTwo {
    0% { transform: translate(0, 0) rotate(3deg); }
    100% { transform: translate(-18px, -8px) rotate(-4deg); }
}

/* ==========================================
   BURBUJAS Y PLANTITAS COMPACTAS
========================================== */
.bubble {
    position: absolute;
    color: rgba(255, 255, 255, 0.9);
    bottom: -20px;
    animation: floatUp 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.bubble-one { left: 15%; font-size: 11px; animation-duration: 4s; }
.bubble-two { left: 45%; font-size: 8px; animation-duration: 3s; }
.bubble-three { left: 75%; font-size: 13px; animation-duration: 5s; animation-delay: 1s; }

@keyframes floatUp {
    0% { bottom: -20px; transform: translateX(0); opacity: 0; }
    10% { opacity: 1; }
    100% { bottom: 260px; transform: translateX(12px); opacity: 0; }
}

.plants {
    position: absolute;
    bottom: -4px;
    width: 100%;
    text-align: center;
    font-size: 20px; /* Emojis un poquito más chicos */
    letter-spacing: 4px; /* Más juntos para que entren en la columna */
    word-spacing: 4px;
    opacity: 0.9;
    z-index: 2;
    animation: sway 3.5s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes sway {
    0% { transform: rotate(-2deg) skewX(-3deg); }
    100% { transform: rotate(2deg) skewX(3deg); }
}