/* ============================================
   🎨 ART NOUVEAU THEME v6 - LIMPIO Y ORDENADO
   Fondo violeta terroso · Palatino · Quicksand
   ============================================ */

/* --- FUENTES --- */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600&family=Lora:wght@400;500;600&display=swap');


/* ============================================
   1. BASE + FOOTER SIEMPRE ABAJO
   ============================================ */

html, body {
  height: 100%;
}

body {
  background-color: #2F2433;
  font-family: 'Palatino', 'Palatino Linotype', Georgia, serif;
  font-size: 18px;
  color: #D4C0B0;
  margin: 0;
  padding: 2rem 1rem 4rem 1rem;
  line-height: 1.7;
  /* display: flex; ← ELIMINADO */
  /* min-height: 100vh; ← ELIMINADO */
}

#container {
  max-width: 1000px;
  width: 90%;
  margin: 2rem auto 4rem auto; /* ← margen inferior para que respire */
  background-color: rgba(255, 248, 240, 0.04);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  /* flex: 1; ← ELIMINADO */
  display: flex;
  flex-direction: column;
}

#content {
  padding: 2rem 3rem;
  flex: 1;
}

p {
  line-height: 1.7;
  margin-bottom: 1.2em;
  color: #D4C0B0;
}


/* ============================================
   2. TÍTULOS
   ============================================ */

h1, h2, h3, h4, #header li a, .post-title {
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #FDF7F0;  /* Blanco cálido para fondo oscuro */
}

h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1.2rem;
  border-left: 4px solid #D46A8C;
  padding-left: 1rem;
}

h2 {
  font-size: 1.6rem;
  color: #FDF7F0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.3rem;
}


/* ============================================
   3. ENLACES
   ============================================ */

a {
  color: #D46A8C;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #FDF7F0;
}


/* ============================================
   4. CABECERA (menú de navegación)
   ============================================ */

#header {
  position: relative;
  background: linear-gradient(150deg, #2B1C38, #4A3A5E);
  backdrop-filter: blur(4px);
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#header ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

#header ul .lang-btn {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  border: 1px solid #D46A8C;
  color: #D46A8C;
  background: transparent;
  transition: all 0.3s ease;
}

#header ul .lang-btn:hover {
  background-color: #D46A8C;
  color: #2F2433;
}

#header li a {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #D4C0B0;
  transition: color 0.2s ease;
}

#header li a:hover {
  color: #D46A8C;
}

#header li a::before {
  content: none;
}

/* ============================================
   5. HERO (imagen + título encima)
   ============================================ */

.hero-with-title {
  position: relative;
  margin: 0 -3rem !important; /* ← Solo laterales, sin margen superior */
  padding: 0 !important;
  width: calc(100% + 6rem);
  height: 260px;
  overflow: hidden;
  border-radius: 0;
}

.hero-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: transparent;
  padding: 0.5rem 1.5rem;
  margin: 0;
  font-size: 2.6rem;
  font-weight: 700;
  border-radius: 0 4px 4px 0;
  color: #FDF7F0;
  text-shadow: 
    0 0 7px #D46A8C,
    0 0 10px #D46A8C,
    0 0 21px #D46A8C,
    0 0 42px #8B3A5E,
    0 0 82px #8B3A5E,
    0 0 92px #8B3A5E,
    0 0 102px #8B3A5E,
    0 0 151px #8B3A5E;
  transition: text-shadow 0.3s ease, opacity 0.3s ease;
}

.hero-title:hover {
  text-shadow: 
    0 0 4px #D46A8C,
    0 0 10px #D46A8C,
    0 0 18px #8B3A5E;
  opacity: 0.7;
}


/* ============================================
   6. INTRO-TEXT
   ============================================ */

.intro-text {
  border-left: 3px solid #D46A8C;
  padding-left: 1.2rem;
  margin: 1.5rem 0 2rem 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #D4C0B0;  /* ← Ahora claro para fondo oscuro */
}


/* ============================================
   7. LISTA DE POSTS (Home y Archive)
   ============================================ */

#postlistdiv ul, #recentpostlistdiv ul {
  list-style: none;
  padding: 0;
}

#postlistdiv li, #recentpostlistdiv li {
  margin-bottom: 0.9rem;
  border-left: 3px solid rgba(255, 255, 255, 0.08);
  padding-left: 1rem;
  transition: border-left 0.2s;
}

#postlistdiv li:hover, #recentpostlistdiv li:hover {
  border-left-color: #D46A8C;
}

#postlistdiv a {
  font-family: 'Palatino', 'Palatino Linotype', Georgia, serif;
  font-size: 1.1rem;
  color: #D4C0B0;  /* ← Claro */
}

#postlistdiv a:hover, #recentpostlistdiv a:hover {
  color: #D46A8C;
}

.moreposts {
  text-align: center;
  margin-top: 1.5rem;
  border-left: none !important;
  padding-left: 0 !important;
}

.moreposts a {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  color: #D4C0B0;
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.moreposts a:hover {
  color: #D46A8C;
  border-color: #D46A8C;
  background-color: rgba(212, 165, 165, 0.1);
  transform: scale(1.02);
  box-shadow: 0 0 12px rgba(212, 165, 165, 0.15);
}

/* ============================================
   8. NAVEGACIÓN ENTRE POSTS (anterior/siguiente)
   ============================================ */

#nextprev {
  text-align: center;
  margin: 2rem 0 1rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  color: #D4C0B0;
}

#nextprev a {
  color: #D46A8C;
}

#nextprev a:hover {
  color: #FDF7F0;
}


/* ============================================
   9. FOOTER
   ============================================ */

#footer {
  background-color: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #9A8A90;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  margin-bottom: 3rem; /* ← AÑADE ESTO */
}

#footer a {
  color: #D46A8C;
  text-decoration: none;
  border-bottom: 1px dotted #D46A8C;
}

#footer a:hover {
  color: #FDF7F0;
}


/* ============================================
   10. LÍNEA HR (decorativa)
   ============================================ */

hr {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: 1.8rem auto;
  width: 80px;
}


/* ============================================
   11. IMÁGENES EN GENERAL
   ============================================ */

img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 1rem 0;
}


/* ============================================
   12. ARCHIVE - CABECERA
   ============================================ */

.archive-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
  margin-top: 1.2rem;
}

.archive-header h1 {
  border-left: none;
  padding-left: 0;
  font-size: 2rem;
  color: #FDF7F0;
}

.archive-count {
  color: #9A8A90;
  font-style: italic;
  margin-top: -0.5rem;
}


/* ============================================
   13. ARCHIVE - TARJETAS
   ============================================ */

#postlistdiv ul {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
  gap: 1rem;
  padding: 0;
}

#postlistdiv li {
  background-color: rgba(255, 248, 240, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

#postlistdiv li:hover {
  border-color: #D46A8C;
  box-shadow: 0 0 30px rgba(212, 165, 165, 0.12), 0 4px 12px rgba(0, 0, 0, 0.2);
}

#postlistdiv li a {
  display: block;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #D4C0B0;
  text-decoration: none;
  transition: color 0.3s ease;
}

#postlistdiv li:hover a {
  color: #FDF7F0;
}

#postlistdiv li .post-thumbnail {
  width: 100%;
  height: 260px; /* ← Reducido ligeramente para mejor proporción */
  object-fit: cover;
  object-position: center 60%;
  display: block;
  margin: 0;
  background-color: #2F2433;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: filter 0.3s ease;
}

#postlistdiv li:hover .post-thumbnail {
  filter: brightness(1.05) saturate(1.1);
}

#postlistdiv li .post-thumbnail[src=""] {
  display: none;
}

/* ============================================
   14. GALERÍA HOME
   ============================================ */

.galeria-home {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.06);
}

.galeria-home h2 {
  font-size: 1.6rem;
  color: #FDF7F0;
  text-align: center;
  margin-bottom: 1.5rem;
  font-family: 'Quicksand', sans-serif;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.tarjeta-arte {
  background-color: rgba(255, 248, 240, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(4px);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tarjeta-arte:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border-color: #D46A8C;
}

.tarjeta-arte img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center 30%;
  margin: 0;
  display: block;
}

.tarjeta-info {
  padding: 0.6rem 0.8rem 0.9rem 0.8rem;
}

.tarjeta-info h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #FDF7F0;
  margin: 0 0 0.2rem 0;
}

.tarjeta-info p {
  font-size: 0.7rem;
  color: #D4C0B0;
  margin: 0;
}


/* ============================================
   15. LIGHTBOX
   ============================================ */

#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(47, 36, 51, 0.92);
  backdrop-filter: blur(8px);
  cursor: default;
  overflow: hidden;
  z-index: 1000;
}

#lightbox .lightbox-contenido {
  display: block;
  max-width: 80%;
  max-height: 80%;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  border: 2px solid rgba(255, 255, 255, 0.08);
  animation: zoom 0.3s ease;
  object-fit: contain;
}

#lightbox .close-lightbox {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #D4C0B0;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1001;
}

#lightbox .close-lightbox:hover {
  color: #D46A8C;
}

#lightbox #lightbox-caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #FDF7F0;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  background-color: rgba(0,0,0,0.5);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  z-index: 1002;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

@keyframes zoom {
  from {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* ============================================
   ABOUT - Versión abstracta y elegante
   ============================================ */

.about-bio {
  text-align: center;
  background-color: rgba(255, 248, 240, 0.04);
  padding: 1.2rem 1.8rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border-left: 4px solid #D46A8C;
  line-height: 1.6;
  font-size: 1rem;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
  color: #D4C0B0;
  backdrop-filter: blur(4px);
}

.about-extra {
  background-color: rgba(255, 248, 240, 0.04);
  border-radius: 12px;
  padding: 1.2rem 1.8rem;
  text-align: center;
  border-top: 2px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}

.about-extra h2 {
  font-size: 1.3rem;
  color: #FDF7F0;
  margin-bottom: 0.8rem;
}

.about-extra p {
  font-size: 0.95rem;
  color: #D4C0B0;
  margin: 0;
}


/* ============================================
   AVISO PARROQUIAL
   ============================================ */

.aviso-parroquial {
  background-color: rgba(255, 248, 240, 0.04);
  border-left: 4px solid #D46A8C;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: #D4C0B0;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  line-height: 1.6;
  backdrop-filter: blur(4px);
}

.aviso-parroquial p {
  margin: 0;
  font-style: italic;
}

.aviso-parroquial strong {
  color: #D46A8C;
}


/* ============================================
   DESCRIPCIÓN DEL ARCHIVE
   ============================================ */

.descripcion-archive {
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  max-width: 80%;
  margin: 1rem auto;
  text-align: center;
}

.descripcion-archive p {
  font-style: italic;
  font-size: 0.9rem;
  color: #D4C0B0;
  margin: 0;
  line-height: 1.6;
}


/* ============================================
   PROTECCIÓN DE TEXTO
   ============================================ */

body {
  user-select: none;
}


/* ============================================
   PAGINACIÓN DEL ARCHIVE
   ============================================ */

.archive-pagination {
  text-align: center;
  margin: 1.5rem 0;
}

.archive-pagination .page-btn {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  margin: 0 0.5rem;
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: #D4C0B0;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
}

.archive-pagination .page-btn:hover {
  background-color: transparent;
  border-color: #D46A8C;
  color: #D46A8C;
  transform: scale(1.02);
  box-shadow: 0 0 12px rgba(212, 165, 165, 0.15);
}

.archive-pagination .page-info {
  color: #9A8A90;
  font-size: 0.85rem;
  font-family: 'Quicksand', sans-serif;
  margin: 0 0.5rem;
}


/* ============================================
   BOTÓN ACTIVO EN EL HEADER
   ============================================ */

#header li a.active {
  color: #D46A8C !important;
  text-shadow: 0 0 12px rgba(212, 165, 165, 0.3);
  border-bottom: 2px solid #D46A8C;
}

#header li a:not(.active) {
  border-bottom: none;
}

/* ============================================
   RESPONSIVE (móviles) - UNIFICADO ahora mismo
   ============================================ */

@media (max-width: 640px) {

  /* General */
  #content {
    padding: 1.2rem;
    max-width: 95%;
  }
  #header ul {
    gap: 1.2rem;
  }
  #header li a {
    font-size: 1rem;
  }
  h1 {
    font-size: 1.8rem;
  }
  #container {
    max-width: 96%;
  }

  /* Hero */
  .hero-with-title {
    margin: 0 -1.5rem !important; /* ← margen lateral más pequeño para móvil */
    width: calc(100% + 3rem); /* ← ancho ajustado */
    height: 160px; /* ← altura más pequeña para móvil */
  }


  /* Asegurar que el contenido no se desborde */
  #content {
    padding: 0 1.5rem !important;
    padding-top: 0 !important;
  }

  /* El resto del contenido con padding lateral */
  .intro-text,
  .galeria-home,
  .aviso-parroquial,
  #recentpostlistdiv {
    padding: 0 0.5rem;
  }


  /* Lightbox caption */
  #lightbox #lightbox-caption {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    bottom: 10px;
    white-space: normal;
    max-width: 90%;
    line-height: 1.4;
  }

  /* Licencias en móvil */
  .licencia-post p {
    font-size: 0.6rem !important;
    line-height: 1.5 !important;
    padding: 0.3rem 0.5rem !important;
    white-space: normal !important;
    word-break: break-word !important;
    margin: 0.2rem 0 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .licencia-post {
    margin-bottom: 1.5rem !important;
    padding: 0.5rem !important;
    clear: both !important;
  }

  .licencia-post + p,
  .licencia-post + div {
    margin-top: 1rem !important;
    clear: both !important;
  }
}

/* === EL TRUCO DEL HUMO === */
.humo {
  display: block;
  height: 0.1px;   /* ← Casi invisible, pero ocupa espacio */
  width: 100%;
  background: transparent;
  margin: 0;
  padding: 0;
}

/* === FIRMA EN EL FOOTER === */
#footer .firma-footer {
  text-align: center;
  margin: 0.5rem 0 0.5rem 0;
}

#footer .firma-footer img {
  max-width: 150px; /* Ajusta según el tamaño de tu firma */
  height: auto;
  opacity: 0.6; /* Un toque sutil */
  transition: opacity 0.3s ease;
}

#footer .firma-footer img:hover {
  opacity: 1;
}

/* === AJUSTANDO EL ENCABEZADO === */

/* Anular el padding superior del #content solo para el hero */
#content {
  padding-top: 0 !important; /* ← Elimina el padding superior */
}


