/* ============================================
   Parroquia Nuestra Señora del Rosario de Itagüí
   nuestrasenoradelrosario.org
   ============================================ */

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

:root{
  --gold:#8B6914;
  --gold-light:#C4A644;
  --burgundy:#6B2D3B;
  --ivory:#F5F0E8;
  --dark:#1A1A2E;
  --white:#FFFFFF;
  --green:#2C5F2D;
  --stone:#E8E0D4;
  --text:#333;
  --text-light:#666;
  --display:'Cormorant Garamond',Georgia,'Times New Roman',serif;
  --body:'Source Sans 3','Segoe UI',Tahoma,sans-serif;
}

html{scroll-behavior:smooth;font-size:16px}
body{font-family:var(--body);color:var(--text);background:var(--white);line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--gold);transition:color .2s}
a:hover{color:var(--gold-light)}

/* ---- NAV ---- */
.nav{position:fixed;top:0;left:0;right:0;z-index:100;transition:background .3s,box-shadow .3s}
.nav.scrolled{background:rgba(26,26,46,.95);box-shadow:0 2px 20px rgba(0,0,0,.15)}
.nav.nav-solid{background:var(--dark)}
.nav-inner{max-width:1200px;margin:0 auto;padding:.75rem 1.5rem;display:flex;align-items:center;justify-content:space-between}
.nav-brand{font-family:var(--display);font-size:1.1rem;font-weight:600;color:var(--white);text-decoration:none;letter-spacing:.02em}
.nav-brand span{color:var(--gold-light)}
.nav-links{display:flex;gap:1.5rem;list-style:none;align-items:center}
.nav-links a{color:rgba(255,255,255,.85);text-decoration:none;font-size:.85rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase;transition:color .2s}
.nav-links a:hover,.nav-links a.active{color:var(--gold-light)}
.lang-toggle{background:none;border:1px solid rgba(255,255,255,.3);color:var(--white);font-family:var(--body);font-size:.7rem;font-weight:600;letter-spacing:.1em;padding:.3rem .6rem;cursor:pointer;transition:all .2s;text-transform:uppercase}
.lang-toggle:hover{border-color:var(--gold-light);color:var(--gold-light)}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:.5rem}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--white);margin:5px 0;transition:all .3s}

/* ---- PAGE HEADER (for subpages) ---- */
.page-header{background:var(--dark);padding:7rem 1.5rem 3rem;text-align:center}
.page-header .section-label{color:var(--gold-light)}
.page-header .section-title{color:var(--white)}
.page-header .section-intro{color:rgba(255,255,255,.6);margin-left:auto;margin-right:auto}

/* ---- HERO ---- */
.hero{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;background:var(--dark)}
.hero-bg{position:absolute;inset:0;background:linear-gradient(180deg,rgba(26,26,46,.3) 0%,rgba(26,26,46,.7) 100%);z-index:1}
.hero-img{position:absolute;inset:0;background-size:cover;background-position:center 30%;background-color:var(--dark);opacity:.55}
.hero::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,#1A1A2E 0%,#2d2a37 40%,#1A1A2E 100%);z-index:0}
.hero-content{position:relative;z-index:2;padding:2rem 1.5rem;max-width:800px}
.hero-eyebrow{font-family:var(--body);font-size:.8rem;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-light);margin-bottom:1rem}
.hero h1{font-family:var(--display);font-size:clamp(2.5rem,6vw,4.5rem);font-weight:700;color:var(--white);line-height:1.1;margin-bottom:.5rem}
.hero h1 em{font-style:italic;font-weight:400;color:var(--gold-light)}
.hero-sub{font-family:var(--display);font-size:clamp(1rem,2.5vw,1.4rem);color:rgba(255,255,255,.75);font-weight:400;font-style:italic;margin-bottom:2rem}
.hero-cta{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 2rem;background:var(--gold);color:var(--white);text-decoration:none;font-family:var(--body);font-size:.85rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;border:none;cursor:pointer;transition:background .3s}
.hero-cta:hover{background:var(--gold-light);color:var(--white)}
.hero-scroll{position:absolute;bottom:2rem;left:50%;transform:translateX(-50%);z-index:2;color:rgba(255,255,255,.5);font-size:.75rem;letter-spacing:.15em;text-transform:uppercase;text-decoration:none;display:flex;flex-direction:column;align-items:center;gap:.5rem}
.hero-scroll::after{content:'';width:1px;height:40px;background:rgba(255,255,255,.3);animation:scrollPulse 2s infinite}
@keyframes scrollPulse{0%,100%{opacity:.3}50%{opacity:.8}}

/* ---- DIVIDER ---- */
.divider{display:flex;align-items:center;justify-content:center;gap:1rem;padding:1.5rem 0}
.divider::before,.divider::after{content:'';height:1px;width:60px;background:var(--gold)}
.divider-symbol{font-family:var(--display);font-size:1.4rem;color:var(--gold);line-height:1}

/* ---- SECTIONS ---- */
section{padding:5rem 1.5rem}
.section-inner{max-width:1100px;margin:0 auto}
.section-label{font-family:var(--body);font-size:.7rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:.5rem}
.section-title{font-family:var(--display);font-size:clamp(2rem,4vw,3rem);font-weight:700;color:var(--dark);line-height:1.15;margin-bottom:1.5rem}
.section-intro{font-size:1.05rem;color:var(--text-light);max-width:650px;line-height:1.7;margin-bottom:2rem}

/* ---- SCHEDULE ---- */
.horarios{background:var(--ivory)}
.schedule-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-top:2rem}
.schedule-card{background:var(--white);padding:2rem;border:1px solid rgba(139,105,20,.12);position:relative;overflow:hidden}
.schedule-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:var(--gold)}
.schedule-day{font-family:var(--display);font-size:1.3rem;font-weight:700;color:var(--dark);margin-bottom:.75rem}
.schedule-times{display:flex;flex-wrap:wrap;gap:.4rem}
.schedule-time{display:inline-block;padding:.3rem .7rem;background:var(--ivory);font-size:.85rem;font-weight:500;color:var(--dark)}
.schedule-note{margin-top:2rem;padding:1.25rem 1.5rem;background:rgba(139,105,20,.06);border-left:3px solid var(--gold);font-size:.9rem;color:var(--text-light)}
.schedule-note strong{color:var(--dark);font-weight:600}

/* ---- OFFICE ---- */
.office-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-top:1.5rem}
.office-item{padding:1.25rem;background:var(--white);border:1px solid rgba(139,105,20,.1)}
.office-item h4{font-family:var(--display);font-size:1.05rem;font-weight:600;color:var(--dark);margin-bottom:.35rem}
.office-item p{font-size:.9rem;color:var(--text-light)}

/* ---- HISTORY ---- */
.historia{background:var(--white)}
.history-content{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
.history-text p{margin-bottom:1.25rem;font-size:1rem;color:var(--text);line-height:1.75}
.history-text p:first-of-type::first-letter{font-family:var(--display);font-size:3.2rem;float:left;line-height:.85;margin-right:.5rem;color:var(--gold);font-weight:700}
.history-sidebar{position:sticky;top:6rem}
.history-image{width:100%;aspect-ratio:3/4;object-fit:cover;background:var(--stone);border:1px solid rgba(139,105,20,.1);background-size:cover;background-position:center}
.history-caption{font-family:var(--display);font-size:.85rem;font-style:italic;color:var(--text-light);margin-top:.5rem;text-align:center}
.history-timeline{margin-top:2rem;padding-left:1.5rem;border-left:2px solid var(--gold)}
.timeline-item{margin-bottom:1.5rem;position:relative}
.timeline-item::before{content:'';position:absolute;left:-1.75rem;top:.4rem;width:10px;height:10px;border-radius:50%;background:var(--gold)}
.timeline-year{font-family:var(--display);font-size:1.1rem;font-weight:700;color:var(--gold)}
.timeline-desc{font-size:.9rem;color:var(--text-light);margin-top:.15rem}

/* ---- SACRAMENTS ---- */
.sacramentos{background:var(--dark);color:var(--white)}
.sacramentos .section-title{color:var(--white)}
.sacramentos .section-intro{color:rgba(255,255,255,.6)}
.sacr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem}
.sacr-card{padding:2rem;border:1px solid rgba(255,255,255,.1);transition:border-color .3s,transform .3s}
.sacr-card:hover{border-color:var(--gold);transform:translateY(-2px)}
.sacr-icon{font-size:2rem;margin-bottom:1rem;opacity:.8}
.sacr-card h3{font-family:var(--display);font-size:1.3rem;font-weight:600;margin-bottom:.5rem}
.sacr-card p{font-size:.9rem;color:rgba(255,255,255,.55);line-height:1.6}
/* Light variant for subpage */
.sacramentos-light{background:var(--white);color:var(--text)}
.sacramentos-light .section-title{color:var(--dark)}
.sacramentos-light .section-intro{color:var(--text-light)}
.sacramentos-light .sacr-card{border-color:rgba(139,105,20,.12)}
.sacramentos-light .sacr-card:hover{border-color:var(--gold)}
.sacramentos-light .sacr-card h3{color:var(--dark)}
.sacramentos-light .sacr-card p{color:var(--text-light)}
.sacr-detail{margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(139,105,20,.1)}
.sacr-detail h4{font-family:var(--display);font-size:1rem;font-weight:600;color:var(--gold);margin-bottom:.25rem}
.sacr-detail ul{list-style:none;padding:0}
.sacr-detail li{font-size:.85rem;color:var(--text-light);padding:.2rem 0;padding-left:1rem;position:relative}
.sacr-detail li::before{content:'–';position:absolute;left:0;color:var(--gold)}

/* ---- GALLERY ---- */
.galeria{background:var(--ivory)}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,250px);gap:.75rem;margin-top:2rem}
.gallery-item{overflow:hidden;background:var(--stone);position:relative}
.gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.gallery-item:hover img{transform:scale(1.05)}
.gallery-item:first-child{grid-column:1/3;grid-row:1/3}

/* ---- LOCATION ---- */
.ubicacion{background:var(--white)}
.location-wrap{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
.location-info h3{font-family:var(--display);font-size:1.4rem;font-weight:600;color:var(--dark);margin-bottom:1rem;margin-top:0}
.location-info h3+.location-detail{margin-top:0}
.location-detail{display:flex;gap:.75rem;margin-bottom:1.25rem;align-items:flex-start}
.location-detail .icon{font-size:1.2rem;flex-shrink:0;margin-top:.1rem}
.location-detail p{font-size:.95rem;color:var(--text)}
.location-detail strong{color:var(--dark);font-weight:600}
.location-map{width:100%;aspect-ratio:4/3;border:none;filter:grayscale(.2)}

/* ---- COMMUNITY ---- */
.comunidad{background:var(--ivory)}
.social-links{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.5rem}
.social-link{display:inline-flex;align-items:center;gap:.6rem;padding:.75rem 1.5rem;background:var(--white);border:1px solid rgba(139,105,20,.15);text-decoration:none;color:var(--dark);font-size:.9rem;font-weight:500;transition:all .3s}
.social-link:hover{border-color:var(--gold);background:var(--gold);color:var(--white)}
.social-link svg{width:18px;height:18px}
.diezmo-card{margin-top:2.5rem;padding:2rem;background:var(--white);border:1px solid rgba(139,105,20,.12);max-width:500px}
.diezmo-card h3{font-family:var(--display);font-size:1.3rem;font-weight:600;color:var(--dark);margin-bottom:.75rem}
.diezmo-card p{font-size:.9rem;color:var(--text-light);margin-bottom:.5rem}
.diezmo-card .account{font-family:var(--body);font-size:1.1rem;font-weight:600;color:var(--gold);letter-spacing:.05em;margin-top:.5rem}

/* ---- CONTENT BLOCKS (subpages) ---- */
.content-section{padding:4rem 1.5rem}
.content-section:nth-child(even){background:var(--ivory)}
.content-inner{max-width:800px;margin:0 auto}
.content-inner h2{font-family:var(--display);font-size:1.8rem;font-weight:700;color:var(--dark);margin-bottom:1rem;margin-top:2rem}
.content-inner h2:first-child{margin-top:0}
.content-inner p{font-size:1rem;line-height:1.75;color:var(--text);margin-bottom:1.25rem}
.content-inner ul{list-style:none;padding:0;margin-bottom:1.5rem}
.content-inner li{padding:.5rem 0 .5rem 1.5rem;position:relative;font-size:.95rem;color:var(--text)}
.content-inner li::before{content:'✦';position:absolute;left:0;color:var(--gold);font-size:.7rem;top:.7rem}

/* ---- 404 ---- */
.error-page{min-height:100vh;display:flex;align-items:center;justify-content:center;text-align:center;background:var(--dark);color:var(--white);padding:2rem}
.error-page h1{font-family:var(--display);font-size:8rem;font-weight:700;color:var(--gold);line-height:1;margin-bottom:.5rem}
.error-page h2{font-family:var(--display);font-size:1.8rem;font-weight:400;font-style:italic;color:rgba(255,255,255,.7);margin-bottom:2rem}
.error-page p{color:rgba(255,255,255,.5);margin-bottom:2rem;max-width:400px}

/* ---- FOOTER ---- */
footer{background:var(--dark);color:rgba(255,255,255,.6);padding:3rem 1.5rem 1.5rem}
.footer-inner{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr;gap:3rem}
.footer-brand{font-family:var(--display);font-size:1.3rem;font-weight:600;color:var(--white);margin-bottom:.75rem}
.footer-brand span{color:var(--gold-light)}
footer p{font-size:.85rem;line-height:1.6}
footer h4{font-family:var(--display);font-size:1rem;font-weight:600;color:var(--white);margin-bottom:.75rem}
footer ul{list-style:none}
footer li{margin-bottom:.35rem}
footer li::before{display:none}
footer a{color:rgba(255,255,255,.55);text-decoration:none;font-size:.85rem;transition:color .2s}
footer a:hover{color:var(--gold-light)}
.footer-bottom{max-width:1100px;margin:2rem auto 0;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.08);display:flex;justify-content:space-between;align-items:center;font-size:.75rem}
.footer-bottom a{color:rgba(255,255,255,.4)}

/* ---- RESPONSIVE ---- */
@media(max-width:900px){
  .history-content,.location-wrap{grid-template-columns:1fr}
  .history-sidebar{position:static}
  .footer-inner{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto}
  .gallery-item:first-child{grid-column:1/3}
}
@media(max-width:700px){
  .nav-links{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(26,26,46,.97);flex-direction:column;align-items:center;justify-content:center;gap:2rem}
  .nav-links.open{display:flex}
  .nav-links a{font-size:1.1rem}
  .nav-toggle{display:block;z-index:101}
  .schedule-grid{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:1fr;grid-template-rows:auto}
  .gallery-item:first-child{grid-column:auto}
  section{padding:3.5rem 1.25rem}
  .content-section{padding:3rem 1.25rem}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-scroll::after{animation:none}
  .gallery-item img{transition:none}
}
