/* ==========================================================================
   1. RESET & VARIABLES GLOBALES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5efec;
    background-image: url("https://i.pinimg.com/736x/87/53/c1/8753c1d4fe43ae2240b0a45765dd9376.jpg");
    background-size: 360px 250px;
    font-family: 'IBM Plex Mono', monospace;
    color: #9e8686;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Previene que se pegue a los bordes en pantallas chicas */
}

/* ==========================================================================
   2. ESTRUCTURA PRINCIPAL (CONTENEDORES)
   ========================================================================== */
.page {
    width: 100%;
    max-width: 900px;
    margin: auto;
}

.main {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.window {
    width: 100%;
    max-width: 700px;
    background: #f1e8e6;
    border: 1px solid #ddd1cf;
    box-shadow: 0 0 40px rgba(170,140,140,0.08);
    position: relative;
}

/* ==========================================================================
   3. COMPONENTES DE LA INTERFAZ (VENTANA)
   ========================================================================== */
.topbar {
    border-bottom: 1px solid #ddd1cf;
    padding: 10px 15px;
    font-size: 11px;
    letter-spacing: 2px;
    color: #b49a9a;
    background: rgba(255, 255, 255, 0.3);
}

.content {
    padding: 55px;
    text-align: center;
}

.icon {
    width: 130px;
    margin-bottom: 18px;
    opacity: 0.95;
    image-rendering: pixelated;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 300;
    color: #8f6f6f;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-align: center;
}

/* Estilo alternativo por si usas h1 fuera de la ventana principal */
.page h1 {
    font-size: 55px;
    font-weight: 400;
    margin-bottom: 50px;
}

p {
    font-size: 12px;
    line-height: 2;
    max-width: 430px;
    margin: auto;
    color: #ab9393;
}

.divider {
    width: 120px;
    height: 1px;
    background: #d8c5c5;
    margin: 35px auto;
}

/* ==========================================================================
   4. MENÚ DE NAVEGACIÓN
   ========================================================================== */
.menu {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 28px;
}

.menu a {
    text-decoration: none;
    color: #9eb4af;
    font-size: 12px;
    transition: 0.2s;
}

.menu a:hover {
    color: #c48f8f;
    letter-spacing: 1px;
}

.tiny {
    font-size: 10px;
    color: #bba8a8;
    opacity: 0.8;
}

/* ==========================================================================
   5. SECCIÓN DE REJILLA (GRID & CARDS)
   ========================================================================== */
.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b89d9d;
    display: block;
    margin-bottom: 25px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.card {
    background: #f1e8e6;
    border: 1px solid #ddd1cf;
    padding: 12px;
    transition: 0.25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    margin-bottom: 10px;
    filter: saturate(0.9);
}

.card p {
    font-size: 11px;
    text-align: center;
    letter-spacing: 1px;
}

/* ==========================================================================
   6. REPRODUCTOR DE VINILO (WIDGET FLOTANTE)
   ========================================================================== */
.vinyl-player {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 999;
}

.record {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at center,
        #f5e8e8 5%,
        #151515 7%,
        #111 25%,
        #1b1b1b 45%,
        #111 65%,
        #222 85%,
        #111 100%
    );
    border: 2px solid #d8c7c7;
    animation: spin 5s linear infinite;
    box-shadow: 0 0 18px rgba(0,0,0,0.12);
}

/* PORTADA DEL VINILO */
.record .cover {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    /* Corregido: Usamos márgenes negativos en lugar de transform 
       para evitar que la animación 'spin' rompa el centrado */
    margin-top: -17px;
    margin-left: -17px;
    object-fit: cover;
    border: 2px solid #efe4e4;
}

/* AGUJERITO CENTRAL */
.record::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: #f8f1f1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin-top: -3px;
    margin-left: -3px;
    z-index: 3;
}

audio {
    width: 120px;
    height: 20px;
    opacity: 0.4;
}

/* ANIMACIÓN */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.top-links{

    display:flex;

    gap:18px;

    margin-bottom:40px;

    font-size:11px;

    letter-spacing:1px;
}

.top-links a{

    text-decoration:none;

    color:#9f8b8b;

    transition:0.2s;

    position:relative;
}

.top-links a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-2px;

    width:0%;

    height:1px;

    background:#b99c9c;

    transition:0.3s;
}

.top-links a:hover::after{

    width:100%;
}

