:root {
    --bg-color: #030303;
    --text-color: #d1d1d1;
    --accent: #ff003c; 
    --accent-2: #00f0ff; 
    --accent-3: #fcee0a; /* Cyberpunk yellow */
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none; /* Hide default cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px; /* Para el efecto 3D */
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-2);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-radius 0.2s;
}

body:hover .cursor {
    width: 24px;
    height: 24px;
}

a:hover ~ .cursor,
.topic-tag:hover ~ .cursor,
.scramble-on-hover:hover ~ .cursor {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 240, 255, 0.2);
    border-style: dashed;
    border-radius: 10px;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.08;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.floating-console {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 300px;
    background: rgba(5, 5, 5, 0.85);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    z-index: 20;
    box-shadow: 6px 6px 0px rgba(255, 0, 60, 0.2);
    backdrop-filter: blur(5px);
}

.console-header {
    background: var(--accent);
    color: #000;
    padding: 4px 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.console-body {
    padding: 15px;
    min-height: 120px;
    max-height: 180px;
    overflow: hidden;
}

.console-body p {
    margin-bottom: 6px;
    animation: type 0.1s ease forwards;
}

.wrapper {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.container {
    max-width: 950px;
    padding: 60px;
    position: relative;
    z-index: 10;
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 0.6) 0%, transparent 100%);
    transform: translateZ(60px); /* Separa el contenido del fondo en 3D */
}

header {
    margin-bottom: 70px;
    text-align: left;
    border-left: 6px solid var(--accent-3);
    padding-left: 35px;
}

.glitch {
    font-size: 8.5rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: #fff;
    letter-spacing: -5px;
    line-height: 0.85;
    margin-bottom: 15px;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 5px;
    text-shadow: -4px 0 var(--accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -5px;
    text-shadow: -4px 0 var(--accent-2);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 83px, 0); }
    5% { clip: rect(61px, 9999px, 14px, 0); }
    10% { clip: rect(32px, 9999px, 96px, 0); }
    15% { clip: rect(8px, 9999px, 54px, 0); }
    20% { clip: rect(97px, 9999px, 32px, 0); }
    25% { clip: rect(38px, 9999px, 76px, 0); }
    30% { clip: rect(80px, 9999px, 12px, 0); }
    35% { clip: rect(15px, 9999px, 93px, 0); }
    40% { clip: rect(56px, 9999px, 25px, 0); }
    45% { clip: rect(91px, 9999px, 81px, 0); }
    50% { clip: rect(27px, 9999px, 46px, 0); }
    55% { clip: rect(73px, 9999px, 63px, 0); }
    60% { clip: rect(44px, 9999px, 19px, 0); }
    65% { clip: rect(85px, 9999px, 98px, 0); }
    70% { clip: rect(12px, 9999px, 37px, 0); }
    75% { clip: rect(96px, 9999px, 55px, 0); }
    80% { clip: rect(33px, 9999px, 88px, 0); }
    85% { clip: rect(64px, 9999px, 21px, 0); }
    90% { clip: rect(5px, 9999px, 72px, 0); }
    95% { clip: rect(79px, 9999px, 43px, 0); }
    100% { clip: rect(22px, 9999px, 94px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(29px, 9999px, 85px, 0); }
    5% { clip: rect(76px, 9999px, 12px, 0); }
    10% { clip: rect(43px, 9999px, 98px, 0); }
    15% { clip: rect(18px, 9999px, 51px, 0); }
    20% { clip: rect(88px, 9999px, 34px, 0); }
    25% { clip: rect(25px, 9999px, 77px, 0); }
    30% { clip: rect(93px, 9999px, 14px, 0); }
    35% { clip: rect(7px, 9999px, 62px, 0); }
    40% { clip: rect(52px, 9999px, 89px, 0); }
    45% { clip: rect(81px, 9999px, 26px, 0); }
    50% { clip: rect(36px, 9999px, 95px, 0); }
    55% { clip: rect(68px, 9999px, 47px, 0); }
    60% { clip: rect(13px, 9999px, 82px, 0); }
    65% { clip: rect(99px, 9999px, 5px, 0); }
    70% { clip: rect(41px, 9999px, 73px, 0); }
    75% { clip: rect(86px, 9999px, 39px, 0); }
    80% { clip: rect(24px, 9999px, 66px, 0); }
    85% { clip: rect(57px, 9999px, 18px, 0); }
    90% { clip: rect(95px, 9999px, 53px, 0); }
    95% { clip: rect(31px, 9999px, 87px, 0); }
    100% { clip: rect(74px, 9999px, 22px, 0); }
}

.subtitle {
    font-family: var(--font-mono);
    color: var(--accent-3);
    font-size: 1.5rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    background: rgba(252, 238, 10, 0.15);
    padding: 6px 15px;
}

.manifesto {
    font-size: 1.9rem;
    line-height: 1.6;
    margin-bottom: 70px;
    text-align: left;
    position: relative;
    max-width: 850px;
}

.manifesto p {
    margin-bottom: 35px;
}

.highlight-block {
    color: #000;
    background: var(--accent-2);
    padding: 2px 12px;
    display: inline-block;
    box-shadow: 6px 6px 0px var(--accent);
    transform: rotate(-2deg);
}

.highlight {
    color: var(--accent-3);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-color: var(--accent);
}

.topics {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 100px;
}

.topic-tag {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.topic-tag::before {
    content: '';
    position: absolute;
    top: var(--mouseY, 50%);
    left: var(--mouseX, 50%);
    width: 0;
    height: 0;
    background: var(--accent-3);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.topic-tag:hover {
    color: #000;
    border-color: var(--accent-3);
    transform: scale(1.08) rotate(2deg);
    box-shadow: 10px 10px 0px rgba(252, 238, 10, 0.4);
}

.topic-tag:hover::before {
    width: 400px;
    height: 400px;
}

.contact {
    text-align: left;
    border-left: 5px solid var(--accent);
    padding-left: 40px;
    position: relative;
}

.contact p {
    font-family: var(--font-mono);
    margin-bottom: 30px;
    color: #aaa;
    font-size: 1.3rem;
}

.email-link {
    display: inline-block;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.email-link .email-text {
    position: relative;
    z-index: 2;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10px;
    width: calc(100% + 20px);
    height: 35%;
    background: var(--accent);
    z-index: 1;
    transition: height 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    mix-blend-mode: screen;
}

.email-link:hover::after {
    height: 100%;
}

.email-link:hover {
    color: #fff;
    transform: translateX(15px);
    text-shadow: 4px 4px 0 var(--accent-2);
}

/* RRSS fijadas justo debajo del enlace de vuelta a benchdatalab.com */
.social-links {
    position: fixed;
    top: 72px;
    right: 30px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.social-links a {
    color: var(--accent-2);
    text-decoration: none;
    border: 1px solid var(--accent-2);
    padding: 6px 12px;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(5px);
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, text-shadow 0.25s ease;
}

.social-links a:hover {
    color: #fff;
    border-color: var(--accent);
    background: rgba(255, 0, 60, 0.12);
    text-shadow: 0 0 8px var(--accent-2);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35), 3px 3px 0 var(--accent);
}

@media (max-width: 900px) {
    body { cursor: auto; perspective: none; }
    .cursor { display: none; }
    .floating-console { display: none; }
    .glitch { font-size: 5rem; }
    .manifesto { font-size: 1.4rem; }
    .email-link { font-size: 1.8rem; }
    .wrapper { transform: none !important; }
}
