/* ==========================================
   🎨 VARIABLES Y COLORES (ÚNICO BLOQUE)
========================================== */
:root {
    --color-1: #FF6B6B;
    --color-2: #4ECDC4;
    --color-3: #FFE66D;
    --color-4: #FF6B9D;
    --color-5: #C44569;
    --color-6: #6BCB77;
    --color-7: #4D96FF;
    --color-8: #FFC93C;
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #FFF9F0;
    --white: #ffffff;
    --font-heading: 'Fredoka One', cursive;
    --font-body: 'Nunito', sans-serif;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
    --radius: 20px;
    --transition: all 0.3s ease;
}

/* ==========================================
   RESET Y BASE
========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   🎯 NAVEGACIÓN
========================================== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-dark);
}

.logo-icon { font-size: 2.5rem; }
.highlight { color: var(--primary); }

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.nav-list a:hover,
.nav-list a.active {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--color-4));
    color: var(--white) !important;
    padding: 0.7rem 1.5rem !important;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

/* ✅ Botón hamburguesa - OCULTO en desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 1001;
    padding: 0.5rem;
    line-height: 1;
}

/* ==========================================
   🎨 HERO SECTION
========================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    overflow: visible;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin-right: 300px;
}

.hero-title {
    color: var(--white) !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
    animation: bounceIn 1s ease;
    font-family: var(--font-heading);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
}

.hero-character {
    position: absolute;
    bottom: 0;
    left: 5%;
    max-height: 85vh;
    z-index: 1;
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.2));
    animation: float 4s ease-in-out infinite;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   BOTONES
========================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 3px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

/* ==========================================
   SECCIONES GENERALES
========================================== */
.section-pad { padding: 5rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--color-1), var(--color-2), var(--color-3));
    margin: 1rem auto 0;
    border-radius: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* ==========================================
   FEATURES
========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.feature-card.color-1::before { background: var(--color-1); }
.feature-card.color-2::before { background: var(--color-2); }
.feature-card.color-3::before { background: var(--color-3); }
.feature-card.color-4::before { background: var(--color-4); }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* ==========================================
   CARRUSEL
========================================== */
.carrusel-container {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
}

.carrusel-titulo {
    color: var(--white) !important;
    text-shadow: 0 3px 10px rgba(0,0,0,0.25);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.carrusel-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: #000;
}

.carrusel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carrusel-slide {
    min-width: 100%;
    position: relative;
    display: none;
}

.carrusel-slide.active { display: block; }

.carrusel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10;
}

.carrusel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carrusel-btn.prev { left: 15px; }
.carrusel-btn.next { right: 15px; }

.carrusel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
    border-color: var(--secondary);
}

/* ==========================================
   TÉCNICAS ARTÍSTICAS
========================================== */
.tecnicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tecnica-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    position: relative;
}

.tecnica-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.tecnica-card.color-1::before { background: var(--color-1); }
.tecnica-card.color-2::before { background: var(--color-2); }
.tecnica-card.color-3::before { background: var(--color-3); }

.tecnica-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.tecnica-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.tecnica-info {
    padding: 1.5rem;
    text-align: center;
}

.tecnica-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.tecnica-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================
   VISIÓN Y MISIÓN
========================================== */
.vision-mision-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding: 5rem 2rem;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.vm-box {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.vm-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
}

.vm-vision::before {
    background: linear-gradient(90deg, var(--color-7), var(--color-2));
}

.vm-mision::before {
    background: linear-gradient(90deg, var(--color-1), var(--color-4));
}

.vm-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.vm-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.vm-box h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.vm-box p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ==========================================
   REDES SOCIALES
========================================== */
.social-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.social-section .section-title { color: var(--white); }
.social-section .section-subtitle { color: rgba(255,255,255,0.9); }

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.social-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    color: var(--text-dark);
}

.social-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.social-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 40px;
    height: 40px;
}

.facebook .social-icon { background: #1877F2; color: white; }
.twitter .social-icon { background: #000; color: white; }
.tiktok .social-icon { background: #000; color: white; }
.youtube .social-icon { background: #FF0000; color: white; }

.social-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.social-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn-social {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--color-4));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-social:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ==========================================
   FOOTER
========================================== */
footer {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: var(--white);
    padding: 4rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand p { opacity: 0.9; }

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* ==========================================
   🎮 JUEGOS
========================================== */
.tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255,255,255,0.2);
    color: var(--text-dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: var(--transition);
}

.tab-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.game-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.game-controls {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.game-controls select,
.game-controls button {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.game-controls select {
    background: white;
    color: var(--primary);
}

.game-controls button {
    background: linear-gradient(135deg, var(--primary), var(--color-4));
    color: white;
    border: none;
    font-weight: bold;
}

.game-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

.stats {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, var(--bg-light), #ffe8e8);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat { text-align: center; }

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    font-family: var(--font-heading);
}

/* Rompecabezas */
.puzzle-game {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.puzzle-board {
    display: grid;
    gap: 2px;
    background: var(--text-dark);
    padding: 4px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.puzzle-piece {
    background-size: cover;
    background-position: center;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 4px;
}

.puzzle-piece:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,107,107,0.6);
    z-index: 10;
}

.puzzle-piece.dragging { opacity: 0.5; cursor: grabbing; }
.puzzle-piece.drag-over { background-color: rgba(255,107,107,0.3); border: 2px dashed var(--primary); }
.puzzle-piece.correct { box-shadow: 0 0 10px #6BCB77 inset; }

.reference-image { text-align: center; }

.reference-image img {
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border: 4px solid var(--primary);
}

.reference-image p {
    margin-top: 0.5rem;
    color: var(--text-light);
    font-style: italic;
}

/* Quiz */
.quiz-area { text-align: center; }

.quiz-image {
    max-width: 400px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary);
}

.quiz-question {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.quiz-option {
    padding: 1rem;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.quiz-option:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.quiz-option.correct {
    background: #6BCB77 !important;
    color: white !important;
    border-color: #6BCB77 !important;
    animation: pulse 0.5s;
}

.quiz-option.wrong {
    background: #FF6B6B !important;
    color: white !important;
    border-color: #FF6B6B !important;
    animation: shake 0.5s;
}

.quiz-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    display: none;
}

.quiz-feedback.show { display: block; }
.quiz-feedback.success { background: #d4edda; color: #155724; }
.quiz-feedback.error { background: #f8d7da; color: #721c24; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Dibujo Libre */
.canvas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.canvas-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--bg-light), #ffe8e8);
    border-radius: 12px;
    width: 100%;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.color-picker {
    width: 50px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.size-slider {
    width: 120px;
    accent-color: var(--primary);
}

#drawCanvas {
    border: 3px solid var(--primary);
    border-radius: 10px;
    background: white;
    cursor: crosshair;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 100%;
    touch-action: none;
}

/* Colorea Online */
.coloring-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--bg-light), #ffe8e8);
    border-radius: 12px;
    max-width: 600px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.color-swatch:hover { transform: scale(1.2); }

.color-swatch.selected {
    border-color: var(--text-dark);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.coloring-svg {
    max-width: 500px;
    width: 100%;
    border: 3px solid var(--primary);
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.coloring-svg path,
.coloring-svg circle,
.coloring-svg rect,
.coloring-svg polygon {
    cursor: pointer;
    stroke: var(--text-dark);
    stroke-width: 2;
    transition: fill 0.2s;
}

.coloring-svg path:hover,
.coloring-svg circle:hover,
.coloring-svg rect:hover,
.coloring-svg polygon:hover {
    opacity: 0.8;
}

/* Modal de victoria */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    animation: bounceIn 0.5s;
}

.modal-content h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.modal-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================
   🛍️ GALERÍA / TIENDA
========================================== */
.cart-icon {
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--color-4));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.cart-icon:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 6px 20px rgba(255,107,107,0.5);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    transition: var(--transition);
}

.cart-count.bump {
    animation: bump 0.3s ease;
}

@keyframes bump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

/* Filtros */
.filter-section {
    padding: 3rem 2rem 1rem;
    text-align: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 2rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    font-size: 1rem;
}

.filter-btn:hover {
    background: rgba(255,107,107,0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--color-4));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

/* Grid de productos */
.products-section {
    padding: 2rem 0 5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.product-badge.new { background: var(--secondary); }
.product-badge.sale { background: var(--color-4); }
.product-badge.limited { background: var(--color-5); }

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-artist {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
}

.product-price .old-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 0.5rem;
    font-family: var(--font-body);
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--primary), var(--color-4));
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-add-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.btn-add-cart.added {
    background: linear-gradient(135deg, var(--color-6), var(--secondary));
}

/* Panel del carrito */
.cart-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--color-4));
    color: white;
}

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0;
}

.cart-close {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.cart-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    align-items: center;
    animation: fadeIn 0.3s;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-item-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    background: var(--bg-light);
    border: 1px solid #ddd;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cart-item-qty {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.3rem;
    transition: var(--transition);
    padding: 0.3rem;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-empty {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-light);
}

.cart-empty p:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cart-empty-sub {
    font-size: 1rem;
    opacity: 0.8;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid #eee;
    background: var(--bg-light);
}

.cart-summary {
    margin-bottom: 1.5rem;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.cart-total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    padding-top: 1rem;
    border-top: 2px dashed #ddd;
    font-family: var(--font-heading);
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--color-4));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}

.btn-checkout:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-clear-cart {
    width: 100%;
    padding: 0.7rem;
    background: transparent;
    color: var(--text-light);
    border: 1px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-clear-cart:hover {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-order {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ==========================================
   🎠 GALERÍA 3D ROTATORIA
========================================== */
.gallery-3d-section {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffe8e8 100%);
    text-align: center;
    overflow: hidden;
}

.gallery-3d-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    perspective: 1000px;
    margin-top: 1.5rem;
}

.image-container {
    position: relative;
    width: 180px;
    height: 250px;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-container span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(300px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    border: 3px solid var(--white);
    background: var(--white);
}

.image-container span img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-container-3d {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 50px;
    margin-top: 2rem;
}

.btn-3d {
    position: absolute;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--color-4));
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
    font-family: var(--font-body);
}

.btn-3d:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255,107,107,0.5);
}

#prev3d { left: 0; }
#next3d { right: 0; }

/* ==========================================
   ANIMACIONES
========================================== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   📱 RESPONSIVE - MÓVIL (CORREGIDO)
========================================== */
@media (max-width: 768px) {
    /* ✅ Mostrar botón hamburguesa */
    .menu-toggle {
        display: block !important;
    }

    /* ✅ Menú móvil desplegable */
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        gap: 0;
        border-top: 3px solid var(--primary);
        margin-top: 0.5rem;
        border-radius: 0 0 15px 15px;
        z-index: 999;
    }

    .nav-list.active {
        display: flex !important;
        animation: slideDown 0.3s ease;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
        display: block;
    }

    .nav-list a:hover,
    .nav-list a:active {
        background: var(--bg-light);
        color: var(--primary);
    }

    /* ✅ HERO en móvil */
    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-content {
        margin-right: 0 !important;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* ✅ AVATAR A LA IZQUIERDA (NO CENTRADO) */
    .hero-character {
        position: absolute;
        left: 5% !important;
        transform: none !important;
        bottom: 0 !important;
        max-height: 250px !important;
        margin-top: 0 !important;
        animation: float 4s ease-in-out infinite !important;
        opacity: 0.85 !important;
        z-index: 1 !important;
    }

    /* Carrusel móvil */
    .carrusel-slide img { height: 300px; }
    .carrusel-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .slide-caption { font-size: 1rem; padding: 1.5rem 1rem 1rem; }
    .carrusel-titulo { font-size: 1.5rem; }

    /* Técnicas y VM */
    .tecnicas-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .vm-grid { grid-template-columns: 1fr; gap: 2rem; }
    .tecnica-card img { height: 200px; }
    .vm-box { padding: 2rem 1.5rem; }

    /* Juegos */
    .game-header { flex-direction: column; align-items: stretch; }
    .tab-btn { font-size: 0.9rem; padding: 0.6rem 1rem; }

    /* Galería 3D */
    .gallery-3d-container { min-height: 320px; }
    .image-container { width: 140px; height: 195px; }
    .image-container span { transform: rotateY(calc(var(--i) * 45deg)) translateZ(230px); }
    .btn-container-3d { max-width: 300px; margin-top: 1.5rem; }
    .btn-3d { padding: 8px 15px; font-size: 0.85rem; }

    /* Tienda */
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
    .product-image { height: 220px; }
    .cart-panel { width: 100%; right: -100%; }
    .cart-icon { width: 45px; height: 45px; font-size: 1.1rem; }
    .filter-btn { padding: 0.5rem 1rem; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .section-title { font-size: 2rem; }
    .feature-icon { font-size: 3rem; }
    .tecnica-card img { height: 180px; }
    .tecnica-info h3 { font-size: 1.2rem; }
    .vm-icon { font-size: 3rem; }
    .vm-box h3 { font-size: 1.5rem; }

    /* Galería 3D móvil pequeño */
    .gallery-3d-container { min-height: 280px; }
    .image-container { width: 110px; height: 155px; }
    .image-container span {
        transform: rotateY(calc(var(--i) * 45deg)) translateZ(180px);
        border-width: 2px;
        border-radius: 8px;
    }
    .btn-container-3d { max-width: 260px; }
    .btn-3d { padding: 8px 12px; font-size: 0.8rem; }

    /* Tienda móvil pequeño */
    .products-grid { grid-template-columns: 1fr; }
    .product-footer { flex-direction: column; gap: 1rem; align-items: stretch; }
    .btn-add-cart { justify-content: center; }
}
/* ==========================================
   🔧 CORRECCIONES FINALES - AVATAR Y MENÚ
========================================== */

/* ✅ AVATAR EN DESKTOP - Más pequeño y a la izquierda */
.hero-character {
    max-height: 500px !important; /* Más pequeño para que no tape el texto */
    left: 2% !important; /* Pegado a la izquierda */
    bottom: 0 !important;
    z-index: 1 !important;
}

/* ✅ TEXTO EN DESKTOP - Con margen adecuado */
.hero-content {
    margin-right: 0 !important; /* Quitamos el margen excesivo */
    margin-left: 250px !important; /* Espacio para el avatar */
    text-align: left !important; /* Texto alineado a la izquierda */
}

/* ✅ RESPONSIVE MÓVIL */
@media (max-width: 768px) {
    /* Avatar centrado y pequeño en móvil */
    .hero-character {
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: auto !important;
        max-height: 180px !important;
        margin-top: 2rem !important;
        margin-bottom: 1rem !important;
        animation: none !important;
        opacity: 0.9 !important;
    }

    /* Texto centrado en móvil */
    .hero-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
        max-width: 100% !important;
    }

    /* Asegurar que el menú hamburguesa se vea */
    .menu-toggle {
        display: block !important;
        position: absolute !important;
        right: 1rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    /* Menú desplegable */
    .nav-list {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        flex-direction: column !important;
        padding: 1rem !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
        z-index: 999 !important;
    }

    .nav-list.active {
        display: flex !important;
    }
}
/* ==========================================
    CORRECCIONES FINALES PARA MÓVIL
========================================== */

/*  DESKTOP: Avatar a la IZQUIERDA, texto a la DERECHA */
.hero-content {
    margin-right: 300px !important;
    text-align: center !important;
}

.hero-character {
    left: 5% !important;
    right: auto !important;
    bottom: 0 !important;
    max-height: 85vh !important;
}

/*  MÓVIL: Avatar ARRIBA centrado, texto DEBAJO centrado */
@media (max-width: 768px) {
    /* Hero completo reorganizado */
    .hero {
        flex-direction: column !important;
        padding: 6rem 1.5rem 2rem !important;
        min-height: auto !important;
    }

    /* Avatar ARRIBA y centrado */
    .hero-character {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        max-height: 180px !important;
        margin: 0 auto 1.5rem auto !important;
        transform: none !important;
        animation: none !important;
        order: 1 !important; /* Primero el avatar */
        display: block !important;
    }

    /* Texto DEBAJO y centrado */
    .hero-content {
        margin-right: 0 !important;
        margin-left: 0 !important;
        text-align: center !important;
        order: 2 !important; /* Segundo el texto */
        max-width: 100% !important;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }

    /*  MENÚ HAMBURGUESA VISIBLE */
    .menu-toggle {
        display: block !important;
        position: relative !important;
        z-index: 1001 !important;
    }

    /* Menú desplegable */
    .nav-list {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        flex-direction: column !important;
        padding: 1rem !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
        z-index: 999 !important;
        margin-top: 0.5rem !important;
        border-top: 3px solid var(--primary) !important;
        border-radius: 0 0 15px 15px !important;
    }

    .nav-list.active {
        display: flex !important;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-list a {
        padding: 1rem !important;
        font-size: 1.1rem !important;
        display: block !important;
    }
}

/* ==========================================
   🔧 BOTÓN HAMBURGUESA BIEN VISIBLE
========================================== */
.menu-toggle {
    display: none !important;
    background: linear-gradient(135deg, #FF6B6B, #FF6B9D) !important;
    color: white !important;
    border: none !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 12px !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
    z-index: 1001 !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4) !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.menu-toggle:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6) !important;
}

/*  En móvil: mostrar el botón */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }
}