/* Estilos generales */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background-color: #fafafa;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Georgia', serif;
  margin-top: 0;
}

/* Encabezado */
.site-header {
  background-color: #2b6777;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.site-header .tagline {
  font-size: 1rem;
  font-weight: 300;
  margin-top: 10px;
}

/* Sección héroe */
.hero {
  position: relative;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin: 0 auto;
}

/* Contenedor principal */
main {
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Artículo destacado */
.featured-article {
  margin-bottom: 50px;
}

.featured-article h2 {
  color: #2b6777;
  margin-bottom: 10px;
}

.featured-article p {
  margin-bottom: 1em;
  text-align: justify;
}

/* Sección de cursos */
.courses {
  margin-bottom: 50px;
}

.courses h2 {
  color: #2b6777;
  margin-bottom: 20px;
  text-align: center;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.course-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.course-item:hover {
  transform: translateY(-5px);
}

.course-item h3 {
  margin-top: 0;
  color: #2b6777;
}

.course-item .price {
  color: #388087;
  font-weight: bold;
  margin-top: 10px;
}

/* Sección de testimonios */
.testimonials {
  margin-bottom: 50px;
}

.testimonials h2 {
  color: #2b6777;
  text-align: center;
  margin-bottom: 20px;
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.testimonial-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  font-style: italic;
  position: relative;
}

.testimonial-item span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #555;
}

/* Formulario de reseñas */
.review-form-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.review-form-container h3 {
  margin-bottom: 10px;
  color: #2b6777;
}

form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 1rem;
}

form button {
  background-color: #388087;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

form button:hover {
  background-color: #2b6777;
}

/* Checkbox personalizado */
.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #333;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 8px;
}

/* Pop-up de opinión */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup .popup-content {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.popup .popup-content button {
  margin-top: 20px;
}

/* Sección de contacto */
.contact {
  margin-bottom: 50px;
}

.contact h2 {
  color: #2b6777;
  margin-bottom: 10px;
  text-align: center;
}

.contact p {
  text-align: center;
  margin-bottom: 20px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

/* Pie de página */
.site-footer {
  background-color: #2b6777;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

.site-footer a:hover {
  text-decoration: none;
}

@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-list {
    grid-template-columns: 1fr;
  }
}