/* =========================================
   IKER EL PERRO - STYLESHEET v2.0
   Estructura: assets/css/style.css
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Climate+Crisis&family=Inter:wght@400;700;900&display=swap');

/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
:root {
    --color-bg: #1a1a1a;
    --color-bg-dark: #0a0a0a;
    --color-header: rgba(20, 20, 20, 0.92);
    --color-green: #2ecc71;
    --color-green-dark: #27ae60;
    --color-yellow: #f1c40f;
    --color-blue: #3498db;
    --color-blue-dark: #2980b9;
    --color-discord: #5865F2;
    --color-yt: #FF0000;
    --color-purple: #9b59b6;
    --color-purple-dark: #8e44ad;
    --color-orange: #e67e22;
    --font-pixel: 'VT323', monospace;
    --font-title: 'Climate Crisis', cursive;
    --font-body: 'Inter', sans-serif;
    --header-height: 110px;
    --border-radius: 15px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    font-family: var(--font-pixel);
    color: white;
    font-size: 20px;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================
   2. HEADER Y NAVEGACIÓN
   ========================================= */
.main-header {
    display: flex;
    flex-direction: column;              /* dos filas */
    padding: 0;
    background-color: var(--color-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid #000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    overflow: visible !important;
}

/* FILA 1: barra de usuario arriba a la derecha */
.user-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 5px 40px;
    background: rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-family: var(--font-pixel);
    font-size: 1.25rem;
    min-height: 34px;
    line-height: 1;
}
.user-bar-sep    { color: #444; }
.user-bar-name   { color: #2ecc71; white-space: nowrap; }
.user-bar-link   { text-decoration: none; transition: var(--transition); white-space: nowrap; }
.user-bar-visits { color: #00ccff; }
.user-bar-visits:hover { color: #fff; }
.user-bar-logout { color: #e74c3c; }
.user-bar-logout:hover { color: #ff7675; }

/* FILA 2: logo + nav */
.header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px 28px 40px;   /* top generoso: espacio para iconos pop-up Y para cuando no hay user-bar */
    gap: 20px;
    overflow: visible;
}

/* Logo */
.brand-logo img {
    height: 80px;
    width: auto;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
    display: block;
}
.brand-logo img:hover {
    transform: scale(0.95) rotate(-10deg);
}

/* Menú hamburguesa (oculto por defecto en desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #555;
    border-radius: 8px;
    background: rgba(0,0,0,0.5);
    transition: var(--transition);
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: var(--transition);
}
.nav-toggle:hover { border-color: var(--color-green); }
.nav-toggle:hover span { background: var(--color-green); }

/* Navegación */
.minecraft-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.minecraft-nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    overflow: visible;
    padding-top: 42px; /* debe ser >= que el top negativo más grande de los iconos (~45px) */
}

.minecraft-nav li {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    isolation: isolate;
}


/* =========================================
   3. BOTONES ANIMADOS
   ========================================= */
.sun-button,
.discord-button,
.yt-button,
.shop-button,
.login-btn,
.back-btn {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    vertical-align: middle;
    line-height: 1.2;
    white-space: nowrap;
    transition: all var(--transition);
    cursor: pointer;
    font-family: var(--font-title);
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    border-radius: 50px;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 12px 28px;
    position: relative;
    z-index: 20;
}

/* Sol / Inicio */
.sun-button {
    background: linear-gradient(135deg, #ffaa00, #ff4d00);
    border: 3px solid #ffcc00;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4), inset 0 2px 5px rgba(255,255,255,0.5);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.sun-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.7), inset 0 2px 5px rgba(255,255,255,0.8);
    background: linear-gradient(135deg, #ffc300, #ff6a00);
}

/* Discord */
.discord-button {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    border: 3px solid #7885FF;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4), inset 0 2px 5px rgba(255,255,255,0.2);
}
.discord-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.8);
    background: linear-gradient(135deg, #7289da, #5865F2);
}

/* YouTube */
.yt-button {
    background: linear-gradient(135deg, #FF0000, #c40000);
    border: 3px solid #ff4f4f;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.5), inset 0 2px 5px rgba(255,255,255,0.2);
}
.yt-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.8);
    background: linear-gradient(135deg, #ff3333, #FF0000);
}

/* Tienda / genérico verde */
.shop-button {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: 3px solid #4cd137;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.5), inset 0 2px 5px rgba(255,255,255,0.2);
}
.shop-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.8);
}

/* Login btn (formularios) */
.login-btn {
    background: linear-gradient(135deg, #2ecc71, #219150);
    border: none;
    width: 100%;
    padding: 18px;
    margin-top: 10px;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}
.login-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Back btn */
.back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(0,0,0,0.8);
    border: 2px solid #fff;
    font-size: 1rem;
    padding: 10px 25px;
    z-index: 10;
}
.back-btn:hover {
    background: #fff;
    color: #000;
    transform: translateX(-5px);
}

/* =========================================
   4. ICONOS POP-UP DEL NAV
   ========================================= */
.hover-img {
    position: absolute;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5; /* por DETRÁS del botón (botones tienen z-index:20) */
    pointer-events: none;
}

/* Discord */
.discord-img {
    width: 45px;
    top: 50%;
    right: 10px;
    transform: translateY(-50%) scale(0);
}
.discord-wrapper:hover .discord-img,
.discord-wrapper.active .discord-img {
    opacity: 1;
    top: -40px;
    right: -5px;
    transform: translateY(0) scale(1) rotate(15deg);
}

/* YouTube/Jelly */
.jelly-img {
    height: 80px;
    top: 50%;
    right: 10px;
    transform: translateY(-50%) scale(0);
}
.youtube-wrapper:hover .jelly-img,
.youtube-wrapper.active .jelly-img {
    opacity: 1;
    top: -45px;
    right: -15px;
    transform: translateY(0) scale(1) rotate(20deg);
}

/* Tienda - Signo $ */
.dollar-sign {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 3rem;
    color: var(--color-yellow);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    top: 50%;
    right: 20px;
    transform: translateY(-50%) scale(0) rotate(-20deg);
}
.tienda-wrapper:hover .dollar-sign,
.tienda-wrapper.active .dollar-sign {
    opacity: 1;
    top: -30px;
    right: -5px;
    transform: translateY(0) scale(1) rotate(20deg);
}

/* Tienda - Icono fijo */
.store-icon-fixed {
    position: absolute;
    width: 35px;
    height: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 58px;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* Códigos - Puntos suspensivos animados */
.codigos-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    top: 50%;
    right: 10px;
    transform: translateY(-50%) scale(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.codigos-wrapper:hover .codigos-dots,
.codigos-wrapper.active .codigos-dots {
    opacity: 1;
    top: -30px;
    right: 4px;
    transform: translateY(0) scale(1);
}
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c39bd3;
    box-shadow: 0 0 8px rgba(155,89,182,0.9);
    opacity: 0;
    animation: dotPop 1.2s ease-in-out infinite;
}
.dot.d1 { animation-delay: 0s; }
.dot.d2 { animation-delay: 0.4s; }
.dot.d3 { animation-delay: 0.8s; }

@keyframes dotPop {
    0%   { opacity: 0;   transform: scale(0.5) translateY(0); }
    30%  { opacity: 1;   transform: scale(1.3) translateY(-4px); }
    60%  { opacity: 1;   transform: scale(1)   translateY(0); }
    100% { opacity: 0;   transform: scale(0.5) translateY(0); }
}

/* Servidores - Imagen o emoji */
.servers-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    top: 50%;
    right: 5px;
    transform: translateY(-50%) scale(0);
    border-radius: 8px;
    filter: drop-shadow(0 0 6px rgba(52,152,219,0.7));
}
.servers-wrapper:hover .servers-img,
.servers-wrapper.active .servers-img {
    opacity: 1;
    top: -42px;
    right: -10px;
    transform: translateY(0) scale(1) rotate(-10deg);
}

/* =========================================
   5. HERO SECTIONS
   ========================================= */
.hero-wrapper {
    position: relative;
    width: auto;
    margin: 20px 15px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-bg-image {
    width: 100%;
    height: auto;
    display: block;
    min-height: 300px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Títulos animados */
.titulo-animado {
    font-family: var(--font-title);
    color: white;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    text-align: center;
    width: 100%;
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.linea-1 {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-family: var(--font-pixel);
    opacity: 0;
    animation: reboteCaida 1s ease-out forwards;
    animation-delay: 0.2s;
}
.linea-2 {
    display: block;
    font-size: 4.5rem;
    color: var(--color-yellow);
    -webkit-text-stroke: 2px black;
    opacity: 0;
    animation: reboteCaida 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
    animation-delay: 0.8s;
}

@keyframes reboteCaida {
    0%   { transform: translateY(-400px); opacity: 0; }
    60%  { transform: translateY(30px);   opacity: 1; }
    80%  { transform: translateY(-10px);              }
    100% { transform: translateY(0);      opacity: 1; }
}

/* =========================================
   6. WIDGET DE VÍDEO (FIJO ESQUINA)
   ========================================= */
.hero-video-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    z-index: 998; /* por debajo del menú hamburguesa (999) y del header (1000) */
    background: rgba(0, 0, 0, 0.85);
    padding: 10px;
    border: 2px solid var(--color-yellow);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
    transition: all var(--transition);
    animation: slideInRight 1s ease-out forwards;
    transform: translateX(100px);
    opacity: 0;
}
.hero-video-widget:hover {
    transform: scale(1.05) !important;
    border-color: #fff700;
    box-shadow: 0 0 25px rgba(255, 247, 0, 0.7);
    cursor: pointer;
}
.video-label {
    color: var(--color-yellow);
    font-family: var(--font-pixel);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 6px;
}
.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
}

@keyframes slideInRight {
    to { transform: translateX(0); opacity: 1; }
}

/* =========================================
   7. WIDGET DISCORD (Página discord.php)
   ========================================= */
.hero-discord-widget {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 550px;
    max-width: 48vw;
    height: 480px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
    border: 3px solid var(--color-discord);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
    transition: all var(--transition);
    animation: slideInRight 1s ease-out forwards;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-discord-widget:hover {
    border-color: #00ddff;
    box-shadow: 0 0 35px rgba(88, 101, 242, 0.9);
}
.discord-label {
    color: #fff;
    font-family: var(--font-title);
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px #000;
}
.discord-frame {
    width: 100%;
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

/* =========================================
   8. CAJAS LOGIN / FORMULARIOS
   ========================================= */
.login-body,
.store-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.login-container {
    background: rgba(20, 20, 20, 0.95);
    padding: 45px 35px;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    border: 3px solid var(--color-green);
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.3), 0 10px 40px rgba(0,0,0,0.8);
    text-align: center;
    position: relative;
    animation: fadeInUp 0.5s ease-out;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.login-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    position: relative;
    top: -80px;
    margin-bottom: -60px;
}
.login-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000;
    border: 4px solid var(--color-green);
    object-fit: cover;
}

.login-container h2 {
    font-family: var(--font-title);
    color: #fff;
    font-size: 1.8rem;
    margin-top: 10px;
}
.login-container p {
    color: #888;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.input-group {
    text-align: left;
    margin-bottom: 18px;
}
.input-group label {
    display: block;
    color: var(--color-green);
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.input-group input,
.input-group select {
    width: 100%;
    padding: 14px;
    background: #111;
    border: 2px solid #333;
    color: white;
    font-family: var(--font-body);
    border-radius: 10px;
    outline: none;
    font-size: 1rem;
}
.input-group input:focus {
    border-color: var(--color-green);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
    background: #000;
}

.login-footer {
    margin-top: 20px;
    color: #555;
    font-size: 0.85rem;
    font-family: var(--font-body);
}
.login-footer a {
    color: var(--color-green);
}

/* =========================================
   9. TIENDA
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid var(--color-green);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.1);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.4);
    border-color: #fff;
    z-index: 2;
}

.img-container {
    width: 100%;
    height: 190px;
    background: #000;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
}
.producto-foto {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.product-card h3 {
    font-family: var(--font-title);
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.desc {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 12px;
    min-height: 35px;
    overflow: hidden;
}
.price {
    font-family: var(--font-pixel);
    font-size: 1.8rem;
    color: var(--color-green);
    margin-bottom: 12px;
    background: #111;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #333;
}
.add-btn {
    width: 100%;
    padding: 12px;
    background: var(--color-green);
    color: black;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    font-family: var(--font-title);
    transition: var(--transition);
    font-size: 1rem;
}
.add-btn:hover {
    background: white;
    box-shadow: 0 0 15px #fff;
}

/* Cantidad */
.qty-input {
    width: 60px;
    padding: 8px;
    background: #111;
    border: 2px solid var(--color-green);
    color: white;
    border-radius: 50px;
    text-align: center;
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    outline: none;
}
.qty-input:focus { box-shadow: 0 0 10px var(--color-green); }

.qty-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-weight: bold;
    font-family: var(--font-body);
    border: 1px solid #555;
    transition: var(--transition);
}
.qty-btn:hover {
    background: var(--color-green);
    color: black;
    border-color: var(--color-green);
    transform: scale(1.1);
}

/* =========================================
   10. SERVIDORES
   ========================================= */
.servers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 800px;
}

.server-card {
    background: rgba(17, 17, 17, 0.9);
    border: 2px solid #555;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 15px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.server-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.server-logo {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
}
.server-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.server-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.server-info p {
    color: #ccc;
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.3;
    font-family: var(--font-body);
}

.server-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.server-buttons .login-btn {
    margin: 0 !important;
    width: auto !important;
    padding: 8px 18px;
    font-size: 0.95rem;
    font-family: var(--font-title);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.server-buttons .login-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

/* =========================================
   11. ADMIN
   ========================================= */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

input[type="file"] {
    background: #222;
    color: #ccc;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    border: 1px solid #333;
    border-radius: 10px;
}
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th { text-align: left; padding: 15px; border-bottom: 2px solid #555; color: var(--color-yellow); background: #222; }
td { padding: 15px; border-bottom: 1px solid #333; color: #ddd; }

/* =========================================
   12. YOUTUBE (página youtube.php)
   ========================================= */

/* Contenedor relativo que envuelve hero + widget */
.yt-page-wrapper {
    position: relative;
}

/* En desktop: el widget flota encima del hero con position absolute */
.youtube-card-widget {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 460px;
    max-width: 45vw;
    background: rgba(10, 10, 10, 0.95);
    border: 4px solid var(--color-yt);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    z-index: 10;
    animation: slideInRight 1s ease-out forwards;
    transition: var(--transition);
    opacity: 0;
}
.youtube-card-widget:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.6);
    border-color: #ff4d4d;
}

.yt-icon-float {
    width: 70px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255,0,0,0.5));
    animation: pulseIcon 2s infinite;
}
.yt-content h2 {
    font-family: var(--font-title);
    color: var(--color-yellow);
    font-size: 1.7rem;
    margin-bottom: 12px;
    text-shadow: 2px 2px 0 #000;
}
.yt-content p {
    font-family: var(--font-body);
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.curse-text {
    font-family: var(--font-title);
    color: var(--color-yt);
    font-size: 1.7rem;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255,0,0,0.5);
    animation: shakeText 3s infinite;
}
.yt-sub-btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--color-yt);
    color: white;
    font-family: var(--font-title);
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    border: 3px solid #cc0000;
    transition: var(--transition);
    text-transform: uppercase;
}
.yt-sub-btn:hover {
    background: white;
    color: var(--color-yt);
    box-shadow: 0 0 30px var(--color-yt);
    transform: translateY(-5px);
}
.subs-counter-box {
    background: rgba(255,0,0,0.1);
    border: 1px solid rgba(255,0,0,0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
}
.subs-label {
    font-family: var(--font-pixel);
    color: #ccc;
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}
.subs-number {
    font-family: var(--font-title);
    color: var(--color-yt);
    font-size: 2rem;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}
@keyframes shakeText {
    0%, 100% { transform: rotate(0deg);  }
    25%      { transform: rotate(2deg);  }
    75%      { transform: rotate(-2deg); }
}

/* =========================================
   13. COOKIES BANNER
   ========================================= */
.cookie-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 300px;
    background: rgba(10, 10, 10, 0.97);
    border: 2px solid var(--color-green);
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
    z-index: 9998;
    opacity: 0;
    transform: translateY(50px);
    visibility: hidden;
    transition: all 0.5s ease;
    color: white;
}
.cookie-container.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.cookie-content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.cookie-icon {
    font-size: 2.2rem;
    animation: floatCookie 3s ease-in-out infinite;
    flex-shrink: 0;
}
.cookie-text strong {
    display: block;
    font-family: var(--font-title);
    color: var(--color-yellow);
    font-size: 0.85rem;
    margin-bottom: 2px;
}
.cookie-text p {
    font-size: 0.75rem;
    color: #ccc;
    margin: 0;
    line-height: 1.3;
    font-family: var(--font-body);
}
.cookie-btn {
    width: 100%;
    background: var(--color-green);
    color: #000;
    border: none;
    padding: 8px;
    font-family: var(--font-title);
    font-size: 0.85rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}
.cookie-btn:hover { background: white; }

@keyframes floatCookie {
    0%, 100% { transform: translateY(0);          }
    50%      { transform: translateY(-5px) rotate(10deg); }
}

/* =========================================
   14. FOOTER
   ========================================= */
.main-footer {
    background-color: var(--color-bg-dark);
    color: #666;
    padding: 25px 20px;
    text-align: center;
    border-top: 4px solid #000;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 100%;
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.legal-links {
    font-size: 0.62rem;
    color: #555;
    margin-top: 4px;
    font-family: var(--font-body);
}
.legal-links a {
    color: #777;
    text-decoration: none;
    transition: var(--transition);
    margin: 0 6px;
}
.legal-links a:hover {
    color: var(--color-green);
    text-decoration: underline;
}

/* =========================================
   15. NIEVE (Diciembre/Enero)
   ========================================= */
/* Nota: No ponemos overflow:hidden en .main-header porque rompería los iconos pop-up.
   Los copos de nieve se generan con JS y tienen posición absolute dentro del header. */
.copo-nieve {
    position: absolute;
    top: -10px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
    animation: caer linear infinite;
    z-index: 1;
}
@keyframes caer {
    0%   { transform: translateY(0) rotate(0deg);   opacity: 0.8; }
    100% { transform: translateY(150px) rotate(360deg); opacity: 0; }
}

/* =========================================
   16. RESPONSIVE - TABLETS GRANDES (max 1200px)
   ========================================= */
@media screen and (max-width: 1200px) {
    .header-main-row { padding: 12px 25px 25px 25px; }
    .user-bar { padding: 5px 25px; }
    .minecraft-nav ul { gap: 10px; }
    .sun-button,
    .discord-button,
    .yt-button,
    .shop-button {
        padding: 10px 16px;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
}

/* =========================================
   TABLETS MEDIANAS (max 1024px)
   iPad Pro, Surface: reducir para 1 fila
   ========================================= */
@media screen and (max-width: 1024px) {
    .header-main-row {
        padding: 10px 20px 22px 20px;
        gap: 8px;
    }
    .user-bar { padding: 5px 20px; }
    .brand-logo img { height: 65px; }

    .minecraft-nav ul { gap: 7px; justify-content: flex-end; }

    .sun-button,
    .discord-button,
    .yt-button,
    .shop-button {
        padding: 8px 12px;
        font-size: 0.78rem;
        letter-spacing: 0.3px;
        border-width: 2px;
        border-radius: 40px;
    }

    /* Iconos pop-up ajustados */
    .discord-img { width: 38px; }
    .discord-wrapper:hover .discord-img,
    .discord-wrapper.active .discord-img { top: -35px; right: -5px; }

    .jelly-img { height: 65px; }
    .youtube-wrapper:hover .jelly-img,
    .youtube-wrapper.active .jelly-img { top: -38px; right: -10px; }

    .dollar-sign { font-size: 2.2rem; }
    .tienda-wrapper:hover .dollar-sign,
    .tienda-wrapper.active .dollar-sign { top: -28px; right: -5px; }

    .codigos-dots { gap: 4px; }
    .codigos-dots .dot { width: 8px; height: 8px; }
    .codigos-wrapper:hover .codigos-dots,
    .codigos-wrapper.active .codigos-dots { top: -24px; right: 2px; }

    .servers-img { width: 42px; height: 42px; }
    .servers-wrapper:hover .servers-img,
    .servers-wrapper.active .servers-img { top: -34px; right: -8px; }

    .store-icon-fixed { display: none; }

    /* Widget YouTube: en tablet sale del flujo absoluto y fluye normal debajo del hero.
       Como ya está FUERA del hero-wrapper, no hay problema de overflow:hidden */
    .youtube-card-widget {
        position: relative !important;
        top: auto !important; right: auto !important;
        width: 90% !important; max-width: 480px;
        margin: 20px auto !important;
        opacity: 1 !important; animation: none !important; transform: none !important;
    }
    .hero-discord-widget {
        position: relative !important; top: auto !important; right: auto !important;
        width: 90% !important; max-width: none; height: 460px;
        margin: 20px auto !important; opacity: 1 !important; animation: none !important;
    }

    .linea-1 { font-size: 1.5rem !important; }
    .linea-2 { font-size: 3.5rem !important; }
    .titulo-animado { font-size: 2rem !important; }
}

/* =========================================
   TABLETS PEQUEÑAS (max 900px)
   ========================================= */
@media screen and (max-width: 900px) {
    .minecraft-nav ul { gap: 5px; }
    .sun-button,
    .discord-button,
    .yt-button,
    .shop-button {
        padding: 7px 9px;
        font-size: 0.72rem;
        border-radius: 35px;
    }
    .brand-logo img { height: 58px; }
    .header-main-row { padding: 8px 15px 20px 15px; }
    .user-bar { padding: 4px 15px; font-size: 1.1rem; }
}

/* =========================================
   17. RESPONSIVE - MÓVIL (max 768px)
   ========================================= */
@media screen and (max-width: 768px) {

    /* User bar compacta */
    .user-bar {
        padding: 5px 15px;
        font-size: 1.1rem;
        gap: 7px;
    }

    /* Fila logo+nav — altura fija igual con y sin login */
    .header-main-row {
        padding: 10px 15px 10px 15px;
        gap: 8px;
        min-height: 72px;
    }

    .brand-logo img { height: 52px; }

    /* Mostrar hamburguesa */
    .nav-toggle { display: flex; }

    /* Menú desplegable: sale del flujo del header para no empujar contenido */
    .minecraft-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: rgba(12,12,12,0.98);
        border-bottom: 3px solid #333;
        z-index: 999;
        flex: none;
    }
    .minecraft-nav.open {
        max-height: 600px;
        overflow: hidden; /* hidden para que la animación no salte */
    }

    .minecraft-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 6px;
        padding: 10px 12px 14px 12px;
        box-sizing: border-box;
    }

    .minecraft-nav li {
        width: 100%;
        overflow: hidden;
    }

    /* Botones: caben en pantalla, texto no desborda */
    .sun-button,
    .discord-button,
    .yt-button,
    .shop-button {
        display: block !important;
        width: 100%;
        box-sizing: border-box;
        font-size: 0.9rem;
        padding: 11px 12px;
        text-align: center;
        border-radius: 10px;
        white-space: normal;
        line-height: 1.3;
        letter-spacing: 0.3px;
    }

    /* Ocultar iconos pop-up */
    .hover-img { display: none; }
    .store-icon-fixed { display: none; }

    /* Hero */
    .hero-wrapper { margin: 0 8px; border-radius: 12px; }
    .hero-bg-image { min-height: 220px; }
    .linea-1 { font-size: 1.2rem !important; }
    .linea-2 { font-size: 2.2rem !important; -webkit-text-stroke: 1px black; }

    /* Widget vídeo inline */
    .hero-video-widget {
        position: relative !important;
        bottom: auto !important; right: auto !important;
        width: 92% !important; max-width: 400px;
        margin: 15px auto !important;
        transform: none !important; opacity: 1 !important; animation: none !important;
        border-radius: 12px;
    }

    .login-container { padding: 35px 18px; width: 95%; }
    .login-avatar { width: 75px; height: 75px; top: -65px; margin-bottom: -50px; }

    .server-card { flex-direction: column; text-align: center; }
    .server-logo { margin-right: 0; margin-bottom: 10px; width: 70px; height: 70px; }
    .server-buttons { justify-content: center; }

    .admin-grid { grid-template-columns: 1fr; }
    .admin-header { flex-direction: column; text-align: center; }
    .back-btn { top: 15px; left: 15px; font-size: 0.85rem; padding: 8px 15px; }

    .cookie-container { left: 8px; right: 8px; width: auto; bottom: 8px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
    .titulo-animado { font-size: 1.6rem !important; }
}

/* =========================================
   18. RESPONSIVE - MÓVIL PEQUEÑO (max 420px)
   ========================================= */
@media screen and (max-width: 420px) {
    .user-bar { font-size: 0.9rem; gap: 5px; padding: 4px 10px; }
    .header-main-row { min-height: 64px; padding: 8px 12px; }
    .brand-logo img { height: 46px; }
    .linea-2 { font-size: 1.8rem !important; }
    .products-grid { grid-template-columns: 1fr; }
    .login-container { padding: 30px 14px; }
    .sun-button,
    .discord-button,
    .yt-button,
    .shop-button { font-size: 0.82rem; padding: 10px 8px; }
    .titulo-animado { font-size: 1.4rem !important; }
    .yt-icon-float { width: 50px; }
    .curse-text { font-size: 1.3rem; }
}

/* =========================================
   19. ANIMACIONES GENERALES
   ========================================= */
@keyframes solarFlare {
    0%   { transform: translate(-50%, -50%) scale(0.9) rotate(0deg);  opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2)   rotate(45deg); opacity: 0;   }
}
@keyframes discordPulse {
    0%   { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0;   }
}
