    :root {
      --orange:  #E8500A;
      --orange2: #FF6B1A;
      --dark:    #1E1E1E;
      --dark2:   #2A2A2A;
      --green:   #1A7A2E;
      --red:     #CC1111;
      --white:   #FFFFFF;
      --light:   #F7F7F7;
      --muted:   #6B6B6B;
      --border:  #E0E0E0;
      --font:    'Montserrat', sans-serif;
      --max-w:   1100px;
      --radius:  6px;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.7; }
    a    { color: inherit; text-decoration: none; }
    img  { max-width: 100%; display: block; }

    .container  { max-width: var(--max-w); margin-inline: auto; padding-inline: 1.5rem; }
    .section    { padding-block: 5rem; }
    .section--alt { background: var(--light); }

    .eyebrow {
      font-size: .68rem; font-weight: 700;
      letter-spacing: .2em; text-transform: uppercase;
      color: var(--orange); margin-bottom: .6rem;
    }
    .section-title {
      font-size: clamp(1.8rem, 3.5vw, 2.6rem);
      font-weight: 800; color: var(--dark2);
      line-height: 1.15; margin-bottom: 1rem;
    }
    .section-lead { font-size: .95rem; color: var(--muted); max-width: 560px; line-height: 1.8; }
    .divider { width: 40px; height: 3px; background: var(--orange); margin-block: 1.1rem; border-radius: 2px; }

    /* ── NAV ── */
    nav {
      position: fixed; inset: 0 0 auto; z-index: 100;
      background: rgba(30,30,30,.97); backdrop-filter: blur(8px);
    }
    .nav-inner {
      display: flex; align-items: center; justify-content: space-between;
      height: 68px; max-width: var(--max-w);
      margin-inline: auto; padding-inline: 1.5rem;
    }
    .nav-logo img { height: 48px; width: auto; object-fit: contain; }
    .nav-links { display: flex; gap: 2rem; list-style: none; }
    .nav-links a {
      font-size: .78rem; font-weight: 600;
      letter-spacing: .08em; text-transform: uppercase;
      color: rgba(255,255,255,.72); transition: color .2s;
    }
    .nav-links a:hover { color: var(--orange); }
    .nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .25rem; }
    .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .3s, opacity .3s; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    @media (max-width: 720px) {
      .nav-toggle { display: block; }
      .nav-titulo { display: none; }
      .nav-links {
        display: none;
        position: fixed; inset: 68px 0 auto; flex-direction: column;
        background: var(--dark2); padding: 1.5rem; gap: 1.25rem;
      }
      .nav-links.open { display: flex; }
    }

    /* ── HERO ── */
    #inicio {
      position: relative; min-height: 100dvh;
      display: grid; place-items: center; text-align: center;
      padding: 7rem 1.5rem 5rem;
      background:
        linear-gradient(to bottom, rgba(30,30,30,.78) 0%, rgba(30,30,30,.6) 60%, rgba(30,30,30,.85) 100%),
        url('../images/Foto_Historia_2.jpeg') center/cover no-repeat;
    }
    .hero-logo { margin-inline: auto; margin-bottom: 1.8rem; width: min(350px, 60vw); }
    .hero-title {
      font-size: clamp(2rem, 5.5vw, 4rem);
      font-weight: 800; color: var(--white);
      line-height: 1.08; max-width: 820px; margin-inline: auto;
      text-transform: uppercase; letter-spacing: -.01em;
    }
    .hero-title span { color: var(--orange); }
    .hero-verse {
      font-size: .85rem; font-weight: 700;
      color: rgba(255,255,255,.72);
      margin-top: 1.5rem; max-width: 600px;
      margin-inline: auto; font-style: italic; line-height: 1.7;
    }
    .hero-verse strong { color: var(--orange); font-style: normal; font-weight: 600; }
    .hero-lema { margin-inline: auto; margin-top: 2rem; width: min(340px, 70vw); filter: drop-shadow(0 4px 16px rgba(0,0,0,.4)); }
    .hero-cta {
      margin-top: 2.5rem; display: inline-flex; align-items: center; gap: .5rem;
      background: var(--orange); color: var(--white);
      font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
      padding: .9rem 2.2rem; border-radius: var(--radius); transition: background .2s;
    }
    .hero-cta:hover { background: var(--orange2); }
    .scroll-hint {
      position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
      display: flex; flex-direction: column; align-items: center; gap: .4rem;
      color: rgba(255,255,255,.4); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
      animation: bounce 2s infinite;
    }
    @keyframes bounce {
      0%,100% { transform: translateX(-50%) translateY(0); }
      50%      { transform: translateX(-50%) translateY(7px); }
    }

    /* ── NOSOTROS ── */
    .nosotros-tabs {
      display: flex; gap: 0; border-bottom: 2px solid var(--border);
      margin-bottom: 2.5rem; flex-wrap: wrap;
    }
    .tab-btn {
      font-family: var(--font); font-size: .78rem; font-weight: 700;
      letter-spacing: .1em; text-transform: uppercase;
      padding: .85rem 1.75rem; border: none; background: none;
      color: var(--muted); cursor: pointer;
      border-bottom: 3px solid transparent; margin-bottom: -2px;
      transition: color .2s, border-color .2s;
    }
    .tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
    .tab-content { display: none; }
    .tab-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
    .tab-img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); }
    .tab-text h3 { font-size: 1.6rem; font-weight: 800; color: var(--dark2); margin-bottom: .75rem; }
    .tab-text p  { font-size: .92rem; color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
    .doctrine-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-top: .5rem; }
    .doctrine-list li {
        display: grid;
        grid-template-columns: 160px 1fr;
        gap: .5rem;
        align-items: baseline;
        font-size: .88rem;
        color: var(--dark2);
        line-height: 1.6;
        }
        .doctrine-list li::before {
        display: none; /* ocultamos el punto, lo reemplazamos con el grid */
        }
        .doctrine-list li strong {
        color: var(--orange);
        font-weight: 700;
        text-align: right;
        padding-right: .75rem;
        border-right: 2px solid var(--orange);
        }
    .doctrine-list li::before {
      content: ''; flex-shrink: 0;
      width: 8px; height: 8px; border-radius: 50%;
      background: var(--orange); margin-top: .45rem;
    }
    .identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .5rem; }
    .identity-card {
      border: 1px solid var(--border); border-radius: var(--radius);
      padding: 1.1rem; border-top: 3px solid var(--orange);
    }
    .identity-card h4 { font-size: .88rem; font-weight: 700; color: var(--dark2); margin-bottom: .35rem; }
    .identity-card p  { font-size: .8rem; color: var(--muted); line-height: 1.6; }

    @media (max-width: 820px) {
      .tab-content.active { grid-template-columns: 1fr; }
      .tab-img { height: 240px; }
      .identity-grid { grid-template-columns: 1fr; }
    }

    /* ── EVENTOS ── */
    .eventos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; margin-top: 3rem; }
    .evento-card {
      border: 1px solid var(--border); border-radius: var(--radius);
      overflow: hidden; transition: box-shadow .25s, transform .25s;
    }
    .evento-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.1); transform: translateY(-3px); }
    .evento-date { background: var(--dark2); color: var(--white); display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
    .evento-date .day { font-size: 2.4rem; font-weight: 800; color: var(--orange); line-height: 1; }
    .evento-date .meta { font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .8; }
    .evento-body { padding: 1.25rem; }
    .evento-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark2); }
    .evento-body p  { font-size: .83rem; color: var(--muted); margin-top: .45rem; }
    .evento-tag {
      display: inline-block; margin-top: .75rem;
      font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
      color: var(--orange); border: 1.5px solid var(--orange);
      padding: .2rem .7rem; border-radius: 20px;
    }

    /* ── UBICACIONES ── */
    .ubicaciones-layout { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; align-items: start; margin-top: 3rem; }
    .ub-sidebar { display: flex; flex-direction: column; gap: .5rem; }
    .ub-search {
      width: 100%; padding: .65rem 1rem; border: 1.5px solid var(--border);
      border-radius: var(--radius); font-family: var(--font); font-size: .83rem;
      outline: none; margin-bottom: .5rem; transition: border-color .2s;
    }
    .ub-search:focus { border-color: var(--orange); }
    .ub-list { max-height: 480px; overflow-y: auto; display: flex; flex-direction: column; gap: .4rem; padding-right: 4px; }
    .ub-list::-webkit-scrollbar { width: 4px; }
    .ub-list::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }
    .sucursal-item {
      border: 1.5px solid var(--border); border-radius: var(--radius);
      padding: .8rem 1rem; cursor: pointer; transition: border-color .2s, background .2s;
    }
    .sucursal-item:hover, .sucursal-item.active { border-color: var(--orange); background: #fff5f0; }
    .sucursal-item h4 { font-size: .85rem; font-weight: 700; color: var(--dark2); }
    .sucursal-item p  { font-size: .75rem; color: var(--muted); margin-top: .15rem; }
    .sucursal-item .horario { font-size: .72rem; color: var(--orange); font-weight: 600; margin-top: .3rem; }
    .ub-count { font-size: .75rem; color: var(--muted); margin-bottom: .5rem; font-weight: 500; }

    .map-container { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 520px; background: var(--light); position: sticky; top: 80px; }
    .map-container iframe { width: 100%; height: 100%; border: none; }

    @media (max-width: 820px) {
      .ubicaciones-layout { grid-template-columns: 1fr; }
      .ub-list { max-height: 260px; }
      .map-container { height: 320px; position: static; }
    }

    /* ── CONTACTO ── */
    .contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
    .contacto-info h3 { font-size: 1.4rem; font-weight: 800; color: var(--dark2); margin-bottom: 1.5rem; }
    .info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
    .info-icon { width: 38px; height: 38px; background: var(--orange); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: var(--white); font-size: 1rem; }
    .info-item p { font-size: .88rem; color: var(--muted); line-height: 1.6; }
    .info-item strong { color: var(--dark2); display: block; margin-bottom: .1rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
    .redes { display: flex; gap: .75rem; margin-top: 2rem; }
    .red-btn { width: 40px; height: 40px; border: 1.5px solid var(--border); border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: .85rem; font-weight: 700; transition: border-color .2s, color .2s, background .2s; }
    .red-btn:hover { border-color: var(--orange); color: var(--white); background: var(--orange); }
    .form-group { margin-bottom: 1.1rem; }
    .form-group label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dark2); margin-bottom: .4rem; }
    .form-group input, .form-group textarea, .form-group select { width: 100%; padding: .72rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: .88rem; color: var(--dark); background: var(--white); outline: none; transition: border-color .2s; }
    .form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--orange); }
    .form-group textarea { resize: vertical; min-height: 120px; }
    .btn-submit { width: 100%; padding: .9rem; background: var(--orange); color: var(--white); border: none; border-radius: var(--radius); font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
    .btn-submit:hover { background: var(--orange2); }
    @media (max-width: 820px) { .contacto-grid { grid-template-columns: 1fr; } }

    /* ── FOOTER ── */
    footer { background: var(--dark2); color: rgba(255,255,255,.55); padding-block: 3rem; }
    .footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
    .footer-logos {  display: flex;  flex-direction: row;  align-items: center;  justify-content: center;  gap: 2rem;}
    .footer-logo { height: 76px; width: auto; }
    .footer-lema { height: 100px; width: auto; filter: brightness(0) invert(1) opacity(.5); }
    .footer-sep { width: 40px; height: 2px; background: var(--orange); border-radius: 2px; opacity: .6; }
    footer p { font-size: .78rem; }
    .footer-links { display: flex; justify-content: center; gap: 1.5rem; list-style: none; }
    .footer-links a { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: color .2s; }
    .footer-links a:hover { color: var(--orange); }

    .carrusel {
      position: relative;
      width: 100%;
      border-radius: var(--radius);
      overflow: hidden;
    }
    .car-track-wrap { overflow: hidden; border-radius: var(--radius); }
    .car-track {
      display: flex;
      transition: transform .4s ease;
    }
    .car-track img {
      min-width: 100%;
      height: 360px;
      object-fit: cover;
      flex-shrink: 0;
    }
    .car-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      background: rgba(30,30,30,.55);
      color: #fff;
      border: none;
      font-size: 2rem;
      line-height: 1;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      cursor: pointer;
      transition: background .2s;
      display: grid;
      place-items: center;
    }
    .car-btn:hover { background: var(--orange); }
    .car-prev { left: .75rem; }
    .car-next { right: .75rem; }
    .car-dots {
      display: flex;
      justify-content: center;
      gap: .4rem;
      padding: .6rem 0 .2rem;
      background: rgba(0,0,0,.25);
      position: absolute;
      bottom: 0;
      width: 100%;
    }
    .car-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: rgba(255,255,255,.5);
      border: none;
      cursor: pointer;
      padding: 0;
      transition: background .2s;
    }
    .car-dot.active { background: var(--orange); }
    /* ── FOOTER SOCIAL ── */
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.footer-social-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .04em;
}
.footer-social-sub {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
}
.footer-social-btns {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .25rem;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border-radius: 25px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.2);
  transition: background .2s, border-color .2s, transform .2s;
}
.footer-social-btn:hover { transform: translateY(-2px); border-color: transparent; }
.footer-social-btn.facebook:hover { background: #1877F2; }
.footer-social-btn.youtube:hover  { background: #FF0000; }
.footer-social-btn.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-social-btn.whatsapp:hover { background: #25D366; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav-titulo {
  font-size: .75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  max-width: 220px;
  letter-spacing: .02em;
}



.btn-historia {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.25rem;
  padding: .75rem 1.75rem;
  background: var(--orange);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .2s, transform .2s;
}
.btn-historia:hover {
  background: var(--orange2);
  transform: translateX(3px);
}

/* ── HISTORIA ── */
.historia-bloque {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}
.historia-bloque.inverso {
  direction: rtl; /* invierte el orden columnas */
}
.historia-bloque.inverso > * {
  direction: ltr; /* restaura dirección del texto */
}
.historia-foto img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 380px;
}
.foto-caption {
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
  margin-top: .5rem;
  font-style: italic;
}

@media (max-width: 820px) {
  .historia-bloque,
  .historia-bloque.inverso { grid-template-columns: 1fr; direction: ltr; }
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}
/* ── Hero background fade in ── */
#inicio {
  animation: heroFadeIn 1.5s ease-in forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
