/* ---------------------------------------------
   Paleta editorial premium: papel + rojo de tapa + acentos de viaje
--------------------------------------------- */
:root {
  --paper: #efeae0;     /* fondo tipo papel */
  --ink: #201c16;       /* texto principal, negro cálido */
  --masthead: #8b2e2e;  /* rojo editorial de tapa, para acentos */
  --muted: #8a7f6c;     /* gris cálido para fechas y detalles */
  --rule: #201c16;      /* líneas divisorias */
  --gold: #b08d57;      /* dorado suave, detalles premium */
  --olive: #6b7052;     /* verde oliva, acento secundario */
  --ocean: #3c5a6b;     /* azul océano, acento secundario */
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

/* ---------------------------------------------
   Animación de aparición al hacer scroll
--------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------
   Masthead (encabezado tipo portada de diario)
--------------------------------------------- */
header {
  padding: 3.5rem 1.5rem 1.75rem;
  text-align: center;
  border-bottom: 4px double var(--rule);
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 46, 46, 0.07), transparent 70%),
    var(--paper);
}

.eyebrow {
  display: block;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--masthead);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

header h1 {
  margin: 0 0 0.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.01em;
}

header p {
  color: var(--muted);
  margin: 0;
  font-style: italic;
  font-size: 0.95rem;
}

header::after {
  content: "";
  display: block;
  width: 90px;
  height: 2px;
  margin: 1.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------------------------------------------
   Hero con foto de fondo (home, países, sobre nosotros, contacto)
--------------------------------------------- */
header.hero-photo {
  background:
    linear-gradient(180deg, rgba(32, 28, 22, 0.5), rgba(32, 28, 22, 0.78)),
    url('https://images.pexels.com/photos/13366951/pexels-photo-13366951.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
  padding: 5.5rem 1.5rem 3rem;
  border-bottom: none;
}

header.hero-photo .eyebrow {
  color: var(--gold);
}

header.hero-photo h1 {
  color: #fff;
}

header.hero-photo p {
  color: rgba(255, 255, 255, 0.85);
}

header.hero-photo .site-nav a {
  color: #fff;
}

header.hero-photo .site-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 1.25rem;
}

.site-nav a {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.site-nav a:hover {
  border-bottom-color: var(--masthead);
  color: var(--masthead);
}

/* ---------------------------------------------
   Páginas estáticas (Contacto / Sobre nosotros)
--------------------------------------------- */
.static-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.wide-page {
  max-width: 900px;
}

.contact-card {
  text-align: center;
}

.contact-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-card p {
  color: #4a4436;
  margin-bottom: 1.5rem;
}

.whatsapp-button {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #fff;
  background: var(--masthead);
  padding: 0.9rem 2rem;
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(139, 46, 46, 0.28);
  background: #7a2828;
}

.contact-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------------------------------------------
   Contenido largo (Sobre nosotros)
--------------------------------------------- */
.about-content {
  text-align: left;
}

.about-content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.about-content h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  border-bottom: 2px solid var(--masthead);
  display: inline-block;
  padding-bottom: 0.15rem;
}

.about-content p {
  color: #3a352a;
  margin-bottom: 1rem;
}

.about-content p.lead {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
}

.about-content ul {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
}

.about-content li {
  margin-bottom: 0.45rem;
  color: #3a352a;
}

.about-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ---------------------------------------------
   Explorar por países
--------------------------------------------- */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.country-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.5rem;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 28, 22, 0.15) 0%, rgba(32, 28, 22, 0.75) 100%);
  transition: background 0.3s ease;
}

.country-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(32, 28, 22, 0.28);
}

.country-card:hover::before {
  background: linear-gradient(180deg, rgba(139, 46, 46, 0.15) 0%, rgba(139, 46, 46, 0.75) 100%);
}

.country-card-name {
  position: relative;
  z-index: 1;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.country-card-cta {
  position: relative;
  z-index: 1;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.country-intro {
  font-style: italic;
  color: #4a4436;
  font-size: 1.02rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

.country-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.5rem 0;
}

.country-tag {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
  text-decoration: none;
  border: 1px solid var(--olive);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.6rem;
}

.country-tag:hover {
  background: var(--olive);
  color: #fff;
}

/* ---------------------------------------------
   Listado de artículos (portada)
--------------------------------------------- */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

article {
  display: grid;
  grid-template-columns: 56px 84px 1fr;
  align-items: start;
  column-gap: 1.1rem;
  padding: 1.5rem 1rem;
  margin: 0 -1rem;
  border-bottom: 1px solid #d8d0bf;
  border-radius: 3px;
  transition: background 0.3s ease, transform 0.3s ease;
}

article:hover {
  background: rgba(139, 46, 46, 0.035);
  transform: translateX(2px);
}

article .thumb {
  width: 84px;
  height: 84px;
  border-radius: 3px;
  overflow: hidden;
  background: #ddd6c4;
}

article .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

article:hover .thumb img {
  transform: scale(1.06);
}

article .edition-date {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--masthead);
  line-height: 1.3;
  padding-top: 0.3rem;
  border-right: 2px solid var(--masthead);
}

article h2 {
  margin: 0 0 0.35rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

article h2 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s ease;
}

article h2 a:hover {
  color: var(--masthead);
}

article .meta {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

article p:last-child {
  margin: 0;
  color: #4a4436;
}

/* ---------------------------------------------
   Página de artículo individual
--------------------------------------------- */
.post-body {
  max-width: 680px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.post-body h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin: 0.4rem 0 1.5rem;
}

.post-body p:first-of-type::first-letter {
  font-family: "Playfair Display", Georgia, serif;
  float: left;
  font-size: 3.8rem;
  line-height: 0.85;
  font-weight: 900;
  padding: 0.05em 0.08em 0 0;
  color: var(--masthead);
}

.post-image {
  margin: 1.5rem 0 2rem;
  overflow: hidden;
  border-radius: 3px;
}

.post-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  transition: transform 0.6s ease;
}

.post-image:hover img {
  transform: scale(1.035);
}

.post-image figcaption {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.post-image figcaption a {
  color: var(--muted);
}

.post-body h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  margin-top: 2.2rem;
  border-bottom: 2px solid var(--masthead);
  display: inline-block;
  padding-bottom: 0.2rem;
}

.post-body h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.02rem;
  margin: 1.4rem 0 0.4rem;
  color: var(--masthead);
}

.post-body .meta {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--masthead);
  text-decoration: none;
  border-bottom: 1px solid var(--masthead);
  transition: opacity 0.25s ease;
}

.back-link:hover {
  opacity: 0.65;
}

/* ---------------------------------------------
   Pie de página
--------------------------------------------- */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 4px double var(--rule);
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
