/* --------------------------------------------------
   TIPOGRAFÍAS
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Inter:wght@300;400;500;600&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.6;
}

/* --------------------------------------------------
   CONTENEDOR GENERAL
-------------------------------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.header {
  background: #0A3D62;
  color: #fff;
  padding: 14px 0;
  border-bottom: 4px solid #C9A86A;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 2rem;
  line-height: 1;
}

.logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

/* MENÚ */
.menu a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

.menu a:hover,
.menu .active {
  color: #C9A86A;
}

/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.hero {
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

/* --------------------------------------------------
   SECCIONES
-------------------------------------------------- */
.section {
  margin: 60px 0;
}

.section h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0A3D62;
}

/* --------------------------------------------------
   GRID DE TARJETAS
-------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.card {
  background: #F7F7F7;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}

.card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.2rem;
  margin: 10px 0;
  color: #111;
}

.card p {
  font-size: 0.95rem;
  color: #333;
}

/* --------------------------------------------------
   LISTA DE BLOG
-------------------------------------------------- */
.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  padding: 12px 16px;
  background: #F7F7F7;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  color: #0A3D62;
  font-weight: 500;
  transition: 0.2s ease;
}

.list-item:hover {
  background: #eaeaea;
}

/* --------------------------------------------------
   BOTONES
-------------------------------------------------- */
.btn,
.btn-secondary {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn {
  background: #0A3D62;
  color: #fff;
}

.btn:hover {
  background: #082f4a;
}

.btn-secondary {
  background: #C9A86A;
  color: #111;
}

.btn-secondary:hover {
  background: #b8955c;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer {
  background: #0A3D62;
  color: #fff;
  padding: 30px 0;
  margin-top: 60px;
  border-top: 4px solid #C9A86A;
}

.footer-links a {
  color: #C9A86A;
  margin-right: 20px;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: #fff;
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 768px) {
  .menu a {
    margin-left: 12px;
  }

  .hero {
    height: 300px;
  }
}
/* ✅ AJUSTE PROFESIONAL DE PORTADAS */
.card img {
  width: 100%;
  height: 260px;          /* Altura fija para uniformidad */
  object-fit: cover;      /* Recorta suavemente sin deformar */
  border-radius: 8px;
  background: #ddd;       /* Fondo neutro si falta portada */
}
