/* Fuente base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #FF6B35 0%, #D32F2F 50%, #FF8F00 100%);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

/* Contenedor principal con glassmorphism */
.main-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

/* Cabecera moderna */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(15px);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin: 0;
}

.navbar a {
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.navbar a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.navbar a:hover::before {
  left: 100%;
}

.navbar a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Sección del paquete moderna */
.package-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.package-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.package-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.package-image:hover img {
  transform: scale(1.05);
}

.package-info {
  max-width: 500px;
  margin-left: 2rem;
  margin-top: 1rem;
}

.package-info h2 {
  margin-top: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
}

.package-info p {
  line-height: 1.7;
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.btn-download {
  background: linear-gradient(135deg, #FF6B35, #D32F2F);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-download:hover::before {
  left: 100%;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

/* Sección Temas moderna */
.topics-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
}

.topics-section h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.topic-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  text-align: center;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.topic-card:hover::before {
  opacity: 1;
}

.topic-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.topic-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.topic-card:hover img {
  transform: scale(1.1) rotate(5deg);
}

.topic-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  position: relative;
  z-index: 1;
}

.topic-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* Sección Exámenes moderna */
.exams-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
}

.exams-section h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.exam-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  text-align: center;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 200px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.exam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exam-card:hover::before {
  opacity: 1;
}

.exam-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.exam-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.exam-card:hover img {
  transform: scale(1.1) rotate(5deg);
}

.exam-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  position: relative;
  z-index: 1;
}

.exam-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* Pie de página moderno */
.main-footer {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-top: 3rem;
}

/* MEDIA QUERIES PARA RESPONSIVE */

/* Tablets grandes */
@media (max-width: 1024px) {
  .main-container {
    margin: 10px;
  }
  
  .topics-grid,
  .exams-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .main-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .package-section {
    flex-direction: column;
    text-align: center;
  }
  
  .package-info {
    margin-left: 0;
    margin-top: 2rem;
  }
  
  .topics-grid,
  .exams-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Móviles */
@media (max-width: 600px) {
  .main-container {
    margin: 5px;
    border-radius: 15px;
  }
  
  .main-header {
    padding: 1rem;
  }
  
  .logo h1 {
    font-size: 1.4rem;
  }
  
  .navbar ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .navbar a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  .package-section {
    padding: 2rem 1rem;
    margin: 1rem;
  }
  
  .package-info h2 {
    font-size: 1.8rem;
  }
  
  .package-info p {
    font-size: 1rem;
  }
  
  .topics-section,
  .exams-section {
    padding: 1rem;
    margin: 1rem;
  }
  
  .topics-section h2,
  .exams-section h2 {
    font-size: 2rem;
  }
  
  .topics-grid,
  .exams-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .topic-card,
  .exam-card {
    padding: 1.5rem 1rem;
  }
  
  .topic-card img,
  .exam-card img {
    width: 60px;
    height: 60px;
  }
  
  .topic-card h3,
  .exam-card h3 {
    font-size: 0.9rem;
  }
}

/* Móviles pequeños */
@media (max-width: 400px) {
  .topics-grid,
  .exams-grid {
    grid-template-columns: 1fr;
  }
  
  .topic-card,
  .exam-card {
    max-width: 100%;
  }
}
