:root {
    --bg-color: #0d0d0f;
    --surface-color: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.09);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    
    --accent-color: #FF0073; 
    --twitch-color: #9146FF; /* Color oficial de Twitch */
    --tipsy-gold: #FFE259;
    --tipsy-orange: #FF7A00;
    --tipsy-accent: #FFB703;
    
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-display: 'Unbounded', 'Akira Expanded', -apple-system, sans-serif;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@font-face {
    font-family: 'Akira Expanded';
    src: url('akira_expanded/akira_expanded/Akira Expanded Demo.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    overflow-x: hidden;
    /* Eliminamos el padding top y bottom en escritorio para que la caja parezca un teléfono perfecto */
    -webkit-font-smoothing: antialiased;
}

/* Fondo Mesh Animado */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: var(--bg-color);
    pointer-events: none;
    overflow: hidden;
}

.moving-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px); /* Muy borroso para que parezca una iluminación lejana */
    opacity: 0.12; /* Sutil */
    background: var(--accent-color);
    animation: floatingGlow 20s infinite ease-in-out alternate;
}

.glow-1 {
    width: 45vw;
    height: 45vw;
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.glow-2 {
    width: 55vw;
    height: 55vw;
    bottom: -10%;
    right: -15%;
    animation-delay: -7s;
    opacity: 0.08; /* Ligeramente más tenue */
}

.glow-3 {
    width: 35vw;
    height: 35vw;
    top: 60%;
    left: 40%;
    animation-delay: -14s;
    opacity: 0.1;
}

@keyframes floatingGlow {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.15); }
    66% { transform: translate(-30px, 40px) scale(0.85); }
    100% { transform: translate(50px, 20px) scale(1.05); }
}

/* Contenedor tipo "Móvil" */
.beacons-container {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Sombras sutiles en los bordes para cuando se ve en PC */
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    background-color: var(--bg-color);
    position: relative;
    padding-bottom: 2rem;
}

/* --- SECCIÓN HERO (Video) --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 380px; /* Altura del encabezado del video */
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el video llene el área sin distorsionarse */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    bottom: -1px; /* Evitar líneas finas por sub-píxeles */
    left: 0;
    width: 100%;
    height: 180px; /* Altura del desvanecimiento */
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 95%);
    z-index: 2;
}

/* --- CABECERA DE PERFIL --- */
.profile-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    /* Subimos el texto hacia arriba para que caiga sobre el degradado del video */
    margin-top: -80px; 
    padding: 0 1.5rem;
}

.name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8); /* Para legibilidad sobre el video */
}

.bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 90%;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Redes Sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.2rem;
    flex-wrap: wrap; /* En caso de que haya muchas redes */
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    /* Eliminado backdrop-filter para evitar el bug del borde brillante superior */
}

.social-btn:hover, .social-btn:active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

/* --- CONTENEDOR DE BLOQUES --- */
.blocks-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem 1.25rem 0;
    position: relative;
    z-index: 3;
}

/* Bloques Genéricos */
.beacons-block {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.block-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.block-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

/* Bloque de Spotify */
.spotify-block {
    padding: 0;
    background: transparent;
    border: none;
    overflow: hidden;
    /* Ajuste para que el iframe se vea perfecto */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.spotify-block iframe {
    display: block;
    background: transparent;
}

/* --- BLOQUE PREMIUM DE TWITCH --- */
.twitch-premium-card {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(145, 70, 255, 0.2);
    background: rgba(145, 70, 255, 0.05);
    box-shadow: 0 4px 20px rgba(145, 70, 255, 0.1);
}

.twitch-premium-card:hover {
    transform: translateY(-3px);
    border-color: rgba(145, 70, 255, 0.5);
    box-shadow: 0 8px 30px rgba(145, 70, 255, 0.25);
    background: rgba(145, 70, 255, 0.08);
}

.twitch-premium-card:active {
    transform: scale(0.97);
}

.twitch-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(145, 70, 255, 0.15) 0%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.twitch-card-content {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    position: relative;
    z-index: 2;
    gap: 1rem;
}

.twitch-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--twitch-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(145, 70, 255, 0.4);
}

.twitch-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.twitch-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.twitch-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.3;
}

.twitch-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.twitch-premium-card:hover .twitch-badge {
    background: var(--text-primary);
    color: var(--twitch-color);
}

/* --- BLOQUE TIPSY CODE --- */
.tipsy-premium-card {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 183, 3, 0.25);
    background: rgba(255, 183, 3, 0.05);
    box-shadow: 0 4px 20px rgba(255, 122, 0, 0.08);
    cursor: pointer;
}

.tipsy-premium-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 183, 3, 0.6);
    box-shadow: 0 8px 30px rgba(255, 122, 0, 0.25);
    background: rgba(255, 183, 3, 0.08);
}

.tipsy-premium-card:active {
    transform: scale(0.97);
}

.tipsy-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(255, 150, 0, 0.18) 0%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.tipsy-card-content {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    position: relative;
    z-index: 2;
    gap: 1rem;
}

.tipsy-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tipsy-gold) 0%, var(--tipsy-orange) 100%);
    color: #0d0d0f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(255, 122, 0, 0.45);
}

.tipsy-icon-wrapper svg {
    stroke: #0d0d0f;
}

.tipsy-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tipsy-header-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
    flex-wrap: wrap;
}

.tipsy-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.tipsy-discount-tag {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 226, 89, 0.2), rgba(255, 122, 0, 0.25));
    border: 1px solid rgba(255, 183, 3, 0.5);
    color: var(--tipsy-gold);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.tipsy-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.3;
}

.tipsy-code-highlight {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--tipsy-gold) 0%, #FFA751 50%, var(--tipsy-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tipsy-action {
    display: flex;
    align-items: center;
}

.tipsy-copy-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.45rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 183, 3, 0.35);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    outline: none;
}

.tipsy-copy-btn .btn-text {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--tipsy-gold) 0%, var(--tipsy-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.tipsy-copy-btn .copy-icon {
    stroke: var(--tipsy-accent);
    transition: var(--transition);
    flex-shrink: 0;
}

.tipsy-premium-card:hover .tipsy-copy-btn {
    background: linear-gradient(135deg, var(--tipsy-gold) 0%, var(--tipsy-orange) 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
}

.tipsy-premium-card:hover .tipsy-copy-btn .btn-text {
    -webkit-text-fill-color: #0d0d0f;
    color: #0d0d0f;
}

.tipsy-premium-card:hover .tipsy-copy-btn .copy-icon {
    stroke: #0d0d0f;
}

.tipsy-copy-btn.copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}

.tipsy-copy-btn.copied .btn-text {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    font-family: var(--font-main) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
}

.tipsy-copy-btn.copied .copy-icon {
    stroke: #ffffff !important;
}

/* Toast de Copiado */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(18, 18, 22, 0.94);
    border: 1px solid rgba(255, 183, 3, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 122, 0, 0.2);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(12px);
    white-space: nowrap;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.copy-toast strong {
    font-family: var(--font-display);
    font-weight: 900;
    background: linear-gradient(135deg, var(--tipsy-gold) 0%, var(--tipsy-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}

/* Footer / Marca de agua */
.beacons-footer {
    text-align: center;
    margin-top: 2rem;
    padding: 0 1rem;
}

.beacons-footer a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.beacons-footer a span {
    color: var(--text-primary);
    font-weight: 700;
}

.beacons-footer a:hover {
    color: var(--text-primary);
}


/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
