:root {
  color-scheme: light;
  --bg: #f3f0eb;
  --bg-alt: #f8f6f2;
  --card: #ffffff;
  --text: #162b47;
  --muted: #6f6c69;
  --primary: #2f6db8;
  --primary-dark: #245592;
  --line: #e6e1db;
  --shadow: 0 18px 40px rgba(39, 37, 34, 0.12);
  --shadow-soft: 0 10px 22px rgba(39, 37, 34, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #f4f1ec 0%, #f8f6f2 55%, #f0ede8 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 10px 0 96px;
}

.hero {
  background: url("../images/fondo1.png") center/cover no-repeat;
  padding: 32px 0 120px;
}

.hero .container {
  padding-left: 64px;
  padding-right: 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 12px 0 48px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-left: 28px;
}

.logo-text {
  font-size: 16px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.nav-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;

}

.hero-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
  padding-left: 60px;
}

.hero-text {
  max-width: 520px;
  padding-left: 60px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.1rem;
}

.subhead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-cta.secondary {
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  border-color: rgba(47, 109, 184, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.95);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(43, 43, 43, 0.22);
  color: var(--text);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
}

.btn-large {
  padding: 16px 34px;
  font-size: 1rem;
}

.hero-mock {
  display: flex;
  justify-content: center;
}

.phone {
  width: 260px;
  height: 520px;
  box-shadow: 0 22px 50px rgba(39, 37, 34, 0.22);
  position: relative;
  border: 1px solid rgba(43, 43, 43, 0.1);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}

.phone-notch {
  width: 80px;
  height: 10px;
  background: rgba(43, 43, 43, 0.12);
  border-radius: 20px;
  margin: 0 auto 18px;
}

.phone-screen {
  display: grid;
  gap: 12px;
}

.phone-card {
  height: 96px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(43, 43, 43, 0.08);
  box-shadow: 0 10px 18px rgba(39, 37, 34, 0.08);
}

.problem {
  background: var(--card);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.icon {
  width: 128px;
  height: 128px;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.icon img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 18px;
  display: block;
}

.centered {
  text-align: center;
  margin-top: 28px;
  color: var(--muted);
}

.centered.emphasis {
  font-size: 2.1rem;
}

.reframe {
  padding-top: 40px;
}

.reframe-card {
  background: url("../images/fondo2.png") center/cover no-repeat;
  border-radius: var(--radius-lg);
  padding: 64px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.reframe-card h2 {
  color: var(--text);
  margin-bottom: 28px;
}

.mini-items {
  display: grid;
  gap: 16px;
}

.mini-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  width: fit-content;
}

.mini-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.phones {
  background: transparent;
}

.divider {
  width: 100%;
  height: 2px;
  background: var(--line);
  margin-bottom: 40px;
}

.phone-stack {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.todo {
  background: var(--bg-alt);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  align-items: center;
}

.photo-block {
  min-height: 360px;
  border-radius: var(--radius-lg);
  background: url("../images/fondo3.png") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.checklist {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
}

.checklist li {
  position: relative;
  padding-left: 28px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(47, 109, 184, 0.18);
  border: 2px solid var(--primary);
}

.pensado {
  background: var(--card);
  text-align: center;
}

.avatar-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
  justify-items: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at top, #c9d8f2, #2f6db8);
  overflow: hidden;
}

.avatar-pastor {
  background: url("../images/pastor.png") center/cover no-repeat;
  background-position: center top;
}

.avatar-staff {
  background: url("../images/staff.png") center/cover no-repeat;
  background-position: center top;
}

.avatar-comunidad {
  background: url("../images/comunidad.png") center/cover no-repeat;
  background-position: center top;
}

.cta-final {
  margin-top: 36px;
}

.contact {
  background: var(--bg-alt);
}

.form-card {
  margin-top: 24px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

.form-card iframe {
  width: 100%;
  min-height: 680px;
  border: 0;
  border-radius: var(--radius-md);
}

.footer {
  padding: 36px 0 48px;
  background: #ebe6df;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-content {
    padding-left: 32px;
  }
  .hero-text {
    padding-left: 0;
  }
  .hero .container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .container {
    padding: 0 32px;
  }

  .hero-content,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-mock {
    justify-content: flex-start;
  }

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

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

@media (max-width: 700px) {
  .hero .container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .container {
    padding: 0 24px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions .btn {
    width: auto;
    min-width: 220px;
    margin-left: 28px;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .phone {
    width: 230px;
    height: 470px;
  }

  .reframe-card {
    padding: 40px;
  }
}
