/*
Theme Name: Harmony Arte en Movimiento
Theme URI: https://harmonyarteenmovimiento.org
Description: Tema a la medida para Harmony Arte en Movimiento. El diseño es fijo; el contenido del evento (nombre, fecha, hero, solistas, boletos, imagen) se edita desde Apariencia → Personalizar.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.6
*/
:root {
  --black: #090909;
  --ink: #151314;
  --cream: #f4efe7;
  --paper: #fbf8f2;
  --gold: #c89a4a;
  --burgundy: #681c3f;
  --cyan: #35b6c1;
  --white: #fff;
  --muted: #9f9996;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
img { display: block; width: 100%; }
a { color: inherit; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; transform: translateY(-150%); background: var(--white); padding: 10px 14px; border-radius: 4px; }
.skip-link:focus { transform: none; }

/* El fondo difuminado vive en un pseudo-elemento: si backdrop-filter se aplica
   al header, este pasa a ser el bloque contenedor del menú position:fixed. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 15px 0; color: var(--white); transition: padding .25s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: rgba(9,9,9,.94); box-shadow: 0 8px 25px rgba(0,0,0,.2); backdrop-filter: blur(10px); transition: opacity .25s; }
.site-header.scrolled { padding: 9px 0; }
.site-header.scrolled::before { opacity: 1; }
.nav-wrap { width: min(1180px, calc(100% - 40px)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { width: 172px; position: relative; z-index: 120; }
.brand img { height: 58px; object-fit: contain; object-position: left center; }
nav { display: flex; align-items: center; }
.nav-inner { display: flex; align-items: center; gap: 28px; }
.nav-eyebrow, .nav-foot { display: none; }
nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; transition: color .2s; }
nav a:hover, nav a:focus-visible { color: var(--gold); }
.nav-cta { border: 1px solid rgba(255,255,255,.55); padding: 11px 15px; }
.menu-button { display: none; position: relative; z-index: 120; width: 46px; height: 46px; padding: 12px 10px; border: 0; background: transparent; color: var(--white); cursor: pointer; }
.menu-button span:not(.sr-only) { display: block; height: 1px; background: currentColor; margin: 5px 0; transform-origin: center; transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .2s ease; }

.hero { min-height: 100svh; position: relative; display: grid; align-items: end; overflow: hidden; color: var(--white); background: var(--black); }
.hero-image, .hero-shade { position: absolute; inset: 0; height: 100%; }
.hero-image { object-fit: cover; object-position: center; }
.hero-shade { background: linear-gradient(90deg, rgba(6,4,7,.94) 0%, rgba(6,4,7,.72) 45%, rgba(6,4,7,.34) 80%), linear-gradient(0deg, rgba(6,4,7,.86), rgba(6,4,7,.2) 55%); }
.hero-content { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 180px 0 110px; }
.eyebrow { margin: 0 0 22px; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.dark { color: var(--burgundy); }
.hero-event { margin: 0 0 18px; font: 400 clamp(1.15rem, 2.4vw, 1.7rem)/1 var(--serif); letter-spacing: .01em; color: rgba(255,255,255,.9); }
.hero-event em { color: var(--gold); font-style: italic; }
.hero h1 { max-width: 820px; margin: 0; font: 400 clamp(3.2rem, 7.5vw, 7.4rem)/.93 var(--serif); letter-spacing: -.04em; text-wrap: balance; }
.hero-copy { max-width: 610px; margin: 30px 0 0; color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.5vw, 1.25rem); }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; transition: transform .2s, background .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--black); }
.button-gold:hover { background: #e0b668; }
.text-link { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); padding: 7px 0; font-size: .82rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.text-link.light { color: var(--white); }
.hero-date { position: absolute; z-index: 1; right: max(24px, calc((100vw - 1180px)/2)); bottom: 45px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-transform: uppercase; letter-spacing: .1em; }
.hero-date strong { color: var(--gold); font-size: 1rem; }
.hero-date span { font-size: .7rem; }

/* Marco cinematográfico: degradado, viñeta y filo de luz sobre las fotos. */
.media-frame { position: relative; overflow: hidden; background: var(--black); }
.media-frame img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.media-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9,7,9,.34) 0%, rgba(9,7,9,0) 30%, rgba(9,7,9,0) 48%, rgba(8,5,8,.68) 100%),
    radial-gradient(115% 78% at 50% 48%, rgba(0,0,0,0) 42%, rgba(0,0,0,.42) 100%),
    linear-gradient(118deg, rgba(104,28,63,.26) 0%, rgba(104,28,63,0) 46%, rgba(53,182,193,.14) 100%);
}
.media-frame::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.11), inset 0 -1px 0 0 rgba(200,154,74,.35); }
.media-frame:hover img { transform: scale(1.045); }
.intro-visual .media-frame { box-shadow: 0 34px 70px -34px rgba(21,19,20,.75); }

.section { padding: clamp(80px, 10vw, 150px) max(24px, calc((100vw - 1180px)/2)); }
.section-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.intro h2, .section-heading h2, .program h2, .next-event h2, .forces h2 { margin: 0; font: 400 clamp(2.8rem, 5vw, 5.6rem)/1 var(--serif); letter-spacing: -.035em; }
.intro-copy > p:not(.eyebrow) { max-width: 590px; color: #5e5956; font-size: 1.08rem; }
.intro-visual { margin: 0; }
.intro-visual img { aspect-ratio: 4/3; object-fit: cover; }
.intro-visual figcaption { margin-top: 13px; color: #716b67; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 44px 0 0; }
.stats div { border-top: 1px solid #cbc3bb; padding-top: 18px; }
.stats dt { font: 400 2.2rem/1 var(--serif); color: var(--burgundy); }
.stats dd { margin: 8px 0 0; color: #6c6560; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }

.forces { padding-left: 0; padding-right: 0; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--black); color: var(--white); }
.forces-image img { height: 100%; min-height: 760px; object-fit: cover; }
.forces-copy { padding: clamp(70px, 8vw, 125px) clamp(35px, 7vw, 100px); }
.forces h2 em, .next-event h2 em { color: var(--gold); font-weight: 400; }
.force-list { margin-top: 55px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.force-list article { border-top: 1px solid #393536; padding-top: 20px; }
.force-list span { color: var(--cyan); font-size: .7rem; font-weight: 800; }
.force-list h3 { margin: 8px 0; font: 400 1.6rem var(--serif); }
.force-list p { color: var(--muted); font-size: .88rem; }

.artists { background: var(--cream); }
.soloist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 44px); }
.soloist { border-top: 1px solid #cbc3bb; padding-top: 24px; }
.soloist span { color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.soloist h3 { margin: 12px 0 12px; font: 400 clamp(1.8rem, 3vw, 2.7rem)/1 var(--serif); color: var(--ink); }
.soloist p { margin: 0; color: #5e5956; font-size: .95rem; }
.section-heading { max-width: 800px; margin-bottom: 55px; }
.artist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.artist-card { min-height: 760px; position: relative; overflow: hidden; background: #111; color: var(--white); }
.artist-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.artist-card:first-child img { object-position: center 28%; }
.artist-card:last-child img { object-position: center 36%; }
.artist-card::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.artist-caption { position: absolute; z-index: 1; inset: auto 0 0; padding: 38px; }
.artist-caption p { margin: 0 0 6px; color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 800; }
.artist-caption h3 { margin: 0 0 9px; font: 400 clamp(2.3rem, 4vw, 4.2rem)/1 var(--serif); }
.artist-caption span { display: block; max-width: 470px; color: #d7d2cf; }

.program { display: grid; grid-template-columns: 1fr 1fr; padding: 0; background: var(--burgundy); color: var(--white); }
.program-photo img { height: 100%; min-height: 670px; object-fit: cover; }
.program-copy { padding: clamp(70px, 9vw, 130px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.program-copy > p:not(.eyebrow) { max-width: 560px; color: rgba(255,255,255,.76); font-size: 1.05rem; }
.program-copy .button { margin-top: 22px; }
.program-copy .text-link { margin-top: 18px; }
.program-soon { margin: 26px 0 0; padding: 15px 20px; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.9); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.program-soon em { color: var(--gold); font-style: normal; }

.gallery { background: var(--paper); }
.gallery-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-auto-rows: 280px; gap: 14px; }
.gallery-item { position: relative; border: 0; padding: 0; overflow: hidden; background: #111; cursor: zoom-in; }
.gallery-item.wide { grid-row: span 2; }
.gallery-item img { height: 100%; object-fit: cover; transition: transform .45s ease, opacity .45s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(9,7,9,0) 45%, rgba(8,5,8,.55) 100%), radial-gradient(115% 80% at 50% 45%, rgba(0,0,0,0) 50%, rgba(0,0,0,.35) 100%); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.035); opacity: .84; }

.next-event { position: relative; min-height: 800px; display: grid; place-items: center; color: var(--white); background: radial-gradient(circle at 78% 17%, rgba(104,28,63,.52), transparent 30%), linear-gradient(135deg, #080708, #190b14 68%, #301120); overflow: hidden; }
.next-event::before { content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid rgba(53,182,193,.28); transform: rotate(35deg); right: -170px; top: -150px; }
.next-event-inner { position: relative; width: min(900px, 100%); }
.next-event h2 { font-size: clamp(4rem, 9vw, 8.7rem); }
.event-scale { color: #c6bfbc; font-size: 1.15rem; }
.event-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 54px 0 36px; }
.event-data div { border-top: 1px solid rgba(255,255,255,.28); padding-top: 16px; }
.event-data span { display: block; color: var(--gold); font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; }
.event-data strong { display: block; margin-top: 7px; font: 400 1.25rem var(--serif); }
.event-note { max-width: 680px; color: #9e9895; font-size: .82rem; }

.site-footer { padding: 70px 24px 35px; text-align: center; color: var(--white); background: #050505; }
.site-footer img { width: min(290px, 80vw); height: 120px; margin: 0 auto; object-fit: contain; }
.site-footer p { margin: 10px 0 28px; color: var(--gold); font: italic 1.3rem var(--serif); }
.social-links { display: flex; justify-content: center; gap: 26px; margin-bottom: 42px; }
.social-links a { color: #c5bfbc; text-decoration: none; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.social-links a:hover { color: var(--white); }
.site-footer small { color: #6f6b69; }

.lightbox { width: min(92vw, 1200px); max-height: 92vh; border: 0; padding: 0; background: #050505; box-shadow: 0 20px 80px rgba(0,0,0,.7); }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox img { max-height: 88vh; object-fit: contain; }
.lightbox-close { position: fixed; top: 18px; right: 24px; z-index: 2; border: 0; background: none; color: var(--white); font-size: 2.5rem; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  nav {
    position: fixed; inset: 0; z-index: 110; display: block;
    padding: max(110px, calc(env(safe-area-inset-top) + 96px)) 30px calc(40px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    background:
      radial-gradient(120% 70% at 85% 0%, rgba(104,28,63,.42), transparent 60%),
      linear-gradient(165deg, rgba(9,9,9,.97), rgba(12,7,10,.98) 55%, rgba(6,5,6,.99));
    backdrop-filter: blur(18px) saturate(120%);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1), visibility .35s;
  }
  nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 100%; }
  .nav-eyebrow { display: block; margin: 0 0 26px; color: var(--gold); font-size: .62rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; }
  .nav-foot { display: block; margin: auto 0 0; padding-top: 34px; color: #8d8784; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; }

  nav a { display: block; padding: 20px 0; font-size: 1.05rem; letter-spacing: .2em; border-bottom: 1px solid rgba(255,255,255,.09); opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1), color .2s; }
  nav a:active { color: var(--gold); }
  nav.open a { opacity: 1; transform: none; }
  nav.open a:nth-of-type(1) { transition-delay: .10s; }
  nav.open a:nth-of-type(2) { transition-delay: .16s; }
  nav.open a:nth-of-type(3) { transition-delay: .22s; }
  nav.open a:nth-of-type(4) { transition-delay: .28s; }
  nav.open a:nth-of-type(5) { transition-delay: .34s; }
  .nav-cta { margin-top: 34px; padding: 19px 20px; text-align: center; color: var(--gold); border: 1px solid rgba(200,154,74,.6); }

  body.menu-open { overflow: hidden; }

  .section-grid, .forces, .program { grid-template-columns: 1fr; }
  .forces-image img, .program-photo img { min-height: 480px; max-height: 70vh; }
  .artist-card { min-height: 620px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.wide { grid-row: auto; grid-column: span 2; }
  .hero-date { display: none; }
}

@media (max-width: 620px) {
  .nav-wrap { width: calc(100% - 28px); }
  .brand { width: 148px; }
  .hero-content { width: calc(100% - 36px); padding-bottom: 70px; }
  .hero h1 { font-size: clamp(2.9rem, 15vw, 4.6rem); }
  .hero-shade { background: linear-gradient(0deg, rgba(6,4,7,.95) 0%, rgba(6,4,7,.74) 45%, rgba(6,4,7,.62) 100%); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .section { padding: 78px 20px; }
  .stats { grid-template-columns: 1fr; }
  .force-list, .artist-grid, .event-data, .soloist-grid { grid-template-columns: 1fr; }
  .artist-card { min-height: 560px; }
  .artist-caption { padding: 25px; }
  .program { padding: 0; }
  .program-copy { padding: 60px 24px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 270px; }
  .gallery-item.wide { grid-column: auto; }
  .next-event h2 { font-size: clamp(3.6rem, 18vw, 5.7rem); }
  .social-links { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Barra de administración de WordPress (solo visible al editar logueado) */
.admin-bar .site-header{top:32px}
@media (max-width:782px){ .admin-bar .site-header{top:46px} }
