/* ==============================
   ESTILOS GLOBALES
============================== */
* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f7fa;
  color: #222;
  line-height: 1.7;
}

/* ==============================
   CABECERA Y NAVEGACIÓN
============================== */
header {
  background: linear-gradient(90deg, #1a1f71, #16205b);
  color: white;
  padding: 1.5rem 0;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover, nav a.active {
  color: #ffcc00;
  text-decoration: underline;
}

/* ==============================
   SECCIÓN HERO
============================== */
.hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  width: 90%;
  max-width: 800px;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.btn {
  background: #ffcc00;
  color: #1a1f71;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #f0b800;
  color: #fff;
}

/* ==============================
   SECCIONES DE ARTÍCULOS
============================== */
main {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.articulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  margin-bottom: 3rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.articulo:hover {
  transform: translateY(-5px);
}

.articulo img {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
}

.articulo div {
  flex: 1;
  padding: 1.5rem 2rem;
  min-width: 300px;
}

.articulo.reverse {
  flex-direction: row-reverse;
}

/* ==============================
   LISTAS Y TEXTO
============================== */
ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 0.5rem;
}

/* ==============================
   SECCIÓN CTA (LLAMADO A LA ACCIÓN)
============================== */
.cta {
  text-align: center;
  background: linear-gradient(90deg, #1a1f71, #0e1649);
  color: white;
  padding: 3rem 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cta h2 {
  font-size: 1.8rem;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta .btn {
  background: #ffcc00;
  color: #1a1f71;
  font-size: 1.1rem;
}

.cta .btn:hover {
  background: #fff;
  color: #1a1f71;
}

/* ==============================
   PIE DE PÁGINA
============================== */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #16205b;
  color: white;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ==============================
   RESPONSIVIDAD
============================== */
@media (max-width: 900px) {
  .hero {
    height: 400px;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .articulo {
    flex-direction: column;
    text-align: center;
  }

  .articulo img {
    max-width: 100%;
    border-radius: 0;
  }

  .articulo div {
    padding: 1rem;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 320px;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.95rem;
  }
}