/* ============================================================
   STYLE.CSS — Yo amo ser maestro
   ============================================================ */
:root {
  --p: #c94a2a; --s: #2a6c4c; --a: #e8a020;
  --dk: #1a1510; --tx: #2e2720; --mu: #7a6f65;
  --bg: #faf8f4; --tn: #f2ede4; --bd: #e0d9ce;
  --r: 10px;
  --sh: 0 2px 18px rgba(0,0,0,.08);
  --sh2: 0 10px 44px rgba(0,0,0,.16);
  --fh: 'Playfair Display', Georgia, serif;
  --fb: 'DM Sans', system-ui, sans-serif;
  --w: 1140px;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); font-size: 16px; color: var(--tx); background: var(--bg); line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.sec { padding: 96px 0; }
.sec-t { background: var(--tn); }

/* Progress bar */
#prog { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--p), var(--a)); width: 0%; z-index: 200; border-radius: 0 2px 2px 0; transition: width .1s linear; }

/* Top btn */
#tbtn { position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px; background: var(--p); color: #fff; border: none; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh2); opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .3s; z-index: 150; }
#tbtn.show { opacity: 1; transform: none; }
#tbtn:hover { background: #a83820; transform: translateY(-3px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 7px; font-family: var(--fb); font-size: .93rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all .22s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.bp { background: var(--p); color: #fff; border-color: var(--p); }
.bp:hover { background: #a83820; border-color: #a83820; box-shadow: 0 6px 20px rgba(201,74,42,.35); }
.bg { background: transparent; color: var(--tx); border-color: var(--bd); }
.bg:hover { border-color: var(--p); color: var(--p); }

/* Section head */
.ey { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--p); margin-bottom: 10px; }
.sh { max-width: 680px; margin-bottom: 56px; }
.sh h2 { font-family: var(--fh); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.18; margin-bottom: 14px; color: var(--dk); }
.sh p { color: var(--mu); font-size: 1.02rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── NAV ─────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(250,248,244,.93); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bd); transition: box-shadow .3s; }
.nav.sc { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.ni { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nb { display: flex; align-items: center; gap: 11px; }
.nb img { width: 40px; height: 40px; object-fit: contain; border-radius: 5px; }
.nbn { display: block; font-family: var(--fh); font-size: 1rem; font-weight: 700; color: var(--dk); line-height: 1.2; }
.nbs { display: block; font-size: .71rem; color: var(--mu); }
.nl { display: flex; gap: 26px; }
.nl a { font-size: .88rem; font-weight: 500; color: var(--mu); transition: color .2s; position: relative; padding-bottom: 2px; }
.nl a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--p); transition: width .25s; }
.nl a:hover { color: var(--p); }
.nl a:hover::after { width: 100%; }
.ham { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.ham span { display: block; width: 24px; height: 2px; background: var(--tx); border-radius: 2px; transition: .3s; }

/* ── HERO ────────────────────────────────────────────── */
.hero { position: relative; padding: 88px 0 76px; overflow: hidden; min-height: 92vh; display: flex; align-items: center; }
.hcanv { position: absolute; inset: 0; pointer-events: none; z-index: 0; width: 100%; height: 100%; }
.hglow { position: absolute; inset: 0; background: radial-gradient(ellipse 65% 90% at 82% 38%, rgba(201,74,42,.09) 0%, transparent 65%), radial-gradient(ellipse 55% 65% at 12% 72%, rgba(42,108,76,.07) 0%, transparent 65%); pointer-events: none; }
.hi { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; width: 100%; }
.hk { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.crest { width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.15)); }
.hkt { font-size: .83rem; font-weight: 600; color: var(--mu); line-height: 1.4; }
.hero h1 { font-family: var(--fh); font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.08; color: var(--dk); margin-bottom: 20px; }
/* Palabra "amo" con corazón */
.hero h1 .amo { color: var(--p); font-style: italic; position: relative; }
.hero h1 .amo::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--p), var(--a)); border-radius: 2px; opacity: .5; }
.heart-icon { color: var(--p); font-size: .85em; vertical-align: middle; display: inline-block; animation: hb .9s ease-in-out infinite; }
@keyframes hb { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.cur { display: inline-block; width: 3px; height: .85em; background: var(--p); margin-left: 3px; vertical-align: middle; animation: bl 1s step-end infinite; }
@keyframes bl { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.lead { font-size: 1.08rem; color: var(--mu); max-width: 480px; margin-bottom: 26px; line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 6px 14px; background: var(--tn); border: 1px solid var(--bd); border-radius: 20px; font-size: .82rem; font-weight: 500; transition: all .2s; }
.chip:hover { border-color: var(--p); color: var(--p); transform: translateY(-1px); }
.chip b { color: var(--p); }
.hcta { display: flex; gap: 12px; flex-wrap: wrap; }
.hart { position: relative; }
.hcard { border-radius: 18px; overflow: hidden; box-shadow: var(--sh2); }
.hcard .shot { width: 100%; height: 400px; object-fit: cover; display: block; transition: transform .6s ease; }
.hcard:hover .shot { transform: scale(1.03); }
.cap { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(20,14,8,.78)); padding: 36px 22px 18px; display: flex; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.88); font-weight: 500; }
.hrib { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--s); letter-spacing: .05em; text-transform: uppercase; }
.star { color: var(--a); animation: sp 4s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }
.hstats { display: flex; gap: 24px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--bd); }
.st { text-align: center; }
.stn { font-family: var(--fh); font-size: 2rem; font-weight: 900; color: var(--p); line-height: 1; display: block; }
.stl { font-size: .75rem; color: var(--mu); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ── QUOTE BANNER ────────────────────────────────────── */
.qb { position: relative; padding: 72px 0; overflow: hidden; background: var(--dk); }
.qbg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(201,74,42,.18) 0%, transparent 60%), radial-gradient(ellipse 50% 70% at 80% 40%, rgba(42,108,76,.12) 0%, transparent 60%); pointer-events: none; }
.qi { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.qm { font-family: var(--fh); font-size: 6rem; line-height: .6; color: var(--a); opacity: .4; display: block; margin-bottom: 8px; }
.qt { font-family: var(--fh); font-size: clamp(1.4rem, 3vw, 2.1rem); color: #fff; line-height: 1.4; font-style: italic; margin-bottom: 20px; }
.qa { font-size: .85rem; color: rgba(255,255,255,.5); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.flag { height: 5px; background: linear-gradient(90deg, #f6d000 33.3%, #003087 33.3% 66.6%, #cc0001 66.6%); opacity: .7; }

/* ── PILARES ─────────────────────────────────────────── */
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.pillar { background: #fff; border-radius: var(--r); padding: 30px 26px 26px; border: 1px solid var(--bd); box-shadow: var(--sh); position: relative; overflow: hidden; transition: transform .28s, box-shadow .28s; }
.pillar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--bar, var(--p)); }
.pillar::after { content: ''; position: absolute; bottom: 0; right: 0; width: 80px; height: 80px; background: var(--bar, var(--p)); opacity: .04; border-radius: 50%; transform: translate(30px, 30px); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--sh2); }
.tri { display: flex; gap: 5px; margin-bottom: 18px; }
.tri i { display: block; width: 11px; height: 11px; border-radius: 50%; }
.tri i:nth-child(1) { background: #f6d000; }
.tri i:nth-child(2) { background: #003087; }
.tri i:nth-child(3) { background: #cc0001; }
.pillar h3 { font-family: var(--fh); font-size: 1.25rem; color: var(--dk); margin-bottom: 10px; }
.pillar p { font-size: .89rem; color: var(--mu); line-height: 1.6; }

/* ── DOCS ────────────────────────────────────────────── */
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.dc { background: #fff; border-radius: var(--r); padding: 28px 26px 24px; border: 1px solid var(--bd); box-shadow: var(--sh); position: relative; overflow: hidden; transition: transform .28s, box-shadow .28s; }
.dc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--bar, var(--p)); }
.dc:hover { transform: translateY(-5px); box-shadow: var(--sh2); }
.dico { width: 46px; height: 46px; background: #fff4f0; border: 1.5px solid #f4c9be; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .7rem; color: var(--p); letter-spacing: .04em; margin-bottom: 16px; }
.dc h3 { font-family: var(--fh); font-size: 1.15rem; color: var(--dk); margin-bottom: 9px; }
.dd { font-size: .87rem; color: var(--mu); line-height: 1.55; margin-bottom: 16px; }
.dm { display: flex; align-items: center; gap: 7px; font-size: .77rem; color: var(--mu); margin-bottom: 18px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--a); flex-shrink: 0; }
.da { display: flex; gap: 10px; flex-wrap: wrap; }
.da .btn { padding: 8px 16px; font-size: .83rem; }

/* ── CARRUSEL ────────────────────────────────────────── */
.car { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--sh2); background: #0a0805; }
.ctr { display: flex; transition: transform .48s cubic-bezier(.4,0,.2,1); }
.csl { min-width: 100%; position: relative; cursor: zoom-in; flex-shrink: 0; }
.csl img { width: 100%; height: 500px; object-fit: cover; display: block; }
.ccap { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.68)); padding: 44px 26px 20px; display: flex; justify-content: space-between; align-items: flex-end; color: #fff; }
.ccap strong { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: 3px; }
.ccap span { font-size: .82rem; opacity: .78; }
.csn { flex-shrink: 0; font-size: .8rem; opacity: .7; font-weight: 600; }
.cb { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; font-size: 1.25rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; backdrop-filter: blur(6px); }
.cb:hover { background: rgba(255,255,255,.28); transform: translateY(-50%) scale(1.08); }
.cb.pv { left: 16px; }
.cb.nx { right: 16px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--bd); border: none; cursor: pointer; transition: background .2s, transform .2s; }
.dots button.active { background: var(--p); transform: scale(1.4); }
.thmb { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thmb button { flex-shrink: 0; width: 92px; height: 62px; border-radius: 8px; overflow: hidden; border: 2.5px solid transparent; cursor: pointer; padding: 0; transition: all .2s; opacity: .55; }
.thmb button.active { border-color: var(--p); opacity: 1; }
.thmb button img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── LIGHTBOX ────────────────────────────────────────── */
#lb { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 500; align-items: center; justify-content: center; padding: 20px; }
#lb.open { display: flex; }
#lb img { max-width: 92vw; max-height: 88vh; border-radius: 10px; object-fit: contain; }
#lbc { position: absolute; top: 20px; right: 24px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#lbc:hover { background: rgba(255,255,255,.25); }
#lbcp { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: .88rem; text-align: center; max-width: 500px; }

/* ── VIDEOS ──────────────────────────────────────────── */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.video-card { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--bd); box-shadow: var(--sh); transition: transform .28s, box-shadow .28s; display: block; }
.video-card:hover { transform: translateY(-5px); box-shadow: var(--sh2); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #1877f2 0%, #0a5ed9 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-thumb::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.08) 0%, transparent 60%); }
.fb-play-overlay { display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 1; transition: transform .25s; }
.video-card:hover .fb-play-overlay { transform: scale(1.06); }
.fb-play-btn { width: 54px; height: 54px; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.55); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.video-card:hover .fb-play-btn { background: rgba(255,255,255,.32); border-color: rgba(255,255,255,.8); }
.fb-open-label { position: absolute; bottom: 10px; right: 12px; font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.75); letter-spacing: .06em; text-transform: uppercase; }
.video-info { padding: 16px 18px 20px; }
.v-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1877f2; background: rgba(24,119,242,.1); padding: 3px 9px; border-radius: 4px; margin-bottom: 8px; }
.v-tag-local { color: var(--s); background: rgba(42,108,76,.1); }
.video-info h3 { font-family: var(--fh); font-size: 1rem; color: var(--dk); line-height: 1.3; margin-bottom: 5px; }
.video-info p { font-size: .84rem; color: var(--mu); }

/* Video local (mp4) */
.video-local { background: #000; aspect-ratio: 16/9; width: 100%; display: block; }

/* ── TESTIMONIOS ─────────────────────────────────────── */
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.tc { background: #fff; border-radius: var(--r); padding: 34px 30px 28px; border: 1px solid var(--bd); box-shadow: var(--sh); transition: transform .28s, box-shadow .28s; position: relative; overflow: hidden; }
.tc::after { content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 120px; border-radius: 50%; transform: translate(50%, -50%); opacity: .06; background: var(--p); }
.tc:hover { transform: translateY(-5px); box-shadow: var(--sh2); }
.qmk { font-family: var(--fh); font-size: 5rem; line-height: .7; color: var(--a); opacity: .55; margin-bottom: 10px; }
.tq { font-size: .97rem; color: var(--tx); line-height: 1.72; font-style: italic; margin-bottom: 26px; }
.tp { display: flex; align-items: center; gap: 14px; }
.tav { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem; flex-shrink: 0; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.trt { font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; display: block; margin-bottom: 2px; }
.trn { font-weight: 700; font-size: .9rem; color: var(--dk); display: block; line-height: 1.35; }
.trr { font-size: .8rem; color: var(--mu); display: block; margin-top: 2px; }

/* ── VIDEO TESTIMONIOS ───────────────────────────────── */
.vtgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.vtcard { background: #000; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh2); }
.vtcard video { width: 100%; display: block; object-fit: contain; background: #000; }
.vtlabel { background: var(--dk); padding: 10px 16px; font-size: .82rem; color: rgba(255,255,255,.7); font-weight: 500; }

/* ── PDF MODAL ───────────────────────────────────────── */
#pdf-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 600; align-items: center; justify-content: center; padding: 16px; flex-direction: column; }
#pdf-modal.open { display: flex; }
.pdf-container { width: 100%; max-width: 960px; height: 88vh; background: #fff; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.pdf-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--dk); flex-shrink: 0; }
#pdf-modal-title { color: #fff; font-size: .9rem; font-weight: 600; font-family: var(--fb); }
#pdf-close { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#pdf-close:hover { background: rgba(255,255,255,.3); }
#pdf-frame { flex: 1; border: none; width: 100%; }

/* ── FOOTER ──────────────────────────────────────────── */
.foot { background: var(--dk); color: rgba(255,255,255,.72); padding: 64px 0 32px; }
.ft { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 52px; margin-bottom: 48px; }
.fbr { display: flex; gap: 16px; align-items: flex-start; }
.fbr img { width: 50px; height: 50px; object-fit: contain; border-radius: 7px; flex-shrink: 0; }
.fbn { font-family: var(--fh); font-size: 1.07rem; color: #fff; line-height: 1.3; margin-bottom: 7px; }
.fbm { font-size: .8rem; font-weight: 700; letter-spacing: .07em; color: var(--a); margin-bottom: 5px; }
.fbl { font-size: .8rem; }
.fc h4 { font-family: var(--fh); font-size: .94rem; color: #fff; margin-bottom: 14px; }
.fc a { display: block; font-size: .84rem; color: rgba(255,255,255,.5); margin-bottom: 9px; transition: color .2s; }
.fc a:hover { color: var(--a); }
.fb2 { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: rgba(255,255,255,.38); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hi { grid-template-columns: 1fr; gap: 44px; }
  .hart { order: -1; }
  .hcard .shot { height: 300px; }
  .ft { grid-template-columns: 1fr 1fr; }
  .hstats { gap: 16px; }
}
@media (max-width: 640px) {
  .sec { padding: 64px 0; }
  .sh { margin-bottom: 38px; }
  .nl { display: none; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--bd); padding: 16px 24px 22px; gap: 16px; z-index: 99; }
  .nl.op { display: flex; }
  .ham { display: flex; }
  .csl img { height: 260px; }
  .thmb button { width: 68px; height: 46px; }
  .ft { grid-template-columns: 1fr; gap: 30px; }
  .fb2 { flex-direction: column; text-align: center; }
  .hstats { flex-wrap: wrap; }
}
