
    :root {
      --primary-dark: #341D14;
      --gold: #D4AF37;
      --beige: #D2AA7E;
      --cream: #FDF8F3;
      --cream-dark: #F5EDE4;
      --text-dark: #2C1810;
      --text-light: #F5EDE4;
      --sidebar-width: 340px;
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 90px;
    }

    body {
      font-family: 'Inter', sans-serif;
      background-color: var(--cream);
      color: var(--text-dark);
      line-height: 1.6;
    }

    body.no-scroll {
      overflow: hidden;
    }

    h1, h2, h3, h4 {
      font-family: 'Playfair Display', serif;
      font-weight: 600;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* Header */
    .header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: rgba(253, 248, 243, 0.95);
      backdrop-filter: blur(10px);
      z-index: 1000;
      transition: var(--transition);
      border-bottom: 1px solid transparent;
    }

    .header.scrolled {
      box-shadow: 0 2px 20px rgba(52, 29, 20, 0.1);
      border-bottom: 1px solid var(--beige);
    }

    .header-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 1.5rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
      color: var(--primary-dark);
    }

    .logo-icon {
      width: 44px;
      height: 44px;
      background: linear-gradient(135deg, var(--primary-dark), var(--gold));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--cream);
      font-size: 1.25rem;
      box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    }

    .logo-text {
      display: flex;
      flex-direction: column;
      justify-content: center;
      line-height: 1.2;
    }

    .logo-main {
      font-family: 'Playfair Display', serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--primary-dark);
      white-space: nowrap;
      letter-spacing: 0.2px;
    }

    .logo-sub {
      font-family: 'Playfair Display', serif;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--gold);
      white-space: nowrap;
      letter-spacing: 0.3px;
    }

    .nav {
      display: flex;
      gap: 2rem;
    }

    .nav a {
      text-decoration: none;
      color: var(--text-dark);
      font-size: 0.9rem;
      font-weight: 500;
      position: relative;
      transition: var(--transition);
    }

    .nav a::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--gold);
      transition: width 0.3s ease;
    }

    .nav a:hover {
      color: var(--gold);
    }

    .nav a:hover::after {
      width: 100%;
    }

    .menu-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
    }

    .menu-toggle span {
      width: 32px;
      height: 4px;
      border-radius: 4px;
      background: var(--primary-dark);
      transition: var(--transition);
    }

    .menu-toggle.active span:nth-child(1) {
      transform: rotate(45deg) translate(6px, 6px);
      background: var(--gold);
    }

    .menu-toggle.active span:nth-child(2) {
      opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
      background: var(--gold);
    }

    /* Hero Section */
    .hero {
      position: relative;
      width: 100%;
      height: clamp(500px, 44vw, 750px);
      min-height: 700px;
      max-height: 850px;
      overflow: hidden;
      margin-top: 0;
    }

    .hero-carousel {
      position: absolute;
      inset: 0;
      z-index: 0;
    }

    .hero-slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      transition: opacity 0.8s ease-in-out;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: center;
    }

    .hero-slide.active {
      opacity: 1;
    }

    .hero-slide-bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center top;
      background-repeat: no-repeat;
      background-color: var(--primary-dark);
    }

    /* Fallback gradients ONLY when background-image is not set inline */
    .hero-slide:nth-child(1) .hero-slide-bg:not([style*="background-image"]) {
      background: linear-gradient(135deg, var(--primary-dark) 0%, var(--beige) 100%);
    }

    .hero-slide:nth-child(2) .hero-slide-bg:not([style*="background-image"]) {
      background: linear-gradient(135deg, var(--gold) 0%, var(--primary-dark) 100%);
    }

    .hero-slide:nth-child(3) .hero-slide-bg:not([style*="background-image"]) {
      background: linear-gradient(135deg, var(--beige) 0%, var(--gold) 100%);
    }

    /* Overlay con degradado café inferior según la imagen de referencia */
    .hero-overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      background: linear-gradient(
        180deg,
        rgba(36, 19, 13, 0) 0%,
        rgba(36, 19, 13, 0.12) 30%,
        rgba(36, 19, 13, 0.65) 60%,
        rgba(36, 19, 13, 0.92) 85%,
        #24130d 100%
      );
      pointer-events: none;
    }

    .hero-content {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 10;
      width: 100%;
      max-width: 950px;
      margin: 0 auto;
      padding: 1.5rem 1.5rem 3.8rem 1.5rem;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
    }

    .hero-tag {
      display: inline-block;
      background: rgba(212, 175, 55, 0.25);
      border: 1px solid var(--gold);
      color: var(--gold);
      padding: 0.35rem 1.1rem;
      border-radius: 50px;
      font-size: 0.82rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 0.75rem;
      backdrop-filter: blur(6px);
    }

    .hero h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.5rem, 3.5vw, 2.5rem);
      font-weight: 700;
      color: #FFFFFF;
      line-height: 1.25;
      margin-bottom: 0.5rem;
      text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .hero p {
      font-size: clamp(0.95rem, 1.8vw, 1.2rem);
      color: rgba(253, 248, 243, 0.92);
      font-weight: 300;
      max-width: 800px;
      margin: 0 auto 1.25rem auto;
      line-height: 1.5;
      text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
    }

    .hero-buttons {
      display: flex;
      gap: 1rem;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
    }

    /* Flechas de navegación */
    .carousel-arr {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 20;
      background: rgba(36, 19, 13, 0.45);
      border: 1px solid rgba(212, 175, 55, 0.4);
      color: #FDF8F3;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: var(--transition);
      backdrop-filter: blur(4px);
    }

    .carousel-arr:hover {
      background: rgba(212, 175, 55, 0.9);
      color: var(--primary-dark);
      border-color: var(--gold);
      transform: translateY(-50%) scale(1.1);
      box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    }

    .carousel-prev {
      left: 1.5rem;
    }

    .carousel-next {
      right: 1.5rem;
    }

    @media (max-width: 768px) {
      .hero {
        height: clamp(420px, 115vw, 580px);
        min-height: 420px;
        max-height: 580px;
      }
      .hero-content {
        padding: 1rem 1rem 3.5rem 1rem;
      }
      .hero h1 {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
      }
      .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
      }
      .carousel-prev {
        left: 0.5rem;
        width: 38px;
        height: 38px;
      }
      .carousel-next {
        right: 0.5rem;
        width: 38px;
        height: 38px;
      }
      .carousel-controls {
        bottom: 1rem;
      }
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.875rem 1.75rem;
      border-radius: 50px;
      font-size: 0.95rem;
      font-weight: 500;
      text-decoration: none;
      transition: var(--transition);
      cursor: pointer;
      border: none;
    }

    .btn-primary {
      background: var(--gold);
      color: var(--primary-dark);
      box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    }

    .btn-primary:hover {
      background: #c9a22e;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    }

    .btn-secondary {
      background: rgba(253, 248, 243, 0.15);
      color: var(--cream);
      border: 1px solid var(--beige);
      backdrop-filter: blur(10px);
    }

    .btn-secondary:hover {
      background: rgba(253, 248, 243, 0.25);
      border-color: var(--gold);
    }

    .carousel-controls {
      position: absolute;
      bottom: 1.25rem;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 0.6rem;
      z-index: 20;
      align-items: center;
    }

    .carousel-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.6);
      cursor: pointer;
      transition: var(--transition);
      padding: 0;
    }

    .carousel-dot.active {
      background: var(--gold);
      border-color: var(--gold);
      width: 26px;
      border-radius: 12px;
      box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    }

    /* Section Styles */
    section {
      padding: 6rem 0;
    }

    .section-header {
      text-align: center;
      margin-bottom: 4rem;
    }

    .section-tag {
      display: inline-block;
      background: linear-gradient(135deg, var(--beige), var(--gold));
      color: var(--primary-dark);
      padding: 0.5rem 1.25rem;
      border-radius: 50px;
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .section-title {
      font-size: clamp(2rem, 4vw, 2.75rem);
      color: var(--primary-dark);
      margin-bottom: 1rem;
    }

    .section-desc {
      color: var(--text-dark);
      opacity: 0.8;
      max-width: 600px;
      margin: 0 auto;
    }

    /* About Section */
    .about {
      background: var(--cream);
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
    }

    .about-image {
      position: relative;
      border-radius: 1rem;
      overflow: hidden;
      aspect-ratio: 4/3;
      background: linear-gradient(135deg, var(--beige), var(--gold));
      box-shadow: 0 20px 50px rgba(52, 29, 20, 0.2);
    }

    .about-image-decor {
      position: absolute;
      bottom: 1rem;
      right: 1rem;
      background: var(--primary-dark);
      color: var(--gold);
      padding: 1rem 1.5rem;
      border-radius: 0.75rem;
      text-align: center;
      border: 2px solid var(--gold);
    }

    .about-image-decor .number {
      font-size: 2rem;
      font-weight: 700;
      font-family: 'Playfair Display', serif;
    }

    .about-image-decor .label {
      font-size: 0.8rem;
      color: var(--cream);
    }

    .about-content h2 {
      font-size: 2.25rem;
      margin-bottom: 1.5rem;
      color: var(--primary-dark);
    }

    .about-content p {
      color: var(--text-dark);
      opacity: 0.85;
      margin-bottom: 1.5rem;
    }

    .values-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      margin-top: 2rem;
    }

    .value-card {
      background: var(--cream-dark);
      padding: 1.25rem;
      border-radius: 0.75rem;
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      transition: var(--transition);
      border: 1px solid transparent;
    }

    .value-card:hover {
      transform: translateY(-3px);
      border-color: var(--gold);
      box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
    }

    .value-icon {
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, var(--primary-dark), var(--gold));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--cream);
      flex-shrink: 0;
    }

    .value-card h4 {
      font-size: 1rem;
      margin-bottom: 0.25rem;
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      color: var(--primary-dark);
    }

    .value-card p {
      font-size: 0.85rem;
      color: var(--text-dark);
      opacity: 0.8;
      margin: 0;
    }

    /* Mission Section */
    .mission {
      background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
    }

    .mission-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
    }

    .mission-card {
      background: var(--cream);
      padding: 2.5rem;
      border-radius: 1rem;
      box-shadow: 0 4px 30px rgba(52, 29, 20, 0.1);
      position: relative;
      overflow: hidden;
      border: 1px solid var(--beige);
    }

    .mission-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--primary-dark), var(--gold));
    }

    .mission-card.vision::before {
      background: linear-gradient(90deg, var(--gold), var(--beige));
    }

    .mission-card-icon {
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, var(--beige), var(--gold));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.5rem;
      color: var(--primary-dark);
    }

    .mission-card h3 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
      color: var(--primary-dark);
    }

    .mission-card p {
      color: var(--text-dark);
      opacity: 0.85;
      margin-bottom: 1.5rem;
    }

    .mission-list {
      list-style: none;
    }

    .mission-list li {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem 0;
      border-bottom: 1px solid var(--beige);
      font-size: 0.95rem;
      color: var(--text-dark);
    }

    .mission-list li:last-child {
      border-bottom: none;
    }

    .check-icon {
      width: 20px;
      height: 20px;
      background: var(--gold);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary-dark);
      font-size: 0.7rem;
      flex-shrink: 0;
    }

    /* Events Section */
    .events {
      background: var(--primary-dark);
      color: var(--cream);
    }

    .events .section-tag {
      background: rgba(212, 175, 55, 0.3);
      color: var(--gold);
      border: 1px solid var(--gold);
    }

    .events .section-title {
      color: var(--cream);
    }

    .events .section-desc {
      color: var(--beige);
    }

    .events-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .event-card {
      background: rgba(210, 170, 126, 0.1);
      backdrop-filter: blur(10px);
      border-radius: 1rem;
      overflow: hidden;
      border: 1px solid rgba(212, 175, 55, 0.2);
      transition: var(--transition);
    }

    .event-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
      border-color: var(--gold);
    }

    .event-image {
      height: 160px;
      background: linear-gradient(135deg, var(--beige), var(--gold));
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .event-date-badge {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: var(--cream);
      color: var(--primary-dark);
      padding: 0.5rem 0.75rem;
      border-radius: 0.5rem;
      text-align: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .event-date-badge .day {
      font-size: 1.25rem;
      font-weight: 700;
      display: block;
      line-height: 1;
      color: var(--gold);
    }

    .event-date-badge .month {
      font-size: 0.7rem;
      text-transform: uppercase;
    }

    .event-content {
      padding: 1.5rem;
    }

    .event-category {
      display: inline-block;
      background: rgba(212, 175, 55, 0.2);
      color: var(--gold);
      padding: 0.25rem 0.75rem;
      border-radius: 50px;
      font-size: 0.75rem;
      margin-bottom: 0.75rem;
    }

    .event-content h3 {
      font-size: 1.25rem;
      margin-bottom: 0.75rem;
      color: var(--cream);
    }

    .event-meta {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      font-size: 0.85rem;
      color: var(--beige);
      margin-bottom: 1rem;
    }

    .event-meta span {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .event-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 1rem;
      border-top: 1px solid rgba(212, 175, 55, 0.2);
    }

    .event-spots {
      font-size: 0.85rem;
      color: var(--beige);
    }

    .btn-event {
      background: var(--gold);
      color: var(--primary-dark);
      padding: 0.5rem 1rem;
      border-radius: 50px;
      font-size: 0.85rem;
      font-weight: 600;
      text-decoration: none;
      transition: var(--transition);
    }

    .btn-event:hover {
      background: var(--cream);
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    }

    /* Pastors Section */
    .pastors {
      background: var(--cream-dark);
    }

    .pastors-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem;
    }

    .pastor-card {
      text-align: center;
      cursor: pointer;
    }

    .pastor-image {
      width: 180px;
      height: 180px;
      margin: 0 auto 1.5rem;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--beige), var(--gold));
      position: relative;
      overflow: hidden;
      transition: var(--transition);
      box-shadow: 0 10px 30px rgba(52, 29, 20, 0.15);
    }

    .pastor-card:hover .pastor-image {
      transform: scale(1.05);
      box-shadow: 0 15px 40px rgba(212, 175, 55, 0.25);
    }

    .pastor-image::after {
      content: '';
      position: absolute;
      inset: 4px;
      border: 2px dashed var(--gold);
      border-radius: 50%;
      opacity: 0;
      transition: var(--transition);
    }

    .pastor-card:hover .pastor-image::after {
      opacity: 1;
    }

    .pastor-card h3 {
      font-size: 1.25rem;
      margin-bottom: 0.25rem;
      color: var(--primary-dark);
    }

    .pastor-role {
      color: var(--gold);
      font-weight: 600;
      font-size: 0.9rem;
      margin-bottom: 0.5rem;
    }

    .pastor-church {
      color: var(--text-dark);
      opacity: 0.75;
      font-size: 0.85rem;
    }

    /* Blog Section */
    .blog {
      background: var(--cream);
    }

    .blog-filters {
      display: flex;
      justify-content: center;
      gap: 0.75rem;
      margin-bottom: 3rem;
      flex-wrap: wrap;
    }

    .filter-btn {
      padding: 0.625rem 1.25rem;
      border-radius: 50px;
      border: 1px solid var(--beige);
      background: var(--cream);
      color: var(--text-dark);
      font-size: 0.9rem;
      cursor: pointer;
      transition: var(--transition);
    }

    .filter-btn:hover,
    .filter-btn.active {
      background: var(--gold);
      color: var(--primary-dark);
      border-color: var(--gold);
    }

    .blog-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
    }

    .blog-featured {
      grid-row: span 2;
    }

    .blog-card {
      background: var(--cream-dark);
      border-radius: 1rem;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(52, 29, 20, 0.08);
      transition: var(--transition);
      border: 1px solid transparent;
    }

    .blog-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
      border-color: var(--gold);
    }

    .blog-image {
      height: 200px;
      background: linear-gradient(135deg, var(--beige), var(--gold));
      position: relative;
    }

    .blog-featured .blog-image {
      height: 300px;
    }

    .blog-category-badge {
      position: absolute;
      top: 1rem;
      left: 1rem;
      background: var(--primary-dark);
      color: var(--gold);
      padding: 0.375rem 0.875rem;
      border-radius: 50px;
      font-size: 0.75rem;
      font-weight: 500;
    }

    .blog-content {
      padding: 1.5rem;
    }

    .blog-meta {
      display: flex;
      gap: 1rem;
      font-size: 0.8rem;
      color: var(--text-dark);
      opacity: 0.7;
      margin-bottom: 0.75rem;
    }

    .blog-card h3 {
      font-size: 1.25rem;
      margin-bottom: 0.75rem;
      color: var(--primary-dark);
      line-height: 1.3;
    }

    .blog-featured h3 {
      font-size: 1.5rem;
    }

    .blog-card p {
      color: var(--text-dark);
      opacity: 0.8;
      font-size: 0.9rem;
      margin-bottom: 1rem;
    }

    .blog-tags {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .blog-tag {
      background: var(--beige);
      color: var(--primary-dark);
      padding: 0.25rem 0.625rem;
      border-radius: 4px;
      font-size: 0.75rem;
    }

    .blog-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--gold);
      font-weight: 600;
      text-decoration: none;
      font-size: 0.9rem;
      margin-top: 1rem;
      transition: var(--transition);
    }

    .blog-link:hover {
      gap: 0.75rem;
      color: var(--primary-dark);
    }

    /* Gallery Section */
    .gallery {
      background: var(--cream-dark);
    }

    .gallery-filters {
      display: flex;
      justify-content: center;
      gap: 0.75rem;
      margin-bottom: 3rem;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
    }

    .gallery-item {
      position: relative;
      aspect-ratio: 1;
      border-radius: 0.75rem;
      overflow: hidden;
      cursor: pointer;
      border: 2px solid transparent;
      transition: var(--transition);
    }

    .gallery-item:hover {
      border-color: var(--gold);
    }

    .gallery-item.wide {
      grid-column: span 2;
      aspect-ratio: 2/1;
    }

    .gallery-item.tall {
      grid-row: span 2;
      aspect-ratio: 1/2;
    }

    .gallery-item-bg {
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, var(--beige), var(--gold));
      transition: transform 0.5s ease;
    }

    .gallery-item:hover .gallery-item-bg {
      transform: scale(1.1);
    }

    .gallery-item-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(52, 29, 20, 0.9) 0%, transparent 60%);
      opacity: 0;
      transition: var(--transition);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 1rem;
      color: var(--cream);
    }

    .gallery-item:hover .gallery-item-overlay {
      opacity: 1;
    }

    .gallery-item-title {
      font-weight: 600;
      margin-bottom: 0.25rem;
      color: var(--gold);
    }

    .gallery-item-date {
      font-size: 0.8rem;
      color: var(--beige);
    }

    .video-indicator {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 60px;
      height: 60px;
      background: rgba(253, 248, 243, 0.95);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--gold);
      font-size: 1.25rem;
      transition: var(--transition);
      box-shadow: 0 4px 20px rgba(52, 29, 20, 0.2);
    }

    .gallery-item:hover .video-indicator {
      transform: translate(-50%, -50%) scale(1.1);
      background: var(--gold);
      color: var(--primary-dark);
    }

    /* Footer */
    .footer {
      background: var(--primary-dark);
      color: var(--cream);
      padding: 4rem 0 2rem;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 3rem;
      margin-bottom: 3rem;
    }

    .footer-brand p {
      color: var(--beige);
      margin: 1rem 0 1.5rem;
      font-size: 0.9rem;
    }

    .footer-social {
      display: flex;
      gap: 0.75rem;
    }

    .footer-social a {
      width: 40px;
      height: 40px;
      background: rgba(212, 175, 55, 0.2);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--gold);
      text-decoration: none;
      transition: background 0.3s ease;
    }

    .footer-social a:hover {
      background: var(--gold);
      color: var(--primary-dark);
    }

    .footer h4 {
      font-size: 1rem;
      margin-bottom: 1.25rem;
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      color: var(--gold);
    }

    .footer-links {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 0.75rem;
    }

    .footer-links a {
      color: var(--beige);
      text-decoration: none;
      font-size: 0.9rem;
      transition: var(--transition);
    }

    .footer-links a:hover {
      color: var(--gold);
    }

    .footer-bottom {
      padding-top: 2rem;
      border-top: 1px solid rgba(212, 175, 55, 0.2);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.85rem;
      color: var(--beige);
    }

    /* Modal */
    .modal {
      position: fixed;
      inset: 0;
      background: rgba(52, 29, 20, 0.85);
      backdrop-filter: blur(8px);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      opacity: 0;
      visibility: hidden;
      transition: var(--transition);
    }

    .modal.active {
      opacity: 1;
      visibility: visible;
    }

    .modal-content {
      background: var(--cream);
      border-radius: 1rem;
      max-width: 500px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      transform: translateY(20px);
      transition: var(--transition);
      border: 1px solid var(--gold);
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    }

    .modal.active .modal-content {
      transform: translateY(0);
    }

    .modal-header {
      padding: 1.5rem;
      border-bottom: 1px solid var(--beige);
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: linear-gradient(135deg, var(--cream-dark), var(--cream));
    }

    .modal-header h3 {
      font-size: 1.25rem;
      color: var(--primary-dark);
    }

    .modal-close {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: none;
      background: var(--beige);
      color: var(--primary-dark);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
    }

    .modal-close:hover {
      background: var(--gold);
    }

    .modal-body {
      padding: 1.5rem;
    }

    .form-group {
      margin-bottom: 1.25rem;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 500;
      font-size: 0.9rem;
      color: var(--primary-dark);
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
      width: 100%;
      padding: 0.75rem 1rem;
      border: 1px solid var(--beige);
      border-radius: 0.5rem;
      font-size: 0.95rem;
      font-family: inherit;
      background: var(--cream-dark);
      transition: var(--transition);
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
      outline: none;
      border-color: var(--gold);
      box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    }

    .btn-submit {
      width: 100%;
      background: linear-gradient(135deg, var(--primary-dark), var(--gold));
      color: var(--cream);
      padding: 0.875rem;
      border: none;
      border-radius: 0.5rem;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
    }

    .btn-submit:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    }

    /* Animations */
    .fade-up {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-up.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .pastors-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
      }

      .footer-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .menu-toggle {
        display: flex;
      }

      .nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        bottom: auto;
        height: calc(100vh - 76px);
        background: linear-gradient(135deg, var(--primary-dark) 0%, #4a2a1c 100%);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 1rem 0;
        gap: 0;
        transform: translateX(-100%);
        transition: var(--transition);
        overflow-y: auto;
        border-top: 2px solid var(--gold);
      }

      /* Custom mobile scrollbar to make it more noticeable */
      .nav::-webkit-scrollbar {
        width: 8px;
      }
      .nav::-webkit-scrollbar-track {
        background: var(--primary-dark);
      }
      .nav::-webkit-scrollbar-thumb {
        background: var(--gold);
        border-radius: 10px;
        border: 2px solid var(--primary-dark);
      }

      .nav.active {
        transform: translateX(0);
      }

      .nav a {
        font-size: 1rem;
        color: var(--cream);
        width: 100%;
        text-align: center;
        padding: 0.85rem 2rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
      }
      
      .nav a::after {
        display: none;
      }

      .nav a:hover, .nav a:active {
        background: rgba(212, 175, 55, 0.15);
        color: var(--gold);
      }

      .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
      }

      .mission-grid {
        grid-template-columns: 1fr;
      }

      .events-grid {
        grid-template-columns: 1fr;
      }

      .pastors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
      }

      .pastor-image {
        width: 140px;
        height: 140px;
      }

      .blog-grid {
        grid-template-columns: 1fr;
      }

      .blog-featured {
        grid-row: auto;
      }

      .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .gallery-item.wide,
      .gallery-item.tall {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 1;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
      }

      .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
      }

      section {
        padding: 4rem 0;
      }
    }

    @media (max-width: 480px) {
      .hero {
        min-height: 55vh;
        padding-bottom: 20px;
      }

      .hero h1 {
        font-size: 2rem;
      }

      .hero-buttons {
        flex-direction: column;
      }

      .btn {
        width: 100%;
        justify-content: center;
      }

      .pastors-grid {
        grid-template-columns: 1fr;
      }

      .values-grid {
        grid-template-columns: 1fr;
      }
    }

    /* ==================== 3D FLIP CARD GALLERY ==================== */
    .gallery-grid-flip {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
      padding: 15px 0;
    }

    .flip-card {
      background-color: transparent;
      perspective: 1000px;
      height: 340px;
      cursor: pointer;
    }

    .flip-card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      text-align: center;
      transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
      transform-style: preserve-3d;
      box-shadow: 0 10px 30px rgba(52, 29, 20, 0.15);
      border-radius: 12px;
      border: 1px solid rgba(212, 175, 55, 0.15);
    }

    /* Hover and touch flip state */
    .flip-card:hover .flip-card-inner,
    .flip-card.flipped .flip-card-inner {
      transform: rotateY(180deg);
    }

    .flip-card:hover .flip-card-front,
    .flip-card.flipped .flip-card-front {
      pointer-events: none;
    }

    .flip-card:hover .flip-card-back,
    .flip-card.flipped .flip-card-back {
      pointer-events: auto;
    }

    .flip-card-front, .flip-card-back {
      position: absolute;
      width: 100%;
      height: 100%;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      border-radius: 12px;
      overflow: hidden;
    }

    .flip-card-front {
      background-size: cover;
      background-position: center;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }

    .flip-card-front-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(52,29,20,0.85) 100%);
      z-index: 1;
    }

    .flip-card-front-title {
      position: relative;
      z-index: 2;
      color: var(--cream);
      font-family: 'Playfair Display', serif;
      font-size: 1.35rem;
      font-weight: 700;
      padding: 20px;
      text-align: left;
      text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    }

    .flip-card-back {
      background: linear-gradient(135deg, var(--primary-dark) 0%, #2A1610 100%);
      color: var(--cream);
      transform: rotateY(180deg) translateZ(1px);
      padding: 25px 20px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      border: 2px solid var(--gold);
      text-align: center;
      z-index: 2;
    }

    .flip-card-back h3 {
      font-family: 'Playfair Display', serif;
      color: var(--gold);
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 15px;
      line-height: 1.3;
    }

    .flip-card-back-desc {
      width: 100%;
      max-height: 140px;
      overflow-y: auto;
      overflow-x: hidden;
      padding-right: 6px;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: y proximity;
      scroll-behavior: smooth;
      overscroll-behavior-y: contain;
      touch-action: pan-y;
      pointer-events: auto;
    }

    .flip-card-back-desc::-webkit-scrollbar {
      width: 4px;
    }
    .flip-card-back-desc::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.05);
    }
    .flip-card-back-desc::-webkit-scrollbar-thumb {
      background: var(--gold);
      border-radius: 4px;
    }

    .flip-card-back-desc p {
      font-family: 'Lora', serif;
      font-size: 0.95rem;
      color: var(--cream-dark);
      line-height: 1.6;
      margin-bottom: 12px;
      text-align: justify;
      scroll-snap-align: start;
      scroll-snap-stop: normal;
    }

    .flip-card-back-desc p:last-child {
      margin-bottom: 0;
    }

    .btn-ver-foto {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 12px;
      padding: 7px 16px;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--primary-dark);
      background: var(--gold);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 20px;
      text-decoration: none;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      flex-shrink: 0;
    }

    .btn-ver-foto:hover {
      background: var(--cream);
      color: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
    }