/*
Theme Name: Hello Misas España
Description: Tema hijo de Hello Elementor con portada nacional de diócesis y directorio operativo de la Diócesis de Cartagena.
Author: Misas España
Template: hello-elementor
Version: 2.0.3
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: hello-misas-cartagena
*/

:root {
  --hmc-navy: #0c2d3f;
  --hmc-navy-soft: #173f52;
  --hmc-ink: #142a34;
  --hmc-muted: #61727a;
  --hmc-cream: #f5f1e8;
  --hmc-paper: #fffdf8;
  --hmc-gold: #c9a767;
  --hmc-gold-soft: #ead8ac;
  --hmc-line: #ded9ce;
  --hmc-rust: #9b4e36;
}

body.hmc-misas-page {
  background: var(--hmc-paper);
  color: var(--hmc-ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

body.hmc-misas-page a { text-decoration: none; }
body.hmc-misas-page .elementor { overflow: hidden; }

.hmc-header.e-con {
  align-items: center;
  background: var(--hmc-navy);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 max(28px, calc((100vw - 1240px) / 2));
  position: relative;
  z-index: 10;
}

.hmc-header .elementor-widget { margin: 0; width: auto; }
.hmc-brand .elementor-heading-title {
  align-items: center;
  color: #fff;
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  gap: 12px;
}
.hmc-brand .elementor-heading-title strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
  font-weight: 500;
}
.hmc-brand .hmc-mark {
  align-items: center;
  border: 1px solid var(--hmc-gold);
  border-radius: 50%;
  color: var(--hmc-gold-soft);
  display: inline-flex;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.hmc-nav nav { align-items: center; display: flex; gap: 30px; }
.hmc-nav a { color: rgba(255, 255, 255, .76); font-size: 13px; }
.hmc-nav a:hover { color: #fff; }
.hmc-nav .hmc-nav-action {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: #fff;
  padding: 11px 17px;
}

.hmc-hero.e-con {
  background: var(--hmc-navy);
  color: #fff;
  display: grid;
  gap: 80px;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
  min-height: 570px;
  overflow: hidden;
  padding: 88px max(28px, calc((100vw - 1240px) / 2)) 138px;
  position: relative;
}
.hmc-hero::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .055), transparent);
  content: '';
  height: 1px;
  left: 0;
  position: absolute;
  top: 210px;
  width: 100%;
}
.hmc-hero-copy.e-con, .hmc-info-card.e-con { position: relative; z-index: 1; }
.hmc-hero-copy.e-con { align-items: flex-start; display: flex; flex-direction: column; }
.hmc-eyebrow { margin-bottom: 22px; }
.hmc-eyebrow p {
  align-items: center;
  color: var(--hmc-gold-soft);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 12px;
  letter-spacing: .2em;
  margin: 0;
  text-transform: uppercase;
}
.hmc-eyebrow p::before { background: var(--hmc-gold); content: ''; height: 1px; width: 38px; }
.hmc-hero-title .elementor-heading-title {
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(52px, 6vw, 79px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .99;
  margin: 0;
}
.hmc-hero-title .elementor-heading-title span { color: var(--hmc-gold-soft); font-style: italic; }
.hmc-hero-intro { margin-top: 25px; max-width: 650px; }
.hmc-hero-intro p { color: rgba(255, 255, 255, .72); font-size: 17px; line-height: 1.7; }
.hmc-stats.e-con {
  border-top: 1px solid rgba(255, 255, 255, .13);
  display: grid;
  gap: 44px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  max-width: 630px;
  padding-top: 25px;
  width: 100%;
}
.hmc-stat .elementor-counter-number-wrapper {
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  justify-content: flex-start;
}
.hmc-stat .elementor-counter-title {
  color: rgba(255, 255, 255, .52);
  font-size: 11px;
  letter-spacing: .04em;
  text-align: left;
}
.hmc-info-card.e-con {
  align-self: center;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(234, 216, 172, .4);
  display: flex;
  flex-direction: column;
  padding: 34px 34px 30px;
}
.hmc-card-label p {
  color: var(--hmc-gold-soft);
  font-size: 10px;
  letter-spacing: .19em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.hmc-card-title .elementor-heading-title {
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 400;
}
.hmc-steps ol { counter-reset: hmc-step; list-style: none; margin: 12px 0 0; padding: 0; }
.hmc-steps li {
  border-top: 1px solid rgba(255, 255, 255, .11);
  color: rgba(255, 255, 255, .74);
  counter-increment: hmc-step;
  display: grid;
  font-size: 13px;
  gap: 16px;
  grid-template-columns: 25px 1fr;
  line-height: 1.5;
  padding: 17px 0;
}
.hmc-steps li::before { color: var(--hmc-gold); content: '0' counter(hmc-step); font-family: Georgia, serif; }
.hmc-updated p { color: rgba(255, 255, 255, .48); font-size: 10px; margin: 10px 0 0; }
.hmc-updated p::before { color: #83b9a2; content: '●'; margin-right: 8px; }

.hmc-directory-shell.e-con {
  background: var(--hmc-paper);
  border: 1px solid #e1ddd4;
  box-shadow: 0 22px 65px rgba(30, 42, 45, .12);
  display: block;
  margin: -70px auto 86px;
  max-width: 1240px;
  padding: 35px 38px 55px;
  position: relative;
  width: calc(100% - 60px);
  z-index: 3;
}
.hmc-directory-kicker p {
  color: var(--hmc-rust);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.hmc-directory-title .elementor-heading-title {
  color: var(--hmc-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -.025em;
}
.hmc-directory-widget { margin-top: 24px; }
.hmc-misas-page .hmc-directory.hdc-app { margin: 0; max-width: none; }
.hmc-misas-page .hmc-directory .hdc-tabs { margin-top: 0; }
.hmc-misas-page .hmc-directory .hdc-filters { border-color: var(--hmc-line); padding: 28px 0; }
.hmc-misas-page .hmc-directory .hdc-check { justify-content: flex-end; }

.hmc-update.e-con {
  background: var(--hmc-cream);
  border-bottom: 1px solid #ddd7cb;
  border-top: 1px solid #ddd7cb;
  display: grid;
  gap: 100px;
  grid-template-columns: .9fr 1.1fr;
  padding: 72px max(28px, calc((100vw - 1240px) / 2));
}
.hmc-update-title .elementor-heading-title {
  color: var(--hmc-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  font-weight: 400;
}
.hmc-update-copy.e-con { border-left: 1px solid #d4cdbf; display: block; padding-left: 45px; }
.hmc-update-copy p { color: #59686d; font-family: Georgia, serif; font-size: 18px; line-height: 1.6; }
.hmc-source-button .elementor-button {
  background: transparent;
  border: 0;
  color: var(--hmc-rust);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 0;
}

.hmc-footer.e-con {
  align-items: center;
  background: var(--hmc-navy);
  color: #fff;
  display: grid;
  gap: 45px;
  grid-template-columns: 1fr 1.6fr .5fr;
  padding: 44px max(28px, calc((100vw - 1240px) / 2));
}
.hmc-footer .elementor-widget { margin: 0; }
.hmc-footer-brand .elementor-heading-title { color: #fff; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.hmc-footer-copy p { color: rgba(255, 255, 255, .54); font-size: 10px; line-height: 1.6; margin: 0; }
.hmc-top-button { justify-self: end; }
.hmc-top-button .elementor-button { background: transparent; color: var(--hmc-gold-soft); font-size: 10px; padding: 8px 0; }

.hmc-national-card-copy p { color: rgba(255, 255, 255, .7); font-size: 14px; line-height: 1.65; }
.hmc-national-cta .elementor-button {
  background: var(--hmc-gold-soft);
  border-radius: 0;
  color: var(--hmc-navy);
  font-size: 11px;
  font-weight: 700;
  margin-top: 10px;
  padding: 14px 18px;
}
.hmc-national-directory-shell.e-con {
  background: var(--hmc-paper);
  display: block;
  margin: -70px auto 0;
  max-width: 1300px;
  padding: 42px 30px 95px;
  position: relative;
  width: 100%;
  z-index: 3;
}
.hmc-national-directory-intro { max-width: 720px; }
.hmc-national-directory-intro p { color: var(--hmc-muted); font-size: 14px; line-height: 1.7; }
.hmc-national-directory-widget { margin-top: 30px; }
.hmc-dioceses * { box-sizing: border-box; }
.hmc-dioceses-toolbar {
  align-items: flex-end;
  border-bottom: 1px solid var(--hmc-line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 22px;
}
.hmc-dioceses-controls { display: grid; gap: 12px; grid-template-columns: minmax(250px, 1fr) 155px; max-width: 620px; width: 100%; }
.hmc-dioceses-toolbar label { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.hmc-dioceses-toolbar label > span {
  color: #5a676b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hmc-dioceses-toolbar input,
.hmc-dioceses-toolbar select {
  background: #fff;
  border: 1px solid #d8d3ca;
  border-radius: 0;
  color: var(--hmc-ink);
  font: 13px Arial, Helvetica, sans-serif;
  height: 52px;
  padding: 0 16px;
  width: 100%;
}
.hmc-dioceses-toolbar input:focus,
.hmc-dioceses-toolbar select:focus { border-color: var(--hmc-navy); outline: 2px solid rgba(12, 45, 63, .1); }
.hmc-dioceses-toolbar p { color: var(--hmc-muted); font-size: 12px; margin: 0 0 16px 25px; white-space: nowrap; }
.hmc-dioceses-grid { display: grid; gap: 15px; grid-template-columns: repeat(3, 1fr); }
.hmc-diocese-card {
  background: #fff;
  border: 1px solid var(--hmc-line);
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 23px;
  position: relative;
}
.hmc-diocese-card[hidden] { display: none; }
.hmc-diocese-card-top { align-items: center; display: flex; justify-content: space-between; }
.hmc-diocese-card-top > span { color: var(--hmc-rust); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hmc-diocese-card-top i {
  align-items: center;
  border: 1px solid #d9d1c2;
  border-radius: 50%;
  color: #a08b68;
  display: flex;
  font: normal 14px Georgia, serif;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.hmc-diocese-card h3 { color: var(--hmc-ink); font: 400 23px/1.15 Georgia, serif; margin: 19px 0 8px; }
.hmc-diocese-card > p { color: var(--hmc-muted); font-size: 11px; line-height: 1.55; margin: 0 0 22px; }
.hmc-diocese-card > a, .hmc-diocese-card .hmc-disabled {
  align-items: center;
  display: flex;
  font-size: 10px;
  font-weight: 700;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 15px;
  text-transform: uppercase;
}
.hmc-diocese-card > a { border-top: 1px solid rgba(255, 255, 255, .18); color: var(--hmc-gold-soft); }
.hmc-diocese-card .hmc-disabled { border-top: 1px solid #e7e2d9; color: #9a9993; }
.hmc-diocese-card.is-active {
  background: var(--hmc-navy);
  border-color: var(--hmc-navy);
  box-shadow: 0 14px 36px rgba(12, 45, 63, .17);
}
.hmc-diocese-card.is-active .hmc-diocese-card-top > span { color: var(--hmc-gold-soft); }
.hmc-diocese-card.is-active .hmc-diocese-card-top i { border-color: rgba(234, 216, 172, .45); color: var(--hmc-gold-soft); }
.hmc-diocese-card.is-active h3 { color: #fff; }
.hmc-diocese-card.is-active > p { color: rgba(255, 255, 255, .68); }
.hmc-dioceses-empty { border: 1px solid var(--hmc-line); padding: 55px 25px; text-align: center; }
.hmc-dioceses-empty h3 { color: var(--hmc-ink); font: 400 25px Georgia, serif; margin: 0 0 8px; }
.hmc-dioceses-empty p { color: var(--hmc-muted); font-size: 12px; margin: 0; }

@media (max-width: 980px) {
  .hmc-hero.e-con { gap: 45px; grid-template-columns: 1.2fr .8fr; }
  .hmc-update.e-con { gap: 50px; }
  .hmc-dioceses-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hmc-header.e-con { min-height: 68px; padding: 0 20px; }
  .hmc-brand .elementor-heading-title { font-size: 15px; }
  .hmc-brand .elementor-heading-title strong { font-size: 18px; }
  .hmc-brand .hmc-mark { height: 33px; width: 33px; }
  .hmc-nav nav a:not(.hmc-nav-action) { display: none; }
  .hmc-nav .hmc-nav-action { font-size: 10px; padding: 9px 12px; }
  .hmc-hero.e-con { display: flex; min-height: 0; padding: 62px 22px 118px; }
  .hmc-hero-title .elementor-heading-title { font-size: clamp(45px, 13vw, 62px); }
  .hmc-hero-intro p { font-size: 15px; }
  .hmc-stats.e-con { gap: 20px; }
  .hmc-stat .elementor-counter-number-wrapper { font-size: 24px; }
  .hmc-info-card.e-con { margin-top: 38px; padding: 27px 24px; }
  .hmc-directory-shell.e-con { margin-top: -62px; padding: 28px 18px 40px; width: calc(100% - 28px); }
  .hmc-national-directory-shell.e-con { margin-top: -62px; padding: 35px 14px 70px; }
  .hmc-dioceses-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .hmc-dioceses-controls { grid-template-columns: 1fr; }
  .hmc-dioceses-toolbar p { margin: 0; }
  .hmc-dioceses-grid { grid-template-columns: 1fr; }
  .hmc-diocese-card { min-height: 225px; }
  .hmc-directory-title .elementor-heading-title, .hmc-update-title .elementor-heading-title { font-size: 29px; }
  .hmc-misas-page .hmc-directory .hdc-check { justify-content: flex-start; }
  .hmc-update.e-con { display: block; padding: 55px 22px; }
  .hmc-update-copy.e-con { border-left: 0; border-top: 1px solid #d4cdbf; margin-top: 28px; padding: 28px 0 0; }
  .hmc-footer.e-con { display: flex; flex-direction: column; gap: 24px; padding: 42px 22px; text-align: center; }
  .hmc-top-button { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  body.hmc-misas-page *, body.hmc-misas-page *::before, body.hmc-misas-page *::after { transition-duration: .01ms !important; }
}
