:root {
  --fc-radius: 0.625rem;
  --fc-background: oklch(0.145 0.012 60);
  --fc-foreground: oklch(0.97 0.008 80);
  --fc-card: oklch(0.2 0.014 60);
  --fc-primary: oklch(0.78 0.13 78);
  --fc-primary-foreground: oklch(0.16 0.012 60);
  --fc-muted-foreground: oklch(0.72 0.02 75);
  --fc-border: oklch(1 0 0 / 12%);
  --fc-gradient-hero: linear-gradient(
    180deg,
    oklch(0.145 0.012 60 / 0.25) 0%,
    oklch(0.145 0.012 60 / 0.75) 60%,
    oklch(0.145 0.012 60) 100%
  );
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--fc-background);
}

body,
button,
a {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body.admin-bar .fc-header {
  top: 32px;
}

.fc-site {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--fc-background);
  color: var(--fc-foreground);
}

.fc-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.fc-logo {
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  object-fit: contain;
}

.fc-events-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  background: var(--fc-primary);
  color: var(--fc-primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.fc-events-button:hover,
.fc-events-button:focus-visible {
  color: var(--fc-primary-foreground);
  opacity: 0.9;
}

.fc-hero {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 460px;
  overflow: hidden;
}

.fc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1000ms ease;
  pointer-events: none;
}

.fc-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.fc-slide-blur,
.fc-slide-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fc-slide-blur {
  transform: scale(1.1);
  object-fit: cover;
  filter: blur(24px);
}

.fc-slide-main {
  object-fit: contain;
}

.fc-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--fc-gradient-hero);
}

.fc-hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 1.25rem 4rem;
}

.fc-kicker {
  margin: 0;
  color: var(--fc-primary);
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.fc-title {
  max-width: 42rem;
  margin: 0.75rem 0 0;
  color: var(--fc-foreground);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.fc-description {
  max-width: 28rem;
  margin: 0.75rem 0 0;
  color: var(--fc-muted-foreground);
  font-size: 1rem;
  line-height: 1.5;
}

.fc-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.fc-dot {
  width: 1rem;
  height: 0.375rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: var(--fc-border);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.fc-dot.is-active {
  width: 2.5rem;
  background: var(--fc-primary);
}

.fc-events {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

.fc-section-title {
  margin: 0;
  color: var(--fc-foreground);
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.fc-section-subtitle {
  margin: 0.5rem 0 0;
  color: var(--fc-muted-foreground);
  font-size: 1rem;
  line-height: 1.5;
}

.fc-event-list {
  display: grid;
  gap: 0.75rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.fc-event-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--fc-border);
  border-radius: 1rem;
  background: var(--fc-card);
  transition: border-color 180ms ease;
}

.fc-event-card:hover {
  border-color: var(--fc-primary);
}

.fc-date {
  display: flex;
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--fc-primary);
  color: var(--fc-primary-foreground);
}

.fc-day {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.fc-month {
  font-size: 0.6875rem;
  line-height: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fc-event-name {
  margin: 0;
  color: var(--fc-foreground);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.75rem;
}

.fc-event-time {
  margin: 0;
  color: var(--fc-muted-foreground);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.fc-footer {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--fc-border);
  color: var(--fc-muted-foreground);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
}

@media (min-width: 640px) {
  .fc-header {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }

  .fc-logo {
    width: 5rem;
    height: 5rem;
  }

  .fc-hero-content {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }

  .fc-title {
    font-size: 3.75rem;
  }

  .fc-events {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }

  .fc-related-links {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }

  .fc-section-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .fc-footer {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }
}

@media (max-width: 782px) {
  body.admin-bar .fc-header {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fc-slide,
  .fc-dot,
  .fc-events-button,
  .fc-event-card {
    transition: none;
  }
}

/* Evento interactivo */
.fc-event-item {
  margin: 0;
  padding: 0;
}

.fc-event-card-button {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.fc-event-card-button:hover,
.fc-event-card-button:focus-visible {
  border-color: var(--fc-primary);
  outline: none;
}

.fc-event-thumb {
  display: block;
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.fc-event-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.fc-event-copy .fc-event-name,
.fc-event-copy .fc-event-time {
  display: block;
}

.fc-event-arrow {
  flex: 0 0 auto;
  color: var(--fc-primary);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.fc-event-card-button:hover .fc-event-arrow,
.fc-event-card-button:focus-visible .fc-event-arrow {
  transform: translateX(0.25rem);
}

/* Enlaces de iglesias y ministerios */
.fc-related-links {
  padding: 4rem 1.25rem 5rem;
  background: var(--fc-background);
}

.fc-related-links-inner {
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
}

.fc-related-title {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  color: var(--fc-foreground);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: center;
  text-transform: uppercase;
}

.fc-related-title::after {
  display: block;
  width: 4.5rem;
  height: 0.2rem;
  margin: 1rem auto 0;
  border-radius: 9999px;
  background: var(--fc-primary);
  content: "";
}

.fc-related-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.fc-related-link {
  --fc-specular-angle: 135deg;
  --fc-specular-x: 50%;
  --fc-specular-y: 50%;

  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: clamp(16rem, 22vw, 19rem);
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 1.35rem;
  background: #020202;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 1rem 2.75rem rgb(0 0 0 / 30%);
  color: var(--fc-foreground);
  text-decoration: none;
  transform: translateZ(0) scale(1);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 260ms ease;
}

/* Este borde especular funciona incluso si JavaScript tarda en cargar. */
.fc-related-link::before {
  position: absolute;
  inset: -45%;
  z-index: 0;
  background: conic-gradient(
    from var(--fc-specular-angle),
    transparent 0deg,
    transparent 96deg,
    rgb(255 255 255 / 8%) 118deg,
    rgb(255 255 255 / 100%) 143deg,
    rgb(233 173 62 / 100%) 158deg,
    rgb(255 255 255 / 75%) 174deg,
    transparent 205deg,
    transparent 360deg
  );
  content: "";
  opacity: 0.2;
  pointer-events: none;
  transform: rotate(0deg);
  transition: opacity 200ms ease;
}

/* Superficie interna negra y reflejo que sigue el cursor. */
.fc-related-link::after {
  position: absolute;
  inset: 2px;
  z-index: 1;
  border-radius: calc(1.35rem - 2px);
  background:
    radial-gradient(
      circle 10rem at var(--fc-specular-x) var(--fc-specular-y),
      rgb(255 255 255 / 15%) 0,
      rgb(233 173 62 / 10%) 23%,
      transparent 62%
    ),
    linear-gradient(145deg, #080706 0%, #010101 70%);
  content: "";
  pointer-events: none;
  transition: background 160ms linear;
}

.fc-related-link:hover,
.fc-related-link:focus-visible {
  border-color: rgb(255 255 255 / 42%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 9%),
    0 1.8rem 4rem rgb(0 0 0 / 50%),
    0 0 2.5rem rgb(233 173 62 / 18%);
  outline: none;
  transform: translateY(-0.45rem) scale(1.045);
}

.fc-related-link:hover::before,
.fc-related-link:focus-visible::before {
  opacity: 1;
}

.fc-related-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--fc-primary) 70%, transparent);
  outline-offset: 5px;
}

.fc-related-logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
}

.fc-related-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: clamp(10rem, 15vw, 13rem);
  object-fit: contain;
  padding: clamp(0.35rem, 1vw, 0.75rem);
  filter: drop-shadow(0 0 0 rgb(233 173 62 / 0%));
  transform: scale(1);
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 260ms ease;
}

.fc-related-name {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  flex: 0 0 auto;
  margin-top: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 16%);
  color: #fff;
  font-size: clamp(0.8rem, 1.25vw, 1rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.045em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 1rem rgb(233 173 62 / 18%);
}

.fc-related-link:hover .fc-related-logo,
.fc-related-link:focus-visible .fc-related-logo {
  filter: drop-shadow(0 0 1.25rem rgb(233 173 62 / 24%));
  transform: scale(1.075);
}

.fc-related-link:hover .fc-related-name,
.fc-related-link:focus-visible .fc-related-name {
  color: var(--fc-primary);
}

/* Pastores */
.fc-pastors {
  border-top: 1px solid var(--fc-border);
  background: linear-gradient(180deg, var(--fc-background), var(--fc-card));
}

.fc-pastors-grid {
  display: grid;
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding: 5rem 1.25rem;
  gap: 2.5rem;
}

.fc-pastors-image-wrap {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--fc-border);
  border-radius: 1.25rem;
  background: var(--fc-card);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 28%);
}

.fc-pastors-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.fc-pastors-content .fc-section-title {
  margin-top: 0.75rem;
}

.fc-pastors-text {
  margin-top: 1.5rem;
  color: var(--fc-muted-foreground);
  font-size: 1rem;
  line-height: 1.75;
}

.fc-pastors-text p {
  margin: 0 0 1.25rem;
}

.fc-pastors-text p:last-child {
  margin-bottom: 0;
}

.fc-pastors-text em {
  color: var(--fc-foreground);
}

/* Ventanas modales */
.fc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.fc-modal.is-open {
  display: flex;
}

.fc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 78%);
  backdrop-filter: blur(6px);
}

.fc-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 44rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border: 1px solid var(--fc-border);
  border-radius: 1.25rem;
  background: var(--fc-card);
  box-shadow: 0 2rem 6rem rgb(0 0 0 / 55%);
}

.fc-event-modal-panel {
  width: min(100%, 40rem);
}

.fc-form-modal-panel {
  width: min(100%, 46rem);
}

.fc-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 9999px;
  background: rgb(10 8 6 / 78%);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.fc-modal-close:hover,
.fc-modal-close:focus-visible {
  border-color: var(--fc-primary);
  outline: none;
}

.fc-modal-event-image {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: contain;
  background: #070604;
}

.fc-modal-body {
  padding: 1.5rem;
}

.fc-modal-title {
  margin: 0.75rem 0 0;
  color: var(--fc-foreground);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.fc-modal-text,
.fc-form-intro {
  margin: 1rem 0 0;
  color: var(--fc-muted-foreground);
  font-size: 1rem;
  line-height: 1.6;
}

.fc-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 9999px;
  background: var(--fc-primary);
  color: var(--fc-primary-foreground);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
}

.fc-primary-button:hover,
.fc-primary-button:focus-visible {
  opacity: 0.9;
  outline: none;
  transform: translateY(-1px);
}

body.fc-modal-open {
  overflow: hidden;
}

/* Formulario */
.fc-form {
  margin-top: 1.5rem;
}

.fc-form-grid {
  display: grid;
  gap: 1rem;
}

.fc-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fc-field label {
  color: var(--fc-foreground);
  font-size: 0.875rem;
  font-weight: 700;
}

.fc-field label span {
  color: var(--fc-primary);
}

.fc-field input,
.fc-field textarea {
  width: 100%;
  border: 1px solid var(--fc-border);
  border-radius: 0.75rem;
  background: var(--fc-background);
  color: var(--fc-foreground);
  font: inherit;
  line-height: 1.4;
}

.fc-field input {
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
}

.fc-field textarea {
  min-height: 6rem;
  padding: 0.75rem 0.875rem;
  resize: vertical;
}

.fc-field input:focus,
.fc-field textarea:focus {
  border-color: var(--fc-primary);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc-primary) 25%, transparent);
}

.fc-submit-button {
  width: 100%;
}

.fc-submit-button[disabled] {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.fc-form-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--fc-muted-foreground);
  font-size: 0.9rem;
  line-height: 1.5;
}

.fc-form-status.is-success {
  color: #9be6a8;
}

.fc-form-status.is-error {
  color: #ff9b9b;
}

@media (min-width: 760px) {
  .fc-pastors-grid {
    display: block;
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }

  .fc-pastors-grid::after {
    display: block;
    clear: both;
    content: "";
  }

  .fc-pastors-image-wrap {
    float: left;
    width: min(43%, 31rem);
    margin: 0 3.5rem 1.75rem 0;
  }

  .fc-pastors-content {
    display: block;
  }

  .fc-pastors-content .fc-section-title {
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    line-height: 1.05;
  }

  .fc-pastors-text {
    text-align: left;
  }

  .fc-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fc-field-full {
    grid-column: 1 / -1;
  }

  .fc-modal-body {
    padding: 2rem;
  }
}

@media (max-width: 720px) {
  .fc-related-links {
    overflow: hidden;
    padding-right: 0;
    padding-left: 0;
  }

  .fc-related-title {
    padding: 0 1.25rem;
  }

  .fc-related-links-grid {
    display: flex;
    max-width: none;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.75rem 1.25rem 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .fc-related-link {
    min-height: 17rem;
    flex: 0 0 min(82vw, 21rem);
    scroll-snap-align: center;
  }

  .fc-related-link:hover,
  .fc-related-link:focus-visible {
    transform: translateY(-0.2rem) scale(1.025);
  }
}

@media (max-width: 520px) {
  .fc-event-card {
    gap: 0.875rem;
    padding: 1rem;
  }

  .fc-event-thumb,
  .fc-date {
    width: 3.5rem;
    height: 3.5rem;
  }

  .fc-event-copy .fc-event-name {
    font-size: 1rem;
    line-height: 1.35;
  }

  .fc-event-copy .fc-event-time {
    margin-top: 0.2rem;
  }

  .fc-modal {
    align-items: flex-end;
    padding: 0;
  }

  .fc-modal-panel {
    width: 100%;
    max-height: 94vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 1.25rem 1.25rem 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-event-arrow,
  .fc-primary-button,
  .fc-related-link,
  .fc-related-link::before,
  .fc-related-link::after,
  .fc-related-logo {
    transition: none;
  }

  .fc-related-link:hover,
  .fc-related-link:focus-visible {
    transform: none;
  }
}

.fc-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
