:root {
    --bg-deep: #0b0507;
    --bg-elevated: #15090c;
    --bg-card: #1f0c12;
    --text-primary: #f3e8e2;
    --text-secondary: #c8b4ad;
    --text-tertiary: #ab958f;
    --text-muted: #836e6a;
    --text: #f3e8e2;
    --accent: #f28c28;
    --accent2: #d86f1a;
    --accent-olive: #7a8f3a;
    --accent-blue: #f28c28;
    --accent-cyan: #d86f1a;
    --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
    --border-default: 1px solid rgba(255, 255, 255, 0.1);
    --border-emphasis: 1px solid rgba(255, 255, 255, 0.2);
}

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

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.011em;
    position: relative;
    overflow-x: hidden;
    padding-top: 72px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 5, 7, 0.6) 0%, rgba(11, 5, 7, 0.3) 45%, rgba(11, 5, 7, 0.65) 100%),
        url('img/fondo.png');
    background:
        linear-gradient(180deg, rgba(11, 5, 7, 0.6) 0%, rgba(11, 5, 7, 0.3) 45%, rgba(11, 5, 7, 0.65) 100%),
        image-set(
            url('img/optimized/fondo.avif') type('image/avif'),
            url('img/optimized/fondo.webp') type('image/webp'),
            url('img/fondo.png') type('image/png')
        );
    background-size: cover;
    background-position: center;
    filter: blur(4px) saturate(1);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

body > *:not(.cursor):not(.cursor-dot):not(.mouse-glow):not(.thoughts-canvas):not(.lightbox-overlay):not(.mando):not(header) {
    position: relative;
    z-index: 2;
}

/* Custom cursor (desktop only) */
.cursor,
.cursor-dot,
.mouse-glow {
    display: none;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

html.custom-cursor {
    cursor: none;
}

html.custom-cursor .cursor,
html.custom-cursor .cursor-dot {
    display: block;
    opacity: 0.9;
}

.cursor {
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(242, 140, 40, 0.35);
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(242, 140, 40, 0.45);
    z-index: 10000;
    transition: transform 0.12s ease, background-color 0.15s ease;
}

.cursor.is-hover {
    transform: translate(-50%, -50%) scale(1.35);
    border-color: var(--accent2);
    opacity: 1;
    box-shadow: 0 0 18px rgba(216, 111, 26, 0.45);
}

.cursor.is-active {
    transform: translate(-50%, -50%) scale(0.9);
}

.mouse-glow {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 140, 40, 0.28) 0%, rgba(242, 140, 40, 0.1) 35%, rgba(242, 140, 40, 0) 70%);
    opacity: 0.55;
    z-index: 1;
}

html.custom-cursor .mouse-glow {
    display: block;
}

a:hover ~ .cursor,
button:hover ~ .cursor {
    transform: scale(1.8);
    opacity: 1;
}

/* Partículas */
.thoughts-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.thoughts-canvas.is-visible {
    opacity: 0.7;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 5, 7, 0.8);
    backdrop-filter: none;
    z-index: 300;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    background: rgba(11, 5, 7, 0.8);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    perspective: 900px;
    transform-style: preserve-3d;
    position: relative;
    background: transparent;
    filter: none;
    mix-blend-mode: normal;
}

.brand-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    opacity: 0.95;
    background: transparent;
    filter: none;
    mix-blend-mode: normal;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-style: preserve-3d;
    backface-visibility: visible;
    transform-origin: center center;
    will-change: transform;
}

.brand::after {
    content: none;
}

@keyframes brand-halo {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(-50%) scale(0.95);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-50%) scale(1.05);
    }
}

.brand:hover .brand-icon {
    filter: none;
}

.brand-icon.is-flipping {
    animation: brand-flip 10.8s linear;
}

@keyframes brand-flip {
    0% {
        transform: rotateY(0deg) scaleX(1) scaleY(1);
    }
    2.315% {
        transform: rotateY(0deg) scaleX(1) scaleY(1);
    }
    14.236% {
        transform: rotateY(45deg) scaleX(0.72) scaleY(1.04);
    }
    26.157% {
        transform: rotateY(90deg) scaleX(0.38) scaleY(1.1);
    }
    38.078% {
        transform: rotateY(135deg) scaleX(0.72) scaleY(1.04);
    }
    50% {
        transform: rotateY(180deg) scaleX(1) scaleY(1);
    }
    52.315% {
        transform: rotateY(180deg) scaleX(1) scaleY(1);
    }
    64.236% {
        transform: rotateY(225deg) scaleX(0.72) scaleY(1.04);
    }
    76.157% {
        transform: rotateY(270deg) scaleX(0.38) scaleY(1.1);
    }
    88.078% {
        transform: rotateY(315deg) scaleX(0.72) scaleY(1.04);
    }
    100% {
        transform: rotateY(360deg) scaleX(1) scaleY(1);
    }
}

.brand-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menú principal en header */

/* Hero */
.hero {
    padding: 120px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(242, 140, 40, 0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: pulse 8s ease-in-out infinite;
}

.hero-carousel {
    position: absolute;
    inset: -20px 0 0 0;
    z-index: 0;
    pointer-events: none;
}

.hero-carousel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 5, 7, 0.92) 0%, rgba(11, 5, 7, 0.55) 45%, rgba(11, 5, 7, 0.95) 100%);
}

.hero-carousel-row {
    position: absolute;
    left: -10%;
    right: -10%;
    display: flex;
    align-items: center;
}

.hero-carousel-row--top {
    top: 18%;
}

.hero-carousel-row--bottom {
    bottom: 12%;
}

.hero-carousel-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: hero-scroll 55s linear infinite;
    animation-delay: 2.4s;
    animation-play-state: running;
    will-change: transform;
}

.hero-carousel-track picture {
    flex: 0 0 auto;
}

.hero-carousel-track--reverse {
    animation-direction: reverse;
    animation-duration: 65s;
    animation-delay: 2.4s;
}

.hero-carousel img {
    height: 240px;
    width: auto;
    border-radius: 16px;
    opacity: 0.32;
    filter: saturate(1.05) contrast(1.05);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

@keyframes hero-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.1); }
}

.hero-overline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

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

.hero-title {
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
    max-width: 1000px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-title .hero-title-prefix {
    font-size: 0.95em;
}

.hero-title .small-line {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 500;
    color: var(--text-tertiary);
}

.hero-title .gradient-text {
    background: linear-gradient(180deg, #f7b86a 0%, var(--accent-blue) 70%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-size: calc(1em + 5px);
    line-height: 1;
    vertical-align: baseline;
    transform: translateY(0.16em) translateZ(0);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    background-size: 200% 100%;
    animation: control-shine 7s ease-in-out infinite;
    transition: text-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-title .gradient-text::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: transparent;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 45%, rgba(255,255,255,0) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    transform: translateX(-100%);
    animation: control-glint 6.5s ease-in-out infinite;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-title:hover .gradient-text,
.hero-title .gradient-text:hover {
    text-shadow: 0 4px 18px rgba(242, 140, 40, 0.6);
}

.hero-title:hover .gradient-text::after,
.hero-title .gradient-text:hover::after {
    opacity: 1;
}

@keyframes control-shine {
    0%, 70% {
        background-position: 0% 50%;
    }
    85% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes control-glint {
    0%, 70% {
        transform: translateX(-100%);
        opacity: 0;
    }
    80% {
        opacity: 0.9;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 22px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 750px;
    font-weight: 300;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.78rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    text-decoration: none;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.04) 45%, rgba(0,0,0,0.12) 100%),
        linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    background-color: rgba(255,255,255,0.05);
    color: var(--text);
    box-shadow: 0 12px 35px rgba(0,0,0,0.35);
    transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.08) 45%, rgba(0,0,0,0.2) 100%),
        linear-gradient(145deg, rgba(255,255,255,0.12), rgba(0,0,0,0.05));
    background-color: var(--accent-blue);
    color: var(--bg-deep);
    border-color: var(--accent-blue);
}

.btn-primary:hover {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.12) 45%, rgba(0,0,0,0.2) 100%),
        linear-gradient(145deg, rgba(255,255,255,0.18), rgba(0,0,0,0.05));
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242, 140, 40, 0.35);
}

.btn-secondary {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04) 45%, rgba(0,0,0,0.18) 100%),
        linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    background-color: rgba(255,255,255,0.04);
    color: var(--text-primary);
    border-color: var(--border-emphasis);
}

.btn-secondary:hover {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.08) 45%, rgba(0,0,0,0.18) 100%),
        linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    background-color: var(--bg-elevated);
    border-color: var(--text-secondary);
}

.btn-whatsapp {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.08) 45%, rgba(0,0,0,0.22) 100%),
        linear-gradient(145deg, rgba(255,255,255,0.12), rgba(0,0,0,0.08));
    background-color: #16a34a;
    border-color: #16a34a;
    color: #07110a;
}

.btn-whatsapp:hover {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.12) 45%, rgba(0,0,0,0.22) 100%),
        linear-gradient(145deg, rgba(255,255,255,0.18), rgba(0,0,0,0.08));
    background-color: #22c55e;
    border-color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

/* Section */
section {
    padding: 90px 0;
    border-top: 1px solid var(--border-subtle);
    opacity: 1;
    transform: none;
    transition: opacity 1s ease, transform 1s ease;
}

html.js section {
    opacity: 0;
    transform: translateY(40px);
}

html.js section.hero {
    opacity: 1;
    transform: none;
}

html.js section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 10px rgba(122, 143, 58, 0.35);
}

.section-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent-blue);
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
}

.section-intro {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 780px;
    margin-bottom: 64px;
    font-weight: 300;
}

/* Problem Section */
.problem-statement {
    font-size: 20px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 820px;
}

.problem-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 24px;
}

.problem-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.problem-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: none;
}

.problem-statement strong {
    color: var(--text-primary);
    font-weight: 500;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 56px;
}

.problem-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    padding: 32px;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-emphasis);
    background: var(--bg-card);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.glow-card {
    --mx: 50%;
    --my: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glow-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(181, 22, 46, 0.2), rgba(181, 22, 46, 0) 65%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.glow-card:hover,
.glow-card:focus-within {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.25);
}

.glow-card:hover::after,
.glow-card:focus-within::after {
    opacity: 1;
}

.problem-card:hover::before {
    transform: scaleX(1);
}

.problem-question {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.5;
}

.problem-impact {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* Thinking Section */
.thinking-principle {
    margin-bottom: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--border-subtle);
}

.thinking-principle:last-child {
    border-bottom: none;
}

.principle-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--accent-blue);
    margin-bottom: 16px;
    display: block;
}

.principle-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.principle-content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 780px;
}

.principle-content strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Evidence Section */
.evidence-grid {
    display: grid;
    gap: 48px;
    margin-top: 64px;
}

.evidence-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    transition: all 0.4s ease;
}

.evidence-item:hover {
    border-color: var(--border-emphasis);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.evidence-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.evidence-item:nth-child(even) .evidence-image {
    order: -1;
}

.evidence-text h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.evidence-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: block;
}

.evidence-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.evidence-insight {
    font-size: 14px;
    color: var(--text-tertiary);
    font-style: italic;
    padding-left: 20px;
    border-left: 2px solid var(--border-default);
}

.evidence-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border-default);
    transition: all 0.4s ease;
}

.evidence-image:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 32px rgba(242, 140, 40, 0.28);
}

.evidence-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.evidence-image:hover img {
    transform: scale(1.03);
}

.lightbox-target {
    cursor: zoom-in;
}

.lightbox-target:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Technology Section */
.tech-philosophy {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-default);
    border-left: 3px solid var(--accent-blue);
    padding: 48px;
    border-radius: 6px;
    margin: 64px 0;
}

.tech-philosophy p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.tech-philosophy p:last-child {
    margin-bottom: 0;
}

.tech-philosophy strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Contact Section */
.contact-card {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-default);
    padding: 72px;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin: 64px auto 0;
    transition: all 0.4s ease;
}

.contact-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 16px 64px rgba(242, 140, 40, 0.22);
}

.contact-card h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-card p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    padding: 80px 0 48px;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    filter: none;
    mix-blend-mode: normal;
}

.footer-icon {
    width: 28px;
    height: 28px;
    opacity: 0.7;
    background: transparent;
    filter: none;
    mix-blend-mode: normal;
}

.footer-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.social-link {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    opacity: 0.85;
    transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.social-link svg {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    opacity: 1;
    color: var(--text-secondary);
    transform: translateY(-1px);
}

.social-link:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 4px;
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
    font-family: 'IBM Plex Mono', monospace;
    line-height: 1.5;
    max-width: 820px;
    margin: 0 auto;
}

/* Mando */
.mando {
    position: fixed;
    right: max(10px, env(safe-area-inset-right));
    top: 50%;
    transform: translateY(-50%);
    z-index: 250;
    opacity: 0.9;
    padding: 10px 14px 10px 18px;
    pointer-events: auto;
    transition: opacity 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mando::before {
    content: '';
    position: absolute;
    right: 10px;
    top: -28px;
    bottom: -28px;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.32) 20%, rgba(255, 255, 255, 0.26) 80%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.7;
}

.mando.is-strong {
    opacity: 1;
}

.mando-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 37.5vh;
    min-height: 220px;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

.mando-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.02em;
    transition: color 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mando-label {
    text-align: right;
    max-width: 120px;
}

.mando-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(243, 232, 226, 0.6);
    box-shadow: inset 0 0 0 1px rgba(243, 232, 226, 0.6);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mando-dot::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid rgba(243, 232, 226, 0.32);
    background: conic-gradient(from 0deg, rgba(243, 232, 226, 0.35), rgba(243, 232, 226, 0) 35%, rgba(243, 232, 226, 0.2) 65%, rgba(243, 232, 226, 0.35));
    opacity: 0.45;
    transform: scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mando-link:hover,
.mando-link:focus-visible {
    color: var(--text-primary);
    transform: translateX(-4px);
}

.mando-link.is-active .mando-label {
    color: var(--text-primary);
}

.mando-link.is-active .mando-dot {
    background: var(--accent);
    box-shadow: 0 0 14px rgba(242, 140, 40, 0.55);
    transform: scale(1.25);
}

.mando-link.is-active .mando-dot::after,
.mando-link:hover .mando-dot::after,
.mando-link:focus-visible .mando-dot::after {
    opacity: 0.9;
    transform: scale(1.2);
}

.mando-link:hover .mando-dot,
.mando-link:focus-visible .mando-dot {
    background: var(--accent);
    box-shadow: 0 0 18px rgba(242, 140, 40, 0.75), 0 0 32px rgba(242, 140, 40, 0.45);
    transform: scale(1.35);
}

.mando-link:hover .mando-label,
.mando-link:focus-visible .mando-label {
    color: var(--text-primary);
    text-shadow: 0 0 12px rgba(242, 140, 40, 0.5);
}

/* Contexto */
.contexto {
    color: var(--accent-olive);
    border-bottom: 1px dashed rgba(122, 143, 58, 0.5);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contexto:hover,
.contexto:focus-visible {
    color: var(--text-primary);
    border-bottom-color: rgba(243, 232, 226, 0.6);
}

.contexto-tooltip {
    position: fixed;
    z-index: 300;
    max-width: 260px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(21, 9, 12, 0.95);
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.contexto-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 4, 5, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 20000;
    padding: 32px;
}

.lightbox-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: min(1100px, 92vw);
    max-height: 82vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    display: block;
}

.lightbox-caption {
    margin-top: 12px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(12, 8, 10, 0.75);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.lightbox-close {
    top: -16px;
    right: -16px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-nav.prev {
    left: -18px;
}

.lightbox-nav.next {
    right: -18px;
}

/* Responsive */
@media (max-width: 1024px) {
    .evidence-item,
    .evidence-item:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .evidence-item:nth-child(even) .evidence-image {
        order: 0;
    }
}

@media (max-width: 768px) {
    body::before {
        background:
            linear-gradient(180deg, rgba(11, 5, 7, 0.62) 0%, rgba(11, 5, 7, 0.34) 45%, rgba(11, 5, 7, 0.68) 100%),
            image-set(
                url('img/optimized/fondo-mobile.avif') type('image/avif'),
                url('img/optimized/fondo-mobile.webp') type('image/webp'),
                url('img/optimized/fondo.avif') type('image/avif')
            );
        background-size: cover;
        background-position: center;
        filter: saturate(1);
    }

    body {
        padding-top: 64px;
    }

    header {
        padding: 10px 0;
    }

    header.scrolled {
        padding: 6px 0;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .brand-text {
        font-size: 26px;
    }

    .brand::after {
        width: 48px;
        height: 48px;
        left: 2px;
    }

    .container,
    .container-narrow {
        padding: 0 24px;
    }

    .hero {
        padding: 90px 0 80px;
    }

    .hero-carousel img {
        height: 150px;
    }

    .mouse-glow {
        width: 240px;
        height: 240px;
        opacity: 0.55;
    }

    section {
        padding: 64px 0;
    }

    .nav-links {
        display: none;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .problem-intro {
        grid-template-columns: 1fr;
    }

    .evidence-item {
        padding: 32px;
    }

    .contact-card {
        padding: 48px 32px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-copyright {
        max-width: 520px;
        font-size: 12px;
    }

    .mando {
        right: max(6px, env(safe-area-inset-right));
        padding: 8px 10px 8px 12px;
    }

    .mando::before {
        right: 8px;
        top: -20px;
        bottom: -20px;
    }

    .mando-list {
        gap: 10px;
        min-height: 200px;
    }

    .mando-link {
        font-size: 11px;
        gap: 6px;
    }

    .mando-label {
        max-width: 100px;
    }

    .mando-dot {
        width: 7px;
        height: 7px;
    }

    .lightbox-close {
        top: -12px;
        right: -12px;
    }

    .lightbox-nav.prev {
        left: 6px;
    }

    .lightbox-nav.next {
        right: 6px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border-emphasis);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

@media (hover: none), (pointer: coarse) {
    html.custom-cursor {
        cursor: auto;
    }

    .cursor,
    .cursor-dot,
    .mouse-glow {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cursor,
    .cursor-dot,
    .mouse-glow {
        display: none !important;
    }

    .hero-title .gradient-text,
    .hero-title .gradient-text::after,
    .hero::before {
        animation: none !important;
    }

    section,
    .lightbox-overlay,
    .mando,
    .mando-link,
    .mando-dot,
    .contexto,
    .contexto-tooltip,
    .thoughts-canvas {
        transition: none !important;
    }
}
