/* =========================================
   ANIMA AVATAR - HEADER CYBERPUNK
   ========================================= */

/* Variables Globales */
:root {
    /* Core Colors */
    --anima-bg: #050505;
    --anima-bg-dark: #020202;
    --anima-text: #E0E0E0;
    --anima-text-muted: #888888;

    /* Neon Palette */
    --neon-cyan: #00F0FF;
    --neon-purple: #BC13FE;
    --neon-green: #00FF94;
    --neon-pink: #FF0055;

    /* UI Elements */
    --glass-panel: rgba(20, 20, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: #0F0F12;

    /* Fonts */
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;

    /* Legacy Mappings (for compatibility) */
    --header-bg: var(--glass-panel);
    --header-border: var(--glass-border);
    --cyan: var(--neon-cyan);
    --purple: var(--neon-purple);
    --text-main: var(--anima-text);
    --green: var(--neon-green);
    --anima-card: var(--card-bg);
    --anima-border: var(--glass-border);
}

/* Global Utilities */
.anima-glass {
    background: var(--glass-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.anima-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.anima-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateY(-5px);
}

.anima-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.anima-card:hover .card-image {
    filter: grayscale(0%);
}

.anima-card .card-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.anima-card .card-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--anima-text-muted);
    margin-bottom: 15px;
}

/* Variant: Course Card */
.anima-card.course-card {
    border-left: 3px solid var(--neon-purple);
}

/* Variant: Item Card */
.anima-card.item-card {
    border-left: 3px solid var(--neon-green);
}

.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.neon-text-purple {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.8);
}

/* Button Reset & Style */
.cyber-btn {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 10px 25px;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cyber-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
}

.cyber-btn.purple {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.cyber-btn.purple:hover {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 20px var(--neon-purple);
}

/* Parche Global: Fondo negro */
html,
body,
#page,
.site-content {
    background-color: #050505 !important;
    color: #E0E0E0 !important;
}

/* Clase auxiliar para bloquear scroll cuando abre el menú */
body.no-scroll {
    overflow: hidden;
}

/* Contenedor Principal del Header */
/* =========================================
   ANIMA AVATAR - HEADER CYBERPUNK (v2.0)
   ========================================= */

.site-header {
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--neon-cyan);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.1);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan), var(--neon-pink));
    background-size: 200% 100%;
    animation: cyber-gradient 3s linear infinite;
}

@keyframes cyber-gradient {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* BRANDING */
.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    max-height: 60px;
    overflow: hidden;
}

.brand-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.glitch-logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    position: relative;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--neon-cyan);
    letter-spacing: 4px;
    margin-top: 2px;
    text-transform: uppercase;
}

.brand-icon-small {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.8));
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* NAVIGATION */
.pro-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.pro-menu-list li a {
    color: var(--anima-text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s;
    padding: 5px 0;
}

.pro-menu-list li a::before {
    content: '[';
    margin-right: 5px;
    color: transparent;
    transition: all 0.3s;
}

.pro-menu-list li a::after {
    content: ']';
    margin-left: 5px;
    color: transparent;
    transition: all 0.3s;
}

.pro-menu-list li a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan);
}

.pro-menu-list li a:hover::before,
.pro-menu-list li a:hover::after {
    color: var(--neon-cyan);
}

.pro-menu-list li {
    position: relative;
}

/* Submenu */
.pro-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(5, 5, 5, 0.98);
    border: 1px solid var(--neon-cyan);
    min-width: 220px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: block;
}

.pro-menu-list li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pro-menu-list .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.pro-menu-list .sub-menu li a::before,
.pro-menu-list .sub-menu li a::after {
    content: '' !important;
    margin: 0;
}

.pro-menu-list .sub-menu li a:hover {
    background: rgba(0, 243, 255, 0.1);
    color: #fff;
    padding-left: 25px;
}

/* ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cyber-btn-small {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 8px 25px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: bold;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.cyber-btn-small:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff00;
}

@media (max-width: 900px) {
    .pro-nav {
        display: none;
    }

    .header-container {
        padding: 0 15px;
    }
}

/* =========================================
   RESPONSIVE (MÓVIL) - REHECHO Y LIMPIO
   ========================================= */
@media (max-width: 900px) {

    /* Ajuste de Logo para dar espacio */
    .site-title {
        font-size: 1.4rem;
        /* Un poco más pequeño */
    }

    /* Ajuste del contenedor de acciones para que entren botón + hamburguesa */
    .site-header__actions {
        gap: 10px;
        /* Menos espacio entre botón y menú */
    }

    /* Botón 'Mi Área' COMPACTO en móvil */
    .header-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        /* Letra más pequeña */
        white-space: nowrap;
        /* Que no salte de línea */
        /* Opcional: si quieres solo borde en móvil para que sea más ligero visualmente */
        background: transparent;
    }

    /* Mostrar Hamburguesa */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: transparent;
        border: 1px solid var(--neon-cyan);
        padding: 8px;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle .icon-bar {
        width: 25px;
        height: 2px;
        background-color: var(--neon-cyan);
        transition: all 0.3s;
    }

    /* Animación Hamburguesa (Opcional: X cuando abre) */
    .menu-toggle.active .icon-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active .icon-bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .icon-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* EL MENÚ MÓVIL A PANTALLA COMPLETA */
    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        /* Sale desde la derecha */
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        /* Casi opaco para leer bien */
        padding-top: 80px;
        /* Espacio arriba para no tapar header */
        /* Centrado FLEX */
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Centrado Vertical */
        align-items: center;
        /* Centrado Horizontal */
        /* Animación */
        transform: translateX(100%);
        /* Oculto fuera de pantalla */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        /* Debajo del header (1000) pero encima del contenido */
    }

    /* Clase que JS añade para mostrar */
    .main-navigation.toggled {
        transform: translateX(0);
    }

    /* Lista del menú en móvil */
    .main-menu__list {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 25px;
        /* Espacio generoso entre enlaces */
    }

    .main-menu__list li {
        border: none;
        /* Quitamos bordes para look limpio */
        width: auto;
    }

    .main-menu__list li a {
        font-size: 1.5rem;
        /* Letra GRANDE y legible */
        padding: 10px;
        display: inline-block;
    }

    /* Submenús en móvil */
    .main-menu__list ul.sub-menu {
        position: relative;
        background: transparent;
        border: none;
        padding-top: 10px;
        align-items: center;
        /* Centrar items submenú */
    }
}

/* =========================================
   FOOTER CYBERPUNK
   ========================================= */
/* =========================================
   ANIMA AVATAR - FOOTER CYBERPUNK (v2.0)
   ========================================= */

.site-footer {
    background-color: var(--anima-bg-dark);
    padding-top: 0;
    position: relative;
    margin-top: 80px;
    border-top: 1px solid var(--glass-border);
}

.footer-neon-line {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    margin-bottom: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: var(--font-head);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-desc {
    color: var(--anima-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.footer-heading {
    font-family: var(--font-head);
    color: var(--neon-cyan);
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    color: var(--anima-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
    font-family: var(--font-body);
}

.footer-nav ul li a:hover {
    color: #fff;
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    color: var(--neon-cyan);
}

/* System Status Widget */
.system-status-widget {
    padding: 15px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
}

.status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.status-row:last-child {
    margin-bottom: 0;
}

.status-label {
    color: var(--anima-text-muted);
}

.status-value {
    color: #fff;
}

.status-value.online {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

/* Socials */
.footer-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.social-link:hover {
    border-color: var(--neon-purple);
    background: rgba(188, 19, 254, 0.2);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.5);
    transform: translateY(-3px);
}

/* Newsletter */
.newsletter-box p {
    font-size: 0.85rem;
    color: var(--anima-text-muted);
    margin-bottom: 10px;
}

.cyber-form-small {
    display: flex;
    gap: 5px;
}

.cyber-form-small input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    width: 100%;
}

.cyber-form-small button {
    background: var(--neon-cyan);
    border: none;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    padding: 0 15px;
}

/* Bottom */
.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 20px;
    text-align: center;
    background: #000;
}

.copyright {
    font-size: 0.8rem;
    color: #555;
    font-family: var(--font-mono);
}

.secure-badge {
    margin-left: 15px;
    color: var(--neon-green);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .status-row {
        justify-content: center;
        gap: 10px;
    }
}

/* =========================================
   WOOCOMMERCE & CARRITO CYBERPUNK
   ========================================= */

.woocommerce-cart .entry-content {
    background: var(--anima-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--anima-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.woocommerce h1,
.woocommerce h2 {
    font-family: 'Rajdhani', sans-serif;
    color: #FFF;
    text-transform: uppercase;
    border-bottom: 2px solid var(--anima-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.woocommerce table.shop_table {
    border: none;
    width: 100%;
    margin-bottom: 40px;
    background: transparent;
}

.woocommerce table.shop_table th {
    background-color: var(--anima-card);
    border: none;
    color: var(--cyan);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    padding: 15px 10px;
    border-bottom: 1px solid var(--anima-border);
}

.woocommerce table.shop_table td {
    background-color: transparent;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    border-left: none;
    border-right: none;
    color: var(--text-main);
    vertical-align: middle;
    padding: 20px 10px;
}

.woocommerce table.shop_table td.product-name a {
    color: #FFF;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.woocommerce table.shop_table td.product-name a:hover {
    color: var(--cyan);
}

.woocommerce table.shop_table .product-remove a {
    color: #FF5733;
    font-size: 1.5em;
    opacity: 0.8;
    transition: transform 0.2s;
}

.woocommerce table.shop_table .product-remove a:hover {
    color: #FF5733;
    opacity: 1;
    transform: scale(1.1);
}

.woocommerce table.shop_table .qty {
    background: #222;
    color: #FFF;
    border: 1px solid var(--anima-border);
    border-radius: 4px;
    padding: 5px;
    width: 60px;
    height: auto;
}

.woocommerce .actions .button {
    background: var(--purple) !important;
    color: #FFF !important;
    border: none;
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.4);
}

.woocommerce .actions .button:hover {
    background: #fff !important;
    color: #000 !important;
    box-shadow: 0 0 15px var(--purple);
}

.cart_totals {
    background: #1A1A1A;
    border: 1px solid var(--cyan);
    padding: 20px;
    border-radius: 8px;
}

.cart_totals table {
    border: none;
    background: transparent;
}

.cart_totals table th {
    color: var(--text-main);
    font-weight: 600;
}

.cart_totals table td {
    color: var(--green);
    font-weight: 700;
    font-size: 1.2em;
    text-shadow: 0 0 5px rgba(0, 255, 148, 0.2);
}

.wc-proceed-to-checkout a.checkout-button {
    background: var(--green) !important;
    color: #000 !important;
    box-shadow: 0 0 15px var(--green);
    font-size: 1.2em;
    padding: 15px 30px;
    text-align: center;
}

.wc-proceed-to-checkout a.checkout-button:hover {
    box-shadow: 0 0 25px var(--green);
}

.woocommerce-message,
.woocommerce-error {
    background: rgba(188, 19, 254, 0.1);
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #333;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.footer-socials a:hover {
    border-color: #BC13FE;
    background: rgba(188, 19, 254, 0.2);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.5);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #555;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

/* =========================================
   WOOCOMMERCE & CARRITO CYBERPUNK
   ========================================= */

.woocommerce-cart .entry-content {
    background: var(--anima-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--anima-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.woocommerce h1,
.woocommerce h2 {
    font-family: 'Rajdhani', sans-serif;
    color: #FFF;
    text-transform: uppercase;
    border-bottom: 2px solid var(--anima-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.woocommerce table.shop_table {
    border: none;
    width: 100%;
    margin-bottom: 40px;
    background: transparent;
}

.woocommerce table.shop_table th {
    background-color: var(--anima-card);
    border: none;
    color: var(--cyan);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    padding: 15px 10px;
    border-bottom: 1px solid var(--anima-border);
}

.woocommerce table.shop_table td {
    background-color: transparent;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    border-left: none;
    border-right: none;
    color: var(--text-main);
    vertical-align: middle;
    padding: 20px 10px;
}

.woocommerce table.shop_table td.product-name a {
    color: #FFF;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.woocommerce table.shop_table td.product-name a:hover {
    color: var(--cyan);
}

.woocommerce table.shop_table .product-remove a {
    color: #FF5733;
    font-size: 1.5em;
    opacity: 0.8;
    transition: transform 0.2s;
}

.woocommerce table.shop_table .product-remove a:hover {
    color: #FF5733;
    opacity: 1;
    transform: scale(1.1);
}

.woocommerce table.shop_table .qty {
    background: #222;
    color: #FFF;
    border: 1px solid var(--anima-border);
    border-radius: 4px;
    padding: 5px;
    width: 60px;
    height: auto;
}

.woocommerce .actions .button {
    background: var(--purple) !important;
    color: #FFF !important;
    border: none;
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.4);
}

.woocommerce .actions .button:hover {
    background: #fff !important;
    color: #000 !important;
    box-shadow: 0 0 15px var(--purple);
}

.cart_totals {
    background: #1A1A1A;
    border: 1px solid var(--cyan);
    padding: 20px;
    border-radius: 8px;
}

.cart_totals table {
    border: none;
    background: transparent;
}

.cart_totals table th {
    color: var(--text-main);
    font-weight: 600;
}

.cart_totals table td {
    color: var(--green);
    font-weight: 700;
    font-size: 1.2em;
    text-shadow: 0 0 5px rgba(0, 255, 148, 0.2);
}

.wc-proceed-to-checkout a.checkout-button {
    background: var(--green) !important;
    color: #000 !important;
    box-shadow: 0 0 15px var(--green);
    font-size: 1.2em;
    padding: 15px 30px;
    text-align: center;
}

.wc-proceed-to-checkout a.checkout-button:hover {
    box-shadow: 0 0 25px var(--green);
}

.woocommerce-message,
.woocommerce-error {
    background: rgba(188, 19, 254, 0.1);
    border-top: 3px solid var(--purple);
    color: var(--text-main);
}


/* Etiqueta flotante sobre la imagen */
.an-card__label-coming-soon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #BC13FE;
    /* Tu color morado neón */
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Efecto opcional: Oscurecer la imagen */
.an-card:has(.an-card__label-coming-soon) .an-card__image {
    filter: grayscale(0.8) brightness(0.7);
    transition: filter 0.3s ease;
}

/* =========================================
   HERO 3D & ANIMA LIVE TEASER
   ========================================= */

.hero.relative {
    position: relative;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Permitir clicks en botones */
}

.hero .container.relative {
    position: relative;
    z-index: 10;
}

.anima-live-teaser {
    background: linear-gradient(135deg, #050505 0%, #120a1f 100%);
    border-top: 1px solid var(--purple);
    border-bottom: 1px solid var(--purple);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.anima-live-teaser h2 {
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(188, 19, 254, 0.6);
    margin-bottom: 20px;
}

.anima-live-teaser p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #ccc;
}

.anima-live-badge {
    background: #BC13FE;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 0 15px #BC13FE;
}

/* ===========================================================
   12. GLOBAL MOBILE APP STYLES & DOCK
   =========================================================== */

:root {
    --anima-app-accent: #00F0FF;
    /* Default fallback */
    --dock-height: 70px;
    --safe-area-bottom: env(safe-area-inset-bottom, 20px);
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(var(--dock-height) + var(--safe-area-bottom) + 20px) !important;
        overscroll-behavior-y: none;
        /* Prevent pull-to-refresh on some devices */
    }

    /* Hide default footer or adjust it */
    .site-footer {
        margin-bottom: calc(var(--dock-height) + var(--safe-area-bottom));
    }

    /* Mobile Dock */
    .anima-mobile-dock {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(var(--dock-height) + var(--safe-area-bottom));
        background: rgba(10, 10, 10, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: space-around;
        align-items: flex-start;
        /* Align to top of dock area */
        padding-top: 10px;
        padding-bottom: var(--safe-area-bottom);
        z-index: 9999;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    }

    .dock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #888;
        text-decoration: none;
        font-size: 0.7rem;
        flex: 1;
        transition: all 0.3s ease;
    }

    .dock-item .dashicons {
        font-size: 24px;
        margin-bottom: 4px;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dock-item.active {
        color: var(--anima-app-accent);
    }

    .dock-item.active .dashicons {
        text-shadow: 0 0 10px var(--anima-app-accent);
    }

    /* Center Floating Button */
    .dock-item.dock-main {
        position: relative;
        top: -25px;
    }

    .dock-circle {
        width: 55px;
        height: 55px;
        background: linear-gradient(135deg, var(--anima-app-accent), #bc13fe);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 15px var(--anima-app-accent);
        border: 3px solid #000;
    }

    .dock-circle .dashicons {
        color: #000;
        font-size: 28px;
        margin-bottom: 0;
    }

    /* App-like Touch Targets */
    button,
    .button,
    a {
        touch-action: manipulation;
    }
}

/* XP Progress Bar */
.xp-progress-container {
    margin: 20px 0;
    text-align: left;
}

.xp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.xp-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #333;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    box-shadow: 0 0 10px var(--cyan);
    transition: width 0.5s ease;
}


.hero.relative {
    position: relative;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Permitir clicks en botones */
}

.hero .container.relative {
    position: relative;
    z-index: 10;
}

.anima-live-teaser {
    background: linear-gradient(135deg, #050505 0%, #120a1f 100%);
    border-top: 1px solid var(--purple);
    border-bottom: 1px solid var(--purple);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.anima-live-teaser h2 {
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(188, 19, 254, 0.6);
    margin-bottom: 20px;
}

.anima-live-teaser p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #ccc;
}

.anima-live-badge {
    background: #BC13FE;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 0 15px #BC13FE;
}

/* ===========================================================
   12. GLOBAL MOBILE APP STYLES & DOCK
   =========================================================== */

:root {
    --anima-app-accent: #00F0FF;
    /* Default fallback */
    --dock-height: 70px;
    --safe-area-bottom: env(safe-area-inset-bottom, 20px);
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(var(--dock-height) + var(--safe-area-bottom) + 20px) !important;
        overscroll-behavior-y: none;
        /* Prevent pull-to-refresh on some devices */
    }

    /* Hide default footer or adjust it */
    .site-footer {
        margin-bottom: calc(var(--dock-height) + var(--safe-area-bottom));
    }

    /* Mobile Dock */
    .anima-mobile-dock {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(var(--dock-height) + var(--safe-area-bottom));
        background: rgba(10, 10, 10, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: space-around;
        align-items: flex-start;
        /* Align to top of dock area */
        padding-top: 10px;
        padding-bottom: var(--safe-area-bottom);
        z-index: 9999;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    }

    .dock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #888;
        text-decoration: none;
        font-size: 0.7rem;
        flex: 1;
        transition: all 0.3s ease;
    }

    .dock-item .dashicons {
        font-size: 24px;
        margin-bottom: 4px;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dock-item.active {
        color: var(--anima-app-accent);
    }

    .dock-item.active .dashicons {
        text-shadow: 0 0 10px var(--anima-app-accent);
    }

    /* Center Floating Button */
    .dock-item.dock-main {
        position: relative;
        top: -25px;
    }

    .dock-circle {
        width: 55px;
        height: 55px;
        background: linear-gradient(135deg, var(--anima-app-accent), #bc13fe);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 15px var(--anima-app-accent);
        border: 3px solid #000;
    }

    .dock-circle .dashicons {
        color: #000;
        font-size: 28px;
        margin-bottom: 0;
    }

    /* App-like Touch Targets */
    button,
    .button,
    a {
        touch-action: manipulation;
    }
}

/* XP Progress Bar */
.xp-progress-container {
    margin: 20px 0;
    text-align: left;
}

.xp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.xp-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #333;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    box-shadow: 0 0 10px var(--cyan);
    transition: width 0.5s ease;
}

.xp-details {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 5px;
    text-align: center;
    font-style: italic;
}

/* ===========================================================
   12. MODERN LOGIN PAGE STYLES
   =========================================================== */
.anima-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.anima-login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.2) 0%, transparent 50%);
    z-index: 0;
}

.anima-login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.login-header h1 {
    font-family: 'Orbitron', sans-serif;
    color: var(--cyan);
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-subtitle {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Form Styles */
#anima-login-form p {
    margin-bottom: 20px;
    text-align: left;
}

#anima-login-form label {
    display: block;
    color: #ddd;
    font-size: 0.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#anima-login-form input[type="text"],
#anima-login-form input[type="password"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 12px 15px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#anima-login-form input[type="text"]:focus,
#anima-login-form input[type="password"]:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    outline: none;
}

.login-remember {
    font-size: 0.8rem;
    color: #aaa;
}

#anima-login-form input[type="submit"] {
    width: 100%;
    background: linear-gradient(45deg, var(--purple), var(--cyan));
    border: none;
    padding: 15px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Orbitron', sans-serif;
}

#anima-login-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
}

.login-footer {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #888;
}

.login-footer a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    height: 55px;
    background: linear-gradient(135deg, var(--anima-app-accent), #bc13fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--anima-app-accent);
    border: 3px solid #000;
}

.dock-circle .dashicons {
    color: #000;
    font-size: 28px;
    margin-bottom: 0;
}

/* App-like Touch Targets */
button,
.button,
a {
    touch-action: manipulation;
}


/* XP Progress Bar */
.xp-progress-container {
    margin: 20px 0;
    text-align: left;
}

.xp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.xp-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #333;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    box-shadow: 0 0 10px var(--cyan);
    transition: width 0.5s ease;
}

.xp-details {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 5px;
    text-align: center;
    font-style: italic;
}

/* ===========================================================
   12. MODERN LOGIN PAGE STYLES
   =========================================================== */
.anima-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.anima-login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.2) 0%, transparent 50%);
    z-index: 0;
}

.anima-login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.login-header h1 {
    font-family: 'Orbitron', sans-serif;
    color: var(--cyan);
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-subtitle {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Form Styles */
#anima-login-form p {
    margin-bottom: 20px;
    text-align: left;
}

#anima-login-form label {
    display: block;
    color: #ddd;
    font-size: 0.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#anima-login-form input[type="text"],
#anima-login-form input[type="password"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 12px 15px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#anima-login-form input[type="text"]:focus,
#anima-login-form input[type="password"]:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    outline: none;
}

.login-remember {
    font-size: 0.8rem;
    color: #aaa;
}

#anima-login-form input[type="submit"] {
    width: 100%;
    background: linear-gradient(45deg, var(--purple), var(--cyan));
    border: none;
    padding: 15px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Orbitron', sans-serif;
}

#anima-login-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
}

.login-footer {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #888;
}

.login-footer a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--cyan);
}

.separator {
    margin: 0 10px;
    color: #555;
}

/* Registration Form Specifics */
#anima-register-form p {
    margin-bottom: 20px;
    text-align: left;
}

#anima-register-form label {
    display: block;
    color: #ddd;
    font-size: 0.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#anima-register-form input[type="text"],
#anima-register-form input[type="email"],
#anima-register-form input[type="password"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 12px 15px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#anima-register-form input[type="text"]:focus,
#anima-register-form input[type="email"]:focus,
#anima-register-form input[type="password"]:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    outline: none;
}

#anima-register-form input[type="submit"] {
    width: 100%;
    background: linear-gradient(45deg, var(--purple), var(--cyan));
    border: none;
    padding: 15px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Orbitron', sans-serif;
}

#anima-register-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
}

.anima-errors {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    color: #ffcccc;
    font-size: 0.9rem;
}

/* ===========================================================
   13. WOOCOMMERCE CART & CHECKOUT STYLES
   =========================================================== */

/* Cart Table */
.woocommerce-cart .woocommerce table.shop_table {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.woocommerce-cart .woocommerce table.shop_table th {
    background: rgba(0, 0, 0, 0.5);
    color: var(--cyan);
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    padding: 15px;
}

.woocommerce-cart .woocommerce table.shop_table td {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    color: #ddd;
}

.woocommerce-cart .woocommerce table.shop_table a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-cart .woocommerce table.shop_table a:hover {
    color: var(--purple);
}

/* Cart Totals */
.cart_totals {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--purple);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
}

.cart_totals h2 {
    color: var(--purple);
    font-family: 'Orbitron', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.cart_totals table.shop_table {
    border: none;
    background: transparent;
}

.cart_totals table.shop_table th {
    background: transparent;
    color: #aaa;
    font-weight: normal;
}

.cart_totals table.shop_table td {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: bold;
}

/* Checkout Fields */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.woocommerce-checkout h3 {
    color: var(--cyan);
    font-family: 'Orbitron', sans-serif;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Buttons */
.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: linear-gradient(45deg, var(--purple), var(--cyan));
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    border-radius: 5px;
    padding: 15px 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background: linear-gradient(45deg, var(--cyan), var(--purple));
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

/* Order Review */
#order_review {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#order_review_heading {
    color: var(--purple);
    font-family: 'Orbitron', sans-serif;
    margin-top: 30px;
}

/* =========================================
   FIX GLOBAL: HEADER & WOOCOMMERCE
   ========================================= */

/* 1. CONTROL DE LOGO (Fuerza bruta) */
/* Esto obliga al logo a ser pequeño en TODAS las páginas */
.brand-icon-small,
.header-brand img,
.site-header img,
.custom-logo {
    max-height: 50px !important;
    /* Altura fija máxima */
    width: auto !important;
    /* Mantiene proporción */
    min-width: auto !important;
    /* Evita que se estire */
    object-fit: contain;
}

/* 2. AJUSTE CONTENEDOR WOOCOMMERCE */
/* Evita que el carrito se pegue a los bordes en pantallas grandes */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 3. ESPACIO DE SEGURIDAD HEADER */
/* Asegura que el contenido no se meta debajo del header */
body.woocommerce-cart,
body.woocommerce-checkout {
    padding-top: 20px;
}

/* =========================================
   WOOCOMMERCE CHECKOUT - CYBERPUNK STYLE
   ========================================= */

/* 1. CONTENEDOR PRINCIPAL */
/* Centramos y damos ancho máximo para que no se estire */
.woocommerce-checkout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Layout de 2 Columnas más definido */
.col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* En móvil, una columna */
@media (max-width: 900px) {
    .col2-set {
        grid-template-columns: 1fr;
    }
}

/* 2. CAJAS / PANELES (Billing & Shipping) */
/* Convertimos las secciones en tarjetas */
.col-1,
.col-2,
#order_review_heading,
#order_review {
    background: #0F0F12;
    /* Fondo tarjeta oscuro */
    border: 1px solid #333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Títulos de Sección */
.woocommerce-checkout h3 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #00F0FF;
    /* Línea Cian */
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

/* 3. CAMPOS DE FORMULARIO (INPUTS) */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.select2-container .select2-selection--single {
    background-color: #050505 !important;
    /* Fondo negro */
    border: 1px solid #333 !important;
    color: #E0E0E0 !important;
    padding: 12px 15px !important;
    border-radius: 4px !important;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    height: auto !important;
}

/* Efecto Focus (Al escribir) */
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #BC13FE !important;
    /* Borde Morado Neón */
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
    outline: none;
}

/* Etiquetas (Labels) */
.woocommerce form .form-row label {
    color: #00F0FF;
    /* Texto Cian */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Asterisco de obligatorio */
.required {
    color: #FF0055 !important;
    /* Rojo neón */
    text-decoration: none;
}

/* 4. BARRA DE CUPÓN (Arriba del todo) */
.woocommerce-info {
    background-color: rgba(0, 240, 255, 0.1) !important;
    border-top: 3px solid #00F0FF !important;
    color: #fff !important;
    font-family: 'Rajdhani', sans-serif;
}

.woocommerce-info::before {
    color: #00F0FF !important;
}

.woocommerce-info a {
    color: #BC13FE !important;
    font-weight: bold;
}

/* =========================================
   MOBILE DOCK (BARRA INFERIOR TIPO APP)
   ========================================= */
/* Oculto en escritorio */
.anima-mobile-dock {
    display: none;
}

/* Solo visible en móvil */
@media (max-width: 992px) {

    /* Espacio extra en el body para que el dock no tape el contenido */
    body {
        padding-bottom: 80px !important;
    }

    .anima-mobile-dock {
        display: flex !important;
        /* Forzar visibilidad */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: rgba(5, 5, 8, 0.98);
        /* Fondo casi negro */
        backdrop-filter: blur(15px);
        /* Efecto cristal */
        border-top: 1px solid #222;
        z-index: 9999;
        /* Por encima de todo */
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom, 10px);
        /* Seguridad iPhone */
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
    }

    .dock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #666;
        text-decoration: none;
        font-size: 0.7rem;
        font-family: 'Rajdhani', sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        width: 20%;
        /* Distribución equitativa */
        transition: all 0.3s ease;
        position: relative;
    }

    .dock-item .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
        transition: 0.3s;
    }

    /* Estado Activo / Hover */
    .dock-item.active,
    .dock-item:hover {
        color: #00F0FF;
    }

    .dock-item.active .dashicons {
        text-shadow: 0 0 10px #00F0FF;
        transform: translateY(-2px);
    }

    /* --- BOTÓN CENTRAL (NEXUS) --- */
    .dock-item.dock-main {
        position: relative;
        top: -25px;
        /* Flotar hacia arriba */
    }

    .dock-circle {
        width: 55px;
        height: 55px;
        background: linear-gradient(135deg, #00F0FF, #BC13FE);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
        border: 5px solid #000;
        /* Borde negro para separarlo del fondo */
        color: #fff;
        transition: 0.3s;
    }

    .dock-circle:hover {
        transform: scale(1.1) rotate(180deg);
        box-shadow: 0 0 30px rgba(188, 19, 254, 0.6);
    }

    .dock-circle .dashicons {
        color: #000;
        /* Icono negro dentro del círculo */
        margin: 0;
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
}

/* =========================================
   FRONT PAGE - CYBERPUNK REDESIGN
   ========================================= */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.hero-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    color: var(--neon-purple);
    margin-top: -10px;
    letter-spacing: 10px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.2rem;
    color: #ccc;
    margin: 30px 0 50px;
    line-height: 1.6;
}

.highlight {
    color: var(--neon-cyan);
    font-weight: bold;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cyber-btn-large {
    background: var(--neon-cyan);
    color: #000;
    padding: 15px 40px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.cyber-btn-large:hover {
    box-shadow: 0 0 30px var(--neon-cyan);
    transform: scale(1.05);
}

.cyber-btn-outline {
    background: transparent;
    border: 2px solid var(--neon-purple);
    color: var(--neon-purple);
    padding: 15px 40px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    transition: all 0.3s;
    display: inline-block;
}

.cyber-btn-outline:hover {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 30px var(--neon-purple);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Share Tech Mono', monospace;
    color: #666;
    font-size: 0.8rem;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--neon-cyan), transparent);
}

/* Protocols Section */
.protocols-section {
    padding: 100px 20px;
    background: #050505;
    position: relative;
}

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

.section-subtitle {
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-cyan);
    font-size: 1rem;
    letter-spacing: 2px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #fff;
    margin: 10px 0 0;
}

.protocols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.cyber-card {
    position: relative;
    background: #0a0a0a;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.4s;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transition: transform 0.6s;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #000 10%, transparent 100%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transform: translateY(0);
    transition: transform 0.4s;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 10px;
}

.card-desc {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s;
}

.card-cta {
    color: var(--neon-cyan);
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cyber-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
}

.cyber-card:hover .card-bg {
    transform: scale(1.1);
    opacity: 0.6;
}

.cyber-card:hover .card-icon {
    transform: translateY(-10px);
}

.cyber-card:hover .card-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Synapse Section */
.synapse-section {
    padding: 100px 20px;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

.synapse-container {
    max-width: 900px;
    margin: 0 auto;
}

.terminal-window {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(188, 19, 254, 0.1);
    overflow: hidden;
}

.terminal-header {
    background: #1a1a1a;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f56;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #27c93f;
}

.terminal-title {
    font-family: 'Share Tech Mono', monospace;
    color: #666;
    font-size: 0.9rem;
}

.terminal-status {
    color: var(--neon-green);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
}

.terminal-body {
    padding: 40px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-cyan);
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.system-msg {
    color: #666;
}

.ai-msg {
    color: #fff;
    font-size: 1.1rem;
}

.terminal-input-area {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.prompt {
    color: var(--neon-purple);
}

.terminal-btn {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.terminal-btn:hover {
    background: var(--neon-cyan);
    color: #000;
}

.terminal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Final CTA */
.final-cta-section {
    padding: 100px 20px;
    text-align: center;
    background: #000;
}

.cta-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
}

.cta-text {
    color: #aaa;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.cyber-btn-large.white {
    background: #fff;
    color: #000;
}

.cyber-btn-large.white:hover {
    box-shadow: 0 0 30px #fff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}


/* NOTIFICATION TICKER */
.hud-notification-ticker {
    flex-basis: 100%;
    width: 100%;
    margin-left: 0 !important;
    padding-left: 0 !important;
    border-left: none !important;
    /* Espaciado superior */
    margin-top: 20px;
    padding-top: 15px;
    padding-bottom: 5px;
    /* Espacio extra abajo para que no se corte la sombra */
    border-top: 1px dashed #333;
    /* Configuración del Scroll Horizontal */
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    /* Asegura que los items se pongan en fila */
    gap: 10px;
    /* Espacio entre etiquetas */
    /* Ocultar barra de scroll (Estético) */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

.hud-notification-ticker::-webkit-scrollbar {
    display: none;
}


.notif-item {
    font-size: 0.75rem;
    /* Texto legible */
    padding: 8px 12px;
    /* Más relleno para que sea fácil de tocar */
    flex-shrink: 0;
    /* Vital: Impide que se aplasten */
    max-width: 80vw;
    /* Evita que una sola ocupe toda la pantalla */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Puntos suspensivos si es muy largo */
}

.agent-details {
    width: 100%;
    /* Asegurar que usa el ancho disponible */
}

.agent-details h1 {
    font-size: 1.5rem !important;
    /* Nombre un poco más pequeño */
}

/* Tipos de Alerta */
.notif-item.type-system {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
    animation: pulse-red 2s infinite;
}

.notif-item.type-academy {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid #00F0FF;
    color: #00F0FF;
}

.notif-item.type-nexus {
    background: rgba(188, 19, 254, 0.1);
    border: 1px solid #BC13FE;
    color: #BC13FE;
}

.notif-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px currentColor;
    filter: brightness(1.2);
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 rgba(255, 68, 68, 0);
    }

    50% {
        box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 68, 68, 0);
    }
}

@media (max-width: 768px) {
    .hud-notification-ticker {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 10px;
        width: 100%;
        overflow-x: auto;
    }
}

.agent-id-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.agent-avatar-wrapper {
    margin-bottom: 15px;
}

.agent-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agent-details h1 {
    font-size: 1.5rem !important;
    margin-bottom: 5px;
}

/* =========================================
   ANIMA NOTIFICATIONS SYSTEM
   ========================================= */
.header-notifications {
    position: relative;
    margin-right: 15px;
}

.notif-bell {
    font-size: 24px;
    color: var(--neon-cyan);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.notif-bell:hover,
.notif-bell.has-notif {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--neon-pink);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px var(--neon-pink);
}

.notif-dropdown {
    position: absolute;
    top: 40px;
    right: -10px;
    width: 320px;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid var(--neon-cyan);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    flex-direction: column;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.notif-dropdown.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-header {
    padding: 12px 15px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-head);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
}

.refresh-notif {
    cursor: pointer;
    transition: transform 0.3s;
}

.refresh-notif:hover {
    transform: rotate(180deg);
    color: #fff;
}

.notif-list {
    max-height: 300px;
    overflow-y: auto;
}

.anima-notif-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.anima-notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.anima-notif-item.unread {
    background: rgba(0, 243, 255, 0.03);
    border-left: 2px solid var(--neon-cyan);
}

.notif-icon {
    font-size: 1.2rem;
}

.notif-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #e0e0e0;
    line-height: 1.3;
}

.notif-time {
    font-size: 0.7rem;
    color: var(--anima-text-muted);
    display: block;
    margin-top: 4px;
}

.notif-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    border-radius: 50%;
    position: absolute;
    top: 15px;
    right: 10px;
    box-shadow: 0 0 5px var(--neon-cyan);
}

.anima-empty-notif {
    padding: 20px;
    text-align: center;
    color: var(--anima-text-muted);
    font-size: 0.9rem;
}

.anima-loading-scan {
    padding: 20px;
    text-align: center;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    animation: blink 1s infinite;
}