/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F4EFE6;
  --snow-white: #FEFCF6;
  --warm-white: #ffffff;
  --text: #686867;
  --text-dark: #173A2B;
  --green: #5A7969;
  --green-light: #D6E0E2;
  --orange: #CB6B4D;
  --border: #D6E0E2;
  --shadow: 0 2px 5px rgba(0,0,0,0.1);
  --radius: 10px;
  --max-width: 1100px;
  --container-max: 1200px;
}

::selection { background-color: var(--green); color: white; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--snow-white);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

body::after {
  content: "";
  display: block;
  width: 100%;
  height: 8px;
  background-color: var(--green);
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 200;
}

a:link, a:visited { color: var(--orange); }
a:hover, a:active { color: var(--orange); }

h2 {
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--text-dark);
  margin-bottom: 0.5em;
}

h3 {
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--text-dark);
  margin-bottom: 0.5em;
}

h4 { color: var(--text-dark); font-size: 1.45rem; font-weight: 600; margin: 0 0 0.5em; }
h5 { color: var(--text-dark); font-size: 1.2rem; font-weight: 700; margin: 0 0 0.5em; }

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

h2 + p, h3 + p, h4 + p { margin: 0; }
p + h1, p + h2, p + h3, p + h4, p + h5, p + h6 { margin-top: 1em; }

* + h2, * + h3, * + h4 { margin-top: 40px; }

.ref { font-size: 0.7em; }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: content-box;
}

@media (min-width: 640px)  { .container { padding: 0 30px; } }
@media (min-width: 960px)  { .container { padding: 0 40px; } }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

@media (min-width: 1200px) { .two-col { gap: 40px; } }

.two-col.thirds      { grid-template-columns: 1fr 2fr; }
.two-col.three-five  { grid-template-columns: 3fr 2fr; }

.center-content { text-align: center; }

/* ── HEADER ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

#main-header {
  border-top: 8px solid var(--green);
  background-color: var(--warm-white);
  padding: 20px 20px 15px;
  text-align: center;
  box-shadow: var(--shadow);
}

.site-logo {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green) !important;
  text-decoration: none;
  margin-bottom: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#desktop-nav {
  display: flex;
  justify-content: center;
  gap: 0;
}

.nav-item { position: relative; margin: 0 30px; }

.nav-link {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green) !important;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--orange) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--green);
  border-radius: 3px;
  transition: all 0.25s ease-in-out;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(135deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-135deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px 30px;
  z-index: 99;
  box-shadow: var(--shadow);
}

.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }

.mobile-close {
  display: block;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--green);
  cursor: pointer;
  padding: 15px 0 5px;
}

.mobile-menu a {
  display: block;
  padding: 7px 0;
  text-decoration: none;
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 3px solid #f2f2f2;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--orange); }

/* ── SECTIONS ── */
section { padding: 25px 0; }

@media (min-width: 960px) { section { padding: 45px 0; } }

.snow-white { background-color: var(--snow-white); }
.castle-grey { background-color: var(--cream); }

.eyebrow, .eyeline {
  display: block;
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.775rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.087rem;
}

h3 .eyeline {
  background-color: var(--orange);
  height: 4px;
  width: 45px;
  border-radius: 5px;
}

.leading-paragraph {
  font-weight: 500;
  font-size: 1.1em;
  line-height: 1.6;
}

.leading-paragraph * + p { margin-top: 0; }
.leading-paragraph p + ol { margin-top: 0; }

.section-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

iframe.children-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
}

.meeting-time { font-weight: 600; }

.faith-list {
  padding-left: 1.2em;
  margin: 0;
}

.gospel-content {
  max-width: 740px;
}

/* ── HERO ── */
#inicio {
  min-height: 600px;
  background:
    linear-gradient(to right, rgba(23,58,43,0.72) 0%, rgba(23,58,43,0.2) 100%),
    url('../images/main.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
}

.hero-copy {
  color: white;
  font-weight: 600;
  font-size: 1.95rem;
  line-height: 1.4;
}

.hero-copy p {
  text-shadow: 2px 1px 0 rgba(0,0,0,0.4);
  margin-bottom: 1.2rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 7px 25px;
  background: var(--orange);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn, .btn:link, .btn:visited { color: white; }
.btn--cta, .btn--cta:link, .btn--cta:visited { color: #5E8A93; }
.btn:hover { background: #b85a3d; }

.btn--green {
  background: var(--green);
  border-radius: 5px;
  font-size: 0.9rem;
  color: var(--cream);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

.btn--green:hover { background: var(--orange); color: white; }

.btn--cta {
  background: #E2E9EB;
  color: #5E8A93;
  border: 2px solid white;
  border-radius: 5px;
  font-size: 1.375rem;
  padding: 10px 30px;
  text-shadow: none;
  line-height: 2;
}

.btn--cta:hover { background: white; color: var(--text-dark); box-shadow: 0 0 10px rgba(0,0,0,0.3); }

/* ── SCHEDULE TABLE ── */
.schedule {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.schedule thead { border-bottom: 2px solid var(--border); }

.schedule th {
  text-align: left;
  padding: 6px 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.schedule tr:last-child td { border-bottom: none; }

.schedule .day-name { font-weight: 700; color: var(--text-dark); display: block; }
.schedule .day-time { font-size: 0.8rem; color: var(--text); }

.badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge--zoom     { color: var(--text); }
.badge--presencial { color: var(--text); }
.badge--hogares  { color: var(--text); }

/* ── BLOCKQUOTE ── */
blockquote {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green);
  background: rgba(200,200,200,0.17);
  padding: 15px 20px 0;
  border-left: 5px solid var(--green);
  margin: 1.5rem 0 0;
}

blockquote cite {
  display: block;
  color: var(--green);
  font-weight: 500;
  font-size: 0.9rem;
  font-style: normal;
  padding: 8px 20px 15px;
  margin: 0 0 1.5rem -20px;
}

blockquote cite::before { content: "\2014\00a0"; }

/* ── CONTACT ── */
.contact-info p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.contact-info strong { color: var(--text-dark); }
.contact-info a { color: var(--orange); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.contact-note {
  font-size: 0.88rem;
  color: var(--text);
  margin-top: 0.5rem;
}

.map-embed {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: var(--radius);
  margin-top: 1.2rem;
  box-shadow: var(--shadow);
}

/* ── CTA ── */
.cta {
  background-color: transparent;
  padding: 40px 0;
  margin-bottom: 0;
}

.cta-box {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: center;
  background-color: var(--green-light);
  border-radius: var(--radius);
  padding: 40px 50px;
}

.cta h3 { color: #162A2C; font-size: 1.625rem; margin-bottom: 0.25em; }
.cta p  { color: #162A2C; font-size: 1rem; margin: 0; }

.cta-action { text-align: center; }

/* ── FOOTER ── */
.footer-bottom {
  background: #f7f7f7;
  padding: 30px 20px 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--container-max);
  margin: 0 auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: #555;
}

.footer-col {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-col svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green);
}

.footer-col a { color: #555; text-decoration: underline; }
.footer-col a:hover { color: var(--text-dark); }

/* ── HIMNOS ── */
.hymn-search {
  display: block;
  width: 100%;
  max-width: 480px;
  padding: 8px 14px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--warm-white);
  color: var(--text);
}
.hymn-search:focus { outline: none; border-color: var(--green); }

.hymn-list { display: flex; flex-direction: column; max-width: 860px; }

.hymn-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
}

.hymn-num {
  flex-shrink: 0;
  width: 2.4rem;
  text-align: right;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.hymn-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hymn-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  text-decoration: none;
}
a.hymn-title:link, a.hymn-title:visited { color: var(--text-dark); }
a.hymn-title:hover { color: var(--orange); }

.hymn-melody {
  font-size: 0.78rem;
  color: var(--text);
  font-style: italic;
}

.tight-paragraphs p { margin-bottom: 6px; }

/* ── LINKS DE INTERÉS ── */
.links-group { margin-bottom: 2.5rem; }
.links-group:last-child { margin-bottom: 0; }

h4.links-group-title {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.087rem;
  color: var(--orange);
  border-bottom: 2px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 0;
}

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-list li {
  padding: 12px 0;
}

.links-list a {
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.links-list a:link, .links-list a:visited { color: var(--text-dark); }
.links-list a:hover { color: var(--orange); }

.links-list p,
ul.links-list li p {
  margin: 2px 0 0;
  font-size: 1rem !important;
  color: var(--text);
}

/* ── READ MORE ── */
.read-more-wrap {
  position: relative;
  overflow: hidden;
  max-height: 4.8em;
  transition: max-height 0.4s ease;
}

.read-more-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3em;
  background: linear-gradient(to bottom, transparent, var(--snow-white));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.castle-grey .read-more-wrap::after {
  background: linear-gradient(to bottom, transparent, var(--cream));
}

.read-more-wrap.expanded {
  max-height: 200em;
}

.read-more-wrap.expanded::after {
  opacity: 0;
}

.read-more-toggle {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  cursor: pointer;
  user-select: none;
}

.read-more-toggle:hover { text-decoration: underline; }
.read-more-toggle.hidden { display: none; }
.read-more-toggle.collapse { margin-top: 8px; }


@media (max-width: 960px) {
  #desktop-nav { display: none; }
  .hamburger { display: flex; }

  #main-header { padding: 10px 20px; }
  .site-logo { margin-bottom: 0; }

  .two-col,
  .two-col.thirds,
  .two-col.three-five,
  .hero-grid,
  .cta-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  #inicio { min-height: 250px; }
  .hero-copy { font-size: 1.25rem; }

  section { padding: 30px 0; }

  .cta { padding: 25px 10px; }
  .cta-action { text-align: left; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
