/* RESET BÁSICO */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.75;               /* Más espacio entre líneas para mejorar lectura */
  font-size: 18px;
  margin: 0;
  padding: 0;
  background-color: #f5f7fa;       /* Color de fondo más suave y moderno */
  color: #2c3e50;                  /* Texto más oscuro para mejor contraste */
}

header, main, footer {
  max-width: 960px;
  margin: auto;
  padding: 32px 24px;              /* Más padding para respirar */
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);  /* Sombra sutil para destacar contenedor */
  border-radius: 12px;
}

/* ENCABEZADOS */
h1 {
  font-size: 2.8rem;
  color: #1a237e;                  /* Azul intenso para llamar la atención */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  color: #3949ab;                  /* Azul más claro que h1 para jerarquía */
  font-weight: 700;
  border-left: 5px solid #3949ab; /* Línea a la izquierda para destacar subtítulos */
  padding-left: 12px;
}

h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  color: #5c6bc0;
  font-weight: 600;
}

/* LISTAS Y PÁRRAFOS */
ul, ol {
  margin-left: 30px;
  margin-bottom: 25px;
  line-height: 1.6;
}

p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #34495e;                 /* Texto gris oscuro para menos fatiga visual */
}

/* ENLACES */
a {
  color: #303f9f;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: #1a237e;
  text-decoration: underline;
  outline: none;
}

/* FOOTER */
footer {
  font-size: 14px;
  color: #7f8c8d;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: 60px;
  padding-top: 25px;
  font-style: italic;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #4a90e2, #50e3c2);
  color: white;
  padding: 70px 20px 90px;
  text-align: center;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 10px 30px rgba(26, 35, 126, 0.6);
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.hero h1 {
  font-size: 3.4rem;
  margin-bottom: 25px;
  font-weight: 900;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
  line-height: 1.1;
}

.hero p {
  font-size: 1.4rem;
  max-width: 720px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
  font-weight: 500;
}

/* BOTÓN */
.btn {
  background-color: #f9fafb;
  color: #3949ab;
  font-weight: 700;
  padding: 18px 44px;
  font-size: 1.3rem;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(57, 73, 171, 0.45);
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border: 2px solid transparent;
}

.btn:hover,
.btn:focus {
  background-color: #303f9f;
  color: white;
  box-shadow: 0 10px 28px rgba(30, 42, 158, 0.8);
  outline: none;
  border-color: #f9fafb;
}

/* TARJETAS DE ARTÍCULOS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
}

.card {
  background-color: #fff;
  border: 1px solid #d1d9ff;
  padding: 28px;
  flex: 1 1 calc(45% - 12px);
  border-radius: 16px;
  transition: all 0.35s ease;
  text-decoration: none;
  color: #2c3e50;
  box-shadow: 0 2px 10px rgba(44, 62, 80, 0.08);
}

.card:hover,
.card:focus {
  box-shadow: 0 14px 30px rgba(57, 73, 171, 0.25);
  transform: translateY(-8px);
  outline: none;
}

.card h3 {
  margin-top: 0;
  color: #3949ab;
  font-weight: 700;
  font-size: 1.6rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  header, main, footer {
    max-width: 95%;
    padding: 24px 20px;
  }

  .card {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 17px;
    background-color: #fefefe; /* Ligero cambio para móvil */
  }

  .hero {
    padding: 50px 15px 70px;
    border-radius: 0 0 30px 30px;
  }

  .hero h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 1.15rem;
    margin-bottom: 30px;
  }

  .btn {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: 40px;
  }
}
