/**
 * Directorio Parroquial — Home Page CSS (home.css)
 * Estilos exclusivos de la página de inicio (front-page.php)
 */

/* ════════════════════════════════════════
   VARIABLES (hereda del theme)
   ════════════════════════════════════════ */
:root {
  --hp-verde:       #1a3a2a;
  --hp-verde-med:   #2d6a4f;
  --hp-dorado:      #c9a84c;
  --hp-dorado-lite: #e8d48b;
  --hp-dorado-dim:  rgba(201,168,76,0.12);
  --hp-crema:       #faf8f3;
  --hp-crema-alt:   #f3f0e8;
  --hp-borde:       #e0d9cc;
  --hp-texto:       #2c2c2c;
  --hp-texto-sub:   #6b6b6b;
  --hp-sombra:      0 4px 28px rgba(0,0,0,0.08);
  --hp-sombra-h:    0 12px 40px rgba(0,0,0,0.14);
  --hp-r:           14px;
  --hp-t:           all 0.28s ease;
  --hp-serif:       'Playfair Display', 'Palatino Linotype', serif;
  --hp-sans:        'Inter', 'Helvetica Neue', sans-serif;
}

.dp-home { overflow-x: hidden; }
.dp-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.dp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 10rem;
  overflow: hidden;
}

/* Fondo con textura vegetal oscura */
.dp-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0d2218 0%, #1a3a2a 50%, #0a1a12 100%);
  z-index: 0;
}

/* Patrón de puntos sutiles */
.dp-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(201,168,76,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.dp-hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 60%, transparent 40%, rgba(10,26,18,.7) 100%);
}

/* Cruz decorativa grande de fondo */
.dp-hero::before {
  content: '✝';
  position: absolute;
  font-size: min(55vw, 480px);
  font-family: serif;
  color: rgba(201,168,76,0.04);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  line-height: 1;
}

.dp-hero-content {
  position: relative; z-index: 2;
  max-width: 780px;
}

.dp-hero-badge {
  display: inline-flex;
  align-items: center; gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--hp-dorado);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 30px;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}

.dp-hero-title {
  font-family: var(--hp-serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  text-shadow: 0 4px 32px rgba(0,0,0,0.4);
  letter-spacing: -0.02em;
}

.dp-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  max-width: 560px;
}

.dp-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* BOTONES CTA */
.dp-cta-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--hp-dorado);
  color: var(--hp-verde) !important;
  font-weight: 700; font-size: 1rem;
  padding: 14px 30px; border-radius: 10px;
  text-decoration: none !important;
  transition: var(--hp-t);
  border: 2px solid var(--hp-dorado);
}
.dp-cta-primary:hover {
  background: var(--hp-dorado-lite);
  border-color: var(--hp-dorado-lite);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(201,168,76,0.4);
}

.dp-cta-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  color: rgba(255,255,255,0.85) !important;
  font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 10px;
  text-decoration: none !important;
  border: 2px solid rgba(255,255,255,0.25);
  transition: var(--hp-t);
}
.dp-cta-secondary:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff !important;
  background: rgba(255,255,255,0.08);
}

.dp-cta-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  color: var(--hp-verde) !important;
  font-weight: 700; font-size: 0.95rem;
  padding: 12px 26px; border-radius: 10px;
  border: 2px solid var(--hp-verde);
  text-decoration: none !important;
  transition: var(--hp-t);
}
.dp-cta-outline:hover {
  background: var(--hp-verde);
  color: var(--hp-dorado) !important;
  transform: translateY(-1px);
}

/* STATS en el hero */
.dp-hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  background: rgba(10,24,16,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 1.5rem;
  gap: 0;
}

.dp-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 3rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.dp-hero-stat:last-child { border-right: none; }

.dp-hero-stat-icon { font-size: 1.4rem; margin-bottom: 2px; }

.dp-hero-stat-num {
  font-family: var(--hp-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--hp-dorado);
  line-height: 1;
  display: block;
}

.dp-hero-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  display: block;
}

/* Scroll down arrow */
.dp-scroll-down {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  animation: dp-bounce 2s ease-in-out infinite;
  transition: color .2s;
}
.dp-scroll-down:hover { color: var(--hp-dorado); }
@keyframes dp-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ════════════════════════════════════════
   DATA BAR
   ════════════════════════════════════════ */
.dp-data-bar {
  background: var(--hp-verde);
  padding: 0.875rem 0;
  border-bottom: 3px solid var(--hp-dorado);
}

.dp-data-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dp-data-bar-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.dp-data-bar-text strong { color: var(--hp-dorado); }

.dp-data-bar-btn {
  display: inline-flex;
  background: var(--hp-dorado);
  color: var(--hp-verde) !important;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: var(--hp-t);
}
.dp-data-bar-btn:hover { background: var(--hp-dorado-lite); }

/* ════════════════════════════════════════
   SECCIONES GENÉRICAS
   ════════════════════════════════════════ */
.dp-section {
  padding: 5rem 0;
  background: var(--hp-crema);
}
.dp-section-alt { background: #fff; }

.dp-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.dp-section-sup {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--hp-dorado);
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.dp-section-title {
  font-family: var(--hp-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--hp-verde);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.dp-section-desc {
  font-size: 1.05rem;
  color: var(--hp-texto-sub);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.dp-section-linea {
  width: 48px; height: 3px;
  background: var(--hp-dorado);
  border-radius: 2px;
  margin: 1.25rem auto 0;
}

/* ════════════════════════════════════════
   PAÍSES GRID
   ════════════════════════════════════════ */
.dp-paises-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.dp-pais-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 2px solid var(--hp-borde);
  border-radius: var(--hp-r);
  text-decoration: none !important;
  color: var(--hp-texto) !important;
  transition: var(--hp-t);
  min-width: 200px;
  box-shadow: var(--hp-sombra);
}
.dp-pais-card:hover {
  border-color: var(--hp-dorado);
  transform: translateY(-3px);
  box-shadow: var(--hp-sombra-h);
}

.dp-pais-code {
  width: 48px; height: 48px;
  background: var(--hp-verde);
  color: var(--hp-dorado);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.dp-pais-info h3 {
  font-family: var(--hp-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--hp-verde);
  margin: 0 0 2px;
}
.dp-pais-info p {
  font-size: 12px;
  color: var(--hp-texto-sub);
  margin: 0;
}

.dp-pais-arrow {
  color: var(--hp-dorado);
  font-size: 1.2rem;
  margin-left: auto;
  transition: transform .2s;
}
.dp-pais-card:hover .dp-pais-arrow { transform: translateX(4px); }

/* ════════════════════════════════════════
   DIRECTORIO EMBED
   ════════════════════════════════════════ */
.dp-directorio-embed {
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--hp-borde);
  box-shadow: var(--hp-sombra);
}

/* ════════════════════════════════════════
   PLUGIN AVISO
   ════════════════════════════════════════ */
.dp-plugin-aviso {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border: 2px dashed var(--hp-borde);
  border-radius: 20px;
}
.dp-plugin-aviso-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.dp-plugin-aviso h3   { font-family: var(--hp-serif); font-size: 1.4rem; color: var(--hp-verde); margin-bottom: .5rem; }
.dp-plugin-aviso p    { color: var(--hp-texto-sub); font-size: 1rem; }

/* ════════════════════════════════════════
   SERVICIOS
   ════════════════════════════════════════ */
.dp-servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .dp-servicios-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .dp-servicios-grid { grid-template-columns: 1fr; } }

.dp-servicio-card {
  background: #fff;
  border: 1.5px solid var(--hp-borde);
  border-radius: var(--hp-r);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--hp-t);
  box-shadow: var(--hp-sombra);
  position: relative;
  overflow: hidden;
}

.dp-servicio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hp-verde), var(--hp-dorado));
  transform: scaleX(0);
  transition: transform .3s ease;
  transform-origin: left;
}
.dp-servicio-card:hover::before { transform: scaleX(1); }

.dp-servicio-card:hover {
  border-color: var(--hp-dorado);
  transform: translateY(-4px);
  box-shadow: var(--hp-sombra-h);
}

.dp-servicio-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.dp-servicio-card h3 {
  font-family: var(--hp-serif);
  font-size: 1.05rem;
  color: var(--hp-verde);
  margin: 0 0 0.625rem;
  font-weight: 700;
}

.dp-servicio-card p {
  font-size: 0.875rem;
  color: var(--hp-texto-sub);
  margin: 0;
  line-height: 1.65;
}

/* ════════════════════════════════════════
   ÚLTIMAS PARROQUIAS
   ════════════════════════════════════════ */
.dp-section-recientes { background: var(--hp-crema); }

.dp-recientes-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) { .dp-recientes-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .dp-recientes-grid { grid-template-columns: 1fr; } }

.dp-reciente-card {
  background: #fff;
  border: 1.5px solid var(--hp-borde);
  border-radius: var(--hp-r);
  overflow: hidden;
  box-shadow: var(--hp-sombra);
  transition: var(--hp-t);
  display: flex;
  flex-direction: column;
  animation: dp-fadein-up .5s ease both;
}
.dp-reciente-card:nth-child(2) { animation-delay: .1s; }
.dp-reciente-card:nth-child(3) { animation-delay: .2s; }
@keyframes dp-fadein-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dp-reciente-card:hover {
  border-color: var(--hp-dorado);
  transform: translateY(-5px);
  box-shadow: var(--hp-sombra-h);
}

.dp-reciente-img {
  height: 190px;
  overflow: hidden;
  position: relative;
  background: var(--hp-verde);
}
.dp-reciente-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.dp-reciente-card:hover .dp-reciente-img img { transform: scale(1.06); }

.dp-reciente-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--hp-verde), #0a1810);
  font-size: 3.5rem;
  color: var(--hp-dorado);
  opacity: 0.25;
}

.dp-reciente-badge {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(26,58,42,0.9);
  color: var(--hp-dorado);
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(201,168,76,0.4);
  backdrop-filter: blur(4px);
}

.dp-reciente-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dp-reciente-body h3 {
  font-family: var(--hp-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hp-verde);
  margin: 0;
  line-height: 1.3;
}
.dp-reciente-body h3 a {
  color: var(--hp-verde);
  text-decoration: none;
  transition: color .2s;
}
.dp-reciente-body h3 a:hover { color: var(--hp-dorado); }

.dp-reciente-ubic {
  font-size: 12.5px;
  color: var(--hp-texto-sub);
  margin: 0;
}

.dp-reciente-btn {
  display: inline-flex;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 12px;
  font-weight: 700;
  color: var(--hp-verde-med);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color .2s;
  border-top: 1px solid var(--hp-borde);
}
.dp-reciente-btn:hover { color: var(--hp-dorado); }

.dp-ver-todos { text-align: center; }

/* ════════════════════════════════════════
   CTA FINAL
   ════════════════════════════════════════ */
.dp-cta-section {
  background: linear-gradient(160deg, var(--hp-verde) 0%, #0d2218 100%);
  padding: 5rem 0;
}

.dp-cta-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.dp-cta-cruz {
  font-size: 2.5rem;
  color: var(--hp-dorado);
  opacity: 0.6;
  margin-bottom: 1rem;
  display: block;
}

.dp-cta-box h2 {
  font-family: var(--hp-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  margin: 0 0 1rem;
  font-weight: 800;
}

.dp-cta-box p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 2.5rem;
}

.dp-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════
   CONTENIDO DE PÁGINA
   ════════════════════════════════════════ */
.dp-page-content {
  background: #fff;
}
.dp-page-content .entry-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--hp-texto);
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  .dp-hero { min-height: auto; padding-bottom: 200px; }
  .dp-hero-stats { flex-wrap: wrap; gap: 0; }
  .dp-hero-stat  { padding: 0.75rem 1.5rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); flex: 1 1 40%; }
  .dp-hero-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
  .dp-data-bar-inner { flex-direction: column; text-align: center; }
  .dp-section { padding: 3.5rem 0; }
  .dp-hero-stat-num { font-size: 1.75rem; }
}
@media (max-width: 480px) {
  .dp-hero-title { font-size: 2rem; }
  .dp-hero-stat { flex: 1 1 100%; border-right: none; }
}
