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

body {
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    user-select: none;
}

/* Wallpaper */
.wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%234facfe;stop-opacity:1" /><stop offset="100%" style="stop-color:%2300f2fe;stop-opacity:1" /></linearGradient></defs><rect fill="url(%23grad1)" width="1920" height="1080"/><circle cx="400" cy="300" r="300" fill="rgba(255,255,255,0.05)"/><circle cx="1500" cy="700" r="400" fill="rgba(255,255,255,0.03)"/></svg>') center/cover;
    z-index: 0;
}

/* Desktop Icons */
.desktop-icons {
    position: relative;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.desktop-icon:active {
    transform: scale(0.95);
}

.icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.desktop-icon span {
    color: white;
    font-size: 12px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-weight: 500;
}

/* Window */
.window {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: none;
    flex-direction: column;
    min-width: 500px;
    min-height: 400px;
    z-index: 10;
}

.window.active {
    display: flex;
    animation: windowOpen 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - 48px) !important;
    border-radius: 0;
}

@keyframes windowOpen {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.window-header {
    background: rgba(243, 243, 243, 0.9);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.window-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f1f1f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-controls {
    display: flex;
    gap: 12px;
}

.window-control {
    width: 46px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
    font-size: 12px;
}

.window-control:hover {
    background: rgba(0, 0, 0, 0.05);
}

.window-control.close:hover {
    background: #c42b1c;
    color: white;
}

.window-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: white;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: rgba(243, 243, 243, 0.85);
    backdrop-filter: blur(40px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 100;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.start-button {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 20px;
}

.start-button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.taskbar-app {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
}

.taskbar-app:hover {
    background: rgba(255, 255, 255, 0.8);
}

.taskbar-app.active {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: #0067c0;
}

.time-widget {
    position: absolute;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 11px;
    color: #1f1f1f;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.15s;
}

.time-widget:hover {
    background: rgba(0, 0, 0, 0.05);
}

.time {
    font-weight: 600;
}

.date {
    font-weight: 400;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    width: 600px;
    height: 650px;
    background: rgba(243, 243, 243, 0.95);
    backdrop-filter: blur(60px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 101;
    opacity: 0;
}

.start-menu.active {
    display: flex;
    animation: startMenuOpen 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes startMenuOpen {
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.start-menu-header {
    padding: 30px 30px 20px;
}

.search-box {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: white;
}

.search-box:focus {
    border-color: #0067c0;
}

.pinned-apps {
    padding: 20px 30px;
    flex: 1;
    overflow-y: auto;
}

.pinned-apps h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1f1f1f;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.15s;
}

.app-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.app-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
}

.app-name {
    font-size: 11px;
    text-align: center;
    color: #1f1f1f;
}

/* Content Styles */
.content-section {
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0067c0;
}

.content-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 8px;
    margin-top: 20px;
}

.content-section p {
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-card strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.info-card span {
    font-size: 16px;
    color: #1f1f1f;
    font-weight: 600;
}

.skill-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin: 5px 5px 5px 0;
    font-weight: 500;
}

.experience-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #0067c0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.experience-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
}

.experience-date {
    font-size: 12px;
    color: #666;
    background: white;
    padding: 4px 10px;
    border-radius: 12px;
}

.experience-company {
    font-size: 14px;
    color: #0067c0;
    font-weight: 500;
    margin-bottom: 10px;
}

ul {
    margin-left: 20px;
    margin-top: 10px;
}

li {
    margin-bottom: 8px;
    color: #4a4a4a;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .window {
        min-width: 90%;
        width: 90% !important;
    }

    .start-menu {
        width: 90%;
        height: 80vh;
    }

    .apps-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #e5e5e5;
    border-radius: 6px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
}

.cert-link:hover {
    background: #d4d4d4;
}


/*****************
*** Calendario ***
*****************/

.calendar-popup {
    position: absolute;
    bottom: 60px;
    right: 20px;
    width: 260px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0px 5px 25px rgba(0,0,0,0.25);
    display: none;
    z-index: 9999;
    font-size: 13px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 14px;
}

.calendar-nav {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    background: rgba(0, 0, 0, 0.06);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
    text-align: center;
    font-weight: 600;
    color: #555;
    font-size: 11px;
}

.calendar-weekdays div {
    padding: 2px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-grid div {
    text-align: center;
    padding: 6px 0;
    border-radius: 6px;
    font-size: 12px;
    cursor: default;
}

.calendar-grid div:hover {
    background: rgba(0, 0, 0, 0.04);
}

.calendar-grid .today {
    background: #0078ff;
    color: white;
    font-weight: bold;
}
