/* =====================================================
   VARIABLES GENERALES
===================================================== */

:root {
    --violeta: #7c3aed;
    --violeta-claro: #a855f7;
    --violeta-oscuro: #5b21b6;
    --glow-violeta: rgba(168, 85, 247, 0.42);
    --negro: #111;
    --negro-profundo: #09090f;
    --gris-fondo: #f2f2f2;
    --texto: #111;
    --texto-suave: #555;
    --blanco: #fff;
    --radio: 22px;
    --max-width: 1100px;
}

/* =====================================================
   RESET / BASE
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

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

body {
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--texto);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background:
        radial-gradient(circle at 12% 18%, rgba(168, 85, 247, 0.15), transparent 26%),
        radial-gradient(circle at 88% 62%, rgba(124, 58, 237, 0.12), transparent 28%),
        linear-gradient(135deg, #f7f7f9 0%, #eceaf2 50%, #f7f7f9 100%);
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

input,
textarea {
    user-select: text;
    -webkit-user-select: text;
}

::selection {
    background-color: var(--violeta-claro);
    color: var(--blanco);
}

main {
    flex: 1;
}

main,
.footer {
    position: relative;
    z-index: 2;
}

img {
    display: block;
    max-width: 100%;
}

/* =====================================================
   FONDO GENERAL: GRILLA, GLOW Y PARTÍCULAS
===================================================== */

.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.18) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    animation: gridMove 18s linear infinite;
}

.bg-orb {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.34;
    animation: orbFloat 10s ease-in-out infinite alternate;
}

.orb-uno {
    top: 10%;
    left: -100px;
    background-color: var(--violeta-claro);
}

.orb-dos {
    right: -120px;
    bottom: 8%;
    background-color: var(--violeta-oscuro);
    animation-delay: -4s;
}

.particles {
    position: absolute;
    inset: 0;
}

.particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(124, 58, 237, 0.58);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.8);
    animation: particleFloat linear infinite;
}

/* =====================================================
   CURSOR PERSONALIZADO
===================================================== */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: block;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(168, 85, 247, 0.9);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    mix-blend-mode: multiply;
    backdrop-filter: blur(1px);
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.55);
    transition:
        width 0.18s ease,
        height 0.18s ease,
        border-radius 0.18s ease,
        opacity 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.custom-cursor.cursor-visible {
    opacity: 1;
}

.custom-cursor.cursor-hover {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border-color: rgba(255, 255, 255, 0.95);
    background-color: rgba(168, 85, 247, 0.18);
    box-shadow:
        0 0 32px rgba(168, 85, 247, 0.75),
        inset 0 0 12px rgba(255, 255, 255, 0.35);
}

@media (hover: none), (pointer: coarse) {
    * {
        cursor: auto !important;
    }

    .custom-cursor {
        display: none !important;
    }
}

/* =====================================================
   HEADER / NAVBAR
===================================================== */

.header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 11, 18, 0.82);
    border-bottom: 1px solid rgba(168, 85, 247, 0.22);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.header h2 {
    color: transparent;
    background: linear-gradient(90deg, var(--violeta), var(--violeta-claro), #fff, var(--violeta));
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

.navbar {
    max-width: var(--max-width);
    margin: auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.logo img {
    display: block;
    width: auto;
    max-height: 42px;
}

.logo:hover {
    opacity: 0.82;
    transform: translateY(-1px);
    filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.55));
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.menu-icon span {
    width: 28px;
    height: 3px;
    background-color: var(--blanco);
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
}

.menu-icon:hover span {
    background-color: var(--violeta-claro);
}

#menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    position: relative;
    padding: 8px 2px;
    color: var(--blanco);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--violeta), var(--violeta-claro), white);
    box-shadow: 0 0 12px var(--glow-violeta);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--violeta-claro);
    text-shadow: 0 0 16px var(--glow-violeta);
}

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

/* =====================================================
   ANIMACIONES GENERALES
===================================================== */

.fade-up {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.4s; }
.fade-up:nth-child(5) { animation-delay: 0.5s; }

.scroll-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.section {
    max-width: var(--max-width);
    margin: auto;
    padding: 80px 20px;
}

.section-title {
    margin-bottom: 34px;
}

.section-title p {
    color: var(--violeta);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}

.section-title h2 {
    margin-top: 8px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -2px;
}

.etiqueta {
    color: var(--violeta);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}

.subtitulo {
    margin-bottom: 25px;
    color: var(--texto-suave);
    font-size: 20px;
    font-weight: 700;
}

.descripcion {
    max-width: 580px;
    margin-bottom: 25px;
    color: #303030;
    font-size: 17px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badges span {
    position: relative;
    overflow: hidden;
    padding: 9px 15px;
    border: 1px solid rgba(124, 58, 237, 0.9);
    border-radius: 30px;
    background-color: var(--negro);
    color: var(--blanco);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 0 22px rgba(124, 58, 237, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badges span:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.34);
}

/* =====================================================
   PORTFOLIO HERO
===================================================== */

.portfolio-main {
    padding-top: 72px;
}

.portfolio-hero {
    position: relative;
    max-width: var(--max-width);
    min-height: calc(100vh - 72px);
    margin: auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 56px;
}

.portfolio-hero::before {
    content: "";
    position: absolute;
    inset: 40px 0;
    z-index: -1;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18));
    backdrop-filter: blur(4px);
}

.hero-particles {
    position: absolute;
    inset: -30%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    border-radius: 34px;
}

.hero-particles::before,
.hero-particles::after {
    content: "";
    position: absolute;
    inset: -12%;
    opacity: 0.85;
    filter: blur(0.25px);
    --particle-mask: linear-gradient(90deg, #000 0 18%, rgba(0, 0, 0, 0.55) 34%, transparent 50%, rgba(0, 0, 0, 0.55) 66%, #000 82% 100%);
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(168, 85, 247, 0.85) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(124, 58, 237, 0.75) 0 2px, transparent 2.5px);
    background-size: 95px 95px, 145px 145px, 210px 210px;
    background-position: 0 0, 35px 70px, 90px 40px;
    mask-image: var(--particle-mask);
    -webkit-mask-image: var(--particle-mask);
    animation: particlesSideMove 5s linear infinite;
}

.hero-particles::after {
    opacity: 0.45;
    filter: blur(1.5px);
    transform: scale(1.08);
    animation: particlesSideMove 9s linear infinite reverse;
    background-size: 130px 130px, 190px 190px, 260px 260px;
}

.portfolio-hero h1 {
    margin: 15px 0;
    font-size: clamp(46px, 7vw, 84px);
    line-height: 0.95;
    letter-spacing: -4px;
}

.portfolio-hero h1 span {
    color: transparent;
    background: linear-gradient(90deg, var(--violeta), var(--violeta-claro), #111, var(--violeta));
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

.orbital-stage {
    position: relative;
    width: min(440px, 86vw);
    aspect-ratio: 1;
    margin: auto;
    border: 1px solid rgba(168, 85, 247, 0.45);
    border-radius: 34px;
    background:
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.28), transparent 38%),
        linear-gradient(135deg, rgba(12, 12, 20, 0.96), rgba(42, 14, 70, 0.88));
    box-shadow: 0 24px 70px rgba(91, 33, 182, 0.3);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.orbital-stage:hover {
    transform: perspective(900px) rotateX(2deg) rotateY(-5deg) scale(1.02);
    box-shadow: 0 30px 90px rgba(91, 33, 182, 0.42);
}

.orbital-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    animation: gridMove 14s linear infinite;
}

.orbital-stage::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg, transparent, rgba(168, 85, 247, 0.3), transparent 34%);
    animation: rotateFull 10s linear infinite;
}

.orbital-ring {
    position: absolute;
    inset: 16%;
    z-index: 2;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    animation: rotateFull 18s linear infinite;
}

.orbital-ring--b {
    inset: 28%;
    animation-duration: 11s;
    animation-direction: reverse;
    border-color: rgba(168, 85, 247, 0.4);
}

.orbital-core {
    position: absolute;
    inset: 31%;
    z-index: 4;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    background: rgba(11, 11, 18, 0.86);
    color: var(--blanco);
    box-shadow: inset 0 0 22px rgba(168, 85, 247, 0.24), 0 0 34px rgba(168, 85, 247, 0.28);
}

.orbital-core span,
.orbital-core small {
    font-size: 11px;
    letter-spacing: 2px;
    color: #c8b7e8;
    font-weight: 800;
}

.orbital-core strong {
    font-size: 31px;
    line-height: 1;
    letter-spacing: -1px;
}

.orbit-node {
    position: absolute;
    z-index: 5;
    min-width: 112px;
    padding: 11px 14px;
    border: 1px solid rgba(168, 85, 247, 0.7);
    border-radius: 999px;
    background: rgba(10, 10, 18, 0.8);
    color: var(--blanco);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.22);
    transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.orbit-node span {
    margin-right: 8px;
    color: var(--violeta-claro);
}

.orbit-node:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--violeta-oscuro);
    box-shadow: 0 0 32px rgba(168, 85, 247, 0.52);
}

.orbit-node--uno { top: 8%; left: 50%; transform: translateX(-50%); }
.orbit-node--dos { right: 5%; top: 48%; }
.orbit-node--tres { bottom: 8%; left: 50%; transform: translateX(-50%); }
.orbit-node--cuatro { left: 5%; top: 48%; }
.orbit-node--uno:hover,
.orbit-node--tres:hover { transform: translateX(-50%) translateY(-5px) scale(1.05); }

/* =====================================================
   GALERÍA DE TRABAJOS
===================================================== */

.portfolio-section {
    padding-top: 90px;
}

.work-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
}

.work-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radio);
    background-color: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.work-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.44), transparent 75%);
    transform: translateX(-100%);
    transition: opacity 0.2s ease, transform 0.7s ease;
}

.work-card:hover {
    border-color: var(--violeta);
    transform: translateY(-8px);
    box-shadow: 0 22px 54px rgba(124, 58, 237, 0.2);
}

.work-card:hover::before {
    opacity: 1;
    transform: translateX(100%);
}

.work-card--featured {
    grid-row: span 2;
}

.work-media,
.mini-shot,
.process-image,
.archive-tile {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(17,17,26,0.92), rgba(91,33,182,0.2)),
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: auto, 28px 28px, 28px 28px;
}

.work-media {
    min-height: 300px;
}

.work-media--large {
    min-height: 520px;
}

.work-media img,
.mini-shot img,
.process-image img,
.archive-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.image-placeholder,
.mini-shot span,
.process-image span,
.archive-tile span {
    position: absolute;
    inset: auto 18px 18px 18px;
    display: inline-flex;
    width: fit-content;
    max-width: calc(100% - 36px);
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 999px;
    background: rgba(12, 12, 20, 0.75);
    color: var(--blanco);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.work-content {
    padding: 24px;
}

.work-kicker {
    margin-bottom: 8px;
    color: var(--violeta);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.work-content h3 {
    margin-bottom: 10px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.05;
    letter-spacing: -1px;
}

.work-content p {
    color: #3f3f46;
    font-size: 16px;
}

.work-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.work-tags span {
    padding: 7px 11px;
    border: 1px solid rgba(124, 58, 237, 0.45);
    border-radius: 999px;
    color: var(--violeta-oscuro);
    font-size: 12px;
    font-weight: 800;
}

.mini-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 260px;
}

.mini-shot + .mini-shot {
    border-left: 1px solid rgba(255,255,255,0.2);
}

.work-card--split:hover .mini-shot:first-child {
    transform: translateY(-6px);
}

.work-card--split:hover .mini-shot:last-child {
    transform: translateY(6px);
}

.mini-shot {
    transition: transform 0.25s ease;
}

/* =====================================================
   PROCESO
===================================================== */

.process-section {
    max-width: none;
    color: var(--blanco);
    background:
        radial-gradient(circle at 18% 15%, rgba(168, 85, 247, 0.24), transparent 28%),
        linear-gradient(135deg, #08080d, #11111a 45%, #08080d);
}

.process-section .section-title,
.process-board {
    max-width: var(--max-width);
    margin-right: auto;
    margin-left: auto;
}

.process-section .section-title h2 {
    color: var(--blanco);
}

.process-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.process-step {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radio);
    background-color: rgba(28, 28, 38, 0.72);
    backdrop-filter: blur(12px);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.process-step:hover {
    border-color: var(--violeta-claro);
    transform: translateY(-7px) rotate(-1deg);
    box-shadow: 0 22px 48px rgba(0,0,0,0.28), 0 0 30px rgba(168, 85, 247, 0.16);
}

.step-number {
    display: block;
    padding: 22px 22px 0;
    color: var(--violeta-claro);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}

.process-step h3 {
    padding: 8px 22px 0;
    font-size: 28px;
}

.process-step p {
    padding: 8px 22px 18px;
    color: #d7d7e2;
    font-size: 15px;
}

.process-image {
    height: 230px;
    border-top: 1px solid rgba(168, 85, 247, 0.18);
}

/* =====================================================
   ARCHIVO
===================================================== */

.archive-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 25%, rgba(168, 85, 247, 0.2), transparent 28%),
        linear-gradient(135deg, #f7f7f9, #eceaf2);
}

.archive-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.12) 1px, transparent 1px);
    background-size: 42px 42px;
    animation: gridMove 22s linear infinite;
    pointer-events: none;
}

.archive-inner {
    position: relative;
    z-index: 1;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 150px;
    gap: 14px;
}

.archive-tile {
    border: 1px solid rgba(124, 58, 237, 0.22);
    border-radius: 18px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.archive-tile:nth-child(1),
.archive-tile:nth-child(4) {
    grid-column: span 2;
    grid-row: span 2;
}

.archive-tile:nth-child(2),
.archive-tile:nth-child(3),
.archive-tile:nth-child(5),
.archive-tile:nth-child(6) {
    grid-column: span 2;
}

.archive-tile:hover,
.archive-tile--open {
    transform: scale(1.03);
    border-color: var(--violeta);
    box-shadow: 0 20px 44px rgba(124, 58, 237, 0.22);
}

.archive-tile--open {
    filter: contrast(1.08) saturate(1.08);
}

/* =====================================================
   INFO / CONTACTO SIN LINKS
===================================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.dato-card {
    position: relative;
    overflow: hidden;
    padding: 25px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radio);
    background-color: rgba(17, 17, 26, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.dato-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, transparent, rgba(168, 85, 247, 0.13), transparent);
    transition: opacity 0.25s ease;
}

.dato-card:hover {
    border-color: var(--violeta);
    transform: translateY(-7px);
    box-shadow: 0 18px 44px rgba(124, 58, 237, 0.18);
}

.dato-card:hover::before {
    opacity: 1;
}

.dato-card h3,
.dato-card p,
.empty-contact {
    position: relative;
    z-index: 1;
}

.dato-card h3 {
    margin-bottom: 12px;
    padding: 8px 20px;
    border-radius: 8px;
    color: var(--blanco);
    background: linear-gradient(90deg, var(--violeta), var(--violeta-claro), var(--violeta-oscuro));
    background-size: 220% 100%;
    animation: gradientShift 6s ease infinite;
}

.dato-card p {
    margin-bottom: 8px;
    color: #dcdcdc;
    font-size: 16px;
}

.dato-card strong {
    color: var(--blanco);
}

.empty-contact {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.empty-contact span {
    display: block;
    padding: 12px 14px;
    border: 1px dashed rgba(168, 85, 247, 0.42);
    border-radius: 999px;
    color: #dcdcdc;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}





/* =====================================================
   MENÚ LATERAL INTERNO — estilo glass del index
===================================================== */

.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1100;
    width: 48px;
    height: 100vh;
    padding: 74px 0 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: rgba(15, 10, 30, 0.18);
    border-right: 1px solid rgba(168, 85, 247, 0.22);
    box-shadow: 8px 0 28px rgba(15, 10, 30, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.32s ease,
        box-shadow 0.32s ease;
}

.side-nav::before {
    content: "";
    position: absolute;
    top: 78px;
    bottom: 28px;
    left: 23px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(168, 85, 247, 0.78),
        rgba(255, 255, 255, 0.72),
        rgba(168, 85, 247, 0.78),
        transparent
    );
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.7);
    opacity: 0.75;
    pointer-events: none;
}

.side-nav:hover,
.side-nav.is-open {
    width: 198px;
    background: rgba(15, 10, 30, 0.34);
    box-shadow: 14px 0 34px rgba(15, 10, 30, 0.18);
}

.side-nav-toggle {
    display: none;
}

.side-nav ul {
    position: relative;
    z-index: 1;
    width: 198px;
    margin: auto 0;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
}

.side-nav li {
    display: flex;
}

.side-nav-link {
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.side-nav-link::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(168, 85, 247, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.28);
    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.side-nav-label {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateX(-8px);
    pointer-events: none;
    transition:
        max-width 0.25s ease,
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.25s ease;
}

.side-nav:hover .side-nav-label,
.side-nav.is-open .side-nav-label {
    max-width: 140px;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.side-nav-link:hover {
    background: rgba(168, 85, 247, 0.13);
    color: var(--blanco);
}

.side-nav-link:hover::before {
    background-color: var(--violeta-claro);
    border-color: rgba(255, 255, 255, 0.75);
    transform: scale(1.28);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.82);
}

.side-nav-link.active {
    background: rgba(168, 85, 247, 0.18);
    color: var(--blanco);
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.28);
}

.side-nav-link.active::before {
    background-color: var(--violeta-claro);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.55);
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.72),
        0 0 18px rgba(168, 85, 247, 0.95);
}

.side-nav-link:focus {
    outline: none;
}

.side-nav-link:focus-visible {
    outline: 1px solid rgba(168, 85, 247, 0.75);
    outline-offset: 2px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 35px 40px;
    border-top: 1px solid rgba(168, 85, 247, 0.22);
    background-color: rgba(11, 11, 18, 0.96);
    color: var(--blanco);
    font-size: 14px;
}

.footer p {
    max-width: var(--max-width);
    margin: auto;
    color: #888;
    transition: color 0.3s ease;
}

.footer p:hover {
    color: #ccc;
}

/* =====================================================
   KEYFRAMES
===================================================== */

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

@keyframes gridMove {
    from { background-position: 0 0; }
    to { background-position: 54px 54px; }
}

@keyframes orbFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(36px, -26px, 0) scale(1.12); }
}

@keyframes particleFloat {
    0% { transform: translateY(0) scale(0.7); opacity: 0; }
    18% { opacity: 1; }
    100% { transform: translateY(-120px) scale(1.2); opacity: 0; }
}

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

@keyframes particlesSideMove {
    from { background-position: 0 0, 35px 70px, 90px 40px; }
    to { background-position: 95px 95px, 180px 215px, 300px 250px; }
}

@keyframes rotateFull {
    to { transform: rotate(360deg); }
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {
    .portfolio-hero,
    .work-grid,
    .process-board,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .work-card--featured {
        grid-row: auto;
    }

    .work-media--large {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .menu-icon {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 20px;
        right: 20px;
        width: auto;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        border: 1px solid rgba(168, 85, 247, 0.22);
        border-radius: 0 0 18px 18px;
        background-color: rgba(11, 11, 18, 0.96);
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
        backdrop-filter: blur(18px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    #menu-toggle:checked ~ .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .portfolio-main {
        padding-top: 68px;
    }

    .portfolio-hero {
        min-height: auto;
        padding: 70px 20px;
        gap: 34px;
    }

    .portfolio-hero::before {
        inset: 20px 12px;
    }

    .portfolio-hero h1 {
        letter-spacing: -2px;
    }

    .section-title h2 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .archive-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 230px;
    }

    .archive-tile,
    .archive-tile:nth-child(1),
    .archive-tile:nth-child(4),
    .archive-tile:nth-child(2),
    .archive-tile:nth-child(3),
    .archive-tile:nth-child(5),
    .archive-tile:nth-child(6) {
        grid-column: auto;
        grid-row: auto;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .portfolio-hero {
        padding-inline: 16px;
    }

    .orbital-stage {
        width: min(330px, 90vw);
    }

    .orbit-node {
        min-width: 92px;
        padding: 9px 10px;
        font-size: 11px;
    }

    .orbital-core strong {
        font-size: 24px;
    }

    .mini-gallery {
        grid-template-columns: 1fr;
    }

    .mini-shot + .mini-shot {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
}

/* =====================================================
   ACCESIBILIDAD: REDUCIR MOVIMIENTO
===================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
