@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    background: url('https://i.pinimg.com/736x/40/fb/f2/40fbf20609fd70acb424dbf727b59de4.jpg') center center;
    background-size: cover;
    background-attachment: fixed;
    background-color: #400000;
    color: #1a0000;
    line-height: 1.6;
    cursor: url('arrow.cur'), auto;
}

/* Cursor para enlaces y botones */
a, button, .cute-btn, .nav-list a {
    cursor: url('hand.cur'), pointer;
}

/* Cursor para campos de texto */
input, textarea {
    cursor: url('text.cur'), text;
}

/* Header con patrón */
.header-pattern {
    background: rgba(255, 200, 200, 0.95);
    border: 5px solid #650002;
    border-top: 0;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(101, 0, 2, 0.6);
    position: relative;
}

.header-pattern::before {
    content: '✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿';
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: #650002;
}

.header-content {
    background: rgba(255, 255, 255, 0.95);
    border: 3px dashed #8D0004;
    padding: 1.5rem;
    display: inline-block;
    transform: rotate(-1deg);
}

.header-content h1 {
    font-size: 3rem;
    color: #A80001;
    text-shadow: 3px 3px 0px #650002;
    letter-spacing: 3px;
    animation: rainbow 3s infinite;
}

@keyframes rainbow {
    0% { color: #A80001; }
    25% { color: #8D0004; }
    50% { color: #650002; }
    75% { color: #8D0004; }
    100% { color: #A80001; }
}

.subtitle {
    font-size: 1.2rem;
    color: #650002;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Contenedor principal con layout */
.main-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-box {
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #650002;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 5px 5px 0px rgba(101, 0, 2, 0.5);
}

.sidebar-box h2 {
    text-align: center;
    color: #A80001;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 2px dotted #650002;
    padding-bottom: 0.5rem;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin: 0.8rem 0;
}

.nav-list a {
    display: block;
    padding: 0.5rem;
    background: linear-gradient(135deg, #ffc9c9 0%, #ffb5b5 100%);
    border: 2px solid #8D0004;
    border-radius: 10px;
    color: #400000;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-list a:hover {
    background: linear-gradient(135deg, #A80001 0%, #8D0004 100%);
    color: #fff;
    transform: scale(1.05) rotate(-2deg);
}

/* Widget de música */
.music-widget {
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, #ffb5b5 0%, #ffc9c9 100%);
    border: 2px dashed #8D0004;
    border-radius: 10px;
}

.music-bar {
    width: 100%;
    height: 10px;
    background: #fff;
    border: 2px solid #650002;
    border-radius: 5px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.music-progress {
    height: 100%;
    background: linear-gradient(90deg, #A80001 0%, #8D0004 100%);
    width: 0%;
    transition: width 0.2s linear;
}

/* Contenido principal */
.content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* Boxes y tarjetas */
.box {
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #650002;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 5px 5px 0px rgba(101, 0, 2, 0.5);
    position: relative;
}

.box::before {
    content: '✿';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 2rem;
    color: #A80001;
    background: #fff;
    padding: 0 5px;
}

.box h2, .box h3 {
    color: #A80001;
    text-align: center;
    margin-bottom: 1rem;
}

.box h2 {
    font-size: 2rem;
}

.box h3 {
    font-size: 1.5rem;
}

.welcome-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 201, 201, 0.95) 100%);
    border: 5px double #650002;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(168, 0, 1, 0.5);
}

.welcome-box h2 {
    font-size: 1.8rem;
    color: #650002;
    margin-bottom: 1rem;
}

/* Grid de contenido */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

/* Botones cute */
.cute-btn {
    background: linear-gradient(135deg, #A80001 0%, #8D0004 100%);
    border: 3px solid #650002;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-family: 'Comic Neue', cursive;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 1rem auto 0;
    transition: all 0.3s ease;
}

.cute-btn:hover {
    background: linear-gradient(135deg, #650002 0%, #4B0000 100%);
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 5px 15px rgba(168, 0, 1, 0.6);
}

/* Blog */
.blog-preview, .blog-item {
    margin: 1rem 0;
}

.blog-item {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    border-left: 5px solid #8b0000;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.blog-item h4 {
    color: #650002;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.date {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin-bottom: 0.5rem;
}

.blog-post {
    background: rgba(255, 255, 255, 0.95);
    border: 3px dashed #8b0000;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 15px;
}

.blog-post h3 {
    color: #8b0000;
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Galería de fotos */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.photo-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    border: 3px solid #650002;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.6);
}

/* Galería de arte */
.art-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.art-item {
    text-align: center;
}

.art-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #8b0000 0%, #c41e3a 50%, #8b0000 100%);
    border: 4px solid #650002;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.art-placeholder:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.8);
}

.art-item p {
    font-style: italic;
    color: #8b0000;
    font-weight: bold;
}

/* Playlist */
.playlist {
    margin-top: 1rem;
}

.track {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    border: 2px solid #8b0000;
    border-radius: 10px;
    padding: 0.8rem;
    margin: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track:hover {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    color: #fff;
    transform: translateX(10px);
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    border: 5px solid #650002;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 -5px 15px rgba(101, 0, 2, 0.4);
}

footer p {
    margin: 0.5rem 0;
    color: #2d1b2e;
}

footer a {
    color: #8b0000;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #c41e3a;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .art-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animación adicional */
@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.sidebar-box:hover {
    animation: blink 1s ease-in-out;
}

/* === SLIDER DE CÁMARA FLOTANTE === */
.camera-container-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 400px;
    max-width: 90vw;
    z-index: 1000;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.camera-frame {
    position: relative;
    width: 100%;
    height: auto;
}

.camera-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.camera-screen {
    position: absolute;
    top: 17%;
    left: 7.5%;
    width: 44%;
    height: 52%;
    background: #000;
    overflow: hidden;
    border: 1px solid #222;
    border-radius: 2px;
}

.photo-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.photo-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #fff;
    font-size: 1.8rem;
}

.slider-controls {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 10;
}

.slider-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #fff;
    width: 12px;
    border-radius: 2.5px;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 2px;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.6);
}

.nav-button.prev {
    left: 3px;
}

.nav-button.next {
    right: 3px;
}

.photo-info {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.15rem 0.25rem;
    font-size: 0.5rem;
    border-radius: 2px;
    z-index: 10;
}

.sparkle {
    position: absolute;
    color: #fff;
    font-size: 1.5rem;
    animation: sparkle 2s infinite;
    pointer-events: none;
    z-index: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.sparkle:nth-child(1) { top: 5%; left: 5%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 10%; right: 10%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { bottom: 15%; left: 15%; animation-delay: 1s; }
.sparkle:nth-child(4) { bottom: 10%; right: 8%; animation-delay: 1.5s; }

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* Responsive para cámara flotante */
@media (max-width: 768px) {
    .camera-container-float {
        width: 300px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .photo-placeholder {
        font-size: 1.5rem;
    }
    
    .nav-button {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}