* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d1b3d 50%, #1a1a2e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow-x: hidden;
}

.terminal-container {
    width: 100%;
    max-width: 900px;
    background: #0d1117;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 90vh;
    max-height: 700px;
}

.terminal-header {
    background: linear-gradient(180deg, #21262d 0%, #161b22 100%);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    color: #c9d1d9;
    font-size: 13px;
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.terminal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #0d1117;
    color: #c9d1d9;
    font-size: 14px;
    line-height: 1.6;
    max-width: 100%;
    box-sizing: border-box;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #161b22;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

.welcome-message {
    margin-bottom: 20px;
}

.welcome-message pre {
    color: #ff79c6;
    font-size: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.welcome-message p {
    margin: 10px 0;
    color: #c9d1d9;
}

.command-hint {
    color: #50fa7b;
    font-weight: bold;
}

.command-line {
    margin: 10px 0;
    word-wrap: break-word;
}

.command-input {
    color: #50fa7b;
}

.command-output {
    color: #c9d1d9;
    margin-top: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.command-error {
    color: #ff5555;
}

.command-success {
    color: #50fa7b;
}

.command-love {
    color: #ff79c6;
    font-style: italic;
    padding: 15px;
    background: rgba(255, 121, 198, 0.1);
    border-left: 3px solid #ff79c6;
    margin: 10px 0;
    border-radius: 4px;
    animation: fadeIn 0.5s ease-in;
}

.command-date {
    color: #bd93f9;
}

.command-history-item {
    color: #8be9fd;
    margin: 5px 0;
    padding-left: 20px;
}

.terminal-input-container {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #161b22;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt {
    color: #50fa7b;
    margin-right: 10px;
    font-weight: bold;
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #c9d1d9;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    outline: none;
    caret-color: #50fa7b;
}

.terminal-input::placeholder {
    color: #484f58;
}

.help-command {
    margin: 15px 0;
    padding: 10px;
    background: rgba(80, 250, 123, 0.05);
    border-left: 3px solid #50fa7b;
    border-radius: 4px;
}

.help-command strong {
    color: #50fa7b;
    display: inline-block;
    min-width: 120px;
}

.help-command span {
    color: #c9d1d9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid #ff79c6;
    white-space: nowrap;
    animation: typewriter 2s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #ff79c6;
    }
}

.heart {
    color: #ff79c6;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Responsive para móvil */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    .terminal-container {
        height: 95vh;
        max-height: none;
        border-radius: 0;
    }

    .terminal-header {
        padding: 8px 10px;
    }

    .terminal-title {
        font-size: 11px;
    }

    .terminal-body {
        padding: 15px;
        font-size: 13px;
    }

    .welcome-message pre {
        font-size: 10px;
    }

    .terminal-input-container {
        padding: 10px;
    }

    .prompt {
        font-size: 12px;
        margin-right: 5px;
    }

    .terminal-input {
        font-size: 13px;
    }

    .help-command strong {
        min-width: 100px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .terminal-body {
        font-size: 12px;
        padding: 10px;
    }

    .welcome-message pre {
        font-size: 8px;
    }

    .help-command strong {
        min-width: 80px;
        display: block;
        margin-bottom: 5px;
    }
}

/* Estilos para las fotos */
.fotos-gallery {
    margin: 20px 0;
    animation: fadeIn 0.5s ease-in;
}

.gallery-header {
    text-align: center;
    margin-bottom: 20px;
    color: #ff79c6;
}

.gallery-header h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ff79c6;
}

.gallery-header p {
    color: #c9d1d9;
    font-size: 14px;
}

.fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
    max-width: 100%;
    overflow: hidden;
}

@media (min-width: 769px) {
    .fotos-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        max-width: 100%;
        gap: 20px;
    }
}

.foto-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #161b22;
}

.foto-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 121, 198, 0.4);
}

.foto-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.foto-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.foto-item:hover .foto-overlay {
    opacity: 1;
}

.foto-number {
    color: #ff79c6;
    font-size: 12px;
    font-weight: bold;
}

.gallery-footer {
    text-align: center;
    margin-top: 20px;
    color: #c9d1d9;
    font-size: 12px;
}

.gallery-footer p {
    margin: 5px 0;
}

.foto-container {
    margin: 20px 0;
    animation: fadeIn 0.5s ease-in;
    max-width: 100%;
    overflow: hidden;
}

.foto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.foto-title {
    color: #ff79c6;
    font-size: 16px;
    font-weight: bold;
}

.foto-controls {
    display: flex;
    gap: 10px;
}

.foto-btn {
    background: rgba(255, 121, 198, 0.2);
    border: 1px solid #ff79c6;
    color: #ff79c6;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    transition: all 0.3s ease;
}

.foto-btn:hover {
    background: rgba(255, 121, 198, 0.4);
    transform: translateY(-2px);
}

.foto-wrapper {
    background: #161b22;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 121, 198, 0.2);
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.foto-display {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in;
    object-fit: contain;
}

.foto-message {
    text-align: center;
    margin-top: 15px;
    color: #ff79c6;
    font-style: italic;
}

.foto-message p {
    margin: 5px 0;
}

.foto-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.nav-btn {
    background: rgba(255, 121, 198, 0.2);
    border: 1px solid #ff79c6;
    color: #ff79c6;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
}

.nav-btn:hover:not(.disabled) {
    background: rgba(255, 121, 198, 0.4);
    transform: scale(1.1);
}

.nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-info {
    color: #c9d1d9;
    font-size: 14px;
    font-weight: bold;
}

/* Responsive para fotos - Desktop */
@media (min-width: 769px) {
    .foto-display {
        max-width: 100%;
        width: auto;
        max-height: 450px;
        max-width: 600px;
        object-fit: contain;
    }

    .foto-wrapper {
        max-width: 100%;
        margin: 0 auto;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .foto-container {
        max-width: 100%;
        overflow: hidden;
        width: 100%;
    }

    .fotos-grid {
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .fotos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .foto-item img {
        height: 120px;
    }

    .foto-title {
        font-size: 14px;
    }

    .foto-btn {
        padding: 4px 10px;
        font-size: 11px;
    }

    .foto-display {
        max-height: 50vh;
        max-width: 100%;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .fotos-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .foto-item img {
        height: 100px;
    }

    .foto-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .foto-controls {
        width: 100%;
        justify-content: center;
    }

    .foto-display {
        max-height: 40vh;
        max-width: 100%;
        object-fit: contain;
    }
    
    .foto-wrapper {
        max-width: 100%;
        overflow: hidden;
    }
    
    .foto-container {
        max-width: 100%;
        overflow: hidden;
    }

    .foto-wrapper {
        padding: 10px;
    }

    .foto-nav {
        gap: 15px;
    }

    .nav-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Estilos para las canciones */
.canciones-container {
    margin: 20px 0;
    animation: fadeIn 0.5s ease-in;
}

.canciones-header {
    text-align: center;
    margin-bottom: 20px;
    color: #ff79c6;
}

.canciones-header h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #ff79c6;
}

.canciones-header p {
    color: #c9d1d9;
    font-size: 14px;
}

.canciones-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.cancion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #161b22;
    border-radius: 8px;
    border: 1px solid rgba(255, 121, 198, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancion-item:hover {
    background: rgba(255, 121, 198, 0.1);
    border-color: #ff79c6;
    transform: translateX(5px);
}

.cancion-icon {
    font-size: 24px;
    color: #ff79c6;
}

.cancion-info {
    flex: 1;
}

.cancion-title {
    color: #ff79c6;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.cancion-artista {
    color: #c9d1d9;
    font-size: 12px;
}

.cancion-arrow {
    color: #ff79c6;
    font-size: 18px;
}

.canciones-footer {
    text-align: center;
    margin-top: 20px;
    color: #c9d1d9;
    font-size: 12px;
}

.canciones-footer p {
    margin: 5px 0;
}

.cancion-container {
    margin: 20px 0;
    animation: fadeIn 0.5s ease-in;
}

.cancion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 121, 198, 0.2);
    flex-wrap: wrap;
    gap: 15px;
}

.cancion-header-info {
    flex: 1;
}

.cancion-titulo-display {
    color: #ff79c6;
    font-size: 20px;
    margin-bottom: 5px;
}

.cancion-meta {
    color: #c9d1d9;
    font-size: 14px;
}

.cancion-back-btn {
    background: rgba(255, 121, 198, 0.2);
    border: 1px solid #ff79c6;
    color: #ff79c6;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    transition: all 0.3s ease;
}

.cancion-back-btn:hover {
    background: rgba(255, 121, 198, 0.4);
    transform: translateY(-2px);
}

.cancion-letra-container {
    background: #161b22;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid rgba(255, 121, 198, 0.2);
    max-width: 100%;
}

.cancion-letra {
    color: #c9d1d9;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-line;
    margin-bottom: 20px;
}

.cancion-letra p {
    margin: 8px 0;
    color: #c9d1d9;
}

.cancion-message {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 121, 198, 0.2);
    color: #ff79c6;
    font-style: italic;
}

.cancion-message p {
    margin: 8px 0;
    color: #ff79c6;
}

/* Responsive para canciones */
@media (max-width: 768px) {
    .cancion-titulo-display {
        font-size: 18px;
    }

    .cancion-letra {
        font-size: 14px;
        padding: 20px;
    }

    .cancion-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cancion-back-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cancion-item {
        padding: 12px;
        gap: 10px;
    }

    .cancion-icon {
        font-size: 20px;
    }

    .cancion-title {
        font-size: 14px;
    }

    .cancion-artista {
        font-size: 11px;
    }

    .cancion-letra {
        font-size: 13px;
        padding: 15px;
    }

    .cancion-titulo-display {
        font-size: 16px;
    }
}
