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

:root {
  --yellow: #FFFB86;
  --yellow-dim: #e8e46a;
  --yellow-soft: #FFFECC;
  --black: #333333;
  --black-deep: #FFFB86;
  --black-card: #f5f2a0;
  --gray-dark: #5a5a5a;
  --gray-mid: #4a4a4a;
  --gray-light: #333333;
  --gray-text: #2a2a2a;
  --white: #333333;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--black-deep);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── FIXED BACKGROUND PHOTO ─── */
.bg-photo {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 0;
  background: url('img/jam-photo.jpg') center top / cover no-repeat;
}
.bg-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,251,134,0.2) 0%,
    rgba(255,251,134,0.3) 40%,
    rgba(255,251,134,0.88) 85%,
    rgba(255,251,134,1) 100%
  );
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 1.2rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(to bottom, rgba(255,251,134,0.55) 0%, rgba(255,251,134,0) 100%);
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(255,251,134,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26,26,26,0.1);
  /* sobreescribe el degradado inicial */
}
.nav-logo { height: 40px; }
.nav-logo img { height: 100%; width: auto; filter: none; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  color: var(--gray-light); text-decoration: none; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  transition: color 0.3s, opacity 0.3s;
}
.nav-links a:hover { color: var(--black); opacity: 0.5; }

/* ─── HAMBURGER ─── */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent; border: none; cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── VISUALLY HIDDEN (accesibilidad) ─── */
.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;
}

/* ─── HERO ─── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 2rem 6rem;
  text-align: center;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}
.hero-slide.active { opacity: 1; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,251,134,0.15) 0%, rgba(255,251,134,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero > *:not(.hero-slide) { position: relative; z-index: 2; }
.hero-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem 1rem;
  position: relative;
}
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -80% -120%;
  background: radial-gradient(ellipse 45% 50% at center,
    rgba(255, 255, 230, 0.92) 0%,
    rgba(255, 253, 190, 0.70) 30%,
    rgba(255, 252, 174, 0.35) 58%,
    rgba(255, 252, 174, 0)    78%
  );
  z-index: 0;
  pointer-events: none;
}
.hero-logo-wrap > * { position: relative; z-index: 1; }
.hero-logo {
  width: clamp(200px, 30vw, 360px);
  margin-bottom: 1rem;
  animation: fadeIn 1.5s ease-out;
}
.hero-logo img { width: 100%; filter: none; }
.mobile-br { display: none; }
.hero-slogan {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.35rem;
  animation: fadeIn 1.5s ease-out 0.4s both;
}
.hero-slogan-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-slogan-sub {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.78rem, 1.3vw, 0.96rem);
  font-weight: 400; font-style: normal;
  color: var(--black);
  letter-spacing: 0.05em;
  opacity: 0.65;
}
.scroll-hint {
  margin-top: 2.5rem;
  animation: fadeIn 1.5s ease-out 1.2s both, pulse 2s ease-in-out 2s infinite;
}
.scroll-hint span {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--black), transparent);
  margin: 0 auto;
}

/* ─── CONTENT LAYER ─── */
.content {
  position: relative; z-index: 2;
  background: var(--black-deep);
}

/* ─── SECTIONS ─── */
section { padding: 7rem 2rem; }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-label {
  font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--black); opacity: 0.5; margin-bottom: 0.6rem; font-weight: 500;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300;
  margin-bottom: 1rem; line-height: 1.25;
  color: var(--black);
}
.section-title em { font-style: italic; opacity: 0.6; }
.divider {
  width: 50px; height: 1px;
  background: linear-gradient(to right, var(--black), transparent);
  margin-bottom: 2.5rem;
}

/* ─── EL PROYECTO ─── */
#proyecto { border-bottom: 1px solid rgba(26,26,26,0.1); }
.proyecto-text p {
  color: var(--gray-text); font-size: 0.95rem;
  margin-bottom: 1.2rem; max-width: 700px;
}
.proyecto-text p strong { color: var(--black); font-weight: 600; }
.pilares {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.pilar {
  border: 1px solid rgba(26,26,26,0.15);
  background: rgba(255,255,255,0.35);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.3s;
}
.pilar:hover { border-color: rgba(26,26,26,0.4); transform: translateY(-3px); }
.pilar-img {
  width: 100%; aspect-ratio: 1/1;
  object-fit: cover; display: block;
}
.pilar-body { padding: 1.5rem; }
.pilar h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem; font-weight: 500;
  margin-bottom: 0.6rem; color: var(--black);
}
.pilar p { font-size: 0.82rem; color: var(--gray-mid); line-height: 1.7; }

/* ─── ESCUCHAR ─── */
#escuchar { border-bottom: 1px solid rgba(26,26,26,0.1); }
.tracks-list { display: flex; flex-direction: column; gap: 1.5rem; }
.track-item { display: flex; flex-direction: column; gap: 0.5rem; }
.track-meta { display: flex; align-items: baseline; gap: 0.75rem; }
.track-title { font-size: 1rem; font-weight: 600; color: var(--black); }
.track-type { font-size: 0.78rem; color: var(--gray-mid); letter-spacing: 0.02em; }
.track-item iframe { border-radius: 4px; display: block; }

/* ─── PARA IMAGEN ─── */
#imagen { background: rgba(255,255,255,0.2); border-bottom: 1px solid rgba(26,26,26,0.1); }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.video-item .video-embed {
  position: relative; width: 100%; padding-bottom: 56.25%;
  background: rgba(26,26,26,0.1); overflow: hidden;
}
.video-item .video-embed iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}
.video-item .video-info { padding: 1rem 0; }
.video-item .video-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem; font-weight: 400;
  margin-bottom: 0.2rem; color: var(--black);
}
.video-item .video-info span {
  font-size: 0.75rem; color: var(--gray-mid);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ─── SOBRE MÍ ─── */
#sobre-mi { border-bottom: 1px solid rgba(26,26,26,0.1); }
.bio-content { max-width: 700px; }
.bio-content p {
  color: var(--gray-text); font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.bio-content p strong { color: var(--black); font-weight: 600; }
.bio-links {
  display: flex; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.bio-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(26,26,26,0.25);
  color: var(--black); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: all 0.3s; font-weight: 500;
}
.bio-link:hover { background: var(--black); color: var(--yellow); border-color: var(--black); }

/* ─── CONTACTO ─── */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info p { color: var(--gray-text); font-size: 0.92rem; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-link {
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--gray-text); text-decoration: none;
  font-size: 0.88rem; transition: color 0.3s;
}
.contact-link:hover { color: var(--black); }
.contact-link .icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(26,26,26,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--black); flex-shrink: 0;
  letter-spacing: 0;
}
.contact-form { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-form input, .contact-form textarea {
  background: rgba(255,255,255,0.5); border: 1px solid rgba(26,26,26,0.15);
  color: var(--black); padding: 0.85rem 1.1rem;
  font-family: 'Outfit', sans-serif; font-size: 0.88rem;
  outline: none; transition: border-color 0.3s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--gray-dark); }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(26,26,26,0.4); }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form button {
  background: transparent; border: 1px solid var(--black);
  color: var(--black); padding: 0.85rem 2rem;
  font-family: 'Outfit', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s; align-self: flex-start; font-weight: 500;
}
.contact-form button:hover:not(:disabled) { background: var(--black); color: var(--yellow); }
.contact-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.form-msg {
  display: none; padding: 0.85rem 1.1rem;
  font-size: 0.82rem; letter-spacing: 0.05em;
}
.form-msg.success {
  display: block;
  border: 1px solid rgba(26,26,26,0.3);
  color: var(--black);
}
.form-msg.error {
  display: block;
  border: 1px solid rgba(200,50,50,0.4);
  color: #aa2222;
}

/* ─── FOOTER ─── */
footer {
  padding: 3rem 2rem; text-align: center;
  border-top: 1px solid rgba(26,26,26,0.1);
  font-size: 0.7rem; color: var(--gray-mid);
  letter-spacing: 0.12em;
}
footer a { color: var(--black); text-decoration: none; transition: opacity 0.3s; }
footer a:hover { opacity: 0.5; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }

/* ─── ANIMATIONS ─── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }

  .nav-links {
    display: none;
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(255,251,134,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center; align-items: center;
    gap: 2.5rem;
    z-index: 105;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; letter-spacing: 0.2em; }
  .nav-toggle { display: flex; }

  .hero { padding-bottom: 4rem; }
  .hero-logo-wrap::before { inset: -60% -80%; }
  .hero-slide { background-position: center 15%; }
  .hero-slogan-sub { letter-spacing: 0.02em; }
  .mobile-br { display: block; }
  .pilares { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  section { padding: 5rem 1.5rem; }
}
@media (max-width: 480px) {
  .nav-logo { height: 24px; }
  .hero { padding-bottom: 3rem; }
  .hero-logo-wrap::before { inset: -50% -60%; }
  .bio-links { flex-direction: column; }
}

/* ─── ALIANZA WM & RECURSOS ─── */
#alianza-wm {
  border-bottom: 1px solid rgba(26,26,26,0.1);
}

.alianza-intro {
  margin-bottom: 2.5rem;
}

.alianza-intro a {
  color: var(--black);
  text-decoration: underline;
}

.recursos-grid {
  align-items: stretch;
}

.recurso-card {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(26, 26, 26, 0.15);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  height: 100%; /* Asegura que llene exactamente el 100% de la fila del grid */
}

.recurso-tag {
  color: var(--black);
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  margin-bottom: 0.5rem;
  opacity: 0.5;
  text-transform: uppercase;
}

.recurso-title {
  color: var(--black);
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.recurso-desc {
  color: var(--gray-text);
  font-size: 0.85rem;
  line-height: 1.6;
}

.recurso-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: auto; /* Empuja los botones al fondo para cerrar el bloque al ras */
}

@media (max-width: 768px) {
  .recurso-actions {
    margin-top: 1.8rem;
  }
}

.btn-descarga {
  justify-content: center;
  text-align: center;
  width: 100%;
}

.enlace-tienda {
  color: var(--gray-mid);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  padding-top: 0.2rem;
  text-align: center;
  text-decoration: underline;
}

/* ─── DESCARGAS & LEAD MAGNET MAILCHIMP ─── */
.form-feedback {
  display: none;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
  text-align: center;
}

.form-feedback.success {
  color: var(--black);
  display: block;
}

.form-feedback.error {
  color: #aa2222;
  display: block;
}

.recurso-download-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: auto;
}

.recurso-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.recurso-input-wrap input {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 26, 26, 0.2);
  color: var(--black);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  outline: none;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s;
  width: 100%;
}

.recurso-input-wrap input:focus {
  border-color: var(--black);
}

.recurso-input-wrap input::placeholder {
  color: var(--gray-dark);
}

@media (max-width: 768px) {
  .recurso-download-form {
    margin-top: 1.8rem;
  }
}

/* Botón submit para igualar la apariencia de .bio-link */

button.bio-link {
  background: transparent;
  border: 1px solid rgba(26, 26, 26, 0.25);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  line-height: inherit;
  outline: none;
}

button.bio-link:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}