/* ===================================================================
   El Beso del Árbol — Live Electronic Music
   =================================================================== */

:root{
  --color-bg:            #12333a;
  --color-bg-alt:        #1a3f47;
  --color-bg-deep:       #071a1e;
  --color-cream:         #f5ecd9;
  --color-cream-soft:    #e9dcc3;
  --color-amber:         #cf9a4c;
  --color-amber-soft:    #e3b673;
  --color-amber-bright:  #f0c98a;
  --color-sky-pale:      #d3edf0;
  --color-text:          #efe4d2;
  --color-text-muted:    #a9bcbe;
  --color-line:          rgba(245, 236, 217, 0.14);
  --color-line-strong:   rgba(245, 236, 217, 0.28);

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --section-pad: clamp(4.5rem, 9vw, 9rem);

  --ease-slow: cubic-bezier(.22,.61,.36,1);
}

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

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Cool, non-uniform gradient backdrop — derived from the hero photo's
   own palette (deep teal-blue fusing into near-black at the edges).
   Fixed to the viewport (not the page) so it reads as one continuous
   field behind every section. */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(47,122,140,0.32), transparent 62%),
    radial-gradient(ellipse 85% 65% at 50% 108%, rgba(4,10,12,0.68), transparent 72%),
    linear-gradient(180deg, #1a3f47 0%, #12333a 45%, #071a1e 100%);
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

h1, h2, h3{
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-cream);
  margin: 0;
  letter-spacing: 0.01em;
}

p{ margin: 0 0 1.2em; }
p:last-child{ margin-bottom: 0; }

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Subtle film-grain / vignette overlay for texture */
.grain-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.section-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.eyebrow{
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-amber-soft);
  margin: 0 0 1.4rem;
}
.eyebrow.center{ text-align: center; }

/* Reveal-on-scroll */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-slow), transform 1.1s var(--ease-slow);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ===================== BUTTONS ===================== */
.btn{
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95em 2.1em;
  border-radius: 2px;
  cursor: pointer;
  transition: background .5s var(--ease-slow), color .5s var(--ease-slow), border-color .5s var(--ease-slow);
}
.btn-outline{
  background: transparent;
  border: 1px solid var(--color-line-strong);
  color: var(--color-cream);
}
.btn-outline:hover{
  border-color: var(--color-amber-soft);
  color: var(--color-amber-soft);
}
.btn-solid{
  background: var(--color-amber);
  border: 1px solid var(--color-amber);
  color: var(--color-bg-deep);
  font-weight: 500;
}
.btn-solid:hover{
  background: var(--color-amber-soft);
  border-color: var(--color-amber-soft);
}
.link-underline{
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-line-strong);
  padding-bottom: 2px;
  transition: color .4s var(--ease-slow), border-color .4s var(--ease-slow);
}
.link-underline:hover{
  color: var(--color-amber-soft);
  border-color: var(--color-amber-soft);
}

/* ===================== HEADER / NAV ===================== */
.site-header{
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  pointer-events: none;
}

.nav{
  display: flex;
  justify-content: flex-end;
  pointer-events: auto;
  width: 100%;
}

.nav-menu{
  list-style: none;
  display: flex;
  gap: clamp(1.1rem, 3vw, 2.8rem);
  margin: 0;
  padding: 0;
  opacity: 1;
}

.nav-link{
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cream-soft);
  white-space: nowrap;
  transition: color .3s ease;
}
.nav-link:hover{ color: var(--color-amber-soft); }

/* Mobile: keep the menu always visible; shrink and allow horizontal
   scroll if it doesn't fit rather than hiding it behind a trigger. */
@media (max-width: 640px){
  .nav{ justify-content: center; }
  .nav-menu{
    max-width: 100%;
    gap: 1rem;
    padding: 0.4rem 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-menu::-webkit-scrollbar{ display: none; }
  .nav-link{ font-size: 0.68rem; letter-spacing: 0.12em; }
}

/* ===================== HERO ===================== */
.hero{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  background-image: url('../assets/fotos/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  /* Pin the hero image to the viewport so the rest of the page slides
     over it as you scroll. Confined to the hero's box, so no other
     section is affected. */
  background-attachment: fixed;
}

/* iOS/Safari mobile handle fixed backgrounds poorly, so fall back to the
   normal scrolling image there — the hero looks exactly as before. */
@media (max-width: 768px){
  .hero-bg{ background-attachment: scroll; }
}

.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 62% 46% at 50% 54%, rgba(2,8,10,0.66), transparent 76%),
    linear-gradient(180deg, rgba(3,10,12,0.58) 0%, rgba(3,10,12,0.44) 40%, rgba(3,10,12,0.68) 100%);
}

.hero-inner{
  max-width: 640px;
  position: relative;
  z-index: 3;
}

.hero-logo{
  width: min(78vw, 460px);
  margin: 0 auto 1.8rem;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.75)) drop-shadow(0 0 22px rgba(0,0,0,0.65)) drop-shadow(0 3px 10px rgba(0,0,0,0.55));
}

.hero-subtitle{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--color-cream-soft);
  letter-spacing: 0.02em;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-scroll-cue{
  position: absolute;
  top: calc(75% + 3.25rem);
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: rgba(211,237,240,0.22);
  overflow: visible;
  z-index: 1;
}
.hero-scroll-cue span{
  position: absolute;
  top: 0; left: 50%;
  width: 16px; height: 36px;
  margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(211,237,240,0.9) 0%, rgba(211,237,240,0.32) 48%, rgba(211,237,240,0) 76%);
  filter: blur(1.5px);
  box-shadow: 0 0 22px 8px rgba(211,237,240,0.28);
  animation: scrollCue 3.2s linear infinite;
}
@keyframes scrollCue{
  0%{ top: -18px; opacity: 0; }
  12%{ opacity: 1; }
  88%{ opacity: 1; }
  100%{ top: 100%; opacity: 0; }
}

/* ===================== VIDEO ===================== */
.video-section{
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--section-pad);
}
.video-section .section-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
}
.video-frame{
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-deep);
  border: 1px solid var(--color-line);
  overflow: hidden;
}
.video-frame iframe{
  width: 100%; height: 100%; border: 0;
}

/* ===================== ABOUT ===================== */
.about{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  background: linear-gradient(180deg, rgba(7,26,30,0.3), rgba(7,26,30,0.48));
}
.about-media{ height: 100%; min-height: 420px; overflow: hidden; }
.about-media img{ width: 100%; height: 100%; object-fit: cover; }
.about-copy{
  padding: var(--section-pad) clamp(2rem, 6vw, 5rem);
  font-size: 1.02rem;
  color: var(--color-text-muted);
}
.about-emphasis{
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-cream);
  font-size: 1.2rem;
  margin-top: 1.6rem;
}

@media (max-width: 860px){
  .about{ grid-template-columns: 1fr; }
  .about-media{ min-height: 360px; }
}

/* ===================== EXPERIENCES ===================== */
.experiences{ padding: var(--section-pad) 0; }

.experience{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.experience:last-child{ margin-bottom: 0; }
.experience-reverse{ direction: rtl; }
.experience-reverse > *{ direction: ltr; }

.experience-media{ aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; }
.experience-media img{ width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-slow); }
.experience-media:hover img{ transform: scale(1.04); }

.experience-copy h2{
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1.6rem;
}
.experience-subtitle{
  font-style: italic;
  color: var(--color-amber-soft);
  font-size: 0.7em;
}

.experience-details{ margin: 0 0 2rem; }
.experience-details > div{
  display: flex;
  gap: 1.2rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--color-line);
}
.experience-details > div:last-child{ border-bottom: 1px solid var(--color-line); }
.experience-details dt{
  flex: 0 0 130px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.experience-details dd{ margin: 0; font-size: 0.95rem; }

.experience-actions{
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

@media (max-width: 860px){
  .experience, .experience-reverse{ grid-template-columns: 1fr; direction: ltr; }
}

/* ===================== QUOTE ===================== */
.quote{
  padding: var(--section-pad) 1.5rem;
  background: rgba(4,10,12,0.4);
  text-align: center;
}
.quote blockquote{
  max-width: 780px;
  margin: 0 auto;
}
.quote p{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--color-cream);
  line-height: 1.5;
}
.quote cite{
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-amber-soft);
}

/* ===================== MUSIC ===================== */
.music{ padding: var(--section-pad) 0; }
.music-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.signup-copy{ color: var(--color-text-muted); margin-bottom: 1.6rem; }

.mailerlite-form{
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.mailerlite-form input[type="email"]{
  flex: 1 1 220px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-line-strong);
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.8em 0.2em;
}
.mailerlite-form input[type="email"]::placeholder{ color: var(--color-text-muted); }
.mailerlite-form input[type="email"]:focus{
  outline: none;
  border-color: var(--color-amber-soft);
}

@media (max-width: 860px){
  .music-grid{ grid-template-columns: 1fr; }
}

/* ===================== BOOK A CALL ===================== */
.book-call{
  position: relative;
  padding: var(--section-pad) 1.5rem;
  overflow: hidden;
}
.book-call-bg{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.book-call-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,26,30,0.78) 0%, rgba(7,26,30,0.52) 40%, rgba(7,26,30,0.85) 100%);
}
.book-call-inner{
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.book-call-title{
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 2.6rem;
}

.contact-form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 2rem;
  text-align: left;
}
.field{ position: relative; grid-column: span 1; }
.field-message{ grid-column: 1 / -1; }

.field input,
.field textarea{
  width: 100%;
  background: rgba(7,26,30,0.32);
  border: none;
  border-bottom: 1px solid var(--color-line-strong);
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  padding: 1.3em 0.2em 0.6em;
  resize: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  transition: border-color .4s ease, background .4s ease;
}
.field textarea{ padding-top: 1.6em; }
.field input:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--color-amber-soft);
  background: rgba(242,234,217,0.08);
}

/* Neutralize Chrome/Safari's white autofill background so it respects
   the site palette instead of stamping its own light-yellow fill. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.mailerlite-form input:-webkit-autofill,
.mailerlite-form input:-webkit-autofill:hover,
.mailerlite-form input:-webkit-autofill:focus{
  -webkit-text-fill-color: var(--color-cream);
  caret-color: var(--color-cream);
  -webkit-box-shadow: 0 0 0 1000px rgba(7,26,30,0.9) inset;
  box-shadow: 0 0 0 1000px rgba(7,26,30,0.9) inset;
  transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
}

.field label{
  position: absolute;
  left: 0.2em; top: 1.3em;
  font-size: 0.95rem;
  color: var(--color-cream-soft);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  pointer-events: none;
  transition: transform .3s var(--ease-slow), font-size .3s var(--ease-slow), color .3s var(--ease-slow), top .3s var(--ease-slow);
}
.field textarea ~ label{ top: 1.6em; }

.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label{
  top: -0.1em;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-amber-soft);
}

.contact-form .btn-solid{
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.6rem;
}

@media (max-width: 640px){
  .contact-form{ grid-template-columns: 1fr; }
}

/* ===================== FAQ ===================== */
.faq{ padding: var(--section-pad) 0; }
.faq-list{ max-width: 820px; margin: 0 auto; }

.faq-item{
  border-bottom: 1px solid var(--color-line);
}
.faq-item:first-child{ border-top: 1px solid var(--color-line); }

.faq-question{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: none;
  border: none;
  color: var(--color-cream);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  text-align: left;
  padding: 1.7rem 0.2rem;
  cursor: pointer;
}

.faq-icon{
  position: relative;
  flex: 0 0 18px;
  width: 18px; height: 18px;
}
.faq-icon::before,
.faq-icon::after{
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--color-amber-soft);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease-slow);
}
.faq-icon::before{ width: 14px; height: 1px; }
.faq-icon::after{ width: 1px; height: 14px; }
.faq-item.is-open .faq-icon::after{ transform: translate(-50%, -50%) rotate(90deg) scale(0); }

.faq-answer{
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows .55s var(--ease-slow);
}
.faq-item.is-open .faq-answer{ grid-template-rows: 1fr; }

.faq-answer > *{
  overflow: hidden;
  min-height: 0;
}
.faq-answer p{
  color: var(--color-text-muted);
  font-size: 0.98rem;
  margin: 0 0 0.6rem;
  padding: 0 0.2rem;
}
.faq-answer > p{ padding-bottom: 1.7rem; }
.faq-answer > div{ padding-bottom: 1.7rem; }
.faq-answer p:last-child{ margin-bottom: 0; }

/* ===================== BEHIND THE PROJECT ===================== */
.behind{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  background: linear-gradient(180deg, rgba(7,26,30,0.3), rgba(7,26,30,0.48));
}
.behind-media{ height: 100%; min-height: 460px; overflow: hidden; }
.behind-media img{ width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.behind-copy{
  padding: var(--section-pad) clamp(2rem, 6vw, 5rem);
  color: var(--color-text-muted);
}
.behind-lead{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--color-cream);
  margin-bottom: 1.6rem;
}
.behind-copy .btn{ margin-top: 1.6rem; }

@media (max-width: 860px){
  .behind{ grid-template-columns: 1fr; }
  .behind-media{ min-height: 380px; }
}

/* ===================== FOOTER ===================== */
.site-footer{
  background: var(--color-bg-deep);
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem 3rem;
  border-top: 1px solid var(--color-line);
}
.footer-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.2rem;
}
.footer-logo{ width: 220px; opacity: 0.9; }

.social-icons{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  margin: 0; padding: 0;
}
.social-icons a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: color .35s ease, border-color .35s ease, transform .35s ease;
}
.social-icons a:hover{
  color: var(--color-amber-soft);
  border-color: var(--color-amber-soft);
  transform: translateY(-2px);
}
.social-icons svg{ width: 17px; height: 17px; }

.footer-text{
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}
.footer-text a:hover{ color: var(--color-amber-soft); }
.footer-copyright{ opacity: 0.6; margin-top: 0.4rem; }

/* ===================== RESPECT REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ transition: none; opacity: 1; transform: none; }
  .hero-scroll-cue span{ animation: none; }
}
