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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

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

/* Header y Navegación */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Sección Hero */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.subtitle {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.description {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Secciones generales */
section {
  padding: 4rem 0;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #2c3e50;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #34495e;
}

/* About Section */
.about {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.characteristics-list {
  font-size: 1rem;
  line-height: 1.8;
  padding-left: 1.5rem;
}

.characteristics-list li {
  margin-bottom: 0.5rem;
  color: #555;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Skills Section */
.skills {
  background: #f8f9fa;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card h3 {
  color: #667eea;
  margin-bottom: 1.5rem;
}

.skill-card ul {
  list-style: none;
}

.skill-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.skill-card li:last-child {
  border-bottom: none;
}

/* Interests Section */
.interests {
  background: white;
}

.interest-category {
  margin-bottom: 4rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 15px;
}

.interest-category h2 {
  text-align: left;
  margin-bottom: 2rem;
  color: #667eea;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.text-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.ordered-list {
  font-size: 1rem;
  line-height: 1.8;
  padding-left: 1.5rem;
}

.ordered-list li {
  margin-bottom: 0.8rem;
  color: #555;
}

.content-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Education Section */
.education {
  background: white;
}

.education-timeline {
  max-width: 1000px;
  margin: 0 auto;
}

.education-item {
  margin-bottom: 4rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 15px;
  border-left: 5px solid #667eea;
}

.education-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.education-content.reverse {
  direction: rtl;
}

.education-content.reverse > * {
  direction: ltr;
}

.education-text h2 {
  text-align: left;
  margin-bottom: 1rem;
  color: #667eea;
}

.education-text h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.institution {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.period {
  font-size: 1rem;
  color: #7f8c8d;
  margin-bottom: 1rem;
  font-style: italic;
}

.description {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.subjects-list,
.achievements-list,
.certifications-list,
.workshops-list {
  font-size: 0.95rem;
  line-height: 1.6;
  padding-left: 1.5rem;
}

.subjects-list li,
.achievements-list li,
.certifications-list li,
.workshops-list li {
  margin-bottom: 0.5rem;
  color: #555;
}

.education-content img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Academic Goals */
.academic-goals {
  background: #f8f9fa;
}

.goals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.goal-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.goal-card h3 {
  color: #667eea;
  margin-bottom: 1.5rem;
  text-align: center;
}

.goal-card ul {
  list-style: none;
}

.goal-card li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 1.5rem;
}

.goal-card li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.goal-card li:last-child {
  border-bottom: none;
}

/* Video Containers and Media Content */
.video-container {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.video-container h4 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.video-container iframe {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.media-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.media-content img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .about-grid,
  .content-grid,
  .education-content,
  .goals-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-grid.reverse,
  .education-content.reverse {
    direction: ltr;
  }

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

  .profile-img {
    width: 150px;
    height: 150px;
  }

  section {
    padding: 2rem 0;
  }

  .interest-category,
  .education-item {
    padding: 1.5rem;
  }

  .video-container iframe {
    height: 180px;
  }

  .media-content {
    gap: 1rem;
  }
}

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

  nav {
    padding: 0 15px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
  }

  .video-container {
    padding: 0.8rem;
  }

  .video-container iframe {
    height: 160px;
  }
}
