/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-tertiary: #1a1a2e;
    --color-accent-1: #6366f1;
    --color-accent-2: #8b5cf6;
    --color-accent-3: #ec4899;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --font-primary: 'Outfit', sans-serif;Quiero que uses exclusivamente las imágenes que ya subí para cada caso de estudio.

Reglas obligatorias:

Crear una carpeta llamada proyectos.

Guardar las imágenes dentro de esa carpeta con el siguiente formato:

caso1.jpg

caso2.jpg

caso3.jpg

caso4.jpg

No duplicar imágenes.

No reutilizar la misma imagen en más de un caso.

No inventar imágenes nuevas.

Cada caso de estudio debe:

Usar únicamente las imágenes asignadas a su número de caso.

Mostrar las imágenes como resultado visual principal.

Respetar el orden correcto de las imágenes.

Si hay más de una imagen por caso:

Usarlas en una galería limpia

Con buen espaciado

Sin superposición

La carpeta proyectos debe ser la única fuente de imágenes para los casos de estudio.
    --font-display: 'Playfair Display', serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

::selection {
    background: var(--color-accent-1);
    color: white;
}

/* ========================================
   LOADER
   ======================================== */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-top-color: var(--color-accent-1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-size: 14px;
    letter-spacing: 8px;
    color: var(--color-text-secondary);
    animation: pulse 1.5s ease-in-out infinite;
}

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

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

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

body {
    cursor: none;
}

.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 2px solid #6366f1;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0.5;
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.3);
}

/* Cursor sobre elementos interactivos */
a:hover ~ .cursor,
button:hover ~ .cursor,
.nav-link:hover ~ .cursor {
    background: #ec4899;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.8);
}

a:hover ~ .cursor-follower,
button:hover ~ .cursor-follower,
.nav-link:hover ~ .cursor-follower {
    border-color: #ec4899;
    opacity: 0.8;
    box-shadow: inset 0 0 20px rgba(236, 72, 153, 0.5);
}

/* ========================================
   SPOTLIGHT EFFECT
   ======================================== */

.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        circle 500px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(99, 102, 241, 0.08) 0%,
        rgba(99, 102, 241, 0.03) 35%,
        transparent 70%
    );
    transition: background 0.08s ease-out;
    mix-blend-mode: screen;
}

/* Enhanced spotlight on dark sections */
.spotlight::before {
    content: '';
    position: fixed;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 1px;
    height: 1px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   NAVEGACIÓN
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    transition: padding 0.3s, background 0.3s;
}

.nav.scrolled {
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.95);
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-text-primary);
    text-decoration: none;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-1);
    transition: width 0.3s var(--transition-smooth);
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: none;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 150px 0 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--color-bg-primary) 0%,
        var(--color-bg-tertiary) 50%,
        var(--color-bg-primary) 100%);
    animation: gradientShift 10s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    }
    25% {
        background: linear-gradient(135deg, #0a0a0a 0%, #16213e 50%, #0f0f23 100%);
    }
    50% {
        background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0a0a0a 100%);
    }
    75% {
        background: linear-gradient(135deg, #16213e 0%, #0a0a0a 50%, #1a1a2e 100%);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    padding: 0 50px;
    margin-top: 80px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(60px, 10vw, 140px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(100px);
    animation: slideUp 1s var(--transition-smooth) forwards;
}

.hero-title .line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title .line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-title .line:nth-child(3) {
    animation-delay: 0.6s;
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2), var(--color-accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
    letter-spacing: 3px;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeIn 1s var(--transition-smooth) 0.8s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.cta-button {
    position: relative;
    display: inline-block;
    padding: 20px 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    border: 2px solid var(--color-accent-1);
    overflow: hidden;
    transition: all 0.3s;
    opacity: 0;
    animation: fadeIn 1s var(--transition-smooth) 1s forwards;
}

.cta-button span {
    position: relative;
    z-index: 2;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    transition: left 0.4s var(--transition-smooth);
    z-index: 1;
}

.cta-button:hover .cta-bg {
    left: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text-secondary);
    font-size: 12px;
    letter-spacing: 2px;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--color-accent-1));
    animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
    0%, 100% { opacity: 0; transform: translateY(-20px); }
    50% { opacity: 1; transform: translateY(0); }
}

/* ========================================
   CONTAINER & SECTIONS
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

section {
    padding: 150px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(50px, 7vw, 90px);
    font-weight: 900;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */

.reveal-left,
.reveal-right,
.reveal-fade {
    opacity: 0;
    transition: all 1s var(--transition-smooth);
}

.reveal-left {
    transform: translateX(-100px);
}

.reveal-right {
    transform: translateX(100px);
}

.reveal-fade {
    transform: translateY(50px);
}

.reveal-left.active,
.reveal-right.active,
.reveal-fade.active {
    opacity: 1;
    transform: translate(0);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    background: var(--color-bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    align-items: center;
}

.about-description {
    font-size: 20px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 50px;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 60px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(99, 102, 241, 0.1);
    padding: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s var(--transition-smooth);
    max-width: 400px;
    margin: 0 auto;
}

.image-wrapper:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.image-wrapper:hover::before {
    opacity: 0.1;
}

.image-inner {
    background: var(--color-bg-secondary);
    border-radius: 13px;
    overflow: hidden;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--transition-smooth);
}

.image-wrapper:hover .profile-image {
    transform: scale(1.01);
}

.image-placeholder {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--color-bg-tertiary), var(--color-bg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-text-secondary);
    border: 2px solid rgba(99, 102, 241, 0.2);
    transition: all 0.5s;
}

.image-wrapper:hover .image-placeholder {
    transform: scale(1.05);
    border-color: var(--color-accent-1);
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */

.portfolio {
    background: var(--color-bg-primary);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 15px 35px;
    background: transparent;
    border: 2px solid rgba(99, 102, 241, 0.3);
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    transition: left 0.4s var(--transition-smooth);
    z-index: 0;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: var(--color-accent-1);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s var(--transition-smooth);
}

.gallery-item.hide {
    display: none !important;
}

.gallery-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--transition-smooth), filter 0.5s;
}

.gallery-image .image-placeholder {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--color-bg-tertiary), var(--color-bg-secondary));
    transition: transform 0.5s var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.9), 
        rgba(139, 92, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s var(--transition-smooth) 0.1s;
}

.overlay-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
}

.gallery-image:hover .gallery-overlay {
    opacity: 1;
}

.gallery-image:hover .overlay-content {
    transform: translateY(0);
}

.gallery-image:hover .image-placeholder {
    transform: scale(1.1);
    filter: blur(5px);
}

.gallery-image:hover .project-image {
    transform: scale(1.1);
    filter: blur(5px);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    background: var(--color-bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.contact-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 50px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-item h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.detail-item a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.detail-item a:hover {
    color: var(--color-accent-1);
}

.social-links {
    display: flex;
    gap: 20px;
}

/* ========================================
   FORM
   ======================================== */

.contact-form {
    background: var(--color-bg-tertiary);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 40px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(160, 160, 160, 0.3);
    color: white;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: border-color 0.3s;
    outline: none;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--color-text-secondary);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s var(--transition-smooth);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 12px;
    color: var(--color-accent-1);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-accent-1);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-2));
    transition: width 0.4s var(--transition-smooth);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.submit-btn {
    position: relative;
    width: 100%;
    padding: 20px;
    background: transparent;
    border: 2px solid var(--color-accent-1);
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.submit-btn span {
    position: relative;
    z-index: 2;
}

.submit-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    transition: left 0.4s var(--transition-smooth);
    z-index: 1;
}

.submit-btn:hover .submit-bg {
    left: 0;
}

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

.footer {
    padding: 50px 0;
    background: var(--color-bg-primary);
    text-align: center;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer p {
    color: var(--color-text-secondary);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.footer-credit {
    margin-top: 15px;
    font-size: 13px;
}

.highlight-credit {
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 1.5px;
}

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

@media (max-width: 1024px) {
    .nav-container,
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        padding: 0 30px;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.3s;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: clamp(40px, 10vw, 80px);
    }
  
    .section-title {
        font-size: clamp(35px, 7vw, 60px);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 12px 25px;
        font-size: 12px;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    body {
        cursor: default;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container,
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .about-description,
    .contact-description {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 40px;
    }
}

/* ========================================
   UTILITY ANIMATIONS
   ======================================== */

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

.animate-fade-up {
    animation: slideUp 1s var(--transition-smooth);
}
