/* ===== ANIME PAGE SPECIFIC STYLES ===== */

/* Importar fuentes anime/manga */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600;800&display=swap');

/* Variables CSS para el tema anime */
:root {
    --anime-primary: #ff6b35;
    --anime-secondary: #004e89;
    --anime-accent: #ffd23f;
    --anime-dark: #1a1a2e;
    --anime-light: #eee;
    --anime-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --anime-fire: linear-gradient(45deg, #ff6b35, #f7931e, #ffd23f);
    --anime-water: linear-gradient(45deg, #004e89, #009ffd, #00d2ff);
    --anime-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --anime-glow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* Reset específico para la página anime */
.anime-page {
    font-family: 'Exo 2', sans-serif;
    background: var(--anime-dark);
    color: var(--anime-light);
    overflow-x: hidden;
    position: relative;
}

/* Partículas flotantes de fondo */
.anime-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 78, 137, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 210, 63, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

/* Header anime específico */
.anime-header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(0, 78, 137, 0.8));
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--anime-accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Hero section estilo opening anime */
.anime-hero {
    height: 100vh;
    background: 
        linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.7)),
        url('../../assets/images/Demo/Demo.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.anime-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: lightSweep 3s ease-in-out infinite;
}

@keyframes lightSweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.anime-hero-content {
    text-align: center;
    z-index: 2;
    animation: heroAppear 2s ease-out;
}

@keyframes heroAppear {
    0% { 
        opacity: 0; 
        transform: translateY(50px) scale(0.8); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.anime-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    background: var(--anime-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    margin-bottom: 1rem;
    animation: titlePulse 2s ease-in-out infinite alternate;
}

@keyframes titlePulse {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.05); filter: brightness(1.2); }
}

.anime-subtitle {
    font-size: 1.5rem;
    color: var(--anime-accent);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255, 210, 63, 0.5);
    animation: subtitleGlow 3s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 210, 63, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 210, 63, 0.8); }
}

.digital-nostalgia {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--anime-accent);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.digital-nostalgia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 210, 63, 0.1) 50%, transparent 70%);
    animation: scanLine 2s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Botones estilo katana */
.katana-btn {
    background: var(--anime-gradient);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.katana-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.katana-btn:hover::before {
    left: 100%;
}

.katana-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--anime-glow);
}

/* Secciones de categorías anime */
.anime-categories {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--anime-dark), rgba(0, 78, 137, 0.1));
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--anime-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
    border-color: var(--anime-accent);
}

.category-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    animation: emojiFloat 3s ease-in-out infinite;
}

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.category-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--anime-accent);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.category-count {
    color: var(--anime-primary);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* Grid de productos anime */
.anime-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.anime-product-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
    border: 2px solid transparent;
}

.anime-product-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    border-color: var(--anime-accent);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 107, 53, 0.3);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.anime-product-card:hover .product-image-container::before {
    opacity: 1;
    animation: imageShine 0.6s ease-out;
}

@keyframes imageShine {
    0% { transform: translateX(-100%) skewX(-25deg); }
    100% { transform: translateX(100%) skewX(-25deg); }
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.anime-product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
}

.anime-badge {
    background: var(--anime-fire);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 5px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.product-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--anime-accent);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.anime-product-card:hover .product-title {
    color: var(--anime-primary);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.product-level {
    color: var(--anime-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1rem 0;
}

.spec-tag {
    background: rgba(255, 107, 53, 0.2);
    color: var(--anime-accent);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--anime-accent);
    margin: 1rem 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0;
}

.stars {
    color: var(--anime-accent);
}

.rating-text {
    color: var(--anime-light);
    font-size: 0.9rem;
}

/* Botón materializar */
.materialize-btn {
    width: 100%;
    background: var(--anime-gradient);
    border: none;
    padding: 12px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.materialize-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.materialize-btn:hover::before {
    width: 300px;
    height: 300px;
}

.materialize-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

/* Sección de personalización */
.customization-section {
    background: linear-gradient(135deg, rgba(0, 78, 137, 0.1), rgba(26, 26, 46, 0.9));
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.customization-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 210, 63, 0.1) 0%, transparent 50%);
    animation: customizationGlow 8s ease-in-out infinite;
}

@keyframes customizationGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.customization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.customization-card {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.customization-card:hover {
    transform: translateY(-5px);
    border-color: var(--anime-accent);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.2);
}

.customization-icon {
    font-size: 2.5rem;
    color: var(--anime-accent);
    margin-bottom: 1rem;
    animation: iconSpin 4s linear infinite;
}

@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Elementos flotantes */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--anime-accent);
    border-radius: 50%;
    animation: floatUp 15s linear infinite;
}

.floating-particle:nth-child(odd) {
    background: var(--anime-primary);
    animation-duration: 12s;
}

.floating-particle:nth-child(3n) {
    width: 6px;
    height: 6px;
    animation-duration: 18s;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Header y navegación */
    .header-content {
        padding: 0.5rem 0;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .logo img {
        width: 30px;
        height: 30px;
    }

    /* Menú móvil */
    .menu-toggle {
        display: flex !important;
        z-index: 1003;
        position: relative;
    }
    
    .main-navigation {
        position: fixed !important;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--anime-dark), rgba(0, 78, 137, 0.98));
        backdrop-filter: blur(10px);
        border-right: 2px solid var(--anime-accent);
        box-shadow: 0 0 50px rgba(255, 107, 53, 0.3);
        transition: left 0.3s ease;
        z-index: 1002;
        padding: 80px 1rem 1rem;
        overflow-y: auto;
        margin: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .main-navigation.active {
        left: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        position: static;
        transform: none;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 0;
        background: none;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 107, 53, 0.2);
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 1rem;
        justify-content: space-between;
        border-radius: 0;
        color: var(--anime-light) !important;
        display: flex;
        align-items: center;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 107, 53, 0.2);
        transform: translateX(5px);
    }
    
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: rgba(0, 0, 0, 0.6);
        margin-top: 0.5rem;
        border-radius: 5px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        border: 1px solid rgba(255, 107, 53, 0.3);
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 300px !important;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 1.5rem;
        color: rgba(255, 255, 255, 1) !important;
        font-size: 0.9rem;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 107, 53, 0.3);
        color: #ffffff !important;
    }

    /* Overlay para menú móvil */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        backdrop-filter: blur(5px);
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Contenido principal */
    .anime-title {
        font-size: 2.5rem;
    }
    
    .anime-subtitle {
        font-size: 1.2rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .anime-products-grid {
        grid-template-columns: 1fr;
    }
    
    .customization-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .social-links {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 10px;
        max-width: 300px;
        margin: 20px auto;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .anime-title {
        font-size: 2rem;
    }

    .anime-subtitle {
        font-size: 1rem;
    }

    .social-links {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 8px;
        max-width: 200px;
        padding: 12px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        border-radius: 8px;
    }
    
    .social-links a img {
        width: 20px;
        height: 20px;
    }

    .product-image-container {
        height: 200px;
    }

    .product-title {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.2rem;
    }
}

/* Efectos especiales para hover en personajes */
.character-eyes-glow {
    position: relative;
}

.character-eyes-glow::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 45%;
    width: 10px;
    height: 5px;
    background: var(--anime-accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 
        15px 0 0 var(--anime-accent),
        0 0 10px var(--anime-accent),
        15px 0 10px var(--anime-accent);
}

.anime-product-card:hover .character-eyes-glow::after {
    opacity: 1;
    animation: eyesGlow 1s ease-in-out infinite alternate;
}

@keyframes eyesGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Efectos de transición tipo anime */
.anime-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--anime-dark);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.anime-transition.active {
    opacity: 1;
    pointer-events: all;
}

.anime-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--anime-accent), transparent);
    animation: transitionSweep 1s ease-in-out;
}

@keyframes transitionSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== OCULTAR CARRITO ===== */
.cart-btn {
    display: none !important;
}

/* ===== HEADER ANIME ESPECÍFICO ===== */
.anime-header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(0, 78, 137, 0.8));
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--anime-accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
} 