/* === IGLESIA JOVEN · STYLES === */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --teal: #0D9488;
  --teal-mid: #0F766E;
  --teal-dark: #134E4A;
  --teal-pale: #F0FDFA;
  --teal-light: #99F6E4;
  --orange: #EA580C;
  --orange-light: #FED7AA;
  --dark: #1C1917;
  --dark-2: #292524;
  --mid: #57534E;
  --light: #A8A29E;
  --border: #E7E5E4;
  --border-light: #F5F5F4;
  --white: #FFFFFF;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --nav-height: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--dark); background: var(--white); line-height: 1.65; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { line-height: 1.75; }

/* ── CONTAINER ── */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(1.5rem, 5vw, 4rem); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .875rem 2rem; border: 2px solid transparent; font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: all .25s ease; }
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-mid); border-color: var(--teal-mid); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ── TYPOGRAPHY ── */
.eyebrow { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.eyebrow-light { color: var(--teal-light); }
.eyebrow-orange { color: var(--orange); }
.section-title { font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; line-height: 1.12; margin-bottom: 1.75rem; color: var(--dark); }
.section-title em { font-style: italic; color: var(--teal); }
.section-title.light { color: var(--white); }
.section-title.light em { color: var(--teal-light); }

/* ── NAVIGATION ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-height); transition: background .35s ease, box-shadow .35s ease; }
.nav.scrolled { background: var(--white); box-shadow: 0 1px 0 var(--border); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; padding-inline: clamp(1.5rem, 4vw, 3rem); }
.nav-logo img { height: 34px; width: auto; }
.logo-white { display: block; }
.logo-black { display: none; }
.nav.scrolled .logo-white { display: none; }
.nav.scrolled .logo-black { display: block; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: rgba(255,255,255,.8); transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav.scrolled .nav-links a { color: var(--mid); }
.nav.scrolled .nav-links a:hover { color: var(--teal); }
.nav-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-menu-btn span { display: block; width: 24px; height: 2px; background: var(--white); transition: background .3s; border-radius: 1px; }
.nav.scrolled .nav-menu-btn span { background: var(--dark); }

/* Mobile menu */
.mobile-menu { position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--white); z-index: 99; transform: translateY(-100%); opacity: 0; transition: transform .3s ease, opacity .3s ease; pointer-events: none; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-menu a { font-size: 1.05rem; font-weight: 500; color: var(--dark); }
.mobile-menu a:hover { color: var(--teal); }

/* ── HERO ── */
.hero { position: relative; height: 100svh; min-height: 620px; display: flex; align-items: center; overflow: hidden; background: var(--dark); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(130deg, rgba(13,148,136,.18) 0%, rgba(28,25,23,.65) 50%, rgba(28,25,23,.9) 100%); }
.hero-content { position: relative; z-index: 2; padding-inline: clamp(1.5rem, 5vw, 4rem); max-width: 760px; }
.hero-eyebrow { display: block; font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 1.5rem; }
.hero-title { font-family: var(--serif); font-size: clamp(3rem, 7.5vw, 6.5rem); font-weight: 900; line-height: 1.02; color: var(--white); margin-bottom: 1.5rem; }
.hero-title em { font-style: italic; color: var(--teal-light); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.7); margin-bottom: 2.5rem; font-weight: 300; max-width: 460px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── NOSOTROS ── */
.section-nosotros { padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.split-text p { color: var(--mid); margin-bottom: 1.25rem; font-size: 1.05rem; }
.split-text p:last-child { margin-bottom: 0; }
.split-text strong { color: var(--dark); font-weight: 600; }
.split-img img { width: 100%; max-width: 480px; margin-inline: auto; }
.nosotros-photo { overflow: hidden; }
.nosotros-photo img { width: 100%; height: 560px; object-fit: cover; object-position: center; display: block; }

/* ── EUCARISTÍA REDESIGN ── */
.section-eucaristia { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--teal-dark); isolation: isolate; }
.img-screen { mix-blend-mode: screen; }
.eucaristia-statement { max-width: 720px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.eucaristia-headline { font-family: var(--serif); font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 900; line-height: 1.08; color: var(--white); margin-bottom: 1.25rem; }
.eucaristia-headline em { font-style: italic; color: var(--teal-light); }
.eucaristia-lead { color: rgba(255,255,255,.68); font-size: 1.1rem; line-height: 1.78; max-width: 580px; }
.eucaristia-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; margin-bottom: clamp(3rem, 6vw, 5rem); }
.ecard { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); padding: 2rem 1.75rem; transition: background .25s; }
.ecard:hover { background: rgba(255,255,255,.11); }
.ecard-num { font-family: var(--serif); font-size: 3.25rem; font-weight: 900; color: rgba(255,255,255,.13); line-height: 1; margin-bottom: .875rem; }
.ecard h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: .75rem; }
.ecard p { color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.75; }
.eucaristia-verse { text-align: center; border-top: 1px solid rgba(255,255,255,.1); padding-top: 3.5rem; }
.eucaristia-verse blockquote { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem); font-style: italic; color: rgba(255,255,255,.88); line-height: 1.5; max-width: 660px; margin-inline: auto; margin-bottom: .875rem; }
.eucaristia-verse cite { font-size: .8rem; color: var(--teal-light); letter-spacing: .1em; text-transform: uppercase; }

/* ── ADORACIÓN REDESIGN ── */
.section-adoracion { padding: clamp(5rem, 10vw, 9rem) 0 0; }
.adoracion-intro { max-width: 640px; margin-bottom: 3.5rem; }
.adoracion-intro-text { color: var(--mid); font-size: 1.1rem; margin-top: -.5rem; }
.adoracion-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: clamp(4rem, 8vw, 6rem); }
.aoption { padding: 1.75rem 1.75rem 1.75rem 1.75rem; border-left: 3px solid var(--teal); background: rgba(13,148,136,.04); }
.aoption-last { border-left-color: var(--orange); }
.aoption p { font-size: 1rem; color: var(--mid); line-height: 1.8; }
/* Dark strip */
.adoracion-strip { position: relative; min-height: 480px; overflow: hidden; display: flex; align-items: center; background: var(--dark); }
.adoracion-strip-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .4; }
.adoracion-strip-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 4rem clamp(1.5rem, 5vw, 4rem); max-width: 780px; }
.adoracion-strip-text blockquote { font-family: var(--serif); font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-style: italic; color: var(--white); line-height: 1.6; margin-bottom: 1.25rem; }
.adoracion-strip-text cite { font-size: .75rem; color: var(--teal-light); letter-spacing: .12em; text-transform: uppercase; }

/* ── CARLO ACUTIS ── */
.section-carlo { padding: clamp(5rem, 10vw, 9rem) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.carlo-inner { display: grid; grid-template-columns: 420px 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.carlo-photo img { width: 100%; height: 540px; object-fit: cover; object-position: center top; display: block; }
.carlo-quote { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.1rem); font-style: italic; color: var(--dark); line-height: 1.45; margin-bottom: 2rem; border-left: 3px solid var(--orange); padding-left: 1.5rem; }
.carlo-bio p { color: var(--mid); font-size: 1rem; line-height: 1.8; margin-bottom: 1.1rem; }
.carlo-bio p:last-child { margin-bottom: 0; }
.carlo-bio em { color: var(--orange); font-style: italic; }

/* ── FECHAS ── */
.section-fechas { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--teal-pale); }
.fechas-subtitle { color: var(--mid); font-size: 1.05rem; margin-top: -.75rem; margin-bottom: 1rem; }
.fechas-maps-link { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--teal); letter-spacing: .04em; margin-bottom: 2.5rem; text-decoration: underline; text-underline-offset: 3px; }
.fechas-maps-link:hover { color: var(--teal-mid); }
.fechas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.fecha-card { background: var(--white); border: 1px solid rgba(13,148,136,.2); padding: 1.5rem 1.75rem; position: relative; overflow: hidden; transition: box-shadow .2s; }
.fecha-card:hover { box-shadow: 0 4px 20px rgba(13,148,136,.12); }
.fecha-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--teal); }
.fecha-card.special::before { background: var(--orange); }
.fecha-card.past { opacity: .45; }
.fecha-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .7rem; margin-bottom: .75rem; background: var(--teal); color: var(--white); }
.fecha-badge.orange { background: var(--orange); }
.fecha-month { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .35rem; }
.fecha-card.special .fecha-month { color: var(--orange); }
.fecha-day { font-family: var(--serif); font-size: 3rem; font-weight: 700; line-height: 1; color: var(--dark); margin-bottom: .5rem; }
.fecha-detail { font-size: .875rem; color: var(--mid); line-height: 1.55; }
.special-events-title { font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--orange); margin: 2.5rem 0 1rem; }

/* ── PARROQUIA ── */
.section-parroquia { padding: clamp(5rem, 10vw, 9rem) 0; border-top: 1px solid var(--border); }
.parroquia-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.parroquia-text p { color: var(--mid); margin-bottom: 2rem; font-size: 1.05rem; }
.parroquia-details { display: flex; flex-direction: column; gap: .75rem; }
.detail-item { padding: 1rem 1.25rem; border-left: 3px solid var(--teal); background: var(--teal-pale); display: flex; flex-direction: column; gap: .25rem; }
.detail-item strong { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.detail-item span { color: var(--dark); font-size: .95rem; }
.parroquia-visual { background: var(--dark); display: flex; align-items: center; justify-content: center; min-height: 420px; padding: 2.5rem; isolation: isolate; }
.parroquia-visual img { width: 70%; mix-blend-mode: screen; }

/* ── FOOTER ── */
.footer { background: var(--dark); color: rgba(255,255,255,.65); padding: 5rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 4rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-logo p { font-size: .9rem; color: rgba(255,255,255,.4); line-height: 1.6; }
.footer-links h4 { font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 1.25rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.footer-links a { font-size: .9rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-links a:hover { color: var(--teal-light); }
.footer-quote { border-left: 2px solid var(--teal); padding-left: 1.5rem; }
.footer-quote p { font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: rgba(255,255,255,.65); line-height: 1.65; margin-bottom: .75rem; }
.footer-quote cite { font-size: .82rem; color: var(--teal-light); }
.footer-bottom { padding: 1.5rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.28); }
.footer-bottom a { color: rgba(255,255,255,.28); transition: color .2s; }
.footer-bottom a:hover { color: var(--teal-light); }

/* ── PAGE HERO (inner pages) ── */
.page-hero { padding: calc(var(--nav-height) + 4rem) 0 3.5rem; border-bottom: 1px solid var(--border); }
.page-title { font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; line-height: 1.08; color: var(--dark); margin-bottom: .75rem; }
.page-title em { font-style: italic; color: var(--teal); }
.page-subtitle { color: var(--mid); font-size: 1.05rem; max-width: 540px; margin-bottom: 1.75rem; }
.search-bar { display: flex; max-width: 520px; }
.search-bar input { flex: 1; padding: .875rem 1.25rem; border: 2px solid var(--border); border-right: none; font-family: var(--sans); font-size: .95rem; outline: none; transition: border-color .2s; background: var(--white); color: var(--dark); }
.search-bar input::placeholder { color: var(--light); }
.search-bar input:focus { border-color: var(--teal); }
.search-bar button { padding: .875rem 1.5rem; background: var(--teal); color: var(--white); border: 2px solid var(--teal); font-family: var(--sans); font-size: .85rem; font-weight: 600; cursor: pointer; letter-spacing: .06em; transition: background .2s; }
.search-bar button:hover { background: var(--teal-mid); }

/* ── SONGS ── */
.songs-section { padding: 4rem 0; }
.results-count { font-size: .82rem; color: var(--light); letter-spacing: .04em; margin-bottom: 2rem; }
.songs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.song-card { border: 1px solid var(--border); padding: 1.75rem; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; background: var(--white); }
.song-card:hover { border-color: var(--teal); box-shadow: 0 6px 24px rgba(13,148,136,.1); transform: translateY(-2px); }
.song-card-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: .35rem; line-height: 1.3; }
.song-card-artist { font-size: .85rem; color: var(--teal); font-weight: 600; letter-spacing: .04em; margin-bottom: 1rem; }
.song-card-preview { font-size: .875rem; color: var(--light); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.song-card-footer { display: flex; justify-content: flex-end; margin-top: 1.25rem; border-top: 1px solid var(--border-light); padding-top: 1rem; }
.song-card-arrow { font-size: .78rem; color: var(--teal); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.songs-empty { text-align: center; padding: 5rem 2rem; grid-column: 1 / -1; }
.songs-empty h3 { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; color: var(--mid); margin-bottom: .75rem; }
.songs-empty p { color: var(--light); }

/* Song modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(28,25,23,.75); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: calc(var(--nav-height) + 1.5rem) 1.5rem 1.5rem; opacity: 0; pointer-events: none; transition: opacity .3s; overflow-y: auto; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--white); width: 100%; max-width: 680px; position: relative; display: flex; flex-direction: column; max-height: calc(100vh - var(--nav-height) - 3rem); }
.modal-header { padding: 2rem 2rem 1.5rem; border-bottom: 1px solid var(--border); flex-shrink: 0; background: var(--white); }
.modal-title { font-family: var(--serif); font-size: 1.85rem; font-weight: 700; color: var(--dark); margin-bottom: .25rem; line-height: 1.25; padding-right: 2.5rem; }
.modal-artist { color: var(--teal); font-weight: 600; font-size: .9rem; letter-spacing: .04em; }
.modal-situation { color: var(--teal); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .25rem; }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--light); line-height: 1; padding: .25rem; transition: color .2s; }
.modal-close:hover { color: var(--dark); }
.modal-body { padding: 2rem; white-space: pre-wrap; font-size: 1rem; line-height: 2.1; color: var(--mid); overflow-y: auto; flex: 1; }

/* ── PRAYERS ── */
.prayers-section { padding: 4rem 0; }
.filters-bar { display: flex; gap: .625rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn { padding: .45rem 1.1rem; border: 1.5px solid var(--border); background: none; font-family: var(--sans); font-size: .82rem; font-weight: 500; cursor: pointer; color: var(--mid); transition: all .2s; }
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.active { border-color: var(--teal); background: var(--teal); color: var(--white); }
.prayers-list { display: flex; flex-direction: column; gap: 1rem; }
.prayer-card { border: 1px solid var(--border); padding: 2rem; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; background: var(--white); }
.prayer-card:hover { border-color: var(--teal); box-shadow: 0 6px 24px rgba(13,148,136,.1); transform: translateY(-2px); }
.prayer-situation-tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.prayer-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--dark); margin-bottom: .75rem; line-height: 1.3; }
.prayer-preview { font-size: .95rem; color: var(--mid); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── ADMIN ── */
.admin-page { min-height: 100vh; background: #F8F7F6; }
.admin-topbar { background: var(--dark); padding: calc(var(--nav-height) + 1.5rem) 0 1.5rem; }
.admin-topbar .container { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.admin-topbar h1 { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--white); }
.admin-topbar p { color: rgba(255,255,255,.4); font-size: .85rem; margin-top: .25rem; }
.admin-io { display: flex; gap: .5rem; }
.btn-io { padding: .5rem 1.1rem; border: 1.5px solid rgba(255,255,255,.2); background: none; color: rgba(255,255,255,.65); font-family: var(--sans); font-size: .8rem; font-weight: 500; cursor: pointer; letter-spacing: .04em; transition: all .2s; }
.btn-io:hover { border-color: var(--teal-light); color: var(--teal-light); }
.admin-tabs { display: flex; background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: var(--nav-height); z-index: 10; }
.admin-tab { padding: 1.1rem 2rem; font-size: .875rem; font-weight: 600; color: var(--mid); border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .2s; letter-spacing: .03em; white-space: nowrap; }
.admin-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.admin-tab:hover:not(.active) { color: var(--dark); }
.admin-content { padding: 2.5rem 0; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-split { display: grid; grid-template-columns: 380px 1fr; gap: 2rem; align-items: start; }
.admin-form-box { background: var(--white); border: 1px solid var(--border); padding: 1.75rem; }
.admin-form-box h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 1.5rem; padding-bottom: .875rem; border-bottom: 1px solid var(--border); }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mid); margin-bottom: .4rem; }
.form-field input, .form-field textarea { width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--border); font-family: var(--sans); font-size: .95rem; color: var(--dark); background: var(--white); outline: none; transition: border-color .2s; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--teal); }
.form-field textarea { min-height: 160px; line-height: 1.65; }
.form-hint { font-size: .78rem; color: var(--light); margin-top: .3rem; }
.form-actions { display: flex; gap: .75rem; margin-top: 1.5rem; }
.form-actions .btn { flex: 1; justify-content: center; font-size: .8rem; }
.btn-cancel { background: var(--border); color: var(--mid); border-color: var(--border); }
.btn-cancel:hover { background: #D6D3D1; border-color: #D6D3D1; }
.admin-list-box { background: var(--white); border: 1px solid var(--border); padding: 1.75rem; }
.admin-list-box h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 1.25rem; padding-bottom: .875rem; border-bottom: 1px solid var(--border); }
.admin-items { display: flex; flex-direction: column; gap: .625rem; }
.admin-item { border: 1px solid var(--border); padding: .875rem 1.1rem; display: flex; align-items: center; gap: 1rem; background: #FAFAF9; }
.admin-item-info { flex: 1; min-width: 0; }
.admin-item-title { font-weight: 600; color: var(--dark); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-item-sub { font-size: .78rem; color: var(--light); margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-item-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.btn-sm { padding: .35rem .75rem; font-size: .78rem; background: none; border: 1px solid var(--border); color: var(--mid); cursor: pointer; font-family: var(--sans); font-weight: 500; transition: all .2s; }
.btn-sm-edit:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm-del:hover { border-color: #EF4444; color: #EF4444; }
.admin-empty { text-align: center; padding: 3rem 2rem; color: var(--light); font-size: .9rem; border: 1.5px dashed var(--border); }

/* Toast */
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--dark); color: var(--white); padding: .875rem 1.5rem; font-size: .875rem; z-index: 500; transform: translateY(130%); transition: transform .35s cubic-bezier(.4,0,.2,1); border-left: 4px solid var(--teal); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast.show { transform: translateY(0); }
.toast.error { border-left-color: #EF4444; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── TABLET (900px) ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .split { grid-template-columns: 1fr; }
  .split-reverse { direction: ltr; }
  .split-img { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
  .admin-split { grid-template-columns: 1fr; }
  .carlo-inner { grid-template-columns: 1fr; }
  .carlo-photo img { height: 380px; }
  .nosotros-photo img { height: 320px; }
  .eucaristia-grid { grid-template-columns: 1fr; }
  .adoracion-strip { min-height: 380px; }
  .adoracion-strip-text { padding: 2.5rem; }
}

/* ── MOBILE (480px) ── */
@media (max-width: 480px) {
  :root { --nav-height: 60px; }

  /* Nav */
  .nav-logo img { height: 26px; }

  /* Hero */
  .hero-content { padding-inline: 1.25rem; }
  .hero-title { font-size: 2.6rem; line-height: 1.04; }
  .hero-sub { font-size: .95rem; }
  .hero-ctas { flex-direction: column; gap: .75rem; }
  .hero-ctas .btn { justify-content: center; }

  /* Section padding */
  .section-nosotros { padding: 3rem 0; }
  .section-carlo { padding: 3rem 0; }
  .section-eucaristia { padding: 3rem 0; }
  .section-adoracion { padding: 3rem 0 0; }
  .section-fechas { padding: 3rem 0; }

  /* Nosotros */
  .nosotros-photo img { height: 250px; }
  .split-text p { font-size: 1rem; margin-bottom: 1rem; }

  /* Eucaristía */
  .eucaristia-statement { margin-bottom: 1.75rem; }
  .eucaristia-headline { font-size: 2.2rem; }
  .eucaristia-lead { font-size: 1rem; }
  .eucaristia-grid { gap: .75rem; margin-bottom: 2rem; }
  .ecard { padding: 1.25rem; }
  .ecard-num { font-size: 2.5rem; margin-bottom: .5rem; }
  .ecard h3 { font-size: 1.1rem; }
  .ecard p { font-size: .875rem; }
  .eucaristia-verse { padding-top: 2rem; }
  .eucaristia-verse blockquote { font-size: 1.1rem; }

  /* Carlo */
  .carlo-photo img { height: 260px; }
  .carlo-quote { font-size: 1.2rem; padding-left: 1rem; margin-bottom: 1.5rem; }
  .carlo-bio p { font-size: .95rem; margin-bottom: 1rem; }

  /* Adoración */
  .adoracion-intro { margin-bottom: 1.75rem; }
  .adoracion-intro-text { font-size: 1rem; }
  .adoracion-options { grid-template-columns: 1fr; }
  .aoption p { font-size: .95rem; }
  .adoracion-strip { min-height: 300px; }
  .adoracion-strip-text { padding: 2rem 1.5rem; }
  .adoracion-strip-text blockquote { font-size: 1.05rem; }

  /* Fechas */
  .section-title { font-size: 1.85rem; }
  .fechas-grid { grid-template-columns: 1fr; }
  .fechas-subtitle { font-size: .9rem; }
  .fecha-day { font-size: 2.25rem; }

  /* Footer */
  .footer { padding-top: 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.5rem; }
  .footer-quote p { font-size: 1rem; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; gap: .5rem; }

  /* Modals */
  .modal-overlay { padding: calc(var(--nav-height) + .5rem) .5rem .5rem; }
  .modal { max-height: calc(100vh - var(--nav-height) - 1rem); }
  .modal-header { padding: 1.25rem 1rem 1rem; }
  .modal-title { font-size: 1.4rem; padding-right: 2rem; }
  .modal-body { padding: 1.25rem 1rem; font-size: .95rem; line-height: 1.9; }

  /* Inner pages */
  .page-hero { padding: calc(var(--nav-height) + 2rem) 0 2rem; }
  .page-title { font-size: 2.1rem; }
  .page-subtitle { font-size: .95rem; }
  .search-bar input { font-size: .9rem; }
  .songs-grid { grid-template-columns: 1fr; }
  .song-card { padding: 1.25rem; }
  .prayer-card { padding: 1.5rem; }
  .admin-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-tab { padding: .875rem 1rem; font-size: .8rem; }
  .filters-bar { gap: .5rem; }
  .filter-btn { font-size: .78rem; padding: .4rem .9rem; }
}
