:root {
    --primary-color: #ff007f; /* Magenta sacado de la trama */
    --secondary-color: #8b004b;
    --text-color: #ffffff;
    --text-muted: #dcdcdc;
    --glass-bg: rgba(20, 20, 20, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --accent-color: #4a90e2; /* Un contraste sutil */
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-image: url('assets/patron_00fanfarr copia.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Añade oscurecimiento y desenfoque sobre el fondo */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.7) 100%);
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.glass-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-panel:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Header / Hero */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo {
    max-width: 125px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Projects */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 25px;
}

.calc-logo {
    width: 120px;
    height: auto;
    border-radius: 18px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    flex-shrink: 0;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.project-info p {
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Future */
.future-section p {
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.future-section strong {
    color: #fff;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-stack span {
    background: linear-gradient(135deg, rgba(255,0,127,0.2) 0%, rgba(139,0,75,0.2) 100%);
    border: 1px solid rgba(255,0,127,0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.tech-stack span:hover {
    transform: translateY(-3px);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    .glass-panel {
        padding: 30px 20px;
    }
    .logo {
        max-width: 100px;
    }
}
