/* Imaquinua - Estilos Neumórficos Monocromáticos */

:root {
    /* Paleta monocromática en gris oscuro */
    --bg-primary: #191919;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #252525;
    --bg-quaternary: #2d2d2d;
    
    /* Grises para neumorfismo */
    --gray-100: #f0f0f0;
    --gray-200: #e0e0e0;
    --gray-300: #d0d0d0;
    --gray-400: #b0b0b0;
    --gray-500: #909090;
    --gray-600: #707070;
    --gray-700: #505050;
    --gray-800: #303030;
    --gray-900: #101010;
    
    /* Efectos neumórficos monocromáticos */
    --neumorph-light: rgba(255, 255, 255, 0.08);
    --neumorph-dark: rgba(0, 0, 0, 0.3);
    --neumorph-light-pressed: rgba(255, 255, 255, 0.03);
    --neumorph-dark-pressed: rgba(0, 0, 0, 0.4);
    
    /* Sombras neumórficas */
    --neumorph-sm: 
        4px 4px 8px var(--neumorph-dark),
        -4px -4px 8px var(--neumorph-light);
    --neumorph-md: 
        8px 8px 16px var(--neumorph-dark),
        -8px -8px 16px var(--neumorph-light);
    --neumorph-lg: 
        12px 12px 24px var(--neumorph-dark),
        -12px -12px 24px var(--neumorph-light);
    --neumorph-xl: 
        16px 16px 32px var(--neumorph-dark),
        -16px -16px 32px var(--neumorph-light);
    
    /* Sombras internas (presionado) */
    --neumorph-inset-sm: 
        inset 3px 3px 6px var(--neumorph-dark-pressed),
        inset -3px -3px 6px var(--neumorph-light-pressed);
    --neumorph-inset-md: 
        inset 5px 5px 10px var(--neumorph-dark-pressed),
        inset -5px -5px 10px var(--neumorph-light-pressed);
    --neumorph-inset-lg: 
        inset 8px 8px 16px var(--neumorph-dark-pressed),
        inset -8px -8px 16px var(--neumorph-light-pressed);
    
    /* Transiciones */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-press: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Radio de bordes */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Espaciado */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
}

/* --- Reset y estilos base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--gray-300);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

/* --- Textura de tela sutil --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
    z-index: -1;
}

/* --- Componentes neumórficos base --- */

/* Efecto de brillo sutil */
.neumorph-base {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.neumorph-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 50%, 
        rgba(0, 0, 0, 0.02) 100%);
    border-radius: inherit;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0.6;
}

.neumorph-base:hover::before {
    opacity: 1;
}

/* --- Botones neumórficos con efecto de tela --- */
.neumorph-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--neumorph-md);
    border-radius: var(--radius-lg);
    padding: 1rem 2rem;
    color: var(--gray-300);
}

/* Efecto de tela al presionar */
.neumorph-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, transparent 70%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-press);
    pointer-events: none;
}

.neumorph-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--neumorph-lg);
}

.neumorph-button:active {
    transform: translateY(1px);
    box-shadow: var(--neumorph-inset-md);
    transition: var(--transition-press);
}

.neumorph-button:active::after {
    opacity: 1;
    transform: scale(0.95);
}

/* Variantes de botones */
.button-primary {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-quaternary));
    color: var(--gray-200);
    font-weight: 600;
}

.button-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--gray-800);
}

.button-ghost {
    background: transparent;
    border: 1px solid var(--gray-700);
}

/* Tamaños de botones */
.btn-sm { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
.btn-md { padding: 1rem 2rem; font-size: 1rem; }
.btn-lg { padding: 1.25rem 2.5rem; font-size: 1.125rem; }

/* Formas de botones */
.btn-rounded { border-radius: var(--radius-full); }
.btn-square { border-radius: var(--radius-sm); }
.btn-soft { border-radius: var(--radius-xl); }

/* --- Tarjetas neumórficas --- */
.neumorph-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--neumorph-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.neumorph-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(0, 0, 0, 0.02) 100%);
    border-radius: inherit;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

.neumorph-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--neumorph-lg);
}

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

.neumorph-card:active {
    transform: translateY(1px);
    box-shadow: var(--neumorph-inset-md);
}

/* Variantes de tarjetas */
.card-elevated {
    box-shadow: var(--neumorph-lg);
}

.card-inset {
    box-shadow: var(--neumorph-inset-md);
    background: var(--bg-tertiary);
}

.card-soft {
    border-radius: var(--radius-2xl);
}

/* --- Inputs neumórficos --- */
.neumorph-input {
    background: var(--bg-tertiary);
    color: var(--gray-300);
    border: none;
    outline: none;
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--neumorph-inset-sm);
    transition: var(--transition-smooth);
    width: 100%;
}

.neumorph-input:focus {
    box-shadow: 
        var(--neumorph-inset-sm),
        0 0 0 3px rgba(144, 144, 144, 0.2);
    background: var(--bg-quaternary);
}

.neumorph-input::placeholder {
    color: var(--gray-600);
}

/* --- Iconos sociales neumórficos --- */
.neumorph-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--gray-400);
    text-decoration: none;
    border-radius: var(--radius-full);
    width: 50px;
    height: 50px;
    box-shadow: var(--neumorph-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.neumorph-social::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(0, 0, 0, 0.02) 100%);
    border-radius: inherit;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0.6;
}

.neumorph-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--neumorph-md);
    color: var(--gray-200);
}

.neumorph-social:hover::before {
    opacity: 1;
}

.neumorph-social:active {
    transform: translateY(1px);
    box-shadow: var(--neumorph-inset-sm);
}

/* --- Menú hamburguesa neumórfico --- */
.neumorph-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-secondary);
    border: none;
    outline: none;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--neumorph-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.neumorph-hamburger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(0, 0, 0, 0.02) 100%);
    border-radius: inherit;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

.neumorph-hamburger:hover {
    transform: translateY(-1px);
    box-shadow: var(--neumorph-lg);
}

.neumorph-hamburger:hover::before {
    opacity: 1;
}

.neumorph-hamburger:active {
    transform: translateY(2px);
    box-shadow: var(--neumorph-inset-md);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--gray-400), var(--gray-500));
    border-radius: 2px;
    transition: var(--transition-smooth);
    transform-origin: center;
}

.hamburger-line + .hamburger-line {
    margin-top: 6px;
}

.neumorph-hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.neumorph-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.neumorph-hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Contenedores neumórficos --- */
.neumorph-container {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--neumorph-lg);
    position: relative;
    overflow: hidden;
}

.neumorph-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        rgba(144, 144, 144, 0.05),
        transparent 30%,
        transparent 70%,
        rgba(144, 144, 144, 0.05));
    border-radius: inherit;
    z-index: -1;
}

/* --- Efectos de profundidad adicionales --- */
.depth-1 {
    box-shadow: var(--neumorph-sm);
}

.depth-2 {
    box-shadow: var(--neumorph-md);
}

.depth-3 {
    box-shadow: var(--neumorph-lg);
}

.depth-4 {
    box-shadow: var(--neumorph-xl);
}

/* --- Animaciones neumórficas --- */
@keyframes neumorph-float {
    0%, 100% { 
        transform: translateY(0px);
        box-shadow: var(--neumorph-md);
    }
    50% { 
        transform: translateY(-8px);
        box-shadow: var(--neumorph-lg);
    }
}

@keyframes neumorph-pulse {
    0%, 100% { 
        box-shadow: var(--neumorph-md);
    }
    50% { 
        box-shadow: 
            10px 10px 20px var(--neumorph-dark),
            -10px -10px 20px var(--neumorph-light);
    }
}

.float-neumorph {
    animation: neumorph-float 4s ease-in-out infinite;
}

.pulse-neumorph {
    animation: neumorph-pulse 3s ease-in-out infinite;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .neumorph-container {
        padding: 2rem;
    }
    
    .neumorph-card {
        padding: 1.5rem;
    }
    
    .btn-lg { padding: 1rem 2rem; font-size: 1rem; }
}

@media (max-width: 480px) {
    .neumorph-container {
        padding: 1.5rem;
    }
    
    .neumorph-card {
        padding: 1.25rem;
    }
    
    .neumorph-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }
}