/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Colores base */
:root {
  --primary: #0077b6;
  --secondary: #00b4d8;
  --light-bg: #f8f9fa;
  --text-dark: #333;
}

/* Redes sociales */
.redes-sociales {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 8px 0;
  background: var(--light-bg);
}

.redes-sociales img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}
.redes-sociales img:hover {
  transform: scale(1.2);
}

/* Logo */
header {
  text-align: center;
  padding: 10px 0;
}
.logo {
  max-width: 180px;
  height: auto;
}

/* Menú */
nav {
  background: var(--primary);
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 0;
  flex-wrap: wrap;
}
nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}
nav ul li a:hover {
  color: var(--secondary);
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
}
.hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-bottom: 4px solid var(--secondary);
}

/* ===== Frase superior estilizada ===== */
.frase-container {
  background-color: #f9f9f9; /* Fondo suave para destacarla */
  padding: 50px 20px;
  text-align: center;
  border-bottom: 2px solid #e6e6e6;
}

.frase-container p {
  max-width: 850px;
  margin: 10px auto;
  color: #444;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.3px;
}

.frase-container p:first-child {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0077b6; /* color principal */
  margin-bottom: 15px;
}

.frase-container p:last-child {
  color: #555;
  font-style: italic;
}


/* ===== Sección principal de Cursos ===== */
.cursos {
  background-color: #fff;
  padding: 60px 0;
  text-align: center;
  width: 100%;
}

/* Título principal */
.cursos h2 {
  font-size: 2.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

/* Texto superior más estético */
.phrase {
  text-align: center;
  font-size: 1.2rem;
  max-width: 900px;
  margin: 20px auto;
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.6;
}

/* ===== Grid de cursos ===== */
.grid-cursos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
  width: 95%; /* se amplía a casi todo el ancho */
  margin: 0 auto;
}

/* ===== Tarjetas ===== */
.curso {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #fafafa;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.curso:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ===== Imagen ===== */
.curso img {
  width: 100%;
  height: 300px; /* más grande, como en la tienda */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* ===== Título ===== */
.curso h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

/* ===== Descripción ===== */
.curso p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* ===== Botón ===== */
.btn-curso {
  display: inline-block;
  background-color: #003199;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-curso:hover {
  background-color: #56397b;
  transform: scale(1.05);
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
  .cursos h2 {
    font-size: 1.8rem;
  }

  .curso img {
    height: 230px;
  }

  .phrase {
    font-size: 1rem;
    padding: 0 15px;
  }
}


/* Footer */
footer {
  background: var(--light-bg);
  padding: 20px 10px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-top: 40px;
}
footer p {
  margin: 8px 0;
}
footer .redes-sociales {
  margin-top: 10px;
}

/* Animación */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .phrase {
    font-size: 1.1rem;
  }
  .curso h3 {
    font-size: 0.95rem;
  }
}
