:root {
    --winter-gradient: linear-gradient(to bottom, #455a64 0%, #90a4ae 50%, #eceff1 100%);
    --accent: #5c9ead;
    --dark-bar: #1a1c1e;
    --text-main: #000000;
}

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

body, html {
    min-height: 100%;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
}

/* --- ELEMENTOS DE FONDO --- */
.winter-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--winter-gradient);
    z-index: -10;
}

#snow-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -5;
}

.snowflake {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: fall linear infinite;
}

@keyframes fall { to { transform: translateY(110vh); } }

/* --- NAVEGACIÓN --- */
.top-navbar {
    background: var(--dark-bar);
    color: white;
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding: 15px 5%;
}

.bottom-footer {
    background: var(--dark-bar);
    color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px;
    text-align: center;
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a { color: white; text-decoration: none; font-weight: 600; font-size: 1.2rem; }
.nav-menu { display: flex; list-style: none; gap: 10px; }

.nav-menu button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 18px;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.nav-menu button:hover { background: var(--accent); }

/* --- SISTEMA DE PÁGINAS Y TRANSICIONES --- */
main { width: 100%; padding-top: 80px; }

.page {
    display: none;
    width: 100%;
    padding: 100px 25px 80px; 
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.page.active {
    display: block !important;
    opacity: 1;
}

.page.fading-out {
    opacity: 0;
}

.centered-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h1 { font-size: 2.5rem; margin-bottom: 25px; font-weight: 600; color: #000; }

/* --- ABOUT ME --- */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    margin: 0 auto 20px auto;
    text-align: left;
    max-width: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-image-side { flex: 0 0 300px; }
.profile-pic { width: 100%; border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.about-text-side { flex: 1; }
.bio-paragraphs p { margin-bottom: 12px; font-size: 1.1rem; line-height: 1.5; color: #000; }

.name-breakdown-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 30px;
    max-width: 1000px;
    margin: 0 auto 40px auto;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breakdown-grid { text-align: left; display: inline-block; }
.breakdown-item { margin-bottom: 8px; font-size: 1rem; }
.japanese-name { font-size: 2rem; font-weight: 600; margin: 15px 0; letter-spacing: 2px; }

/* --- FANBOX TIERS (REDIMENSIONADO A 1280x800) --- */
.tier-container {
    display: flex;
    flex-direction: row;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    width: 100%;
}

.tier-card {
    width: 550px; /* Tamaño ideal en PC */
    aspect-ratio: 1280 / 800; /* Proporción Fanbox */
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.tier-card:hover { transform: translateY(-8px); }

.tier-1 { background: url('https://raw.githubusercontent.com/GrampyBear/GrampyBear.github.io/31564f66d6e7ec6b8de963b465b283048908e272/FANBOX%20Card%20Tier%201%20-%20no%20text.png') center/cover; }
.tier-2 { background: url('https://raw.githubusercontent.com/GrampyBear/GrampyBear.github.io/31564f66d6e7ec6b8de963b465b283048908e272/FANBOX%20Card%20Tier%202%20-%20no%20text.png') center/cover; }

.tier-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: #ffffff !important;
}

.price { font-size: 2.2rem; font-weight: 700; color: #bde0fe; text-shadow: 0px 0px 15px rgba(189, 224, 254, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.5); }
.benefits { list-style: none; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.3); padding-top: 10px; }
.benefits li::before { content: "✦"; margin-right: 8px; color: var(--accent); }

/* --- BOTONES --- */
.main-cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 20px;
    transition: 0.3s;
}

.main-cta-button:hover { background: var(--accent); }

.social-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 20px; }
.social-btn { background: #000; color: #fff; padding: 10px; text-decoration: none; border-radius: 8px; text-align: center; transition: 0.3s; }
.social-btn:hover { background: var(--accent); }

/* --- RESPONSIVE --- (Optimizado para que en móvil también se vea pro) */
@media (max-width: 900px) {
    /* Ajuste del margen superior en móvil para no dejar tanto hueco */
    .page { padding: 110px 15px 100px; }

    /* El "About Me" se apila verticalmente y se centra */
    .about-container { 
        flex-direction: column; 
        padding: 25px; 
        text-align: center; 
        gap: 20px;
    }
    
    .about-image-side { 
        flex: 0 0 auto; 
        max-width: 180px; /* Foto de perfil un poco más pequeña en móvil */
    }

    /* LAS TARJETAS EN MÓVIL: */
    .tier-container { 
        flex-direction: column; 
        align-items: center; 
        gap: 20px;
    }

    .tier-card { 
        width: 100%; 
        max-width: 350px; /* No deja que la tarjeta sea gigante a lo ancho */
        aspect-ratio: auto; /* Quitamos la proporción fija de PC para que no se vea aplastada */
        height: 400px; /* Le damos una altura fija cómoda para leer los beneficios */
    }

    .tier-content h3 { font-size: 1.2rem; }
    .price { font-size: 1.8rem; }
    
    .nav-menu { gap: 5px; }
    .nav-menu button { padding: 6px 10px; font-size: 0.7rem; }
}

.subtitle { margin-bottom: 50px; }

#welcome-phrase {
    font-size: 1.1rem; /* Un poco más grande para legibilidad */
    font-style: italic;
    color: #000000;
    display: inline-block;
}

/* Comilla de apertura */
#welcome-phrase::before {
    content: '“';
    font-size: 1.5rem; /* Tamaño proporcional al texto */
    color: #000000;
    opacity: 0.5;
    font-family: serif;
    margin-right: 8px; /* Espacio entre comilla y texto */
    vertical-align: middle; /* Las alinea al centro de la letra */
}

/* Comilla de cierre */
#welcome-phrase::after {
    content: '”';
    font-size: 1.5rem;
    color: #000000;
    opacity: 0.5;
    font-family: serif;
    margin-left: 8px; /* Espacio entre texto y comilla */
    vertical-align: middle;
}

.profile-pic {
    width: 100%;
    aspect-ratio: 1 / 1; /* Fuerza a que sea un cuadrado perfecto */
    object-fit: cover;   /* Corta los bordes sobrantes sin deformar la imagen */
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}






/* --- SECCIÓN DE COMISIONES (CONTENEDOR ESTILO ABOUT ME) --- */
.commissions-section {
    background: rgba(255, 255, 255, 0.1); /* Estilo glassmorphism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin: 50px auto;
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* --- STATUS DE COMISIONES CON CONTRASTE --- */
.status-wrapper {
    margin-top: 25px; 
    margin-bottom: 45px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 1.1rem;
    
    /* Cápsula de contraste para legibilidad sobre el fondo */
    background: rgba(0, 0, 0, 0.4); 
    padding: 8px 25px;
    border-radius: 50px; 
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.status-open { 
    color: #3dfc89 !important; /* Verde Neón */
    text-shadow: 0 0 12px rgba(61, 252, 137, 0.6); 
}

.status-closed { 
    color: #ff5e4d !important; /* Rojo Neón */
    text-shadow: 0 0 12px rgba(255, 94, 77, 0.6); 
}

/* --- LISTA Y TARJETAS --- */
.commission-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 35px; /* Espacio entre tarjetas */
    align-items: center;
}

.comm-card {
    display: flex;
    width: 100%;
    max-width: 750px;
    height: 160px; /* Altura fija para consistencia */
    background: rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.comm-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.35);
}

/* --- PREVIEW MINIATURA (SOLUCIÓN DE RELLENO) --- */
.comm-preview-container {
    width: 220px;
    min-width: 220px;
    height: 100%; /* Ocupa el alto total de la tarjeta */
    background: #000;
    overflow: hidden;
    position: relative;
}

/* Ajuste vital para que la imagen toque bordes superior e inferior */
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
}

.preview-img {
    width: 100%;
    height: 100%;       /* Toca bordes arriba y abajo */
    display: block;      /* Elimina espacios de texto */
    object-fit: cover;   /* RELLENA el recuadro sin deformar */
    object-position: center; 
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

.preview-img:hover {
    transform: scale(1.1);
}

/* --- INFORMACIÓN DE TEXTO --- */
.comm-info {
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el texto verticalmente */
    text-align: left;
}

.comm-info h4 {
    font-size: 1.3rem;
    margin: 0 0 12px 0;
    font-family: 'Courier New', monospace;
    color: white;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bullet-list li {
    font-size: 0.95rem;
    margin-bottom: 6px;
    position: relative;
    padding-left: 20px;
    opacity: 0.85;
}

.bullet-list li::before {
    content: "●"; /* Viñeta redonda */
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    color: white;
}

/* --- LIGHTBOX (VISTA EN GRANDE) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Aquí NO se recorta, se ve completo */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
}

/* --- RESPONSIVE --- */
@media (max-width: 650px) {
    .comm-card {
        flex-direction: column;
        height: auto;
    }
    .comm-preview-container {
        width: 100%;
        height: 200px;
    }
}

/* --- NAVEGACIÓN DEL LIGHTBOX --- */

/* Contenedor de las flechas: ocupa todo el ancho pero deja pasar clics a la imagen */
.lb-nav-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
    pointer-events: none; /* Importante para no bloquear el clic de cierre del fondo */
    z-index: 100001;
}

/* Estilo de las flechas individuales */
.lb-arrow {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.4); /* Color tenue por defecto */
    cursor: pointer;
    pointer-events: auto; /* Reactiva el clic solo en la flecha */
    user-select: none;
    transition: all 0.3s ease;
    padding: 10px;
}

/* Efecto al pasar el mouse (usa tu verde neón) */
.lb-arrow:hover {
    color: #3dfc89; 
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(61, 252, 137, 0.6);
}

/* Ajuste para que las flechas no se peguen al borde en móviles */
@media (max-width: 600px) {
    .lb-arrow {
        font-size: 40px;
        padding: 5px;
    }
    .lb-nav-container {
        padding: 0 10px;
    }
}


/* --- ESTILO FINAL CON LETRA REDUCIDA --- */

.note-card {
    display: flex;
    flex-direction: column;
    background: #343a40; 
    border-radius: 25px;
    border: 2px solid #ff4d4d; /* Borde rojo */
    height: auto; 
    min-height: 250px;
    padding: 30px 40px; /* Un poco menos de padding vertical */
    margin: 20px auto;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.note-icon-side {
    color: rgba(255, 255, 255, 0.6);
    font-family: sans-serif;
    font-size: 0.75rem; /* Letra de "NOTAS" más pequeña */
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

.tos-header {
    font-family: 'Courier New', monospace;
    color: #3dfc89; 
    text-align: center;
    font-size: 1.4rem; /* Reducido de 2rem */
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.tos-list {
    list-style: none;
    padding: 0;
    margin-top: 5px;
}

.tos-list li {
    color: #ffffff;
    font-size: 0.88rem; /* Tamaño más pequeño y legible (estándar de notas) */
    line-height: 1.5;   /* Interlineado cómodo */
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    text-align: left;
}

.tos-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3dfc89;
    font-weight: bold;
    font-size: 1.1rem;
}

.tos-list li strong {
    color: #ffffff;
    font-weight: 700;
}


/* --- BOTÓN ABYSSAL --- */

.abyssal-container {
    text-align: center; /* Lo centra horizontalmente */
    margin-top: 25px;
    padding-top: 15px;
}

.abyssal-button {
    display: inline-block;
    background-color: #000000; /* Negro puro */
    color: #32612e; /* Verde lima oscuro/apagado */
    padding: 10px 30px;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 4px;
    border: 1px solid #1a2e18; /* Borde muy sutil */
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Efecto al pasar el mouse (hover) */
.abyssal-button:hover {
    color: #3dfc89; /* Se ilumina al verde lima brillante de tus títulos */
    box-shadow: 0 0 15px rgba(61, 252, 137, 0.2);
    transform: translateY(-2px);
    background-color: #050505;
}


/* --- BOTÓN DE CONTACTO PÁGINA PRINCIPAL --- */

.main-contact-container {
    text-align: center;
    margin: 40px auto;
    width: 90%;
    max-width: 900px;
}

.main-contact-btn {
    display: inline-block;
    background-color: #1a1a1a; /* Negro suave */
    color: #ffffff;
    padding: 18px 50px;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 3px;
    border: 2px solid #333; /* Borde discreto inicial */
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.main-contact-btn:hover {
    color: #ffffff;
    border-color: #ff4d4d; /* Rojo de tus TOS */
    background-color: #1a1a1a;
    box-shadow: 0 0 25px rgba(255, 77, 77, 0.4);
    transform: translateY(-3px);
    letter-spacing: 5px; /* Se expande ligeramente */
}

/* Efecto activo al hacer clic */
.main-contact-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.6);
}

/* --- NUEVA SECCIÓN PATREON (AÑADIDA) --- */
.patreon-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-top: 30px;
    width: 100%;
}

.patreon-card {
    width: 380px;
    min-height: 480px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
}

.patreon-card:hover { 
    transform: translateY(-12px); 
    filter: brightness(1.1); 
}

/* TIER 1: Celeste y Verde Suave (Efecto Aurora) */
.tier-patreon-1 {
    background: linear-gradient(to bottom, rgba(178, 235, 242, 0.4), rgba(165, 214, 167, 0.4));
    border: 2px solid #80deea;
    box-shadow: 0 0 20px rgba(128, 222, 234, 0.2);
}

/* TIER 2: Cielo Nocturno / Azul Profundo */
.tier-patreon-2 {
    background: linear-gradient(to bottom, rgba(41, 128, 185, 0.4), rgba(109, 213, 250, 0.4));
    border: 2px solid #6dd5fa;
    box-shadow: 0 0 20px rgba(109, 213, 250, 0.2);
}

/* TIER 3: Galaxia / Morado Místico */
.tier-patreon-3 {
    background: linear-gradient(to bottom, rgba(43, 8, 82, 0.5), rgba(138, 43, 226, 0.4), rgba(75, 0, 130, 0.5));
    border: 2px solid #8a2be2;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.3);
}

.patreon-content {
    padding: 35px 30px;
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.patreon-content h3 { 
    font-size: 1.5rem; 
    margin-bottom: 10px; 
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4); 
    color: #fff !important;
}

.patreon-price { 
    font-size: 2.8rem; 
    font-weight: 700; 
    color: #ffffff; 
    margin-bottom: 10px; 
}

.patreon-price span { 
    font-size: 1rem; 
    opacity: 0.9; 
    margin-left: 5px; 
}

.patreon-desc { 
    color: #ffffff; 
    font-size: 0.95rem; 
    margin-bottom: 25px; 
    font-style: italic; 
    min-height: 50px;
}

.patreon-benefits { 
    list-style: none; 
    font-size: 0.9rem; 
    border-top: 1px solid rgba(255,255,255,0.3); 
    padding-top: 20px; 
}

.patreon-benefits li { 
    margin-bottom: 12px; 
    position: relative; 
    padding-left: 25px; 
    color: #fff;
}

.patreon-benefits li::before { 
    content: "✦"; 
    position: absolute; 
    left: 0; 
    color: #fff; 
}

/* Ajuste específico para el contenedor de botones en Patreon */
#patreon .cta-wrapper {
    margin-bottom: 50px;
}

/* --- RESPONSIVE ADICIONAL PARA PATREON --- */
@media (max-width: 900px) {
    .patreon-card {
        width: 100%;
        max-width: 350px;
        min-height: auto;
    }
}
