/* ============== RESET / BASE ============== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow-x: hidden; background: #fff; }
/* Inter Regular (400) */
@font-face {
  font-family: 'Inter';
  src: url('../../assets/fonts/Inter18pt-Regular.woff2') format('woff2'),
       url('../../assets/fonts/Inter18pt-Regular.woff2') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Inter Bold (700) */
@font-face {
  font-family: 'Inter';
  src: url('../../assets/fonts/Inter24pt-Bold.woff2') format('woff2'),
       url('../../assets/fonts/Inter28pt-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body { font-family: 'Inter', sans-serif; color: #333; line-height: 1.6; background-color: #F5F5F5; }

/* ============== HEADER / NAV ============== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
  display: flex;
  align-items: center;
}

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
}

nav .logo {
  width: 84px;
  height: 74px;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

nav .logo:hover {
  transform: scale(1.2);
  filter: brightness(1.1);
}

/* Menú normal */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 250px;
  margin: 0;
  padding: 0;
  padding-right: 40px;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 25px;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none; /* oculto en escritorio */
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #000;
}

/* ============== RESPONSIVE NAV ============== */
@media (max-width: 1024px) {
  .nav-links {
    gap: 60px;
  }
  nav a {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    height: auto;
    padding: 10px 20px;
  }

  /* mostrar hamburguesa */
  .menu-toggle {
    display: block;
  }

  /* ocultar links por defecto */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 80px; /* debajo del header */
    left: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  /* cuando esté abierto */
  .nav-links.open {
    display: flex;
  }

  nav a {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  nav .logo {
    width: 64px;
    height: 54px;
  }
  nav a {
    font-size: 16px;
  }
}

/* ===== Layout blog ===== */
.blog { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 16px 48px; 
}
.blog-title { 
  font-size: clamp(28px, 4vw, 44px); 
  font-weight: 800; 
  margin: 8px 0 24px; 
}

/* Featured */
.featured { margin-bottom: 28px; }
.card { 
  background:#fff; 
  border-radius: 14px; 
  overflow: hidden; 
  box-shadow: 0 6px 24px rgba(0,0,0,.06); 
  display: grid; 
}
.card-media img { 
  width:100%; 
  height:100%; 
  display:block; 
  object-fit: cover; 
}

/* Featured grande en 2 columnas (img + texto) en desktop */
.card--featured {
  grid-template-columns: 1.2fr 1fr;
  min-height: 380px;
}
.card--featured .card-media { height: 100%; }
.card--featured .card-body { padding: 20px 20px 18px; }

/* Card normal (grid inferior) */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.card:not(.card--featured) .card-media { 
  aspect-ratio: 16/10; 
  overflow: hidden;
}
.card:not(.card--featured) .card-media img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}
.card:not(.card--featured) .card-body { padding: 14px 14px 16px; }

/* Contenido */
.card-title { 
  font-size: clamp(18px, 2vw, 24px); 
  line-height: 1.25; 
  margin: 0 0 6px; 
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-date { display:block; font-size: 13px; color:#777; margin-bottom: 8px; }
.card-excerpt { font-size: 15px; color:#333; margin: 0 0 10px; }

/* Botón "Read more" */
.card-readmore {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  color: #771d95;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: transparent;
  border: 2px solid transparent;
}
.card-readmore:hover {
  background-color: #0a800a;
  color: #fff;
  border-color: #0a800a;
  transform: scale(1.05);
}

/* Botón "Show More" */
.show-more {
  display: inline-block;
  margin: 32px auto 0;
  font-weight: 700;
  text-decoration: none;
  color: #771d95;
  padding: 10px 18px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: transparent;
  border: 2px solid transparent;
  text-align: center;
}
.show-more:hover {
  background-color: #0a800a;
  color: #fff;
  border-color: #0a800a;
  transform: scale(1.05);
}

/* Hover sutil */
.card:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 10px 28px rgba(0,0,0,.08); 
  transition: .18s ease; 
}

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .card--featured { grid-template-columns: 1fr; min-height: 0; }
  .card--featured .card-media { aspect-ratio: 16/9; }
}
@media (max-width: 820px){
  .post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .post-grid { grid-template-columns: 1fr; }
}


/* ============== FOOTER ============== */
footer{ background:#222; color:#fff; text-align:center; padding:16px; width:100%; }