:root {
    /* Paleta de colores sólida - basada en logo */
    --c-primary: #a311ed; /* Morado base */
    --c-primary-light: #c742ff;
    --c-primary-dark: #6e00a3;
    
    --c-secondary: #ff1c9b; /* Magenta intenso */
    --c-secondary-dark: #cc0073;
    
    --c-accent: #ff9d00; /* Naranja fuego */
    --c-accent-dark: #cc7000;
    
    --c-box: #e2c09c; /* Color caja / piel personaje */
    --c-box-dark: #b8916d;
    
    --c-dark: #121016; /* Fondo casi negro */
    --c-dark-lighter: #201b2b;
    --c-white: #ffffff;
    --c-white-dim: #e0e0e0;
    
    /* Variables de UI "Gaming" */
    --border-thick: 4px solid #000;
    --border-medium: 3px solid rgba(0,0,0,0.3);
    --shadow-solid: 6px 6px 0px rgba(0, 0, 0, 0.4);
    --shadow-solid-hover: 2px 2px 0px rgba(0, 0, 0, 0.6);
    --shadow-solid-primary: 6px 6px 0px var(--c-primary-dark);
    --shadow-solid-secondary: 6px 6px 0px var(--c-secondary-dark);
    
    --radius-box: 12px;
    --radius-round: 50px;
    
    /* Tipos */
    --f-title: 'Lilita One', cursive;
    --f-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--f-body);
    background-color: var(--c-dark);
    color: var(--c-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fondo texturizado estilo Minecraft / Grid */
.texture-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: var(--c-dark);
    /* Patrón de cuadrícula / puntos */
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.05) 2px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.05) 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

/* Tipografía */
h1, h2, h3, h4 {
    font-family: var(--f-title);
    letter-spacing: 1px;
    line-height: 1.1;
    text-transform: uppercase;
}

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

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Elementos Visuales */
.text-gradient {
    color: var(--c-primary-light);
    text-shadow: 3px 3px 0px var(--c-primary-dark);
}

.text-gradient-alt {
    color: var(--c-accent);
    text-shadow: 3px 3px 0px var(--c-accent-dark);
}

.badge-container { margin-bottom: 20px; }
.badge {
    display: inline-block;
    background: var(--c-secondary);
    color: white;
    font-family: var(--f-title);
    padding: 8px 16px;
    border-radius: var(--radius-round);
    border: var(--border-thick);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
    font-size: 1.1rem;
    transform: rotate(-2deg);
}

/* Navbar robusto */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.navbar.scrolled {
    background-color: var(--c-dark-lighter);
    border-bottom: 4px solid #000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--f-title);
    font-size: 2.5rem;
    color: white;
    text-shadow: 3px 3px 0px #000;
}
.logo-chow { color: var(--c-primary-light); }
.logo-box-text { color: var(--c-accent); }

.nav-links {
    display: flex;
    gap: 30px;
    background: rgba(0,0,0,0.4);
    padding: 10px 30px;
    border-radius: var(--radius-round);
    border: 2px solid rgba(255,255,255,0.1);
}

.nav-links a {
    font-family: var(--f-title);
    font-size: 1.1rem;
    color: var(--c-white-dim);
    transition: 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--c-secondary);
    transform: scale(1.1);
}

.mobile-toggle { display: none; }

/* Botones Gaming */
button {
    font-family: var(--f-title);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--c-primary);
    color: white;
    border: var(--border-thick);
    padding: 10px 24px;
    border-radius: var(--radius-box);
    font-size: 1.2rem;
    box-shadow: var(--shadow-solid);
    transition: transform 0.1s, box-shadow 0.1s;
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-solid-hover);
    background-color: var(--c-primary-light);
}

.btn-primary:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0px transparent;
}

.btn-secondary {
    background-color: var(--c-dark-lighter);
    color: white;
    border: var(--border-thick);
    padding: 12px 28px;
    border-radius: var(--radius-box);
    font-size: 1.2rem;
    box-shadow: var(--shadow-solid);
    transition: 0.1s;
}

.btn-secondary:hover {
    background-color: #312b40;
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-solid-hover);
}

/* Mega Botón IP */
.btn-mega {
    background-color: var(--c-secondary);
    border: var(--border-thick);
    border-radius: var(--radius-box);
    display: flex;
    align-items: center;
    padding: 10px 10px 10px 20px;
    gap: 20px;
    box-shadow: var(--shadow-solid-primary);
    transition: 0.1s;
}

.btn-mega:hover {
    background-color: #ff33a8;
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px var(--c-primary-dark);
}

.btn-mega:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0px transparent;
}

.btn-mega-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ip-title {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.ip-text {
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.copy-icon {
    background: white;
    color: var(--c-secondary);
    border: 3px solid #000;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: inset -3px -3px 0px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0px #000;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-white-dim);
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.4);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--c-primary);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--c-dark-lighter);
    border: var(--border-thick);
    padding: 10px 20px;
    border-radius: var(--radius-box);
    font-family: var(--f-title);
    color: #4caf50;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
    margin-top: 20px;
}

.pulse-dot {
    width: 14px;
    height: 14px;
    background-color: #4caf50;
    border: 2px solid #000;
    border-radius: 50%;
}

/* Hero Image Custom (Logo Recreado Físicamente) */
.hero-image-container {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-showcase {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(-3deg);
    transition: 0.3s ease;
}

.logo-showcase:hover {
    transform: rotate(0deg) scale(1.05);
}

.logo-part {
    font-size: 8rem;
    line-height: 0.8;
}

.logo-chow-3d {
    color: var(--c-primary-light);
    -webkit-text-stroke: 3px #000;
    text-shadow: 
        0 8px 0 var(--c-primary-dark),
        0 8px 0 #000,
        0 15px 20px rgba(0,0,0,0.6);
    z-index: 2;
}

.logo-box-3d {
    color: var(--c-white);
    -webkit-text-stroke: 3px #000;
    text-shadow: 
        0 8px 0 #a9a9a9,
        0 8px 0 #000,
        0 15px 20px rgba(0,0,0,0.6);
    z-index: 1;
}

.floating-mascots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.mascot-box {
    position: absolute;
    width: 130px;
    height: 130px;
    border: 6px solid #000;
    border-radius: 16px;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.5);
    transform-origin: center;
}

.mascot-box:nth-child(1) {
    top: 5%;
    left: 5%;
    background-color: var(--c-accent);
    transform: rotate(-10deg);
}

.mascot-box:nth-child(2) {
    bottom: 10%;
    right: 5%;
    background-color: var(--c-box);
    transform: rotate(15deg);
}

/* Modalidades (Bloques sólidos) */
.features {
    padding: 100px 0;
    background-color: var(--c-primary-dark);
    /* Borde dentado superior */
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3.5rem;
    text-shadow: 4px 4px 0px #000;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 10px;
}

/* Tarjetas Estilo Caja Fuerte */
.card {
    background: var(--c-dark-lighter);
    border: var(--border-thick);
    border-radius: var(--radius-box);
    overflow: hidden;
    box-shadow: var(--shadow-solid);
    transition: 0.2s;
    position: relative;
    top: 0;
}

.card:hover {
    top: -10px;
    box-shadow: 12px 12px 0px rgba(0,0,0,0.8);
}

.card-image {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: var(--border-thick);
}

.bg-survival { background-color: #2e7d32; }
.bg-skyblock { background-color: #1565c0; }
.bg-minigames { background-color: #c62828; }

.card-icon {
    font-size: 5rem;
    color: white;
    text-shadow: 4px 4px 0px #000;
    transition: 0.2s;
}

.card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
}

.card-body {
    padding: 30px;
}

.card-body h3 {
    font-size: 2rem;
    color: var(--c-white);
    margin-bottom: 10px;
}

.card-body p {
    font-weight: 700;
    color: #b0b0b0;
}

/* Tienda (Promo) */
.promo-section {
    padding: 80px 0;
}

.promo-container {
    display: flex;
    background-color: var(--c-accent-dark);
    border: 6px solid #000;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}

/* Patrón de líneas diagonales para la promo */
.promo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(0,0,0,0.05) 20px,
      rgba(0,0,0,0.05) 40px
    );
    z-index: 1;
}

.promo-content {
    flex: 1;
    z-index: 2;
}

.promo-tag {
    background: #000;
    color: var(--c-accent);
    padding: 5px 15px;
    font-family: var(--f-title);
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 20px;
}

.promo-content h2 {
    font-size: 3rem;
    text-shadow: 3px 3px 0px #000;
}

.promo-content p {
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.perks-list li {
    font-family: var(--f-title);
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

.text-gold { color: #ffe500; text-shadow: 1px 1px 0px #000; }

.promo-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.chest-icon {
    font-size: 12rem;
    color: #ffe500;
    text-shadow: 8px 8px 0px #000;
}

/* Discord */
.community {
    padding: 80px 0 100px;
}

.discord-banner {
    background-color: #5865F2;
    border: 6px solid #000;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.5);
    transform: rotate(1deg);
}

.discord-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.discord-icon {
    font-size: 5rem;
    color: white;
    text-shadow: 4px 4px 0px #000;
}

.discord-info h3 {
    font-size: 2.5rem;
    text-shadow: 3px 3px 0px #000;
}

.btn-discord {
    background-color: white;
    color: #5865F2;
    font-family: var(--f-title);
    font-size: 1.5rem;
    padding: 15px 30px;
    border: 4px solid #000;
    border-radius: var(--radius-box);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.3);
    transition: 0.1s;
}

.btn-discord:hover {
    background-color: #e0e0e0;
    transform: translate(2px,2px);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.4);
}

.btn-discord:active {
    transform: translate(6px,6px);
    box-shadow: 0px 0px 0px transparent;
}

/* Videos de la Comunidad */
.community-videos.mt-4 {
    margin-top: 1rem;
}

/* Botones de Tienda y Cupones */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: stretch;
}

.btn-coupon {
    background-color: var(--c-dark);
    border: 3px solid #000;
    border-radius: var(--radius-box);
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
    transition: 0.1s;
    cursor: pointer;
    text-align: left;
    max-width: 260px;
}

.btn-coupon:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.6);
    border-color: var(--c-accent);
}

.btn-coupon:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px transparent;
}

.coupon-percent {
    font-family: var(--f-title);
    color: var(--c-accent);
    font-size: 1.3rem;
    line-height: 1;
}

.coupon-desc {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--c-white-dim);
    margin: 2px 0;
}

.coupon-code {
    font-family: var(--f-title);
    background-color: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--c-white);
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.btn-coupon:hover .coupon-code {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.promo-image {
    text-align: center;
    margin-bottom: 40px;
}

.videos-header h2 {
    font-size: 2.5rem;
    color: var(--c-white);
    text-shadow: 3px 3px 0px #000;
    margin-bottom: 10px;
}

.creator-callout {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--c-white-dim);
}

.creator-callout a {
    color: var(--c-accent);
    text-decoration: underline;
    transition: 0.2s;
}

.creator-callout a:hover {
    color: var(--c-accent-dark);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

/* Slot de video simulando TikTok / Shorts */
.video-slot {
    background-color: var(--c-dark-lighter);
    border: 3px solid #000;
    border-radius: 12px;
    aspect-ratio: 9 / 16;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
    transition: 0.2s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-slot:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0px var(--c-primary);
    border-color: var(--c-primary);
}

.video-slot i {
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
    transition: 0.2s;
}

.video-slot:hover i {
    color: rgba(255,255,255,0.4);
    transform: scale(1.2);
}

.video-number {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-family: var(--f-title);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Modalidades Tags */
.tag-update {
    display: inline-block;
    background-color: var(--c-primary);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    border: 2px solid #000;
}

.tag-new {
    display: inline-block;
    background-color: var(--c-secondary);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    border: 2px solid #000;
    animation: pulse-tag 2s infinite;
}

@keyframes pulse-tag {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Footer */
.footer {
    background-color: #000;
    padding: 80px 0 30px;
    border-top: var(--border-thick);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 2.5rem;
    color: var(--c-primary-light);
}

.footer-links h4 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.footer-links ul li { margin-bottom: 15px; font-weight: 700; }
.footer-links ul li a { color: #a0a0a0; transition: 0.2s; }
.footer-links ul li a:hover { color: var(--c-accent); padding-left: 5px; }

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background-color: #222;
    border: 2px solid #555;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: 0.1s;
}

.social-icons a:hover {
    background-color: var(--c-primary);
    border-color: #000;
    transform: translate(2px, 2px);
}

.footer-bottom {
    text-align: center;
    border-top: 2px solid #333;
    padding-top: 30px;
    font-weight: 700;
    color: #666;
}

/* Toast Notificación */
.toast {
    position: fixed;
    bottom: -100px;
    right: 30px;
    background-color: #4caf50;
    border: 4px solid #000;
    border-radius: 12px;
    padding: 15px 25px;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show { bottom: 30px; }

.toast-icon { color: white; font-size: 1.5rem; }
.toast-content h4 { font-size: 1.2rem; margin-bottom: 0; color: white; }
.toast-content p { font-family: var(--f-body); font-weight: 700; color: #e0f2f1; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-container { flex-direction: column-reverse; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero h1 { font-size: 3.5rem; }
    .promo-container { flex-direction: column; text-align: center; }
    .discord-banner { flex-direction: column; text-align: center; gap: 30px; }
    .discord-info { flex-direction: column; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: block; font-size: 2rem; color: white; }
    .logo-part { font-size: 5rem; }
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
}

/* Imagen del Logo de la Network (chowbox.png) */
.hero-logo-img {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    z-index: 10;
    filter: drop-shadow(0 0 25px rgba(171, 71, 188, 0.45));
    animation: floatingLogo 4s ease-in-out infinite;
    transition: filter 0.3s ease;
}

.hero-logo-img:hover {
    filter: drop-shadow(0 0 35px rgba(255, 51, 168, 0.6));
}

@keyframes floatingLogo {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
