/* ===== 50 Aniversario — Escuela 713 ===== */

/* Logo de marca (nav y pie) un poco más grande para que se lea */
.brand img{height:56px}
.footer__brand img{height:84px}

/* Link del menú */
.nav__links a[href="#aniversario"]:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--orange);margin-right:8px;vertical-align:middle;position:relative;top:-1px}

/* Pastilla en el hero */
.hero__aniv{display:inline-flex;align-items:center;gap:12px;margin:0 0 18px 0;padding:9px 16px;border-radius:999px;background:rgba(244,124,27,.92);color:#16120F;font-family:var(--display);font-size:14px;line-height:1.2;transition:transform .15s ease,background .2s ease;flex-wrap:wrap}
.hero__aniv b{font-weight:800;letter-spacing:.01em}
.hero__aniv span{font-weight:600}
.hero__aniv:hover{background:var(--orange-soft);transform:translateY(-1px)}

/* Sección */
.aniv{background:var(--paper-2);position:relative;scroll-margin-top:72px}
.aniv:before{content:"";position:absolute;inset:0 0 auto 0;height:6px;background:linear-gradient(90deg,var(--orange) 0 33%,var(--ink) 33% 66%,var(--red) 66%)}
.aniv-head{display:grid;grid-template-columns:auto 1fr;gap:clamp(24px,5vw,64px);align-items:center;margin-bottom:clamp(36px,5vw,60px)}
.aniv-head__logo{width:clamp(130px,18vw,230px);height:auto;filter:drop-shadow(0 10px 24px rgba(22,18,15,.18))}
.aniv-head__txt h2{font-family:var(--display);font-weight:900;font-size:clamp(32px,5vw,58px);line-height:1.02;letter-spacing:-.02em;margin:14px 0 14px;color:var(--ink)}
.aniv-head__txt p{max-width:56ch;font-size:clamp(16px,1.5vw,19px);color:var(--text-muted);margin:0 0 18px}
.aniv-status{display:inline-flex;align-items:center;gap:10px;font-family:var(--mono);font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);background:#fff;border:1px solid var(--line-strong);padding:8px 14px;border-radius:999px}
.aniv-status i{width:9px;height:9px;border-radius:50%;background:var(--red);box-shadow:0 0 0 0 rgba(225,36,27,.5);animation:anivPulse 1.8s infinite}
@keyframes anivPulse{70%{box-shadow:0 0 0 9px rgba(225,36,27,0)}100%{box-shadow:0 0 0 0 rgba(225,36,27,0)}}

/* Grilla semanal */
.aniv-week{display:grid;grid-template-columns:1fr;gap:14px}
@media (min-width:700px){
  .aniv-week{grid-template-columns:repeat(6,1fr)}
  .aniv-day{grid-column:span 2}
  .aniv-day:nth-child(4),.aniv-day:nth-child(5){grid-column:span 3}
}
@media (min-width:1100px){
  .aniv-week{grid-template-columns:repeat(5,1fr);gap:16px}
  .aniv-day,.aniv-day:nth-child(4),.aniv-day:nth-child(5){grid-column:auto}
}
.aniv-day{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}
.aniv-day:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.aniv-day__head{display:flex;align-items:center;gap:12px;padding:16px 20px;background:var(--ink);color:var(--on-dark);position:relative}
.aniv-day__dow{font-family:var(--mono);font-size:12px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--orange-soft)}
.aniv-day__n{font-family:var(--display);font-weight:900;font-size:44px;line-height:1;margin-left:auto}
.aniv-day__left{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.aniv-day__today{font-family:var(--mono);font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;background:#fff;color:var(--red);padding:3px 8px;border-radius:999px}
.aniv-day.is-today{border-color:var(--red);box-shadow:0 0 0 2px var(--red),var(--shadow-lg)}
.aniv-day.is-today .aniv-day__head{background:var(--red)}
.aniv-day.is-today .aniv-day__dow{color:#fff}
.aniv-day.is-past{opacity:.72}
.aniv-day--central .aniv-day__head{background:linear-gradient(120deg,var(--orange),var(--red));color:#fff}
.aniv-day--central .aniv-day__dow{color:#fff}
.aniv-day__list{display:flex;flex-direction:column;flex:1}
.aniv-act{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:20px;flex:1}
.aniv-act + .aniv-act{border-top:1px dashed var(--line-strong)}
.aniv-act__time{font-family:var(--mono);font-size:12.5px;font-weight:600;color:var(--red-deep);background:#fdeee6;border-radius:4px;padding:4px 9px;letter-spacing:.04em}
.aniv-act__title{font-family:var(--display);font-weight:800;font-size:19px;line-height:1.15;letter-spacing:-.01em;margin:0;color:var(--ink)}
.aniv-act__sum{font-size:14.5px;line-height:1.5;color:var(--text-muted);margin:0;flex:1}
.aniv-act__more{display:inline-flex;align-items:center;gap:8px;margin-top:6px;font-family:var(--display);font-weight:700;font-size:14px;color:var(--ink);background:transparent;border:2px solid var(--ink);border-radius:var(--radius);padding:8px 14px;cursor:pointer;transition:background .2s ease,color .2s ease}
.aniv-act__more span{font-size:17px;line-height:1;font-weight:800}
.aniv-act__more:hover,.aniv-act__more:focus-visible{background:var(--ink);color:var(--paper)}
.aniv-act__more:focus-visible{outline:3px solid var(--orange);outline-offset:2px}

/* Modal */
.aniv-modal{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(14,11,9,.66);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:anivFade .2s ease}
.aniv-modal__panel{position:relative;width:100%;max-width:560px;max-height:min(88vh,720px);overflow:auto;background:var(--paper);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);padding:32px clamp(22px,4vw,36px) 30px;border-top:6px solid var(--orange);animation:anivRise .28s cubic-bezier(.16,1,.3,1)}
.aniv-modal__close{position:absolute;top:10px;right:12px;width:40px;height:40px;border-radius:50%;border:none;background:transparent;font-size:30px;line-height:1;color:var(--ink);cursor:pointer}
.aniv-modal__close:hover{background:var(--paper-2)}
.aniv-modal__close:focus-visible{outline:3px solid var(--orange)}
.aniv-modal__day{font-family:var(--mono);font-size:12px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--red)}
.aniv-modal__title{font-family:var(--display);font-weight:900;font-size:clamp(24px,4vw,32px);line-height:1.08;letter-spacing:-.02em;margin:8px 36px 18px 0;color:var(--ink)}
.aniv-modal__times{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:8px}
.aniv-modal__times li{display:flex;justify-content:space-between;gap:16px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:10px 14px;font-size:15px}
.aniv-modal__times b{font-family:var(--mono);color:var(--red-deep);font-weight:600}
.aniv-modal__place{margin:0 0 12px;font-size:15px}
.aniv-modal__body p{margin:0 0 12px;font-size:16px;line-height:1.6;color:var(--text)}
.aniv-modal__note{margin:6px 0 14px;padding:12px 14px;border-left:4px solid var(--orange);background:#fff;border-radius:0 var(--radius) var(--radius) 0;font-size:15px;font-weight:500}
.aniv-modal__soon{margin:6px 0 0;font-size:14px;color:var(--text-faint)}
.aniv-modal__panel .btn{margin-top:8px;margin-right:8px}
@keyframes anivFade{from{opacity:0}to{opacity:1}}
@keyframes anivRise{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}

/* Modo recuerdo */
.aniv-photos{columns:3 220px;column-gap:14px}
.aniv-photo{position:relative;display:block;margin:0 0 14px;break-inside:avoid;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow)}
.aniv-photo img{width:100%;height:auto;display:block;transition:transform .4s ease}
.aniv-photo:hover img{transform:scale(1.03)}
.aniv-photo span{position:absolute;left:10px;bottom:10px;font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;background:rgba(22,18,15,.78);color:#fff;padding:4px 9px;border-radius:999px}
.aniv-memory__empty{text-align:center;padding:40px 20px;background:#fff;border:1px dashed var(--line-strong);border-radius:var(--radius-lg);color:var(--text-muted);margin:0 0 28px}
.aniv-recap{margin-top:34px;padding:24px clamp(18px,3vw,32px);background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg)}
.aniv-recap h3{font-family:var(--display);font-weight:800;font-size:20px;margin:0 0 12px}
.aniv-recap ul{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:15px;color:var(--text-muted)}
.aniv-recap b{color:var(--ink)}

/* Móvil */
@media (max-width:640px){
  .aniv-head{grid-template-columns:1fr;justify-items:start}
  .aniv-head__logo{width:150px}
  .aniv-day__n{font-size:38px}
  .brand img{height:48px}
}
@media (prefers-reduced-motion:reduce){
  .aniv-modal,.aniv-modal__panel,.aniv-status i{animation:none}
  .aniv-day,.aniv-photo img{transition:none}
}
