/* --- GLOBAL STYLES & RESETS --- */
:root {
    --bg-color: #000000;
    --primary-color: #39ff14;
    --secondary-color: #ffffff;
    --glow-color: rgba(57, 255, 20, 0.6);
    --card-bg: rgba(0, 0, 0, 0.8);
    --border-color: rgba(57, 255, 20, 0.3);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Share Tech Mono', monospace;
    --color-warn: #ffcc00;
    --color-info: #00f7ff;
    --color-error: #ff4136;
    --color-dim: #666666;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: var(--bg-color);
    color: var(--secondary-color);
    font-family: var(--font-body);
    cursor: crosshair;
    position: relative;
    overflow-x: hidden;
}

#terminal-background {
    position: fixed;
    top: 120px; /* Espacio para el header */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: transparent;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 18px; /* Tamaño de fuente ligeramente mayor */
    line-height: 1.6;
    color: #39ff14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.8);
    pointer-events: none;
    opacity: 0.9;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

/* Fondo con grid animado avanzado */
#terminal-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(0, 30, 10, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 30, 10, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 80, 20, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 80, 20, 0.03) 1px, transparent 1px);
    background-size: 
        100px 100px,
        100px 100px,
        20px 20px,
        20px 20px;
    z-index: -1;
    animation: gridMove 200s linear infinite;
    opacity: 0.6;
}

/* Segunda capa de grid con diferente velocidad */
#terminal-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 255, 64, 0.02) 0%, transparent 1%) center/30px 30px,
        linear-gradient(90deg, rgba(0, 200, 50, 0.03) 1px, transparent 1px) center/100px 100px,
        linear-gradient(rgba(0, 200, 50, 0.03) 1px, transparent 1px) center/100px 100px;
    z-index: -1;
    animation: gridPulse 30s ease-in-out infinite alternate;
    opacity: 0.4;
}

@keyframes gridMove {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    50% {
        background-position: -50px 50px, -50px 50px, -10px 10px, -10px 10px;
    }
    100% {
        background-position: -100px 100px, -100px 100px, -20px 20px, -20px 20px;
    }
}

@keyframes gridPulse {
    0% {
        background-size: 30px 30px, 100px 100px, 100px 100px;
        opacity: 0.3;
    }
    50% {
        background-size: 35px 35px, 105px 105px, 105px 105px;
        opacity: 0.5;
    }
    100% {
        background-size: 30px 30px, 100px 100px, 100px 100px;
        opacity: 0.3;
    }
}

/* Efecto de escaneo */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(57, 255, 20, 0.1);
    box-shadow: 0 0 10px 2px rgba(57, 255, 20, 0.4);
    animation: scan 8s linear infinite;
    z-index: 5;
    pointer-events: none;
}

@keyframes scan {
    0% { top: -10px; opacity: 0; }
    5% { opacity: 0.8; }
    95% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

.terminal-line {
    position: absolute;
    white-space: nowrap;
    margin: 0;
    padding: 2px 15px;
    font-weight: 400;
    letter-spacing: 1px;
    font-family: 'Fira Code', 'Courier New', monospace;
    line-height: 1.6;
    pointer-events: none;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    background: none;
    transform: scale(1);
    transition: all 0.3s ease;
    will-change: transform, opacity, text-shadow;
    opacity: 0.92;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.8);
    z-index: 1;
}

.terminal-line:hover {
    transform: scale(1.03);
    opacity: 1;
    z-index: 10;
    text-shadow: 0 0 15px rgba(57, 255, 20, 1);
    letter-spacing: 1.2px;
    transition: all 0.2s ease;
}

.terminal-line::before {
    content: '>';
    margin-right: 10px;
    color: #39ff14;
    opacity: 0.7;
}

.terminal-line.ok { 
    color: #39ff14;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.9);
}

.terminal-line.warn { 
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.9);
}

.terminal-line.info { 
    color: #00f7ff;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.9);
}

.terminal-line.error { 
    color: #ff4136;
    text-shadow: 0 0 10px rgba(255, 65, 54, 0.9);
}

.terminal-line.dim { 
    color: #4a9e4a;
    text-shadow: 0 0 8px rgba(74, 158, 74, 0.7);
    opacity: 0.8;
}

/* Terminal cursor effect */
.terminal-line:last-child::after {
    content: '█';
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: #39ff14;
    margin-left: 5px;
}

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

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(0,0,0,0.5) 2px, rgba(0,0,0,0) 4px);
    pointer-events: none;
    z-index: -1;
    animation: scanline-move 10s linear infinite;
}

@keyframes scanline-move {
    from { transform: translateY(0); }
    to { transform: translateY(40px); }
}

.container {
    width: 90%;
    max-width: 1200px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(15px);
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 40px rgba(57, 255, 20, 0.15);
    border-radius: 20px;
    z-index: 1;
    color: #ffffff;
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    text-align: center;
    padding: 2rem 0 1rem; /* Aumentado el padding superior a 2rem */
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    position: relative;
    width: 300px;
    height: 154px;
    margin: 0 auto 1rem;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    margin-bottom: 1rem;
}

.logo.active {
    opacity: 1;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0; /* Añadido margen superior de 2rem */
    text-align: center;
}

.main-nav li {
    display: inline-block;
    margin: 0 10px;
}

.main-nav a {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
    border-color: var(--border-color);
    text-shadow: 0 0 8px var(--glow-color), 0 0 15px var(--glow-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(57, 255, 20, 0.3), 0 0 30px rgba(57, 255, 20, 0.2);
}

/* --- HERO SECTION --- */
#hero {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--glow-color);
}

.hero-content .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
}

.hero-cta {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #000000;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00ff88 50%, var(--primary-color) 100%);
    padding: 18px 40px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow:
        0 0 30px rgba(57, 255, 20, 0.5),
        0 10px 40px rgba(57, 255, 20, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    clip-path: polygon(90% 0, 100% 30%, 100% 100%, 10% 100%, 0 70%, 0 0);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

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

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow:
        0 0 50px rgba(57, 255, 20, 0.8),
        0 20px 60px rgba(57, 255, 20, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* --- TICKER --- */
.ticker-wrap {
    position: relative;
    width: 100%;
    height: 80px;  /* Aumentado de 60px a 80px */
    overflow: hidden;
    background: rgba(0, 15, 5, 0.85);
    border-top: 1px solid rgba(57, 255, 20, 0.4);
    border-bottom: 1px solid rgba(57, 255, 20, 0.4);
    padding: 0;
    z-index: 5;
    box-shadow: 0 0 25px rgba(0, 255, 64, 0.15);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #39ff14;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
    padding: 0;
    position: relative;
    height: 100%;
}

/* Efecto de texto punteado */
.ticker-text {
    position: relative;
    display: inline-block;
}

.ticker-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #39ff14;
    box-shadow: 0 0 5px #39ff14;
    opacity: 0.6;
    animation: blink 1s step-end infinite;
}

.ticker span {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    vertical-align: middle;
    position: relative;
    height: 100%;
}

.ticker-logo {
    height: 22px;
    width: auto;
    max-height: 22px;
    margin: 0 12px;
    vertical-align: middle;
    object-fit: contain;
}

/* Estilo específico para el logo de OVNI */
.ticker-logo[alt="UFO Logo"] {
    filter: 
        invert(0.8) 
        sepia(1) 
        hue-rotate(70deg) 
        saturate(5) 
        brightness(1.5)
        drop-shadow(0 0 6px rgba(57, 255, 20, 0.8));
    animation: pulse 2s infinite alternate, blink 2s step-end infinite;
}

/* Estilo específico para el logo de Pinche Chucho */
.ticker-logo[alt="Pinche Chucho Logo"] {
    height: 65px !important;  /* Aumentado de 50px a 65px */
    max-height: 100% !important;
    width: auto !important;
    max-width: 200px !important;  /* Aumentado de 150px a 200px */
    margin: 0 20px !important;  /* Aumentado el margen */
    padding: 0;
    vertical-align: middle;
    filter: 
        drop-shadow(0 0 15px rgba(57, 255, 20, 1))
        brightness(1.3)
        contrast(1.1);
    animation: 
        logoGlow 3s ease-in-out infinite,
        logoFloat 4s ease-in-out infinite;
    opacity: 1;
    transition: all 0.3s ease;
    transform: translateY(0);
    object-fit: contain;
}

@keyframes logoGlow {
    0%, 100% { 
        filter: 
            drop-shadow(0 0 8px rgba(57, 255, 20, 0.8))
            brightness(1.1);
        opacity: 0.9;
    }
    50% { 
        filter: 
            drop-shadow(0 0 15px rgba(57, 255, 20, 1))
            brightness(1.3);
        opacity: 1;
    }
}

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

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

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.8),
                    0 0 40px rgba(0, 255, 136, 0.5);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
        transform: translateY(0);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.9),
                    0 0 60px rgba(0, 255, 136, 0.6);
        text-shadow: 0 0 25px rgba(255, 255, 255, 1);
        transform: translateY(-3px);
    }
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.7),
                    0 0 30px rgba(0, 255, 136, 0.4);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        transform: translateY(0);
    }
    100% {
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.9),
                    0 0 50px rgba(0, 255, 136, 0.6);
        text-shadow: 0 0 20px rgba(255, 255, 255, 1);
        transform: translateY(-2px);
    }
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.7),
                    0 0 30px rgba(0, 255, 136, 0.4);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        transform: translateY(0);
    }
    100% {
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.9),
                    0 0 50px rgba(0, 255, 136, 0.6);
        text-shadow: 0 0 20px rgba(255, 255, 255, 1);
        transform: translateY(-2px);
    }
}

@keyframes buttonGlow {
    0% {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 15px rgba(46, 204, 113, 0.7);
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(46, 204, 113, 0.9);
        box-shadow: 0 0 25px rgba(46, 204, 113, 0.9);
    }
}

@keyframes blink {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.2; }
}

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

/* Efecto de escaneo para la marquesina */
.ticker-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(57, 255, 20, 0.8), 
        transparent
    );
    animation: scan 8s linear infinite;
    z-index: 2;
}

/* --- UNIFIED PROTOCOLS SECTION --- */
.unified-protocol-section {
    position: relative;
    padding: 4rem 2rem;
    background: rgba(0, 15, 5, 0.3);
    border: 1px solid rgba(57, 255, 20, 0.1);
    border-radius: 8px;
    margin: 3rem auto;
    max-width: 1200px;
    overflow: hidden;
}

.terminal-window {
    background: rgba(5, 10, 5, 0.9);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(5px);
}

.terminal-header {
    background: linear-gradient(90deg, #051a05, #0a2a0a);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(57, 255, 20, 0.2);
}

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

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-close { background: #ff5f56; }
.terminal-minimize { background: #ffbd2e; }
.terminal-expand { background: #27c93f; }

.terminal-title {
    color: rgba(57, 255, 20, 0.7);
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    text-align: center;
    flex-grow: 1;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 20px;
    color: #39ff14;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.terminal-line {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.prompt {
    color: #39ff14;
    margin-right: 10px;
    white-space: nowrap;
}

.command {
    color: #fff;
    position: relative;
    font-weight: 500;
}

.cursor {
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

.protocol-output {
    margin-top: 20px;
    position: relative;
}

.protocol-line {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(57, 255, 20, 0.05);
    border-left: 2px solid rgba(57, 255, 20, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.protocol-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(57, 255, 20, 0.1), 
        transparent
    );
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

.protocol-tag {
    background: rgba(57, 255, 20, 0.2);
    color: #39ff14;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 15px;
    min-width: 80px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.protocol-text {
    flex: 1;
    color: #e0e0e0;
}

.protocol-percent {
    width: 100px;
    height: 6px;
    background: rgba(57, 255, 20, 0.2);
    border-radius: 3px;
    margin-left: 15px;
    overflow: hidden;
    position: relative;
}

.protocol-percent::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, #39ff14, #7fff4f);
    animation: progress 2s ease-out forwards;
}

.protocol-scan {
    position: relative;
    height: 1px; /* Reducir altura */
    background: rgba(57, 255, 20, 0.05); /* Hacer más transparente */
    margin: 40px 0 20px; /* Ajustar márgenes */
    overflow: hidden;
    opacity: 0.7; /* Hacer más transparente */
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px; /* Hacer la línea más delgada */
    background: linear-gradient(90deg, 
        transparent, 
        rgba(57, 255, 20, 0.3), /* Reducir opacidad */
        transparent
    );
    animation: scan 8s linear infinite; /* Hacer más lento */
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.2); /* Añadir sombra sutil */
}

.scan-text {
    position: absolute;
    top: -22px;
    left: 0;
    color: rgba(57, 255, 20, 0.3); /* Hacer más transparente */
    font-size: 0.7rem; /* Reducir tamaño */
    letter-spacing: 2px; /* Reducir espaciado */
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    font-weight: 300; /* Hacer más fino */
    text-shadow: none; /* Eliminar sombra si existe */
}

.protocol-matrix {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.1;
    z-index: 0;
}

.terminal-input {
    margin-top: 20px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.terminal-footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(57, 255, 20, 0.1);
    font-size: 0.8rem;
}

.status-led {
    width: 10px;
    height: 10px;
    background: #ff4444;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #ff4444;
}

.status-led.active {
    background: #39ff14;
    box-shadow: 0 0 10px #39ff14;
    animation: pulse 2s infinite;
}

.status-text {
    color: #39ff14;
    margin-right: 20px;
    letter-spacing: 1px;
}

.status-crypto {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.status-crypto span {
    color: #999;
}

.crypto-value {
    color: #39ff14;
    font-weight: bold;
}

@keyframes progress {
    from { width: 0; }
}

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

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

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

/* --- GENERIC SECTION STYLES --- */
.interface-section, .grid-section {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    background: rgba(0, 0, 0, 0.9);
    margin: 2rem 0;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.interface-section.is-visible, .grid-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow:
        0 0 10px var(--glow-color),
        0 0 20px var(--glow-color),
        0 0 30px var(--glow-color);
}

/* --- PROTOCOL CARDS --- */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.protocol-card {
    background: radial-gradient(circle, rgba(5, 10, 15, 0.98) 0%, rgba(2, 5, 8, 0.95) 100%);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
    max-height: 500px;
    height: 500px;
    width: 100%;
    max-width: 350px;
}

.protocol-card::before, .protocol-card::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: var(--primary-color);
    border-style: solid;
    transition: transform 0.4s ease;
}

.protocol-card::before {
    top: -5px;
    left: -5px;
    border-width: 2px 0 0 2px;
}

.protocol-card::after {
    bottom: -5px;
    right: -5px;
    border-width: 0 2px 2px 0;
}

.protocol-card:hover {
    box-shadow: 0 0 35px var(--glow-color), 0 0 70px rgba(57, 255, 20, 0.3);
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
}

.protocol-card:hover::before, .protocol-card:hover::after {
    transform: scale(1.2);
}

.protocol-card h3 {
    font-family: var(--font-heading);
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.protocol-card p {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.protocol-card .card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.protocol-card .cta-button {
    margin-top: auto;
    align-self: center;
}

.protocol-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 1.5rem auto;
    filter: drop-shadow(0 0 10px var(--glow-color));
    flex-shrink: 0;
}

/* --- WHITELIST & EXCHANGE FORMS --- */
.whitelist-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group, .form-group-captcha {
    display: flex;
    flex-direction: column;
}

.form-group label, .form-group-captcha label {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

input[type="text"], input[type="email"], textarea {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    border-radius: 12px;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.cta-button {
    background: linear-gradient(135deg, #00ff88 0%, var(--primary-color) 50%, #00ff88 100%);
    border: 2px solid #00ff88;
    color: #000000 !important;
    padding: 1.3rem 2.8rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-self: center;
    margin: 2rem auto;
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.8),
        0 0 40px rgba(0, 255, 136, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: buttonPulse 2s infinite alternate;
    display: inline-block;
    min-width: 300px;
    text-align: center;
}

.cta-button::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.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 50%, #00ff88 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 0 30px rgba(0, 255, 136, 0.9),
        0 0 70px rgba(0, 255, 136, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #000 !important;
    text-shadow: 0 0 20px #fff, 0 2px 4px rgba(0, 0, 0, 0.7);
    animation: none;
    letter-spacing: 3.5px;
}

.cta-button:active {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 0 25px rgba(0, 255, 136, 0.9),
        0 0 50px rgba(0, 255, 136, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.exchange-subtitle {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.placeholder-widget {
    border: 1px dashed var(--border-color);
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
}

.solana-logo {
    max-width: 150px;
    margin-top: 1rem;
    filter: grayscale(1) brightness(1.5);
}

/* --- MODERN MORPHING EFFECT --- */
.morphing {
    position: relative;
    display: inline-block;
}

.morphing::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        rgba(57, 255, 20, 0.3) 0%,
        rgba(0, 255, 136, 0.2) 25%,
        rgba(57, 255, 20, 0.3) 50%,
        rgba(0, 204, 255, 0.2) 75%,
        rgba(57, 255, 20, 0.3) 100%);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: morphing-shift 6s ease-in-out infinite;
    filter: blur(0.2px);
    opacity: 0.4;
}

.morphing::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(57, 255, 20, 0.2) 0%,
        rgba(0, 255, 136, 0.15) 50%,
        rgba(57, 255, 20, 0.2) 100%);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: morphing-pulse 4s ease-in-out infinite;
    filter: blur(0.3px);
    opacity: 0.3;
}

@keyframes morphing-shift {
    0% {
        background-position: 0% 0%;
        filter: blur(0.2px) hue-rotate(0deg);
    }
    25% {
        background-position: 100% 100%;
        filter: blur(0.1px) hue-rotate(45deg);
    }
    50% {
        background-position: 100% 0%;
        filter: blur(0.2px) hue-rotate(90deg);
    }
    75% {
        background-position: 0% 100%;
        filter: blur(0.1px) hue-rotate(135deg);
    }
    100% {
        background-position: 0% 0%;
        filter: blur(0.2px) hue-rotate(180deg);
    }
}

@keyframes morphing-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
        filter: blur(0.3px);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.005);
        filter: blur(0.2px);
    }
}

/* --- FOOTER --- */
.main-footer {
    text-align: center;
    padding: 3rem 1.5rem;
    margin-top: 3rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 20px 20px 0 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    margin: 0 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(57, 255, 20, 0.3);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .container {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
    .protocol-card {
        padding: 1.5rem;
    }
}

/* --- ENHANCED CYBERPUNK EFFECTS --- */

/* Floating particles effect - simplified */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.8; }
    100% { transform: translateY(-100vh) rotate(180deg); opacity: 0; }
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    border-radius: 50%;
    animation: float linear infinite;
}

.particle:nth-child(1) { left: 15%; animation-duration: 12s; animation-delay: -2s; }
.particle:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: -4s; }
.particle:nth-child(3) { left: 35%; animation-duration: 10s; animation-delay: -6s; }
.particle:nth-child(4) { left: 45%; animation-duration: 14s; animation-delay: -8s; }
.particle:nth-child(5) { left: 55%; animation-duration: 11s; animation-delay: -10s; }
.particle:nth-child(6) { left: 65%; animation-duration: 13s; animation-delay: -12s; }
.particle:nth-child(7) { left: 75%; animation-duration: 16s; animation-delay: -14s; }
.particle:nth-child(8) { left: 85%; animation-duration: 9s; animation-delay: -16s; }

/* Enhanced neon glow effects */
.neon-border {
    position: relative;
    border: 2px solid var(--primary-color) !important;
    box-shadow:
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color),
        0 0 15px var(--primary-color),
        0 0 20px var(--primary-color),
        inset 0 0 5px var(--primary-color),
        inset 0 0 10px var(--primary-color);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        box-shadow:
            0 0 5px var(--primary-color),
            0 0 10px var(--primary-color),
            0 0 15px var(--primary-color),
            0 0 20px var(--primary-color),
            inset 0 0 5px var(--primary-color),
            inset 0 0 10px var(--primary-color);
    }
    to {
        box-shadow:
            0 0 10px var(--primary-color),
            0 0 20px var(--primary-color),
            0 0 30px var(--primary-color),
            0 0 40px var(--primary-color),
            inset 0 0 10px var(--primary-color),
            inset 0 0 20px var(--primary-color);
    }
}

/* Holographic effect for cards */
.holographic {
    background: linear-gradient(45deg,
        rgba(57, 255, 20, 0.1) 0%,
        rgba(0, 247, 255, 0.1) 25%,
        rgba(255, 65, 54, 0.1) 50%,
        rgba(57, 255, 20, 0.1) 75%,
        rgba(0, 247, 255, 0.1) 100%);
    background-size: 400% 400%;
    animation: holographic-shift 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.holographic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%);
    animation: holographic-overlay 4s linear infinite;
    transform: rotate(45deg);
}

@keyframes holographic-shift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes holographic-overlay {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Matrix rain effect - full screen */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.1;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    color: var(--primary-color);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20px, 1fr));
    gap: 0;
    padding: 0;
    margin: 0;
}

.matrix-column {
    position: relative;
    height: 100vh;
    width: 100%;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    animation: matrix-fall linear infinite;
    text-shadow: 0 0 5px var(--primary-color);
    overflow: hidden;
}

@keyframes matrix-fall {
    0% { 
        transform: translateY(-100%); 
    }
    100% { 
        transform: translateY(100vh); 
    }
}

/* Añadir más columnas para cubrir toda la pantalla */
.matrix-column:nth-child(1) { left: 0%; animation-duration: 8s; animation-delay: -1s; }
.matrix-column:nth-child(2) { left: 5%; animation-duration: 6s; animation-delay: -2s; }
.matrix-column:nth-child(3) { left: 10%; animation-duration: 10s; animation-delay: -3s; }
.matrix-column:nth-child(4) { left: 15%; animation-duration: 7s; animation-delay: -4s; }
.matrix-column:nth-child(5) { left: 20%; animation-duration: 9s; animation-delay: -5s; }
.matrix-column:nth-child(6) { left: 25%; animation-duration: 8s; animation-delay: -6s; }
.matrix-column:nth-child(7) { left: 30%; animation-duration: 6s; animation-delay: -7s; }
.matrix-column:nth-child(8) { left: 35%; animation-duration: 11s; animation-delay: -8s; }
.matrix-column:nth-child(9) { left: 40%; animation-duration: 9s; animation-delay: -9s; }
.matrix-column:nth-child(10) { left: 45%; animation-duration: 7s; animation-delay: -10s; }
.matrix-column:nth-child(11) { left: 50%; animation-duration: 10s; animation-delay: -11s; }
.matrix-column:nth-child(12) { left: 55%; animation-duration: 8s; animation-delay: -12s; }
.matrix-column:nth-child(13) { left: 60%; animation-duration: 6s; animation-delay: -13s; }
.matrix-column:nth-child(14) { left: 65%; animation-duration: 9s; animation-delay: -14s; }
.matrix-column:nth-child(15) { left: 70%; animation-duration: 7s; animation-delay: -15s; }
.matrix-column:nth-child(16) { left: 75%; animation-duration: 10s; animation-delay: -16s; }
.matrix-column:nth-child(17) { left: 80%; animation-duration: 8s; animation-delay: -17s; }
.matrix-column:nth-child(18) { left: 85%; animation-duration: 6s; animation-delay: -18s; }
.matrix-column:nth-child(19) { left: 90%; animation-duration: 9s; animation-delay: -19s; }
.matrix-column:nth-child(20) { left: 95%; animation-duration: 7s; animation-delay: -20s; }

/* Enhanced form styling */
.form-group-captcha {
    position: relative;
}

.form-group-captcha label {
    background: linear-gradient(90deg, var(--primary-color), var(--color-info), var(--color-warn));
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Cyberpunk button enhancements */
.cyber-button {
    position: relative;
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(57, 255, 20, 0.4),
        transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.cyber-button:hover::before {
    left: 100%;
}

.cyber-button:hover {
    border-color: var(--color-info) !important;
    box-shadow:
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color),
        0 0 60px var(--primary-color) !important;
    transform: translateY(-2px) !important;
}

/* Enhanced scramble text effect */
.scramble-text {
    position: relative;
    display: inline-block;
}

.scramble-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        transparent 40%,
        rgba(57, 255, 20, 0.3) 50%,
        transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.scramble-text:hover::after {
    opacity: 1;
}

/* Pulsing grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
    background-image:
        linear-gradient(rgba(57, 255, 20, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 20, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-pulse 4s ease-in-out infinite;
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.15; }
}

/* Enhanced loading animation */
.loading-pulse {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: loading-spin 1s ease-in-out infinite;
    position: relative;
}

.loading-pulse::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 32px;
    height: 32px;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: loading-spin 2s linear infinite;
    opacity: 0.3;
}

.exchange-widget-container {
    position: relative;
    width: 100%;
    min-height: 400px; /* Aumentado para evitar cortes en móviles */
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
}

.exchange-widget-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Aumentado para evitar cortes en móviles */
    border: none;
}

@keyframes border-glow {
    0% { opacity: 0.1; }
    100% { opacity: 0.3; }
}

/* Magic Sparkle Effect */
@keyframes sparkle {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

.magic-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 1.5s ease-out forwards;
    box-shadow: 0 0 15px var(--primary-color);
}

.sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Magic cursor trail effect */
body {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2339ff14"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>') 12 12, crosshair;
}

/* Exchange Widget Styles */
.exchange-widget-container {
    position: relative;
    width: 100%;
    min-height: 400px; /* Aumentado para evitar cortes en móviles */
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
}

.exchange-widget-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Aumentado para evitar cortes en móviles */
    border: none;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .exchange-widget-container {
        min-height: 350px;
        margin: 15px 0;
    }
    
    .exchange-widget-container iframe {
        min-height: 350px;
    }
}

/* Magic button enhancement */
.hero-cta, .cta-button {
    position: relative;
}

.hero-cta::after, .cta-button::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    animation: magic-sparkle-float 2s ease-in-out infinite alternate;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-cta:hover::after, .cta-button:hover::after {
    opacity: 1;
}

@keyframes magic-sparkle-float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(360deg); }
}

/* Magic form enhancement */
.form-group-captcha label {
    position: relative;
}

.form-group-captcha label::before {
    content: '🔮';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    animation: crystal-rotate 3s linear infinite;
}

@keyframes crystal-rotate {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Magic background enhancement */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(57, 255, 20, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(57, 255, 20, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    border-radius: 20px;
}