
    :root {
      --primary: #3f454b;
      --primary-dark: #1f2327;
      --accent: #6f7780;
      --dark: #111315;
      --soft-dark: #2a2e32;
      --light: #f1f2f3;
      --light-2: #fafafa;
      --border: #d9dcdf;
      --muted: #666d74;
      --white: #ffffff;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Source Sans 3', sans-serif;
      color: var(--dark);
      background: var(--light-2);
      font-size: 1.02rem;
      line-height: 1.78;
      letter-spacing: 0.005em;
    }

    p,
    .section-subtitle,
    .text-muted,
    .lead {
      font-family: 'Source Sans 3', sans-serif;
      font-weight: 400;
    }

    h1,
    h2,
    .section-title,
    .hero h1 {
      font-family: 'Lora', serif;
      font-weight: 500;
    }

    .navbar {
      background: transparent;
      backdrop-filter: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: none;
      padding: 18px 0;
      position: absolute;
    }

    .navbar-brand {
      display: inline-flex;
      align-items: center;
      padding: 0;
    }

    .navbar-logo {
      height: 100px;
      width: auto;
      display: block;
      object-fit: contain;
    }

    .nav-link {
      font-size: 0.94rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.9) !important;
      opacity: 0.85;
    }

    .nav-link:hover {
      color: #fff !important;
      opacity: 1;
    }

    .navbar .btn-primary-custom {
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
      border-color: rgba(255, 255, 255, 0.38);
      box-shadow: none;
      backdrop-filter: blur(8px);
    }

    .navbar .btn-primary-custom:hover {
      background: #fff;
      color: var(--dark);
      border-color: #fff;
    }

    .navbar-toggler {
      border-color: rgba(255, 255, 255, 0.35);
    }

    .navbar-toggler:focus {
      box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
    }

    .navbar-toggler-icon {
      filter: invert(1) grayscale(1);
    }

    .btn-primary-custom {
      background: var(--dark);
      color: #fff;
      border: 1px solid var(--dark);
      border-radius: 999px;
      padding: 12px 26px;
      font-weight: 700;
      transition: 0.3s ease;
      text-decoration: none;
      display: inline-block;
      box-shadow: 0 12px 28px rgba(17, 19, 21, 0.16);
    }

    .btn-primary-custom:hover {
      background: var(--primary-dark);
      border-color: var(--primary-dark);
      color: #fff;
      transform: translateY(-2px);
    }

    .btn-outline-custom {
      border: 1px solid rgba(255, 255, 255, 0.72);
      color: #fff;
      border-radius: 999px;
      padding: 11px 26px;
      font-weight: 700;
      transition: 0.3s ease;
      text-decoration: none;
      display: inline-block;
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(8px);
    }

    .btn-outline-custom:hover {
      background: #fff;
      color: var(--dark);
      border-color: #fff;
    }

    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      background:
        linear-gradient(90deg, rgba(17, 19, 21, 0.88), rgba(63, 69, 75, 0.68)),
        url('Imagenes/PortadaWeb.png') center/cover no-repeat;
      color: #fff;
      padding-top: 96px;
      position: relative;
    }

    .hero::after {
      content: '';
      position: absolute;
      inset: auto 0 0 0;
      height: 160px;
      background: linear-gradient(180deg, transparent, var(--light-2));
      pointer-events: none;
    }

    .hero .container {
      position: relative;
      z-index: 2;
    }

    .hero .badge {
      background: rgba(255, 255, 255, 0.14) !important;
      color: #fff !important;
      border: 1px solid rgba(255, 255, 255, 0.28);
      backdrop-filter: blur(8px);
      font-weight: 600;
    }

    .hero h1 {
      font-size: clamp(2.7rem, 6vw, 5.4rem);
      font-weight: 500;
      line-height: 1.08;
      letter-spacing: -0.045em;
      max-width: 900px;
    }

    .hero p {
      font-size: 1.18rem;
      max-width: 660px;
      color: rgba(255, 255, 255, 0.86);
      line-height: 1.75;
    }

    .section-padding {
      padding: 96px 0;
    }

    .section-title {
      font-weight: 500;
      font-size: clamp(2rem, 4vw, 3.15rem);
      letter-spacing: -0.035em;
      margin-bottom: 16px;
      color: var(--dark);
    }

    .section-subtitle {
      color: var(--muted);
      max-width: 680px;
      margin: 0 auto 48px;
      font-size: 1.08rem;
      line-height: 1.75;
    }

    .feature-card,
    .ministry-card,
    .event-card,
    .schedule-card {
      border: 1px solid var(--border);
      border-radius: 26px;
      background: rgba(255, 255, 255, 0.86);
      box-shadow: 0 18px 45px rgba(17, 19, 21, 0.06);
      transition: 0.3s ease;
      height: 100%;
    }

    .feature-card:hover,
    .ministry-card:hover,
    .event-card:hover,
    .schedule-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 24px 55px rgba(17, 19, 21, 0.1);
      border-color: #c5c9cd;
    }

    .icon-box {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: #eceeef;
      color: var(--primary-dark);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 25px;
      margin-bottom: 20px;
      border: 1px solid #d0d4d8;
    }

    .about-img {
      border-radius: 30px;
      box-shadow: 0 24px 60px rgba(17, 19, 21, 0.14);
      min-height: 430px;
      object-fit: cover;
      width: 100%;
      filter: saturate(0.82) contrast(0.96);
    }

    .bg-soft {
      background: var(--light);
    }

    .text-primary {
      color: var(--primary) !important;
    }

    .text-bg-primary {
      background: var(--primary) !important;
      color: #fff !important;
    }

    .schedule-card {
      background: linear-gradient(135deg, #ffffff, #f3f4f5);
    }

    .schedule-time {
      color: var(--primary);
      font-weight: 800;
      font-size: 1rem;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .cta {
      background:
        linear-gradient(135deg, rgba(17, 19, 21, 0.94), rgba(63, 69, 75, 0.88)),
        url('https://images.unsplash.com/photo-1478147427282-58a87a120781?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
      color: #fff;
      border-radius: 34px;
      padding: 76px 34px;
      box-shadow: 0 26px 70px rgba(17, 19, 21, 0.18);
    }

    .video-card {
      border: 1px solid var(--border);
      border-radius: 26px;
      background: rgba(255, 255, 255, 0.86);
      box-shadow: 0 18px 45px rgba(17, 19, 21, 0.06);
      overflow: hidden;
      height: 100%;
      transition: 0.3s ease;
    }

    .video-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 24px 55px rgba(17, 19, 21, 0.1);
      border-color: #c5c9cd;
    }

    .video-frame {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      background: #e4e6e8;
    }

    .video-frame iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .video-content {
      padding: 24px;
    }

    .video-meta {
      color: var(--primary);
      font-weight: 700;
      font-size: 0.9rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .event-date {
      background: #eceeef;
      color: var(--primary-dark);
      border: 1px solid #d0d4d8;
      border-radius: 20px;
      padding: 14px 16px;
      text-align: center;
      min-width: 78px;
      font-weight: 800;
    }

    .contact-box {
      border-radius: 26px;
      background: #fff;
      border: 1px solid var(--border);
      box-shadow: 0 18px 45px rgba(17, 19, 21, 0.06);
      padding: 34px;
      height: 100%;
    }

    .map-box {
      overflow: hidden;
      padding: 0;
      min-height: 430px;
    }

    .map-box iframe {
      width: 100%;
      height: 100%;
      min-height: 430px;
      border: 0;
      display: block;
      filter: grayscale(0.2) contrast(0.95) saturate(0.85);
    }

    .map-caption {
      padding: 22px 26px;
      background: #fff;
      border-top: 1px solid var(--border);
    }

    .form-label {
      font-weight: 700;
      color: var(--soft-dark);
    }

    .form-control {
      border-radius: 16px;
      padding: 14px 16px;
      border: 1px solid var(--border);
      background: #fafafa;
    }

    .form-control:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 0.2rem rgba(111, 119, 128, 0.18);
      background: #fff;
    }

    footer {
      background: #111315;
      color: rgba(255, 255, 255, 0.78);
      padding: 38px 0;
    }

    footer a {
      color: rgba(255, 255, 255, 0.9);
      text-decoration: none;
    }

    footer a:hover {
      color: #fff;
    }

    @media (max-width: 991px) {
      .hero {
        text-align: center;
      }

      .hero p {
        margin-left: auto;
        margin-right: auto;
      }
    }
/* --- Efecto Hover para la sección de Instagram --- */
.instagram-post .insta-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-post:hover .insta-overlay {
  opacity: 1;
}

.object-fit-cover {
  object-fit: cover;
}