@import url("base.css");
@import url("components.css");

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; padding: 112px 0 0; overflow: hidden; isolation: isolate; background: #fff; }
.hero__stage { --dome: clamp(250px, 40vw, 430px); position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(var(--sun-400), var(--sun-400)) no-repeat 0 calc(var(--dome) + 70vw) / 100% 100%; }
.hero__stage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: calc(var(--dome) + 2px); z-index: -2; background: #fff; }
.scene { position: absolute; inset: 0; overflow: hidden; z-index: -1; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.04); transition: transform .25s ease-out; will-change: transform; }
.scene__art { position: absolute; left: 50%; top: calc(var(--dome) + 90px); width: max(190vw, 1500px); height: max(190vw, 1500px); max-width: none; border: 0; pointer-events: none; transform: translate(-50%, -50%); }
.hero__content { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 1.1rem; padding: var(--dome) 0 clamp(70px, 14vw, 120px); }
/* the orange sun, ringed by a white gap like on the poster */
.hero__content::before { content: ""; position: absolute; z-index: -1; left: 50%; top: var(--dome); width: 155vw; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: linear-gradient(180deg, var(--sun-500) 0, var(--sun-400) 45%, var(--sun-400) 100%);
  box-shadow: 0 0 0 clamp(8px, 1.7vw, 20px) #fff; animation: sunBreath 6s ease-in-out infinite; }
@keyframes sunBreath { 50% { filter: saturate(1.12) brightness(1.04); } }

.seal { position: absolute; z-index: 3; top: clamp(18px, 3vw, 44px); right: clamp(10px, 14vw, 22%); width: clamp(132px, 22vw, 210px); aspect-ratio: 1; display: grid; place-items: center; text-align: center; transform: rotate(-9deg);
  color: #fff; background: var(--purple-600); border-radius: 50%; box-shadow: 0 14px 34px rgba(82, 61, 128, .35); animation: float 6s ease-in-out infinite; overflow: hidden; }
.seal::after { content: ""; position: absolute; right: -2%; bottom: -2%; width: 34%; height: 34%; background: linear-gradient(135deg, #fff 45%, #d9d3ea 55%, #fff 100%); border-top-left-radius: 100%; box-shadow: -4px -4px 10px rgba(0, 0, 0, .18); transform-origin: 100% 100%; animation: peel 5s ease-in-out 2.4s infinite; }
@keyframes peel { 50% { transform: scale(1.18); } }
.seal span { display: block; rotate: -20deg; font: 400 clamp(1.3rem, 3.5vw, 2.15rem)/1.02 "Permanent Marker", "Rock Salt", cursive; letter-spacing: .02em; text-transform: uppercase; }
.seal small { display: block; font-size: .72em; margin-top: .12em; letter-spacing: .02em; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
@keyframes float { 50% { transform: rotate(-9deg) translateY(-8px); } }

.notes { position: absolute; z-index: 1; left: clamp(6px, 9vw, 16%); top: clamp(40px, 7vw, 100px); width: clamp(90px, 15vw, 170px); color: var(--navy-900); pointer-events: none; animation: noteFloat 7s ease-in-out infinite; }
.notes svg { width: 100%; height: auto; overflow: visible; }
.notes .star { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
@keyframes noteFloat { 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes twinkle { 50% { transform: scale(1.5) rotate(25deg); opacity: .6; } }

.title { display: grid; justify-items: center; gap: 0; margin: 0; }
.title__script { font: 400 clamp(2.8rem, 9vw, 5rem)/1 var(--font-script); color: var(--navy-900); text-transform: none; letter-spacing: 0; margin-bottom: -.28em; position: relative; z-index: 1; }
.title__main { font: 400 clamp(3.2rem, 16.5vw, 10.5rem)/1.05 var(--font-display); color: #fff; letter-spacing: .02em; }
.tagline { font: 800 clamp(.8rem, 2.4vw, 1.05rem)/1.2 var(--font-cond); letter-spacing: clamp(.14em, 1.6vw, .34em); text-transform: uppercase; color: var(--navy-900); margin: .2rem 0 0; }

.when { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .25rem 1rem; width: 100%; padding: .8rem .5rem; margin-top: .8rem; border-block: clamp(4px, .7vw, 6px) solid #fff; font: 800 clamp(1.05rem, 4.6vw, 2.2rem)/1.1 var(--font-cond); letter-spacing: .02em; text-transform: uppercase; color: var(--navy-900); }
.when > span:not(.pill) ~ span:not(.pill) { font-weight: 500; }
.when > span:not(.pill) ~ span:not(.pill)::before { content: ""; display: inline-block; width: 3px; height: .9em; margin-right: 1rem; background: var(--navy-900); vertical-align: -.08em; opacity: .5; }
.when .pill { position: absolute; right: 2%; top: -20px; box-shadow: 0 6px 16px rgba(82, 61, 128, .35); }

/* Location panel */
.venue {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: .95rem;
  width: min(100%, 540px); box-sizing: border-box; margin: 1.1rem 0 0; padding: .95rem 1.25rem; overflow: hidden; text-align: left;
  border-radius: 20px; background: #fff; box-shadow: 0 16px 38px rgba(120, 50, 0, .28);
}
.venue__pin { position: relative; display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; color: #fff; border-radius: 15px; background: linear-gradient(145deg, var(--teal-500), var(--teal-600)); box-shadow: 0 6px 14px rgba(39, 168, 160, .4); }
.venue__pin svg { display: block; width: 23px; height: 23px; }
.venue__copy { display: grid; gap: .18rem; min-width: 0; }
.venue__eyebrow { color: var(--sun-500); font: 800 .64rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
.venue__name { display: block; color: var(--navy-900); font: 800 clamp(1.02rem, 2.6vw, 1.3rem)/1.15 var(--font-cond); letter-spacing: .01em; overflow-wrap: anywhere; }
.venue__address { display: block; margin-top: .08rem; color: var(--purple-600); font: 700 .92rem/1.25 var(--font-body); letter-spacing: .1em; }
.venue__glint { position: absolute; top: 0; right: 12%; width: 28%; height: 3px; background: linear-gradient(90deg, transparent, var(--amber-500), transparent); pointer-events: none; animation: venueGlint 7s ease-in-out 2s infinite; }
@keyframes venueGlint { 0%, 100% { transform: translateX(-120%); opacity: .3; } 50% { transform: translateX(120%); opacity: 1; } }
.facts__venue { display: grid; gap: .22rem; }
.facts__venue-name { color: var(--text); font-weight: 800; }
.facts__venue-address { color: var(--sun-500); font: 700 .95rem/1.25 var(--font-body); letter-spacing: .08em; }
.faq__venue { color: var(--navy-900); font-weight: 800; }
.faq__address { display: inline-block; margin: .12rem .12rem .12rem .2rem; padding: .08rem .5rem; color: var(--purple-600); font-weight: 800; letter-spacing: .04em; white-space: nowrap; border-radius: 6px; background: var(--purple-100); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.2rem; }
.hero__cta .btn--coral { --bg: #fff; --fg: var(--navy-900); }
.hero__cta .btn--coral:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.hero__cta .btn--ghost { --fg: #fff; border-color: #fff; }
.hero__cta .btn--ghost:hover { background: #fff; color: var(--sun-500); }
.stock { font: 800 .85rem var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-900); }
.stock b { color: #fff; font-size: 1.15em; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: clamp(3.5rem, 9vw, 6rem) 0; position: relative; }
#causa { overflow: hidden; isolation: isolate; }
#causa::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: 240vmax; aspect-ratio: 1; translate: -50% -50%; background: repeating-conic-gradient(var(--teal-100) 0 7deg, #fff 7deg 15deg); opacity: .65; -webkit-mask-image: radial-gradient(circle, #000 0, transparent 22%); mask-image: radial-gradient(circle, #000 0, transparent 22%); animation: slowSpin 240s linear infinite; }
.section__head { max-width: 640px; margin-bottom: 2.4rem; }
.section__head h2 { font-size: clamp(1.7rem, 5.4vw, 2.8rem); margin-top: .7rem; color: var(--navy-900); }
.section__head p { margin-top: 1rem; color: var(--text-soft); font-weight: 600; }

.projects { display: grid; gap: 1.1rem; padding: 0; margin: 0; list-style: none; }
@media (min-width: 520px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .projects { grid-template-columns: repeat(6, 1fr); } .project:nth-child(-n+3) { grid-column: span 2; } .project:nth-child(n+4) { grid-column: span 3; } }
.project { --c: var(--teal-500); --cb: var(--teal-100); display: grid; gap: .9rem; align-content: start; border: 0; box-shadow: var(--shadow-soft); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.project::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7px; background: var(--c); }
.project:nth-child(4n+2) { --c: var(--amber-500); --cb: var(--amber-100); }
.project:nth-child(4n+3) { --c: var(--sun-500); --cb: #ffe5cc; }
.project:nth-child(4n+4) { --c: var(--purple-600); --cb: var(--purple-100); }
.project:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.project__icon { width: 62px; height: 62px; padding: 15px; border-radius: 50%; background: var(--c); color: #fff; transition: transform .45s var(--ease); }
.project:nth-child(4n+2) .project__icon { color: var(--navy-900); }
.project:hover .project__icon { transform: rotate(-10deg) scale(1.1); }
.project h3 { font-size: 1.15rem; color: var(--navy-900); }

.details { display: grid; gap: 1.2rem; }
@media (min-width: 860px) { .details { grid-template-columns: 1.1fr .9fr; align-items: stretch; } }
.facts { display: grid; gap: 1.1rem; margin: 0; }
.facts div { display: grid; gap: .25rem; padding-bottom: 1.1rem; border-bottom: 2px dashed var(--line); }
.facts div:last-child { border: 0; padding: 0; }
.facts dt { font: 800 .72rem/1 var(--font-cond); letter-spacing: .24em; text-transform: uppercase; color: var(--sun-500); }
.facts dd { margin: 0; font: 700 1.2rem/1.3 var(--font-cond); letter-spacing: .01em; color: var(--navy-900); }
.ticket-cta { display: grid; align-content: center; gap: 1rem; text-align: center; overflow: hidden; isolation: isolate; color: var(--navy-900); border: 0; background: linear-gradient(160deg, var(--sun-500), var(--sun-400)); box-shadow: 0 20px 44px rgba(255, 122, 10, .35); }
.ticket-cta::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 220%; aspect-ratio: 1; translate: -50% 0; background: repeating-conic-gradient(rgba(255, 255, 255, .22) 0 7deg, transparent 7deg 15deg); animation: slowSpin 90s linear infinite; }
.ticket-cta .eyebrow { color: var(--navy-900); }
.ticket-cta .muted { color: var(--navy-900); font-weight: 600; }
.price { font: 800 clamp(2.8rem, 9vw, 4.4rem)/1 var(--font-cond); color: #fff; text-shadow: 0 3px 0 rgba(46, 42, 107, .25); }
.price small { font-size: .35em; letter-spacing: .12em; }
.ticket-cta .btn--coral:hover { box-shadow: 0 10px 26px rgba(46, 42, 107, .4); }
.ticket-cta .stock b { color: var(--navy-900); }

.faq { display: grid; gap: .7rem; }
.faq details { border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .25s, box-shadow .25s; }
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] { border-color: var(--teal-500); box-shadow: var(--shadow-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 3.4rem 1rem 1.2rem; position: relative; font: 800 .98rem/1.35 var(--font-cond); letter-spacing: .02em; color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; translate: 0 -50%; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sun-500); color: #fff; font-size: 1.3rem; line-height: 1; transition: rotate .3s var(--ease), background .2s; }
.faq details[open] summary::after { rotate: 45deg; background: var(--teal-500); }
.faq p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--text-soft); font-weight: 500; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Insignia RFC: logo circular que se expande hacia la izquierda ── */
  .dev-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #111111;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
 
  .dev-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  }
 
  .dev-badge img {
    width: 26px;
    height: 26px;
    object-fit: cover;
    flex-shrink: 0;
  }
 
  .dev-badge .text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
  }
 
  .dev-badge .title {
    font-size: 13px;
    font-weight: 600;
  }
 
  .dev-badge .subtitle {
    font-size: 11px;
    color: #b5b5b5;
  }
 
  /* mobile: shrink slightly so it doesn't eat too much screen */
  @media (max-width: 480px) {
    .dev-badge {
      padding: 8px 12px;
      bottom: 14px;
      right: 14px;
    }
    .dev-badge .title { font-size: 12px; }
    .dev-badge .subtitle { font-size: 10px; }
  }
 



/* ── Hero effects ── */
.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.eq { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 1; display: flex; align-items: flex-end; justify-content: center; gap: clamp(3px, .8vw, 9px); padding: 0 4%; pointer-events: none; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent); mask-image: linear-gradient(to top, #000 10%, transparent); }
.eq i { flex: 1; max-width: 22px; height: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(to top, #fff, rgba(255, 255, 255, .25)); transform-origin: bottom; transform: scaleY(.1); opacity: .55; animation: eq var(--d, 1.2s) ease-in-out var(--dl, 0s) infinite alternate; }
@keyframes eq { to { transform: scaleY(var(--h, .8)); } }

.seal { animation: sealIn 1.2s var(--ease) .9s both, float 6s ease-in-out 2.1s infinite; }
@keyframes sealIn { from { opacity: 0; scale: .2; rotate: -240deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }

.title__script { animation: rise 1s var(--ease) .3s both, glowG 3.5s ease-in-out 1.5s infinite; }
.title__main { background: linear-gradient(100deg, #fff 30%, #fff0b8 48%, #ffd36b 52%, #fff 70%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 6px 18px rgba(150, 50, 0, .35)); animation: titleIn 1.4s var(--ease) .5s both, sheen 5s ease-in-out 2s infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.9); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes titleIn { from { opacity: 0; transform: scale(1.5); letter-spacing: .5em; filter: blur(18px); } to { opacity: 1; transform: none; letter-spacing: .02em; } }
@keyframes sheen { 0%, 20% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
@keyframes glowG { 50% { text-shadow: 0 0 26px rgba(255, 255, 255, .95); } }

.tagline { animation: rise .9s var(--ease) 1.1s both; }
.when { animation: rise .9s var(--ease) 1.3s both; }
.when .pill { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-3deg); } }
.venue { animation: rise .9s var(--ease) 1.5s both; }
.hero__cta { animation: rise .9s var(--ease) 1.7s both; }
.stock { animation: rise .9s var(--ease) 1.9s both; }
.ticket-cta .stock { animation: none; }
.hero__cta .btn { position: relative; overflow: hidden; }
.hero__cta .btn--coral { animation: pulse 2.4s ease-in-out 2.6s infinite; }
.hero__cta .btn--coral::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 149, 7, .45), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out 2.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, .28), 0 0 34px rgba(255, 255, 255, .55); } }
@keyframes shine { 0% { left: -60%; } 40%, 100% { left: 130%; } }
@keyframes slowSpin { to { rotate: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .scene { transform: none; }
  .eq { display: none !important; }
  .eq i, .seal, .seal::after, .notes, .notes .star, .hero__content::before, .title__script, .title__main, .tagline, .when, .when .pill, .venue, .hero__cta, .stock, .hero__cta .btn::after, #causa::before, .ticket-cta::before { animation: none !important; }
  .title__main { -webkit-text-fill-color: #fff; background: none; }
  .venue__glint { animation: none !important; opacity: .45; }
}

/* ── Mobile performance profile ──────────────────────────── */
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .scene { transform: none; transition: none; will-change: auto; }
  .fx { display: none !important; }
  .eq { display: flex; height: 14%; gap: clamp(2px, .7vw, 5px); padding: 0 5%; opacity: .78; }
  .eq i { max-width: 12px; border-radius: 4px 4px 0 0; opacity: .48; }
  .hero__content { gap: .85rem; }
  .hero__content::before { animation: none; }
  .venue { width: min(100%, 440px); gap: .75rem; padding: .85rem 1rem; border-radius: 16px; }
  .venue__pin { flex-basis: 42px; width: 42px; height: 42px; border-radius: 13px; }
  .venue__name { font-size: clamp(1rem, 4vw, 1.2rem); }
  .venue__address { font-size: .86rem; letter-spacing: .09em; }
  .seal { animation: mobileFade .65s ease-out .15s both; }
  .seal::after, .notes, .notes .star { animation: none; }
  .title__script, .title__main, .tagline, .when, .venue, .hero__cta, .stock { animation: mobileFadeUp .65s ease-out both; }
  .title__script { animation-delay: .2s; }
  .title__main { animation-delay: .3s; background: none; filter: none; -webkit-text-fill-color: #fff; }
  .tagline { animation-delay: .4s; }
  .when { animation-delay: .48s; }
  .when .pill { animation: none; }
  .venue { animation-delay: .54s; }
  .hero__cta { animation-delay: .6s; }
  .stock { animation-delay: .66s; }
  .ticket-cta .stock { animation: none; }
  .hero__cta .btn, .hero__cta .btn--coral { animation: none; }
  .hero__cta .btn--coral::after { display: none; animation: none; }
  .notes { width: 84px; left: 4%; top: 22px; }
  .seal { right: 4%; width: 124px; }
}
@keyframes mobileFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mobileFadeUp { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .venue { animation: none !important; }
  .venue__glint { animation: none !important; opacity: .45; }
}
