/* Iglesia Eben-Ezer — blanco / rojo / verde (logo corporación) */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7f5;
  --bg-tint: #eef6ef;
  --text: #12151a;
  --muted: #5c6670;
  --line: rgba(18, 21, 26, 0.1);
  --red: #d71920;
  --red-deep: #b01018;
  --red-soft: rgba(215, 25, 32, 0.1);
  --green: #b9d12a;
  --green-deep: #8fa816;
  --green-soft: rgba(185, 209, 42, 0.18);
  --shell: min(1120px, calc(100% - 2.5rem));
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 12px;
  --header-h: 4.4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px rgba(18, 21, 26, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 100% -5%, rgba(215, 25, 32, 0.07), transparent 55%),
    radial-gradient(700px 420px at -5% 35%, rgba(185, 209, 42, 0.12), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(18, 21, 26, 0.06);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand__text span {
  color: var(--red);
}

.nav {
  display: none;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}

@media (hover: hover) {
  .nav a:hover {
    color: var(--red);
  }
}

@media (min-width: 840px) {
  .nav {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn--sm {
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.86rem;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(215, 25, 32, 0.28);
}

.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  backdrop-filter: blur(8px);
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--red-deep);
    transform: translateY(-1px);
  }

  .btn--ghost:hover {
    border-color: var(--green-deep);
    color: var(--green-deep);
  }

  .btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: hero-ken 10s var(--ease) both;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 21, 26, 0.28) 0%, rgba(18, 21, 26, 0.45) 40%, rgba(18, 21, 26, 0.82) 100%),
    linear-gradient(115deg, rgba(215, 25, 32, 0.35) 0%, transparent 42%, rgba(185, 209, 42, 0.18) 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
  pointer-events: none;
}

.hero__content {
  padding: calc(var(--header-h) + 3.2rem) 0 4.4rem;
  max-width: 44rem;
  color: #fff;
}

.hero__logo {
  width: clamp(88px, 18vw, 120px);
  height: auto;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.hero__corp {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 2.1vw, 1.18rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

@keyframes hero-ken {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section--welcome {
  border-top: 1px solid var(--line);
  background: #fff;
}

.section--hours {
  background:
    linear-gradient(135deg, var(--bg-tint), #fff 45%, rgba(215, 25, 32, 0.04));
}

.section--map {
  background: #fff;
  padding-bottom: 5.5rem;
}

.section__grid {
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 860px) {
  .section__grid {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--red);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section__intro {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 42ch;
}

.section__text {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.08rem;
}

.section__text--muted {
  color: var(--muted);
  margin-bottom: 0;
}

.section__text strong {
  color: var(--red);
  font-weight: 700;
}

.corp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.corp-chip img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.corp-chip span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

/* Horarios */
.hours {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .hours {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

.hours__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.45rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hours__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), var(--green));
}

.hours__day {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  padding-left: 0.35rem;
}

.hours__time {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.01em;
}

/* Mapa */
.map-block {
  margin-top: 2rem;
}

.map-block__frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 16 / 10;
  min-height: 280px;
  box-shadow: var(--shadow);
}

.map-block__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-block__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
}

.map-block__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.42s var(--ease),
    transform 0.42s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay {
  transition-delay: 0.07s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--delay,
  .hero__img {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 1.75rem;
  border-top: 1px solid var(--line);
  background: #0f1214;
  color: #f2f5f7;
}

.site-footer__main {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.site-footer__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.site-footer__muted {
  margin: 0.35rem 0 0;
  color: rgba(242, 245, 247, 0.68);
  font-size: 0.95rem;
}

.site-footer__tagline {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: rgba(242, 245, 247, 0.58);
}

.site-footer__contact-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer__contact-item {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(242, 245, 247, 0.68);
}

.site-footer__contact-item > span,
.site-footer__contact-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.site-footer__contact-item a {
  text-decoration: none;
  color: rgba(242, 245, 247, 0.68);
  border-radius: var(--radius);
}

.site-footer__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(185, 209, 42, 0.16);
  color: var(--green);
}

@media (hover: hover) {
  .site-footer__contact-item a:hover {
    color: #fff;
  }

  .site-footer__contact-item a:hover .site-footer__contact-icon {
    background: rgba(215, 25, 32, 0.22);
    color: #ff6b6f;
  }
}

.site-footer__legal {
  padding-block: 1.25rem 1rem;
  text-align: center;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.88rem;
  color: #fff;
  font-weight: 600;
}

.site-footer__legal-note {
  margin: 0.45rem auto 0;
  font-size: 0.8rem;
  color: rgba(242, 245, 247, 0.58);
  max-width: 52ch;
}

.site-footer__credits {
  display: flex;
  justify-content: center;
  padding-top: 0.25rem;
}

.site-footer__necty {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-size: 0.82rem;
  color: rgba(242, 245, 247, 0.68);
  border-radius: var(--radius);
  padding: 0.35rem 0.5rem;
}

.site-footer__necty strong {
  color: #fff;
  font-weight: 700;
}

.site-footer__necty-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  background: #0b0b0c;
}

@media (hover: hover) {
  .site-footer__necty:hover {
    color: var(--green);
  }

  .site-footer__necty:hover strong {
    color: var(--green);
  }
}

@media (max-width: 560px) {
  .site-footer__main {
    flex-direction: column;
    gap: 1.25rem;
  }

  .site-header .btn--sm {
    display: none;
  }
}
