:root {
      --rojo: #C0212B;
      --azul: #1A3E72;
      --azul-claro: #2A5BA8;
      --dorado: #C9A84C;
      --blanco: #F9F7F3;
      --negro: #111111;
      --gris: #888;
    }

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

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Lato', sans-serif;
      background: var(--blanco);
      color: var(--negro);
      overflow-x: hidden;
    }

    /* ── NAV ── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 5%;
      background: rgba(10,10,30,0.92);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(201,168,76,0.2);
    }
    .nav-logo {
      display: flex; align-items: center; gap: 12px;
      text-decoration: none;
    }
    .nav-logo img {
      height: 46px; width: auto; border-radius: 50%;
      background: white; padding: 2px;
    }
    .nav-brand {
      display: flex; flex-direction: column;
    }
    .nav-brand span:first-child {
      font-family: 'Cinzel', serif;
      font-size: 0.7rem; letter-spacing: 0.18em;
      color: var(--dorado); text-transform: uppercase;
    }
    .nav-brand span:last-child {
      font-family: 'Cinzel', serif;
      font-size: 0.85rem; letter-spacing: 0.06em;
      color: white; font-weight: 700;
    }
    .nav-links {
      display: flex; gap: 32px; list-style: none;
    }
    .nav-links a {
      color: rgba(255,255,255,0.75);
      text-decoration: none;
      font-size: 0.8rem; letter-spacing: 0.12em;
      text-transform: uppercase;
      transition: color 0.25s;
      font-weight: 700;
    }
    .nav-links a:hover { color: var(--dorado); }

    /* ── HERO ── */
    #inicio {
      min-height: 100vh;
      background: linear-gradient(160deg, #0a0a1e 0%, #12264a 50%, #2C0A0A 100%);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      text-align: center; padding: 120px 5% 80px;
      position: relative; overflow: hidden;
    }
    #inicio::before {
      content: '';
      position: absolute; inset: 0;
      background:
        radial-gradient(circle at 20% 30%, rgba(192,33,43,0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26,62,114,0.25) 0%, transparent 50%);
    }
    .stars {
      position: absolute; inset: 0; overflow: hidden;
    }
    .star {
      position: absolute;
      background: white; border-radius: 50%;
      animation: twinkle 3s infinite alternate;
    }
    @keyframes twinkle {
      from { opacity: 0.2; transform: scale(1); }
      to   { opacity: 0.9; transform: scale(1.4); }
    }
    .hero-logo {
      position: relative; z-index: 2;
      width: 130px; height: 130px;
      border-radius: 50%;
      background: white;
      padding: 12px;
      box-shadow: 0 0 60px rgba(201,168,76,0.4), 0 0 0 2px var(--dorado);
      margin-bottom: 36px;
      animation: floatLogo 4s ease-in-out infinite;
    }
    @keyframes floatLogo {
      0%, 100% { transform: translateY(0px); }
      50%       { transform: translateY(-12px); }
    }
    .hero-eyebrow {
      position: relative; z-index: 2;
      font-size: 0.75rem; letter-spacing: 0.3em;
      text-transform: uppercase; color: var(--dorado);
      font-weight: 700; margin-bottom: 16px;
    }
    .hero-title {
      position: relative; z-index: 2;
      font-family: 'Cinzel', serif;
      font-size: clamp(2rem, 6vw, 4.5rem);
      font-weight: 900;
      color: white;
      line-height: 1.1;
      margin-bottom: 12px;
      text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    }
    .hero-title span { color: var(--rojo); }
    .hero-sub {
      position: relative; z-index: 2;
      font-family: 'Cinzel', serif;
      font-size: clamp(1rem, 3vw, 1.8rem);
      color: var(--dorado);
      letter-spacing: 0.1em;
      margin-bottom: 28px;
    }
    .hero-verse {
      position: relative; z-index: 2;
      font-style: italic; color: rgba(255,255,255,0.65);
      font-size: 1rem; max-width: 520px;
      line-height: 1.7; margin-bottom: 48px;
    }
    .hero-ctas {
      position: relative; z-index: 2;
      display: flex; gap: 18px; flex-wrap: wrap;
      justify-content: center;
    }
    .btn-primary {
      padding: 14px 36px;
      background: linear-gradient(135deg, var(--rojo), #8B1520);
      color: white; text-decoration: none;
      font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase; font-size: 0.8rem;
      border-radius: 3px;
      box-shadow: 0 6px 25px rgba(192,33,43,0.4);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 35px rgba(192,33,43,0.5);
    }
    .btn-secondary {
      padding: 14px 36px;
      border: 1px solid var(--dorado);
      color: var(--dorado); text-decoration: none;
      font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase; font-size: 0.8rem;
      border-radius: 3px;
      transition: background 0.2s, color 0.2s;
    }
    .btn-secondary:hover {
      background: var(--dorado); color: #111;
    }
    .scroll-hint {
      position: absolute; bottom: 28px; left: 50%;
      transform: translateX(-50%);
      z-index: 2; color: rgba(255,255,255,0.4);
      font-size: 0.7rem; letter-spacing: 0.2em;
      text-transform: uppercase;
      display: flex; flex-direction: column; align-items: center; gap: 8px;
      animation: bounce 2s ease-in-out infinite;
    }
    .scroll-hint::after {
      content: '↓'; font-size: 1.2rem;
      color: var(--dorado);
    }
    @keyframes bounce {
      0%, 100% { transform: translateX(-50%) translateY(0); }
      50%       { transform: translateX(-50%) translateY(8px); }
    }

    /* ── SECTIONS COMMON ── */
    section { padding: 96px 5%; }
    .section-label {
      font-size: 0.7rem; letter-spacing: 0.3em;
      text-transform: uppercase; color: var(--dorado);
      font-weight: 700; margin-bottom: 12px;
    }
    .section-title {
      font-family: 'Cinzel', serif;
      font-size: clamp(1.6rem, 4vw, 2.8rem);
      font-weight: 700; line-height: 1.2;
      margin-bottom: 20px;
    }
    .divider {
      width: 56px; height: 3px;
      background: linear-gradient(90deg, var(--rojo), var(--azul));
      margin-bottom: 32px;
    }

    /* ── NOSOTROS ── */
    #nosotros {
      background: white;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px; align-items: center;
    }
    .nosotros-img {
      position: relative;
    }
    .nosotros-img-inner {
      width: 100%;
      aspect-ratio: 4/3;
      background: linear-gradient(135deg, var(--azul), var(--rojo));
      border-radius: 4px;
      display: flex; align-items: center; justify-content: center;
      overflow: hidden;
    }
    .nosotros-img-inner img {
      width: 60%; filter: brightness(0) invert(1) opacity(0.9);
    }
    .nosotros-badge {
      position: absolute; bottom: -20px; right: -20px;
      width: 110px; height: 110px;
      background: var(--dorado);
      border-radius: 50%;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      font-family: 'Cinzel', serif;
      box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    }
    .nosotros-badge span:first-child {
      font-size: 1.8rem; font-weight: 900; color: #111; line-height: 1;
    }
    .nosotros-badge span:last-child {
      font-size: 0.6rem; letter-spacing: 0.1em;
      text-transform: uppercase; color: #333;
    }
    .nosotros-text p {
      color: #444; line-height: 1.9; font-size: 1rem; margin-bottom: 18px;
    }
    .nosotros-pilares {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 16px; margin-top: 28px;
    }
    .pilar {
      display: flex; align-items: flex-start; gap: 12px;
    }
    .pilar-icon {
      width: 36px; height: 36px; flex-shrink: 0;
      border-radius: 6px;
      background: linear-gradient(135deg, var(--rojo), var(--azul));
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem; color: white;
    }
    .pilar-label {
      font-family: 'Cinzel', serif;
      font-size: 0.85rem; font-weight: 700;
      color: var(--azul); margin-bottom: 2px;
    }
    .pilar-desc {
      font-size: 0.78rem; color: #666; line-height: 1.5;
    }

    /* ── SERVICIOS ── */
    #servicios {
      background: #0d0d1e;
      color: white;
      text-align: center;
    }
    #servicios .section-title { color: white; }
    .servicios-intro {
      color: rgba(255,255,255,0.6);
      max-width: 580px; margin: 0 auto 56px;
      line-height: 1.8;
    }
    .servicios-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 24px; max-width: 1000px; margin: 0 auto;
    }
    .servicio-card {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      border-top: 3px solid var(--rojo);
      border-radius: 4px;
      padding: 36px 24px;
      transition: transform 0.25s, background 0.25s;
    }
    .servicio-card:nth-child(even) { border-top-color: var(--dorado); }
    .servicio-card:nth-child(3n)   { border-top-color: var(--azul-claro); }
    .servicio-card:hover {
      transform: translateY(-6px);
      background: rgba(255,255,255,0.07);
    }
    .servicio-day {
      font-family: 'Cinzel', serif;
      font-size: 1.05rem; font-weight: 700;
      color: var(--dorado); margin-bottom: 4px;
    }
    .servicio-time {
      font-size: 1.6rem; font-weight: 900;
      color: white; margin-bottom: 8px;
    }
    .servicio-name {
      font-size: 0.88rem; color: rgba(255,255,255,0.6);
      letter-spacing: 0.08em; text-transform: uppercase;
    }

    /* ── MINISTERIOS ── */
    #ministerios {
      background: var(--blanco);
    }
    .ministerios-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 28px; margin-top: 12px;
    }
    .ministerio-card {
      border-radius: 6px; overflow: hidden;
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
      transition: box-shadow 0.25s, transform 0.25s;
    }
    .ministerio-card:hover {
      box-shadow: 0 10px 40px rgba(0,0,0,0.14);
      transform: translateY(-4px);
    }
    .ministerio-header {
      height: 90px;
      display: flex; align-items: center; justify-content: center;
      font-size: 2.5rem;
    }
    .ministerio-body {
      padding: 22px 20px;
      background: white;
    }
    .ministerio-name {
      font-family: 'Cinzel', serif;
      font-size: 0.95rem; font-weight: 700;
      color: var(--azul); margin-bottom: 8px;
    }
    .ministerio-desc {
      font-size: 0.83rem; color: #666; line-height: 1.7;
    }

    /* ── VERSÍCULO ── */
    #versiculo {
      background: linear-gradient(135deg, var(--azul) 0%, #0a1a3a 50%, #2C0A0A 100%);
      text-align: center; padding: 96px 5%;
      position: relative; overflow: hidden;
    }
    #versiculo::before {
      content: '❝';
      position: absolute;
      font-size: 22rem; color: rgba(255,255,255,0.03);
      top: -60px; left: 5%;
      font-family: Georgia, serif;
    }
    .verse-text {
      font-family: 'Cinzel', serif;
      font-size: clamp(1.3rem, 3vw, 2rem);
      color: white; line-height: 1.6;
      max-width: 700px; margin: 0 auto 20px;
      position: relative; z-index: 1;
      font-style: italic;
    }
    .verse-ref {
      color: var(--dorado);
      font-size: 0.9rem; letter-spacing: 0.15em;
      text-transform: uppercase; font-weight: 700;
    }

    /* ── CONTACTO ── */
    #contacto {
      background: white;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px; align-items: start;
    }
    .contact-item {
      display: flex; gap: 16px; align-items: flex-start;
      margin-bottom: 28px;
    }
    .contact-icon {
      width: 46px; height: 46px; flex-shrink: 0;
      background: linear-gradient(135deg, var(--rojo), var(--azul));
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem; color: white;
    }
    .contact-label {
      font-size: 0.72rem; letter-spacing: 0.18em;
      text-transform: uppercase; color: var(--gris);
      font-weight: 700; margin-bottom: 4px;
    }
    .contact-value {
      font-size: 0.95rem; color: #222; line-height: 1.6;
    }
    .contact-value a {
      color: var(--azul); text-decoration: none;
      transition: color 0.2s;
    }
    .contact-value a:hover { color: var(--rojo); }
    .contact-form { display: flex; flex-direction: column; gap: 16px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .contact-form input,
    .contact-form textarea {
      width: 100%; padding: 14px 18px;
      border: 1px solid #ddd; border-radius: 4px;
      font-family: 'Lato', sans-serif; font-size: 0.9rem;
      color: #222; background: #fafafa;
      transition: border-color 0.2s, box-shadow 0.2s;
      outline: none;
    }
    .contact-form input:focus,
    .contact-form textarea:focus {
      border-color: var(--azul);
      box-shadow: 0 0 0 3px rgba(26,62,114,0.1);
    }
    .contact-form textarea { min-height: 130px; resize: vertical; }
    .btn-submit {
      padding: 14px 36px;
      background: linear-gradient(135deg, var(--azul), var(--rojo));
      color: white; border: none; cursor: pointer;
      font-family: 'Lato', sans-serif;
      font-weight: 700; font-size: 0.85rem;
      letter-spacing: 0.12em; text-transform: uppercase;
      border-radius: 3px;
      transition: opacity 0.2s, transform 0.2s;
    }
    .btn-submit:hover { opacity: 0.9; transform: translateY(-2px); }

    /* ── INSTAGRAM ── */ */
    #instagram {
      background: #fafafa; text-align: center; padding: 80px 5%;
    }
    .ig-link {
      display: inline-flex; align-items: center; gap: 12px;
      margin-top: 28px;
      background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
      color: white; text-decoration: none;
      padding: 16px 38px; border-radius: 50px;
      font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em;
      box-shadow: 0 6px 30px rgba(220,39,67,0.35);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .ig-link:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 40px rgba(220,39,67,0.45);
    }
    .ig-icon { font-size: 1.4rem; }
    .ig-subtitle {
      color: #666; margin-bottom: 8px; font-size: 0.95rem; line-height: 1.7;
    }

    /* ── FOOTER ── */
    footer {
      background: #060610; color: rgba(255,255,255,0.5);
      text-align: center; padding: 48px 5%;
    }
    .footer-logo {
      display: flex; align-items: center; justify-content: center; gap: 14px;
      margin-bottom: 20px;
    }
    .footer-logo img {
      height: 50px; border-radius: 50%;
      background: white; padding: 3px;
    }
    .footer-logo-text { text-align: left; }
    .footer-logo-text .l1 {
      font-family: 'Cinzel', serif;
      font-size: 0.65rem; letter-spacing: 0.2em;
      color: var(--dorado); text-transform: uppercase;
    }
    .footer-logo-text .l2 {
      font-family: 'Cinzel', serif;
      font-size: 0.9rem; color: white; font-weight: 700;
    }
    .footer-sep {
      width: 40px; height: 1px;
      background: rgba(201,168,76,0.3);
      margin: 20px auto;
    }
    .footer-copy { font-size: 0.78rem; letter-spacing: 0.06em; }

    /* ── CARRUSEL ── */
    #galeria {
      background: #0a0a1a;
      text-align: center;
      padding: 96px 0 80px;
      overflow: hidden;
    }
    #galeria .section-header {
      padding: 0 5%;
      margin-bottom: 48px;
    }

    .carousel-wrapper {
      position: relative;
      width: 100%;
      max-width: 900px;
      margin: 0 auto;
      padding: 0 5%;
    }

    /* Stage */
    #carouselStage {
      position: relative;
      width: 100%;
      aspect-ratio: 16/9;
      border-radius: 10px;
      overflow: hidden;
      background: #111;
      box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,168,76,0.15);
      cursor: grab;
    }
    #carouselStage:active { cursor: grabbing; }

    .carousel-slide {
      position: absolute; inset: 0;
      opacity: 0;
      transform: scale(1.04);
      transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
      display: flex; align-items: center; justify-content: center;
    }
    .carousel-slide.active {
      opacity: 1;
      transform: scale(1);
    }
    .carousel-slide img {
      width: 100%; height: 100%;
      object-fit: cover;
      display: block;
    }

    /* Placeholder slides */
    .slide-placeholder {
      width: 100%; height: 100%;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 14px;
    }
    .ph-icon { font-size: 3.5rem; opacity: 0.5; }
    .ph-text {
      font-family: 'Cinzel', serif;
      font-size: 0.9rem; letter-spacing: 0.15em;
      color: rgba(255,255,255,0.4);
      text-transform: uppercase;
    }

    /* Gradient overlay */
    .carousel-overlay {
      position: absolute; inset: 0; z-index: 2;
      background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(0,0,0,0.7) 100%
      );
      pointer-events: none;
    }

    /* Caption */
    .carousel-caption {
      position: absolute; bottom: 20px; left: 22px; right: 80px;
      z-index: 3;
      font-family: 'Cinzel', serif;
      font-size: 0.9rem; color: white;
      letter-spacing: 0.08em;
      opacity: 0;
      transform: translateY(6px);
      transition: opacity 0.4s, transform 0.4s;
      text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    }
    .carousel-caption.has-label {
      opacity: 1; transform: translateY(0);
    }

    /* Counter */
    .carousel-counter {
      position: absolute; bottom: 20px; right: 20px;
      z-index: 3;
      font-family: 'Cinzel', serif;
      font-size: 0.75rem; color: rgba(255,255,255,0.6);
      letter-spacing: 0.1em;
    }

    /* Progress bar */
    .carousel-progress-bar {
      position: absolute; top: 0; left: 0;
      height: 3px; width: 0%;
      background: linear-gradient(90deg, var(--rojo), var(--dorado));
      z-index: 4;
      border-radius: 0 2px 2px 0;
    }

    /* Arrows */
    .carousel-arrow {
      position: absolute; top: 50%; z-index: 5;
      transform: translateY(-50%);
      width: 44px; height: 44px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.2);
      background: rgba(0,0,0,0.5);
      backdrop-filter: blur(8px);
      color: white; font-size: 1.1rem;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.2s, border-color 0.2s, transform 0.2s;
    }
    .carousel-arrow:hover {
      background: var(--rojo);
      border-color: var(--rojo);
      transform: translateY(-50%) scale(1.1);
    }
    .carousel-arrow.prev { left: -22px; }
    .carousel-arrow.next { right: -22px; }

    /* Dots */
    .carousel-dots {
      display: flex; gap: 8px;
      justify-content: center;
      margin: 20px 0 0;
    }
    .carousel-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: rgba(255,255,255,0.2);
      border: none; cursor: pointer;
      transition: background 0.3s, transform 0.3s, width 0.3s;
      padding: 0;
    }
    .carousel-dot.active {
      background: var(--dorado);
      width: 24px; border-radius: 4px;
      transform: none;
    }

    /* Thumbnails */
    .carousel-thumbs-wrap {
      overflow-x: auto;
      padding: 16px 5% 4px;
      scrollbar-width: none;
    }
    .carousel-thumbs-wrap::-webkit-scrollbar { display: none; }
    #carouselThumbs {
      display: flex; gap: 10px;
      width: max-content;
      margin: 0 auto;
    }
    .carousel-thumb {
      width: 72px; height: 48px;
      border-radius: 5px;
      overflow: hidden;
      cursor: pointer;
      border: 2px solid transparent;
      transition: border-color 0.25s, transform 0.25s, opacity 0.25s;
      background: #222;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .carousel-thumb img {
      width: 100%; height: 100%; object-fit: cover;
    }
    .carousel-thumb .thumb-ph {
      font-size: 1.4rem; opacity: 0.5;
    }
    .carousel-thumb:hover { opacity: 0.85; transform: scale(1.05); }
    .carousel-thumb.active {
      border-color: var(--dorado);
      transform: scale(1.08);
      opacity: 1;
    }

    /* ── HAMBURGER (mobile) ── */
    .hamburger {
      display: none; flex-direction: column; gap: 5px;
      cursor: pointer; background: none; border: none;
    }
    .hamburger span {
      display: block; width: 24px; height: 2px; background: white;
      transition: 0.3s;
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      #nosotros, #contacto {
        grid-template-columns: 1fr;
        gap: 48px;
      }
      .nosotros-badge { right: 0; bottom: -16px; }
      .form-row { grid-template-columns: 1fr; }
      .nav-links { display: none; }
      .hamburger { display: flex; }
    }
    @media (max-width: 600px) {
      .hero-ctas { flex-direction: column; align-items: center; }
      section { padding: 72px 6%; }
    }