/* --- VARIABLES & RESET --- */
:root {
    --primary: #6c5ce7;      /* Púrpura Hytale */
    --secondary: #00cec9;    /* Cian Neón */
    --accent: #fd79a8;       /* Rosa Neón */
    --dark: #2d3436;         /* Negro Grafito */
    --light: #dfe6e9;        /* Gris Claro */
    --bg: #ffffff;           /* Blanco */
    --shadow: 4px 4px 0px #000000; /* Sombra dura estilo bloque */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Rubik', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Fondo Global Punteado */
    background-color: var(--bg);
    background-image: radial-gradient(var(--dark) 1px, transparent 1px);
    background-size: 20px 20px;

    /* --- AGREGA ESTO: Bloquea la selección de texto --- */
    user-select: none;         /* Estándar */
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Edge/IE */
    cursor: default;           /* Fuerza el cursor de flecha siempre, no la "I" de texto */

}

/* --- UTILIDADES --- */
.text-card {
    background-color: white;
    border: 3px solid var(--dark);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}
.text-card::after { /* Detalle decorativo */
    content: ''; position: absolute; top: 10px; right: 10px;
    width: 10px; height: 10px; background: var(--secondary); border: 2px solid var(--dark);
}

.section { padding: 5rem 10%; }
.container { max-width: 1200px; margin: 0 auto; }

/* Títulos con fondo para legibilidad en secciones oscuras */
.section-header-box {
    display: inline-block; background: white; border: 3px solid var(--dark);
    padding: 0.5rem 2rem; margin-bottom: 3rem; box-shadow: var(--shadow);
}
.section-header-box h2 { margin: 0; font-size: 2rem; font-weight: 900; }
.dark-header { background: var(--dark); color: var(--secondary); border-color: white; }

/* --- NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%; background: rgba(255,255,255,0.95);
    border-bottom: 3px solid var(--dark);
    position: sticky; top: 0; z-index: 1000;
}
.logo { font-size: 1.8rem; font-weight: 900; color: var(--primary); text-shadow: 2px 2px 0px var(--dark); }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 700; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); text-decoration: underline wavy var(--accent); }

/* --- HERO SECTION --- */
.hero-section {
    height: 90vh; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
}
.hero-card { text-align: center; max-width: 700px; }
.hero-card h1 { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.1; }
.highlight { color: var(--secondary); -webkit-text-stroke: 1px var(--dark); text-shadow: 3px 3px 0px var(--dark); }
.hero-btns { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; }

.cta-btn {
    padding: 1rem 2rem; background: var(--primary); color: white;
    text-decoration: none; font-weight: 700; border: 3px solid var(--dark);
    box-shadow: var(--shadow); transition: 0.2s;
}
.secondary-btn { background: var(--secondary); color: var(--dark); }
.cta-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px var(--dark); }

/* --- ABOUT (RPG SHEET) --- */
.character-sheet {
    display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; padding: 0; overflow: hidden;
}
.char-profile {
    padding: 2rem; background: #f1f2f6; border-right: 3px dashed var(--dark);
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.avatar-frame {
    width: 180px; height: 180px; background: var(--primary); border: 4px solid var(--dark);
    margin-bottom: 1.5rem; position: relative;
}
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; }
.lvl-badge {
    position: absolute; bottom: -10px; right: -10px; background: var(--accent);
    color: white; font-weight: 900; padding: 5px 10px; border: 3px solid var(--dark);
    transform: rotate(-5deg);
}
.char-info { padding: 2rem; }
.loot-icons i {
    font-size: 1.2rem; background: white; padding: 10px; border: 2px solid var(--dark);
    margin: 0 5px; transition: 0.2s;
}
.loot-icons i:hover { transform: translateY(-3px); background: var(--secondary); }
.quest-btn {
    margin-top: auto; display: inline-block; width: 100%; padding: 10px;
    background: var(--dark); color: white; text-decoration: none; font-weight: bold;
    border: 2px solid var(--dark); margin-top: 1rem;
}
.quest-btn:hover { background: white; color: var(--dark); }

/* Stats Bars */
.stat-row { margin-bottom: 1rem; }
.stat-label { display: flex; justify-content: space-between; font-weight: bold; font-size: 0.9rem; }
.progress-bar {
    height: 20px; background: var(--light); border: 2px solid var(--dark);
    border-radius: 10px; overflow: hidden;
}
.progress-fill {
    height: 100%; background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%);
    background-size: 20px 20px;
}
.fill-video { background-color: var(--primary); }
.fill-design { background-color: var(--secondary); }
.fill-photo { background-color: var(--accent); }

/* --- PHOTOGRAPHY (GALERÍA) --- */
.bg-dark {
    background-color: var(--dark);
    /* Puntos blancos sutiles */
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; }
.gallery-card {
    background: white; padding: 1rem 1rem 0.5rem 1rem; border: 3px solid var(--dark);
    box-shadow: var(--shadow); transition: transform 0.3s; cursor: pointer;
}
.gallery-card:hover { transform: rotate(-2deg) scale(1.05); border-color: var(--secondary); z-index: 5; }
.photo-frame { height: 200px; overflow: hidden; border: 2px solid var(--dark); }
.gallery-img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption { display: flex; justify-content: space-between; padding-top: 0.5rem; font-weight: bold; font-size: 0.9rem; }

/* --- DIGITAL DESIGNS (INVENTARIO) --- */
.design-tabs-container { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn {
    padding: 0.8rem 1.5rem; font-weight: 900; background: white; border: 3px solid var(--dark);
    box-shadow: var(--shadow); cursor: pointer; transition: 0.2s;
}
.tab-btn.active { background: var(--accent); color: white; transform: translate(-2px, -2px); }
.design-content { display: none; animation: fadeUp 0.5s ease; }
.design-content.active-content { display: block; }
@keyframes fadeUp { from{opacity:0; transform:translateY(20px);} to{opacity:1; transform:translateY(0);} }

.slots-grid { display: grid; gap: 1.5rem; padding: 1rem; }
.logo-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.poster-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.illus-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.design-slot {
    background: var(--dark); padding: 0.5rem; border: 3px solid var(--dark);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2); position: relative; transition: 0.3s;
}
.design-slot:hover { transform: translateY(-5px); border-color: var(--secondary); }
.slot-inner { background: #434a4d; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.slot-inner img { max-width: 100%; max-height: 100%; object-fit: contain; transition: 0.3s; }
.design-slot:hover img { transform: scale(1.1); }
.slot-tooltip {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: white; padding: 3px 8px; font-size: 0.8rem;
    opacity: 0; pointer-events: none; transition: 0.3s; white-space: nowrap; font-weight: bold;
}
.design-slot:hover .slot-tooltip { opacity: 1; }
.tall-slot { grid-row: span 2; }
.wide-slot { grid-column: span 2; }

/* --- SERVICES --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.icon-service { margin-bottom: 1rem; color: var(--primary); }

/* --- CONTACT --- */
.bg-primary {
    background-color: var(--primary);
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}
.form-card { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: bold; margin-bottom: 0.5rem; }
input, textarea {
    width: 100%; padding: 1rem; border: 3px solid var(--dark);
    font-family: inherit; box-shadow: 4px 4px 0px #eee;
}
input:focus, textarea:focus { outline: none; border-color: var(--secondary); }
.submit-btn {
    width: 100%; padding: 1rem; background: var(--secondary); border: 3px solid var(--dark);
    font-weight: 900; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow); transition: 0.2s;
}
.submit-btn:hover { background: white; box-shadow: 2px 2px 0px var(--dark); transform: translate(2px, 2px); }

/* --- FOOTER --- */
footer { background: var(--dark); color: white; padding: 2rem; text-align: center; border-top: 5px solid var(--secondary); }
.social-links { margin-top: 1rem; }
.social-links a { color: white; font-size: 1.5rem; margin: 0 10px; transition: 0.2s; }
.social-links a:hover { color: var(--secondary); transform: scale(1.2); }

/* --- LIGHTBOX --- */
.lightbox {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(45, 52, 54, 0.95); backdrop-filter: blur(5px);
    justify-content: center; align-items: center;
}

/* Busca .lightbox-content y asegúrate de que tenga 'background-color: white' */
.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border: 5px solid white;
    background-color: white; /* <--- ESTO ES CRUCIAL PARA LOGOS TRANSPARENTES */
    box-shadow: 0 0 20px black;
    object-fit: contain; /* Asegura que se vea completa sin recortarse */
}


.close-lightbox {
    position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; font-weight: bold;
    background: var(--accent); width: 60px; height: 60px; line-height: 60px; text-align: center;
    border: 3px solid white; cursor: pointer; transition: 0.2s;
}
.close-lightbox:hover { transform: scale(1.1); background: var(--primary); }


input, textarea {
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}




/* RESPONSIVE */
.burger { display: none; cursor: pointer; z-index: 1001; }
.burger div { width: 25px; height: 3px; background-color: var(--dark); margin: 5px; transition: all 0.3s ease; }

@media (max-width: 768px) {
    .burger { display: block; }
    .nav-links {
        position: fixed; right: 0px; height: 100vh; top: 0vh;
        background-color: var(--bg); display: flex; flex-direction: column;
        align-items: center; justify-content: center; width: 60%;
        transform: translateX(100%); transition: transform 0.5s ease-in;
        border-left: 3px solid var(--dark);
    }
    .nav-links li { opacity: 0; margin-bottom: 2rem; font-size: 1.5rem; }
    .nav-active { transform: translateX(0%); }
    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0px); }
    }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    
    .hero-card h1 { font-size: 2.5rem; }
    .character-sheet { grid-template-columns: 1fr; }
    .char-profile { border-right: none; border-bottom: 3px dashed var(--dark); padding-bottom: 2rem; }
    .wide-slot { grid-column: span 1; }
}