* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
  user-select: none;
}

body {
  background: url("https://4kwallpapers.com/images/wallpapers/windows-11-dark-mode-blue-stock-official-3840x2400-5630.jpg")
    no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.desktop {
  flex: 1;
  display: flex;
  padding: 20px;
}

.icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 20px;
  align-content: start;
}

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

.icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.icon img {
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
}

.icon span {
  color: white;
  font-size: 12px;
}

.taskbar {
  height: 48px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.taskbar-icons {
  display: flex;
  gap: 8px;
}

.task-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.task-icon:hover,
.task-icon.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.task-icon img {
  width: 24px;
  height: 24px;
}

.clock {
  position: absolute;
  right: 16px;
  color: black;
  font-size: 14px;
}

.start-button {
  position: absolute;
  left: 16px;
  cursor: pointer;
}

.start-button img {
  width: 24px;
  height: 24px;
}

.window {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  min-width: 300px;
  min-height: 200px;
}

.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.window-title {
  font-size: 14px;
  font-weight: bold;
}

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

.window-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.window-close {
  background-color: #ff5f57;
}

.window-minimize {
  background-color: #febc2e;
}

.window-maximize {
  background-color: #28c840;
}

.window-content {
  padding: 16px;
  flex: 1;
  overflow: auto;
}

.start-menu {
  position: absolute;
  bottom: 48px;
  left: 0;
  width: 600px;
  height: 500px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-top-right-radius: 8px;
  display: none;
  flex-direction: column;
  padding: 16px;
}

.start-search {
  padding: 8px;
  border: none;
  border-radius: 4px;
  margin-bottom: 16px;
}

.start-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 16px;
  overflow-y: auto;
}

.start-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.start-app img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}

.start-app span {
  font-size: 12px;
}

.window {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  min-width: 400px;
  min-height: 300px;
  resize: both;
  overflow: auto;
}

.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  cursor: move;
}

.window-content {
  padding: 16px;
  flex: 1;
  overflow: auto;
}

.folder-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
}

.folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.folder-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}

.folder-item span {
  font-size: 12px;
}

.vscode-window {
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: "Consolas", monospace;
  padding: 16px;
  white-space: pre-wrap;
}

.project-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-preview img {
  max-width: 100%;
  margin-bottom: 16px;
}

.project-preview a {
  color: #0078d4;
  text-decoration: none;
}

.project-preview a:hover {
  text-decoration: underline;
}

.outlook-window {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.outlook-toolbar {
  display: flex;
  gap: 10px;
  padding: 10px;
  background-color: #f3f3f3;
}

.outlook-button {
  padding: 5px 10px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.outlook-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.outlook-form input,
.outlook-form textarea {
  width: 100%;
  padding: 5px;
}
.about-me-window {
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 10px;
}

.profile-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-header h2 {
  margin: 0;
  font-size: 24px;
  color: #1c2526;
}

.subtitle {
  margin: 5px 0 0;
  color: #0078d4;
  font-size: 16px;
  font-weight: 500;
}

.content-section {
  margin: 20px 0;
}

h3 {
  color: #1c2526;
  font-size: 18px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #0078d4;
  display: inline-block;
}

p {
  color: #444;
  line-height: 1.6;
  margin: 8px 0;
}

.experience-item {
  background: rgba(245, 245, 245, 0.8);
  padding: 10px;
  border-radius: 5px;
  margin: 5px 0;
}

.date {
  color: #666;
  font-size: 14px;
  margin: 2px 0 0;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.label {
  color: #0078d4;
  font-weight: 500;
  min-width: 60px;
}

a {
  color: #0078d4;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #005a9e;
  text-decoration: underline;
}

.experience-window {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
}

.experience-container {
  max-width: 800px;
  margin: 0 auto;
}

.experience-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: #0078d4;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: -5px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0078d4;
  border: 2px solid #fff;
}

.timeline-content {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-header {
  margin-bottom: 15px;
}

.timeline-header h3 {
  text-align: center;
  color: #0078d4;
  font-size: 18px;
}

.timeline-header .company {
  display: block;
  color: #666;
  font-size: 16px;
  margin: 5px 0;
}

.timeline-header .date {
  display: block;
  color: #888;
  font-size: 14px;
}

.timeline-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #444;
}

.timeline-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0078d4;
}

/* Efecto hover para las tarjetas */
.timeline-content:hover {
  transform: translateX(5px);
  transition: transform 0.3s ease;
}

/* Animación para los puntos de la línea de tiempo */
.timeline-dot::after {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 120, 212, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.terminal {
  font-family: "Consolas", monospace;
  background-color: #0c0c0c;
  color: #cccccc;
  padding: 10px;
  height: 300px;
  overflow-y: auto;
}

.terminal-input {
  display: flex;
  margin-top: 10px;
}

.terminal-prompt {
  color: #0f0;
  margin-right: 5px;
}

.terminal-command {
  color: #fff;
}

.terminal-output {
  margin-top: 5px;
  white-space: pre-wrap;
}

#terminalInput {
  background-color: transparent;
  border: none;
  color: #fff;
  font-family: "Consolas", monospace;
  width: 100%;
  outline: none;
}

.perro {
  position: absolute;
  bottom: 44px;
  left: 0;
  width: 64px;
  height: 64px;
  background-size: cover;
}

.perro:hover {
  size: 64px;
}

/* Estilos para la ventana de contacto */
.contact-window {
    display: flex;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

.contact-sidebar {
    width: 200px;
    background-color: #f0f0f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-photo {
    width: 120px;
    height: 120px;
    border-radius: 5px;
    margin-bottom: 10px;
    object-fit: cover;
}

.contact-info h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.contact-link {
    padding: 8px 12px;
    background-color: #e0e0e0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s;
}

.contact-link:hover {
    background-color: #d0d0d0;
}

.contact-form {
    flex: 1;
    padding: 30px;
}

.contact-form h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background-color: #0078D4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #006cbd;
}

/* Ajustes para asegurar que los inputs tengan el mismo estilo que en la imagen */
input, textarea {
    box-shadow: none;
    outline: none;
}

input:focus, textarea:focus {
    border-color: #0078D4;
}

/* Estilos para la ventana de educación */
.education-window {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

.education-title {
  text-align: center;
  margin-bottom: 20px;
}

.education-timeline {
  position: relative;
  padding: 20px 0;
}

.education-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: #0078d4;
}

.education-timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 9px;
}

.education-timeline-dot {
  position: absolute;
  left: -5px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0078d4;
  border: 2px solid #fff;
}

.education-timeline-content {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.education-timeline-header {
  margin-bottom: 15px;
}

.education-timeline-header h3 {
  margin: 0;
  color: #0078d4;
  font-size: 18px;
}

.education-timeline-header .school {
  display: block;
  color: #666;
  font-size: 16px;
  margin: 5px 0;
}

.education-timeline-header .date {
  display: block;
  color: #888;
  font-size: 14px;
}

.education-timeline-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.education-timeline-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #444;
}

.education-timeline-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0078d4;
}

/* Efecto hover para las tarjetas */
.education-timeline-content:hover {
  transform: translateX(5px);
  transition: transform 0.3s ease;
}

/* Estilos para la ventana de habilidades */
.skills-window {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

.skills-title {
  text-align: center;
  margin-bottom: 20px;
}

.skills-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.skills-category {
  flex: 1;
  min-width: 250px;
  background-color: #f0f0f0;
  border-radius: 8px;
  padding: 15px;
}

.skills-category h3 {
  margin-bottom: 15px;
  color: #333;
}

.skills-list {
  display: grid;
  gap: 10px;
}

.skill-item {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 5px;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.skill-item img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.skill-item span {
  z-index: 1;
}

.skill-level {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 120, 212, 0.2);
  z-index: 0;
}

.skill-item:hover .skill-level {
  background-color: rgba(0, 120, 212, 0.3);
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .desktop {
    padding: 1vw;
  }

  .icons {
    grid-template-columns: repeat(auto-fill, minmax(min(80px, 25vw), 1fr));
    gap: 1vw;
  }

  .icon {
    width: 80px;
  }

  .icon img {
    width: 36px;
    height: 36px;
  }

  .taskbar-icons {
    gap: 4px;
  }

  .task-icon {
    width: 32px;
    height: 32px;
  }

  .task-icon img {
    width: 20px;
    height: 20px;
  }

  .start-menu {
    width: 90vw;
    height: 80vh;
    bottom: 40px;
  }

  .start-apps {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }

  .window {
    width: 90vw;
    height: 70vh;
    min-width: 0;
    min-height: 0;
  }

  .contact-window {
    flex-direction: column;
  }

  .contact-sidebar {
    width: 100%;
    padding: 10px;
  }

  .contact-form {
    padding: 15px;
  }

  .skills-categories {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  .icons {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }

  .icon {
    width: 60px;
  }

  .icon img {
    width: 32px;
    height: 32px;
  }

  .icon span {
    font-size: 10px;
  }

  .taskbar {
    height: 40px;
  }

  .task-icon {
    width: 28px;
    height: 28px;
  }

  .task-icon img {
    width: 16px;
    height: 16px;
  }

  .clock {
    font-size: 12px;
  }

  .start-menu {
    width: 100vw;
    height: 90vh;
    padding: 8px;
  }

  .start-apps {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }

  .window {
    width: 95vw;
    height: 80vh;
  }

  .timeline::before,
  .education-timeline::before {
    left: 5px;
  }

  .timeline-item,
  .education-timeline-item {
    padding-left: 20px;
  }

  .timeline-dot,
  .education-timeline-dot {
    left: 0;
  }
}

/* Additional Responsive Adjustments */
@media screen and (max-height: 600px) {
  .start-menu {
    height: 90vh;
  }

  .window {
    height: 80vh;
  }
}

/* Ensure content scales properly */
.folder-view,
.start-apps {
  width: 100%;
  max-width: 100%;
}

.experience-container {
  max-width: 100%;
  padding: 0 10px;
}

/* Smooth transitions for resizing */
body,
.window,
.start-menu,
.icons {
  transition: all 0.3s ease;
}