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

@font-face{
  font-family:'Lato';
  src:local('Lato');
  font-display:swap;
}

@font-face{
  font-family:'Playfair Display';
  src:local('Playfair Display');
  font-display:swap;
}

:root{
  --acc:#7F1D36;
  --acc-h:#9B2244;
  --acc-l:#FEF1F4;
  --bg:#f0ece7;
  --bg2:#f7f4f1;
  --white:#fff;
  --txt:#1a1410;
  --txt2:#6b5f55;
  --txt3:#a8998c;
  --bdr:rgba(60,30,10,.10);
  --bdr2:rgba(60,30,10,.18);
  --green-bg:#EAF3DE;--green-txt:#3B6D11;
  --amber-bg:#FAEEDA;--amber-txt:#854F0B;
  --blue-bg:#E6F1FB;--blue-txt:#185FA5;
}

html{scroll-behavior:smooth}
body{font-family:'Lato',sans-serif;background:var(--bg);color:var(--txt);line-height:1.6;overflow-x:hidden}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:#fff;color:var(--txt);padding:.75rem 1rem;border-radius:0 0 8px 0;
  border:1px solid var(--bdr2)
}
.skip-link:focus{left:0}
a:focus-visible,button:focus-visible{outline:3px solid var(--acc);outline-offset:3px}

/* ── NAV ── */
nav{
  position:sticky;top:0;z-index:100;
  background:rgba(240,236,231,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--bdr);
  padding:0 2rem;
  display:flex;align-items:center;justify-content:space-between;
  height:60px;
}
.nav-brand{display:flex;align-items:center;gap:10px}
.nav-logo{width:34px;height:34px;background:transparent;display:flex;align-items:center;justify-content:center;}
.nav-brand h1{font-size:14px;font-weight:700;letter-spacing:-.2px}
.nav-brand span{font-size:12px;color:var(--txt2)}
.nav-links{display:flex;gap:1.5rem;align-items:center}
.nav-links a{font-size:13px;color:var(--txt2);text-decoration:none;font-weight:700;transition:color .15s}
.nav-links a:hover{color:var(--acc)}
.nav-cta{
  padding:7px 18px;border-radius:6px;
  background:var(--acc);color:#fff !important;
  font-size:13px;font-weight:700;
  text-decoration:none;transition:background .15s;
}
.nav-cta:hover{color:#fff !important;background:var(--acc-h)}

/* ── HERO ── */
.hero{
  min-height:calc(100vh - 60px);
  display:grid;grid-template-columns:1fr 1fr;
  align-items:center;gap:4rem;
  padding:5rem 4rem 5rem;
  max-width:1200px;margin:0 auto;
}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--acc);margin-bottom:1.25rem;
}
.hero-eyebrow::before{
  content:'';display:block;width:28px;height:2px;background:var(--acc);
}
.hero h2{
  font-family:'Playfair Display',serif;
  font-size:clamp(2.2rem,4vw,3.4rem);
  font-weight:700;line-height:1.12;
  color:var(--txt);margin-bottom:1.25rem;
  letter-spacing:-.5px;
}
.hero h2 em{
  font-style:italic;color:var(--acc);
}
.hero-desc{
  font-size:16px;color:var(--txt2);line-height:1.75;
  max-width:440px;margin-bottom:2.25rem;
}
.hero-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.btn-primary{
  padding:12px 26px;border-radius:8px;
  background:var(--acc);color:#fff;
  font-size:14px;font-weight:700;
  text-decoration:none;transition:background .15s;
  display:inline-flex;align-items:center;gap:8px;
}
.btn-primary:hover{background:var(--acc-h)}
.btn-ghost{
  padding:12px 22px;border-radius:8px;
  border:1px solid var(--bdr2);
  color:var(--txt);font-size:14px;font-weight:700;
  text-decoration:none;transition:background .15s;
  display:inline-flex;align-items:center;gap:8px;
}
.btn-ghost:hover{background:var(--bg2)}
.hero-note{font-size:12px;color:var(--txt3);margin-top:1rem}

/* ── HERO VISUAL ── */
.hero-visual{
  display:block;
  animation:fadeUp .8s ease both .2s;
}
@keyframes fadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.hero-card{
  background:var(--white);border:1px solid var(--bdr);
  border-radius:12px;padding:1.1rem 1.3rem;
}
.hero-card-title{
  font-size:11px;font-weight:700;color:var(--txt2);
  text-transform:uppercase;letter-spacing:.05em;margin-bottom:.8rem;
  display:flex;align-items:center;justify-content:space-between;
}
.hc-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.hc-m{background:var(--bg2);border-radius:8px;padding:.7rem .8rem;text-align:center}
.hc-m .v{font-size:20px;font-weight:900;color:var(--txt);display:block;line-height:1}
.hc-m .l{font-size:10px;color:var(--txt2);margin-top:4px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.hc-rows .row{
  display:flex;align-items:center;gap:10px;
  padding:7px 0;border-bottom:1px solid var(--bdr);font-size:13px;
}
.hc-rows .row:last-child{border-bottom:none}
.hc-av{
  width:28px;height:28px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:10px;font-weight:700;flex-shrink:0;
}
.av-r{background:#FBEAF0;color:#993556}
.av-b{background:#E6F1FB;color:#185FA5}
.av-t{background:#E1F5EE;color:#0F6E56}
.av-a{background:#FAEEDA;color:#854F0B}
.hc-rows .info{flex:1}
.hc-rows .info strong{display:block;font-weight:700;line-height:1.3}
.hc-rows .info span{font-size:11px;color:var(--txt2)}
.pill{
  display:inline-block;padding:2px 8px;
  border-radius:999px;font-size:10px;font-weight:700;
}
.pill-g{background:var(--green-bg);color:var(--green-txt)}
.pill-a{background:var(--amber-bg);color:var(--amber-txt)}
.pill-b{background:var(--blue-bg);color:var(--blue-txt)}
.pres-row{display:flex;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid var(--bdr);font-size:12px}
.pres-row:last-child{border-bottom:none}
.pres-row .pn{flex:1}
.pres-bar{flex:1;height:4px;background:var(--bdr);border-radius:2px;overflow:hidden}
.pres-bar .fill{height:100%;background:var(--acc);border-radius:2px}

/* ── HERO LEFT ANIMATION ── */
.hero-left{animation:fadeUp .7s ease both}

/* ── SECTIONS ── */
section{padding:6rem 2rem}
.section-inner{max-width:1100px;margin:0 auto}
.section-label{
  font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--acc);margin-bottom:.75rem;display:flex;align-items:center;gap:8px;
}
.section-label::before{content:'';display:block;width:20px;height:2px;background:var(--acc)}
.section-title{
  font-family:'Playfair Display',serif;
  font-size:clamp(1.75rem,3vw,2.6rem);
  font-weight:700;line-height:1.18;
  letter-spacing:-.3px;margin-bottom:1rem;
}
.section-desc{font-size:15px;color:var(--txt2);max-width:520px;line-height:1.75}

/* ── STATS ── */
.stats-section{background:var(--acc)}
.stats-inner{
  max-width:1100px;margin:0 auto;
  padding:4rem 2rem;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:0;
}
.stat-item{
  padding:1.5rem 2rem;
  border-right:1px solid rgba(255,255,255,.15);
  text-align:center;
}
.stat-item:last-child{border-right:none}
.stat-item .num{
  font-family:'Playfair Display',serif;
  font-size:3rem;font-weight:700;color:#fff;
  display:block;line-height:1;margin-bottom:.35rem;
}
.stat-item .lbl{font-size:12px;color:rgba(255,255,255,.7);font-weight:700;text-transform:uppercase;letter-spacing:.06em}

/* ── FEATURES ── */
.features-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:1.5rem;margin-top:3rem;
}
.feature-card{
  background:var(--white);border:1px solid var(--bdr);
  border-radius:12px;padding:1.5rem;
  transition:border-color .2s;
}
.feature-card:hover{border-color:var(--bdr2)}
.feature-icon{
  width:40px;height:40px;border-radius:10px;
  background:var(--acc-l);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:1rem;
}
.feature-icon svg{width:20px;height:20px;stroke:var(--acc);fill:none;stroke-width:1.8}
.feature-card h3{font-size:15px;font-weight:700;margin-bottom:.5rem}
.feature-card p{font-size:13px;color:var(--txt2);line-height:1.65}

/* ── HIERARCHY ── */
.hierarchy-section{background:var(--bg2)}
.hierarchy-wrap{
  display:grid;grid-template-columns:1fr 1fr;
  gap:5rem;align-items:center;margin-top:3rem;
}
.hierarchy-levels{display:flex;flex-direction:column;gap:0}
.level{
  display:flex;align-items:stretch;gap:0;
}
.level-line{
  width:32px;display:flex;flex-direction:column;align-items:center;flex-shrink:0;
}
.level-dot{
  width:12px;height:12px;border-radius:50%;
  background:var(--acc);flex-shrink:0;margin-top:18px;
}
.level-connector{flex:1;width:1px;background:var(--bdr2);margin:.3rem 0}
.level:last-child .level-connector{display:none}
.level-content{
  flex:1;background:var(--white);border:1px solid var(--bdr);
  border-radius:10px;padding:.9rem 1.1rem;margin-bottom:10px;
  transition:border-color .2s,transform .2s;cursor:default;
}
.level-content:hover{border-color:rgba(127,29,54,.3);transform:translateX(4px)}
.level-content h4{font-size:13px;font-weight:700;margin-bottom:2px}
.level-content p{font-size:12px;color:var(--txt2)}
.level-content .badge{
  display:inline-block;padding:1px 7px;border-radius:999px;
  font-size:10px;font-weight:700;float:right;margin-top:1px;
}
.hierarchy-text h3{
  font-family:'Playfair Display',serif;
  font-size:1.75rem;font-weight:700;margin-bottom:1rem;
}
.hierarchy-text p{font-size:14px;color:var(--txt2);line-height:1.75;margin-bottom:1rem}
.hierarchy-text ul{list-style:none;display:flex;flex-direction:column;gap:.6rem}
.hierarchy-text li{
  display:flex;align-items:flex-start;gap:10px;
  font-size:13px;color:var(--txt2);
}
.hierarchy-text li::before{
  content:'';display:block;width:6px;height:6px;
  border-radius:50%;background:var(--acc);
  flex-shrink:0;margin-top:6px;
}

/* ── PERFIS ── */
.perfis-grid{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  gap:.85rem;margin-top:3rem;align-items:stretch;
}
.perfil-card{
  border-radius:14px;padding:1.1rem;
  border:1px solid transparent;
  transition:transform .2s,box-shadow .2s;
  display:flex;flex-direction:column;min-height:100%;
}
.perfil-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.08)}
.perfil-card.nacional{background:#1a1410;color:#fff}
.perfil-card.regional{background:var(--blue-bg);border-color:var(--bdr)}
.perfil-card.diocesano{
  background:linear-gradient(145deg,#FAEEDA 0%,#F4DFC0 100%);
  border-color:rgba(133,79,11,.24)
}
.perfil-card.setorial{background:#E1F5EE;border-color:var(--bdr)}
.perfil-card.paroquia{background:var(--acc-l);border-color:var(--bdr)}
.perfil-tag{
  display:inline-flex;align-items:center;gap:5px;
  padding:2px 10px;border-radius:999px;
  font-size:10px;font-weight:700;margin-bottom:1rem;
}
.perfil-card.nacional .perfil-tag{background:rgba(255,255,255,.15);color:rgba(255,255,255,.9)}
.perfil-card.regional .perfil-tag{background:var(--blue-txt);color:#fff}
.perfil-card.diocesano .perfil-tag{background:var(--amber-txt);color:#fff}
.perfil-card.setorial .perfil-tag{background:#0F6E56;color:#fff}
.perfil-card.paroquia .perfil-tag{background:var(--acc);color:#fff}
.perfil-card h3{font-size:14px;font-weight:700;margin-bottom:.4rem;line-height:1.25}
.perfil-card.nacional h3{color:#fff}
.perfil-card.diocesano h3{color:#5E3907}
.perfil-card p{font-size:11px;line-height:1.55}
.perfil-card.nacional p{color:rgba(255,255,255,.65)}
.perfil-card:not(.nacional) p{color:var(--txt2)}
.perfil-card.diocesano p{color:#6D4B20}
.perfil-features{
  margin-top:auto;padding-top:.75rem;display:flex;flex-direction:column;gap:.32rem;
  border-top:1px dashed rgba(60,30,10,.2)
}
.perfil-card.nacional .perfil-features{border-top-color:rgba(255,255,255,.18)}
.perfil-feat{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:700;line-height:1.35}
.perfil-card.nacional .perfil-feat{color:rgba(255,255,255,.8)}
.perfil-card:not(.nacional) .perfil-feat{color:var(--txt2)}
.perfil-card.diocesano .perfil-feat{color:#6D4B20}
.perfil-feat::before{
  content:'';display:block;width:5px;height:5px;
  border-radius:50%;flex-shrink:0;
}
.perfil-card.nacional .perfil-feat::before{background:rgba(255,255,255,.5)}
.perfil-card.regional .perfil-feat::before{background:var(--blue-txt)}
.perfil-card.diocesano .perfil-feat::before{background:var(--amber-txt)}
.perfil-card.setorial .perfil-feat::before{background:#0F6E56}
.perfil-card.paroquia .perfil-feat::before{background:var(--acc)}

@media(max-width:1260px){
  .perfis-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ── EVENTOS ── */
.eventos-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:1.5rem;margin-top:3rem;
}
.evento-card{
  background:var(--white);border:1px solid var(--bdr);
  border-radius:12px;overflow:hidden;
}
.evento-header{padding:1.25rem 1.25rem .75rem;border-bottom:1px solid var(--bdr)}
.evento-header h3{font-size:15px;font-weight:700;margin-bottom:.25rem}
.evento-header p{font-size:12px;color:var(--txt2)}
.evento-body{padding:1rem 1.25rem;display:flex;flex-direction:column;gap:.5rem}
.evento-feat{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--txt2)}
.evento-feat svg{width:14px;height:14px;stroke:var(--acc);fill:none;stroke-width:2;flex-shrink:0}
.evento-tag{
  display:inline-block;padding:3px 10px;
  border-radius:999px;font-size:10px;font-weight:700;
  margin-bottom:.5rem;
}

/* ── TECH ── */
.tech-section{background:var(--bg2)}
.tech-stack{
  display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.5rem;
}
.tech-pill{
  padding:6px 14px;border-radius:6px;
  background:var(--white);border:1px solid var(--bdr);
  font-size:12px;font-weight:700;color:var(--txt);
}
.tech-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1.5rem;margin-top:3rem;
}
.tech-card{background:var(--white);border:1px solid var(--bdr);border-radius:12px;padding:1.25rem}
.tech-card h4{font-size:13px;font-weight:700;color:var(--txt2);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.75rem}
.tech-card ul{list-style:none;display:flex;flex-direction:column;gap:.4rem}
.tech-card li{font-size:13px;color:var(--txt);display:flex;align-items:center;gap:8px}
.tech-card li::before{content:'';display:block;width:5px;height:5px;border-radius:50%;background:var(--acc);flex-shrink:0}

/* ── CTA ── */
.cta-section{
  background:var(--acc);padding:6rem 2rem;text-align:center;
}
.cta-section h2{
  font-family:'Playfair Display',serif;
  font-size:clamp(1.75rem,3vw,2.8rem);
  color:#fff;font-weight:700;margin-bottom:1rem;
}
.cta-section p{color:rgba(255,255,255,.75);font-size:15px;max-width:480px;margin:0 auto 2.5rem;line-height:1.7}
.btn-white{
  padding:13px 32px;border-radius:8px;
  background:#fff;color:var(--acc);
  font-size:14px;font-weight:700;
  text-decoration:none;display:inline-block;
  transition:opacity .15s;
}
.btn-white:hover{opacity:.9}

/* ── FOOTER ── */
footer{
  background:var(--txt);padding:3rem 2rem 2rem;
  text-align:center;
  color:#fff;
}
footer *{color:#fff}
.footer-inner{max-width:720px;margin:0 auto}
footer .logo-row{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:.5rem}
.footer-logo{width:36px;height:36px;background:transparent;display:flex;align-items:center;justify-content:center;}
footer h3{font-size:14px;font-weight:700;color:#fff;margin:0}
footer p{font-size:12px;color:#fff;margin:0}
.footer-tag{margin-top:.35rem !important}
.footer-divider{
  width:60px;height:1px;margin:1.25rem auto;
  background:rgba(255,255,255,.15);
}
.footer-made{
  display:inline-flex;align-items:center;justify-content:center;
  gap:.35rem;flex-wrap:wrap;
  font-size:13px;color:#fff;
  letter-spacing:.01em;
}
.footer-made strong{color:#fff;font-weight:700}
.footer-heart{
  width:14px;height:14px;flex:0 0 14px;
  display:inline-block;vertical-align:middle;
  fill:#e11d48;
  animation:heartBeat 1.6s ease-in-out infinite;
  filter:drop-shadow(0 0 6px rgba(225,29,72,.5));
}
.footer-copy{margin-top:.75rem !important;font-size:11px;color:#fff}
@keyframes heartBeat{
  0%,100%{transform:scale(1)}
  25%{transform:scale(1.18)}
  50%{transform:scale(.95)}
  75%{transform:scale(1.1)}
}

/* ── ANIMATIONS ── */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.reveal.visible{opacity:1;transform:translateY(0)}

/* ── RESPONSIVE ── */

/* Tablet: 768–900px */
@media(max-width:900px){
  /* Nav */
  nav .nav-links a:not(.nav-cta){display:none}
  nav{padding:0 1.25rem}

  /* Hero */
  .hero{grid-template-columns:1fr;padding:3rem 1.5rem 2.5rem;gap:0;min-height:auto}
  .hero-visual{display:none}
  .hero h2{font-size:2rem}
  .hero-desc{font-size:15px}

  /* Hierarchy */
  .hierarchy-wrap{grid-template-columns:1fr;gap:2.5rem}
  .hierarchy-text{order:-1}

  /* Sections */
  section{padding:4rem 1.5rem}
  .section-title{font-size:1.75rem}

  /* Perfis */
  .perfis-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Mobile: < 640px */
@media(max-width:640px){
  /* Nav */
  nav{height:54px;padding:0 1rem}
  nav .nav-links{gap:.75rem}
  nav .nav-links a:not(.nav-cta){display:none}
  nav .nav-links .nav-cta{display:none}
  .nav-brand h1{font-size:13px}
  .nav-brand span{display:none}

  /* Hero */
  .hero{padding:2.5rem 1rem 2rem}
  .hero h2{font-size:1.75rem;margin-bottom:1rem}
  .hero-eyebrow{font-size:10px;margin-bottom:1rem}
  .hero-desc{font-size:14px;margin-bottom:1.75rem}
  .btn-primary,.btn-ghost{padding:10px 18px;font-size:13px}
  .hero-note{font-size:11px}

  /* Stats */
  .stats-inner{
    grid-template-columns:repeat(2,1fr);
    padding:2.5rem 1rem;
    gap:0;
  }
  .stat-item{
    border-right:none;
    border-bottom:1px solid rgba(255,255,255,.12);
    padding:1.1rem;
  }
  .stat-item:nth-child(odd){border-right:1px solid rgba(255,255,255,.12)}
  .stat-item:nth-child(4),.stat-item:nth-child(5){border-bottom:none}
  .stat-item .num{font-size:2.2rem}

  /* Sections */
  section{padding:3rem 1rem}
  .section-title{font-size:1.5rem}
  .section-desc{font-size:14px}

  /* Features grid */
  .features-grid{gap:1rem}
  .feature-card{padding:1.2rem}

  /* Hierarchy */
  .hierarchy-section section{padding:3rem 1rem}
  .level-content h3{font-size:12px}
  .level-content p{font-size:11px}
  .hierarchy-text h3{font-size:1.4rem}
  .hierarchy-text p,.hierarchy-text li{font-size:13px}

  /* Perfis */
  .perfis-grid{grid-template-columns:1fr;gap:.875rem}
  .perfil-card{padding:1.2rem}

  /* Eventos */
  .eventos-grid{grid-template-columns:1fr;gap:1rem}

  /* Tech/Why grid */
  .tech-grid{grid-template-columns:1fr;gap:1rem}
  .tech-card{padding:1rem}

  /* CTA */
  .cta-section{padding:4rem 1rem}
  .cta-section h2{font-size:1.6rem}
  .cta-section p{font-size:14px}
  .btn-white{padding:11px 24px;font-size:13px}

  /* Footer */
  footer{padding:2rem 1rem}
}
#menu-btn{
  display:none;background:none;border:none;cursor:pointer;padding:4px;
  flex-direction:column;gap:5px;align-items:center;justify-content:center;width:36px;height:36px
}
.mobile-menu{
  position:fixed;top:54px;left:0;right:0;background:var(--white);border-bottom:1px solid var(--bdr);
  z-index:99;padding:1rem;display:flex;flex-direction:column;gap:.25rem
}
.mobile-menu[hidden]{display:none}
.mobile-menu a{
  display:block;padding:.75rem 1rem;font-size:14px;font-weight:700;color:var(--txt2);
  text-decoration:none;border-radius:8px
}
.mobile-menu a:hover{background:var(--bg2);color:var(--acc)}
.hb{display:block;width:20px;height:2px;background:var(--txt);border-radius:2px;transition:all .2s}
@media(max-width:640px){
  #menu-btn{display:flex !important}
}
