:root {
  --pdln-crema: #F5EFE6;
  --pdln-crema-carta: #FBF7F0;
  --pdln-texto: #3B2A20;
  --pdln-texto-suave: #6B5847;
  --pdln-madera: #8B5E3C;
  --pdln-madera-oscura: #2E2118;
  --pdln-madera-oscura-2: #241A12;
  --pdln-acento: #B08D57;
  --pdln-borde: #E4D9C8;
}

body {
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  background: var(--pdln-crema);
  color: var(--pdln-texto);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--pdln-acento); }
::selection { background: var(--pdln-acento); color: #FBF7F0; }

.serif,
.pdln-brand, .pdln-brand-name, .pdln-hero-title, .pdln-hero-quote,
.pdln-section-title, .pdln-card-title, .pdln-poema-title { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; }

/* NAVBAR */
.pdln-navbar {
  background: var(--pdln-madera-oscura);
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(20,12,4,0.25);
}
.pdln-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 21px; font-weight: 600; color: #F1E7D8;
}
.pdln-brand em { font-style: italic; font-weight: 500; opacity: .85; }
/* Bootstrap fija su propio color oscuro en :hover/:focus para .navbar-brand
   (pensado para navbars claras); como la nuestra es oscura, sin esto el
   título se volvía casi negro sobre negro al pasar el ratón. */
.pdln-navbar .navbar-brand:hover,
.pdln-navbar .navbar-brand:focus { color: var(--pdln-acento); }
.pdln-brand-mark {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 32% 28%, #C9A66B 0%, var(--pdln-acento) 45%, #6B4A2E 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.pdln-navbar .nav-link { color: #E7D9C4; font-weight: 500; opacity: .92; }
.pdln-navbar .nav-link:hover { color: #F1E7D8; opacity: 1; }
/* Igual que con .navbar-brand: Bootstrap fija su propio color oscuro para
   .nav-link.active (pensado para navbars claras), invisible sobre la nuestra. */
.pdln-navbar .nav-link.active {
  color: #F1E7D8; opacity: 1; position: relative;
}
.pdln-navbar .nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--pdln-acento);
}
.pdln-nav-search { align-items: center; gap: 8px; background: rgba(241,231,216,0.08); border: 1px solid rgba(241,231,216,0.25); border-radius: 999px; padding: 6px 16px; }
.pdln-nav-search svg { color: #E7D9C4; flex-shrink: 0; }
.pdln-nav-search input { background: transparent; border: none; color: #F1E7D8; font-size: 14px; }
.pdln-nav-search input::placeholder { color: #B8A488; }
.pdln-nav-search input:focus { outline: none; box-shadow: none; }
.navbar-toggler { border-color: rgba(241,231,216,0.35); }

/* HERO */
.pdln-hero {
  position: relative;
  padding: 34px 0 40px;
  background:
    radial-gradient(1100px 480px at 15% -10%, rgba(176,141,87,0.28), transparent 60%),
    linear-gradient(160deg, #3B2A20 0%, #2E2118 55%, #241a12 100%);
  color: #F1E7D8;
  overflow: hidden;
}
.pdln-hero-inner { position: relative; max-width: 720px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pdln-hero-eyebrow { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--pdln-acento); font-weight: 600; }
.pdln-hero-title { font-size: 42px; line-height: 1.25; font-weight: 600; margin: 0; }
.pdln-hero-quote { font-size: 19px; font-style: italic; font-weight: 500; color: #D8C6AC; line-height: 1.6; max-width: 600px; margin: 0; }
.pdln-hero-hint { font-size: 13px; color: #B8A488; }

.pdln-search-pill {
  margin-top: 12px; width: 100%; max-width: 560px;
  display: flex; align-items: center; gap: 12px;
  background: #FBF7F0; border-radius: 999px; padding: 8px 10px 8px 22px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}
.pdln-search-pill input {
  border: none; outline: none; background: transparent; flex: 1;
  font-family: 'Work Sans', sans-serif; font-size: 15px; color: var(--pdln-texto);
}
.pdln-search-pill input::placeholder { color: #9C8975; }
.pdln-search-pill button {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--pdln-acento); color: #FBF7F0; flex-shrink: 0;
}
.pdln-search-pill--pagina { margin: 0 auto 22px; box-shadow: 0 6px 18px rgba(59,42,32,0.08); border: 1px solid var(--pdln-borde); }

/* CATEGORIES */
.pdln-categories-section { padding: 44px 0 8px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.pdln-categories-label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #8B7358; font-weight: 600; }
.pdln-chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; }
.pdln-chip {
  padding: 9px 20px; border-radius: 999px; background: var(--pdln-crema-carta);
  border: 1px solid var(--pdln-borde); font-size: 14px; font-weight: 500; color: #5A4632;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.pdln-chip-accent { background: var(--pdln-texto); color: #F1E7D8; border-color: var(--pdln-texto); }
.pdln-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pdln-acento); }
.pdln-chip-row--filtro { justify-content: flex-start; margin-bottom: 28px; }

/* POEMS SECTION */
.pdln-poems-section { padding: 56px 0 60px; }
.pdln-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.pdln-section-title { font-size: 28px; font-weight: 600; margin: 0; }
.pdln-section-sub { font-size: 15px; color: var(--pdln-texto-suave); margin: 6px 0 0; }
.pdln-section-link { font-size: 14px; font-weight: 600; color: var(--pdln-madera); display: flex; align-items: center; gap: 6px; }

/* CARD */
.pdln-card {
  display: block; background: var(--pdln-crema-carta); border-radius: 14px; overflow: hidden;
  border: 1px solid #EAE0D0; box-shadow: 0 10px 24px rgba(59,42,32,0.06);
  height: 100%; transition: transform .15s ease, box-shadow .15s ease;
}
.pdln-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(59,42,32,0.12); color: inherit; }
.pdln-card-media { position: relative; height: 170px; display: flex; align-items: center; justify-content: center; }
.pdln-card-media img { width: 100%; height: 100%; object-fit: cover; }
.pdln-card-badge {
  position: absolute; top: 14px; left: 14px; background: rgba(251,247,240,0.92); color: #4A3728;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.pdln-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.pdln-card-title { font-size: 20px; font-weight: 600; margin: 0; line-height: 1.3; }
.pdln-card-excerpt { font-size: 14.5px; line-height: 1.6; color: var(--pdln-texto-suave); margin: 0; }
.pdln-card-meta { padding-top: 12px; border-top: 1px solid #EFE6D8; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pdln-card-date { font-size: 12.5px; color: #9C8975; display: flex; align-items: center; gap: 6px; }
.pdln-card-tags { display: flex; gap: 6px; }
.pdln-tag { font-size: 11.5px; font-weight: 600; color: var(--pdln-madera); background: #F1E7D8; padding: 3px 9px; border-radius: 999px; }

/* PÁGINA DE POEMA */
.pdln-poema-header { background: var(--pdln-madera-oscura); color: #F1E7D8; padding: 40px 0; }
.pdln-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #D8C6AC; margin-bottom: 18px; }
.pdln-back-link:hover { color: #F1E7D8; }
.pdln-poema-tags { display: flex; gap: 8px; margin-bottom: 14px; }
.pdln-poema-title { font-size: 34px; font-weight: 600; margin: 0 0 12px; }
.pdln-poema-fecha { font-size: 13.5px; color: #B8A488; display: flex; align-items: center; gap: 6px; }
.pdln-poema-separador { opacity: .5; }

.pdln-poema-container { max-width: 760px; padding-top: 44px; padding-bottom: 60px; }
.pdln-poema-imagen { width: 100%; border-radius: 14px; margin-bottom: 32px; }
.pdln-poema-contenido {
  font-family: 'Playfair Display', Georgia, serif; font-size: 19px; line-height: 1.9; color: var(--pdln-texto);
  background: var(--pdln-crema-carta); border: 1px solid var(--pdln-borde); border-radius: 14px; padding: 44px 48px;
}
.pdln-poema-contenido img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }

/* PAGINACIÓN */
.pdln-paginacion { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pdln-pagina { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--pdln-borde); font-size: 14px; font-weight: 600; color: var(--pdln-texto); }
.pdln-pagina.activa { background: var(--pdln-texto); color: #F1E7D8; border-color: var(--pdln-texto); }

.pdln-resultados-info { font-size: 14px; color: var(--pdln-texto-suave); margin-bottom: 20px; }

.pdln-boton { display: inline-block; margin-top: 20px; padding: 12px 28px; border-radius: 999px; background: var(--pdln-texto); color: #F1E7D8; font-weight: 600; }
.pdln-404 { padding: 100px 0; text-align: center; }

/* FOOTER */
.pdln-footer { margin-top: 40px; background: var(--pdln-madera-oscura-2); color: #C9B79C; padding: 56px 0 28px; }
.pdln-footer .pdln-brand-name { font-size: 21px; font-weight: 600; color: #F1E7D8; margin-bottom: 14px; }
.pdln-footer-desc { font-size: 13.5px; line-height: 1.7; color: #A6937A; max-width: 320px; }
.pdln-footer-title { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #E7D9C4; margin-bottom: 12px; }
.pdln-footer-link { display: block; font-size: 14px; color: #B8A488; margin-bottom: 10px; }
.pdln-footer-link:hover { color: #F1E7D8; }

.pdln-social-row { display: flex; gap: 10px; }
.pdln-social-link {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(241,231,216,0.08); border: 1px solid rgba(241,231,216,0.2); color: #D8C6AC;
}
.pdln-social-link:hover { background: var(--pdln-acento); border-color: var(--pdln-acento); color: #2E2118; }
.pdln-footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; margin-top: 24px; border-top: 1px solid rgba(201,183,156,0.15); font-size: 12.5px; color: #8B7358; flex-wrap: wrap; gap: 8px; }

@media (max-width: 767.98px) {
  .pdln-hero-title { font-size: 32px; }
  .pdln-poema-contenido { padding: 28px 24px; font-size: 17px; }
}
