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

:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --accent-color: #10b981;
  --accent-dark: #059669;
  --text-dark: #1f2937;
  --text-medium: #4b5563;
  --text-light: #6b7280;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-alt: #f3f4f6;
  --bg-dark: #111827;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 64px 0 48px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.header::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fadeInUp 0.8s ease-out;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
}

.header-text .name {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.header-text .title {
  font-size: 1.25rem;
  opacity: 0.95;
  font-weight: 400;
}

.nav {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Botón hamburguesa oculto por defecto (solo visible en móvil) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  z-index: 101;
  position: absolute;
  right: 24px;
  top: 24px;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active {
  background: rgba(255, 255, 255, 0.3);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-medium);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
}

.nav-link:hover {
  background-color: var(--bg-alt);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-white);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 48px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  margin: 16px auto 0;
  border-radius: 2px;
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-medium);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 48px;
  padding-bottom: 48px;
  animation: fadeInLeft 0.6s ease-out;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.timeline-date {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.institution {
  color: var(--text-medium);
  font-size: 1rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.experience-card {
  background-color: var(--bg-white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  transform: scaleY(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.experience-card:hover::before {
  transform: scaleY(1);
}

.experience-card h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.company {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 4px;
}

.period {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.description {
  color: var(--text-medium);
  line-height: 1.7;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.skills-column {
  animation: fadeInUp 0.6s ease-out;
}

.skills-subtitle {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.skills-list {
  list-style: none;
}

.skills-list li {
  padding: 12px 0;
  color: var(--text-medium);
  position: relative;
  padding-left: 32px;
}

.skills-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
}

.language-item {
  margin-bottom: 24px;
}

.language-name {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.language-bar {
  width: 100%;
  height: 8px;
  background-color: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.language-level {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  border-radius: 4px;
  transition: width 1s ease;
}

.language-label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.certifications-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.certification-card {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-alt) 100%);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  gap: 24px;
  align-items: center;
  border: 2px solid transparent;
  animation: fadeInUp 0.6s ease-out;
}

.certification-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.certification-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.certification-icon svg {
  width: 40px;
  height: 40px;
  color: white;
  stroke-width: 2.5;
}

.certification-content {
  flex: 1;
}

.certification-content h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.certification-provider {
  color: var(--text-medium);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 12px;
}

.certification-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.course-card {
  background-color: var(--bg-white);
  padding: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.course-number {
  position: absolute;
  top: -10px;
  right: 30px;
  font-size: 8rem;
  font-weight: 900;
  color: var(--bg-alt);
  line-height: 1;
  z-index: 0;
  opacity: 0.5;
}

.course-content {
  padding: 40px;
  position: relative;
  z-index: 1;
}

.course-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.course-provider {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9375rem;
}

.course-year {
  color: var(--text-light);
  font-size: 0.875rem;
  background-color: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.course-description {
  color: var(--text-medium);
  line-height: 1.8;
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.course-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.course-tag {
  background-color: var(--bg-alt);
  color: var(--text-medium);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.course-tag:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  text-align: center;
  margin-bottom: 48px;
}

.contact-intro {
  font-size: 1.125rem;
  color: var(--text-medium);
  line-height: 1.8;
}

.contact-methods {
  display: grid;
  gap: 24px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-alt) 100%);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: var(--text-dark);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.contact-method::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-method:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.contact-method:hover::before {
  opacity: 0.03;
}

.contact-method-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.contact-method:hover .contact-method-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-method-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.contact-method-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.contact-method-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-method-value {
  display: block;
  font-size: 1.125rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* Media queries mejoradas para móvil con menú hamburguesa */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header {
    padding: 48px 0 36px;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .profile-photo {
    width: 140px;
    height: 140px;
  }

  .header-text .name {
    font-size: 2rem;
    line-height: 1.2;
  }

  .header-text .title {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Mostrar botón hamburguesa en móvil, ya posicionado en el header */
  .menu-toggle {
    display: flex;
  }

  .nav .container {
    position: relative;
  }

  /* Menú desplegable en móvil */
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 99;
    justify-content: flex-start;
  }

  .nav-list.active {
    right: 0;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 16px 12px;
    font-size: 1rem;
    border-radius: 0;
    width: 100%;
  }

  .nav-link:hover {
    transform: translateX(8px);
    background-color: var(--bg-alt);
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 36px;
  }

  .about-text {
    font-size: 1rem;
    text-align: left;
    line-height: 1.7;
  }

  .timeline::before {
    left: 6px;
  }

  .timeline-item {
    padding-left: 32px;
    padding-bottom: 36px;
  }

  .timeline-marker {
    width: 14px;
    height: 14px;
    left: 0;
  }

  .timeline-content h3 {
    font-size: 1.125rem;
    line-height: 1.4;
  }

  .experience-grid,
  .courses-grid,
  .certifications-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .experience-card {
    padding: 28px;
  }

  .experience-card h3 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .certification-card {
    padding: 28px;
    gap: 20px;
    flex-direction: row;
  }

  .certification-icon {
    width: 70px;
    height: 70px;
  }

  .certification-icon svg {
    width: 36px;
    height: 36px;
  }

  .certification-content h3 {
    font-size: 1.125rem;
    line-height: 1.3;
  }

  .certification-provider {
    font-size: 0.875rem;
  }

  .course-card {
    margin-bottom: 0;
  }

  .course-number {
    font-size: 5rem;
    right: 15px;
    top: 0;
  }

  .course-content {
    padding: 32px 24px;
  }

  .course-content h3 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .course-description {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .skills-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .skills-subtitle {
    font-size: 1.25rem;
  }

  .skills-list li {
    font-size: 0.9375rem;
    padding: 11px 0;
    padding-left: 30px;
  }

  .language-item {
    margin-bottom: 20px;
  }

  .contact-method {
    padding: 24px;
    gap: 20px;
  }

  .contact-method-icon {
    width: 56px;
    height: 56px;
  }

  .contact-method-icon svg {
    width: 26px;
    height: 26px;
  }

  .contact-method-value {
    font-size: 1rem;
    word-break: break-word;
  }

  .contact-intro {
    font-size: 1rem;
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header {
    padding: 40px 0 32px;
  }

  .header-text .name {
    font-size: 1.625rem;
  }

  .header-text .title {
    font-size: 0.9375rem;
  }

  .section-title {
    font-size: 1.625rem;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }

  .nav-list {
    width: 260px;
    padding: 70px 20px 20px;
  }

  .nav-link {
    padding: 14px 10px;
    font-size: 0.9375rem;
  }

  .experience-card,
  .certification-card,
  .course-content {
    padding: 24px;
  }

  .certification-card {
    flex-direction: column;
    text-align: center;
  }

  .certification-icon {
    width: 64px;
    height: 64px;
  }

  .course-number {
    font-size: 4rem;
    right: 10px;
  }

  .contact-method {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }

  .contact-method-value {
    font-size: 0.9375rem;
  }

  .section {
    padding: 48px 0;
  }

  .menu-toggle {
    right: 16px;
    top: 20px;
    padding: 8px;
  }

  .menu-toggle span {
    width: 22px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
