:root{
  --nav-bg:#805b34;
  --hero-bg:#74502a;
  --philo-bg:#684620;
  --programmers-bg:#5b3b16;
  --talks-bg:#4f300c;
  --charlas-bg:#472a0a;
  --lineup-bg: #42280b;
  --artists-bg:#3e2509;
  --schedule-bg:#361f07;
  --location-bg:#2d1905;
  --footer-bg:#231304;
  --footer-bottom-bg:#1e0f04;

  --yellow:#ffd966;
  --pink:#ff8fff;
  --text-light:#fff7ec;
  --text-dark:#2d1905;
}

/* ===================================================
   SISTEMA DE BOTONES – MUDO / HUELLA
   =================================================== */

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'Chivo Mono', monospace;
  font-size: 1.2rem;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-yellow {
  background-color: #f4d35e;
  color: #3a2a1a;
}
.btn-yellow:hover {
  background-color: #7a552f;
  color: #f4d35e;
  border-color: #f4d35e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.btn-yellow:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(244, 211, 94, 0.5);
}
.btn-yellow:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.btn-pink {
  background-color: var(--pink);
  color: #361f07;
}
.btn-pink:hover {
  background-color: #7a552f;
  color: var(--pink);
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.btn-pink:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(240, 201, 214, 0.55);
}
.btn-pink:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.btn-outline-yellow {
  background-color: transparent;
  color: #f4d35e;
  border-color: #f4d35e;
}
.btn-outline-yellow:hover {
  background-color: #f4d35e;
  color: #3a2a1a;
}

.btn-outline-pink {
  background-color: transparent;
  color: #f0c9d6;
  border-color: #f0c9d6;
}
.btn-outline-pink:hover {
  background-color: #f0c9d6;
  color: #3a2a1a;
}

.btn.is-disabled,
.btn:disabled {
  background-color: #c9bfa6;
  color: #6b5a45;
  border-color: #c9bfa6;
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
  transform: none;
}

html,
body {
  margin: 0;
  background-color: var(--pink);
}

.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;
}

/* ANNOUNCEMENT BAR */

.announcement-bar {
  background-color: var(--yellow);
  color: var(--text-dark);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.announcement-text {
  margin: 0;
}


/* RESET */
*{box-sizing:border-box}
body{margin:0;font-family:"Chivo Mono",monospace;color:var(--text-light)}

/* =====================
   NAV BASE (DESKTOP)
   ===================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
}

.nav {
  max-width:1200px;
  margin:0 auto;
  padding:1rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position: relative;
}

.nav__logo img {
  height:40px;
}

.nav__toggle {
  display:none;
  background:none;
  border:none;
  font-size:2rem;
  color:var(--yellow);
}

.nav__toggle:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.nav__menu {
  list-style:none;
  display:flex;
  gap:1.5rem;
  margin:0;
  padding:0;
}

.nav__toggle:hover {
  color: var(--yellow);
}

.nav__toggle:active {
  transform: scale(0.95);
}


/* =====================================
   NAV – ESTADOS DE BOTÓN
   ===================================== */

.nav__menu a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  position: relative;
}

/* HOVER */
.nav__menu a:hover {
  color: var(--pink);
}

/* FOCUS (TECLADO – WCAG) */
.nav__menu a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ACTIVE (CLICK / TAP) */
.nav__menu a:active {
  color: var(--yellow);
}

/* INDICADOR VISUAL */
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: var(--yellow);
  transition: width 0.25s ease;
}

.nav__menu a:hover::after,
.nav__menu a:focus-visible::after {
  width: 100%;
}


/* HERO */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #7a552f;
  padding: 4rem 2rem;
}
.hero-content {
  text-align: center;
  max-width: 1200px;
}
.hero-logo {
  max-width: 1200px;
  width: 100%;
}
.hero-subtitle {
  font-family: 'Chivo Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff7ec;
  margin-bottom: 2.5rem;
}

.hero {
  overflow: hidden;
}

/* SECTIONS */
.section{padding:5.5rem 1rem;text-align:center}
h2{font-size:2.4rem;margin-bottom:2rem}

h2 {
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
/* PHILO */
.philo{background:var(--philo-bg);padding:7rem 1rem}
.philo-text{max-width:760px;margin:0 auto;font-size:1.6rem;font-weight:700;color:var(--pink)}

/* PROGRAMADORES */
.programmers{background:var(--programmers-bg)}
.programmers-manifesto{max-width:760px;margin:0 auto 2.5rem}

/* Ajuste de interlineado – cards programadores */

.programmer-name{
  margin-bottom: .3rem;     /* antes era mayor por defecto */
  line-height: 1.2;
}

.programmer-project{
  margin-bottom: .25rem;
  line-height: 1;
}

.programmer-territory{
  margin-bottom: 0;         
  line-height: 1.2;
}


/* ===================================================
   CARDS – PROGRAMADORES (ÚNICO BLOQUE MODIFICADO)
   =================================================== */

.cards-scroll{
  display:flex;
  gap:1.25rem;
  overflow-x:auto;
  padding:2rem 1rem;
}

/* card base */
.card{
  min-width:220px;
  height:360px;                 
  border-radius:16px;
  padding:1rem;
  flex-shrink:0;

  display:flex;
  flex-direction:column;
}

/* variante programador */
.programmer-card{
  background:var(--yellow);
  color:var(--text-dark);
}

/* imagen blindada */
.card-photo{
  width:100%;
  aspect-ratio:1 / 1;
  border-radius:12px;
  margin-bottom:.5rem;
  overflow:hidden;
  background:rgba(0,0,0,.15);

  display:flex;
  align-items:center;
  justify-content:center;
}



.card-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* texto */
.programmer-name{
  font-size:1rem;
  margin-bottom:.4rem;
}

.programmer-project{
  font-size:.9rem;
  line-height:1.3;
  margin-bottom:.35rem;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.programmer-territory{
  font-size:.85rem;
  font-weight:600;
  opacity:.9;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ARTISTAS */
.artist-card{background:var(--pink);color:var(--text-dark)}


/* CHARLAS */
.talks{background:var(--talks-bg)}
.talks--charlas{background:var(--charlas-bg)}

.talk-card {
  background: var(--pink);
  color: var(--text-dark);
  border-radius: 20px;
  padding: 1.5rem;
  width: 260px;
  flex-shrink: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.talk-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.talks .talk-photo {
  display: none;
}

.talks .talk-card {
  grid-template-columns: 1fr;
}

.talk-title{font-size:1.4rem;margin-bottom:1rem}
.talk-name{font-weight:600;margin-bottom:1.25rem;opacity:.95}

.talk-name .label {
  display: block;
  margin-bottom: 0.25rem;
}

.talk-name .names {
  display: block;
  font-weight: 400; /* opcional */
}


.talk-desc{margin-bottom:2rem;max-width:38ch}

.talk-content p:last-of-type,
.talk-content .btn {
  margin-top: auto;
}

.talks-slider{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(320px,1fr);
  gap:3rem;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:1rem;
  scrollbar-width:none;
}
.talks-slider::-webkit-scrollbar{display:none}

.talk-card,
.talk-content{text-align:start}

.talks-slider {
  grid-auto-columns: minmax(340px, 1fr);
  gap: 2rem;
}

.talk-card {
  width: auto; /* importante */
}


/* ===== TALKS – JERARQUÍA ===== */

.talk-date {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0.5rem 0 0.25rem;
}

.talk-desc {
  opacity: 0.85;
  margin-bottom: 1rem;
}

.talk-entry {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ===== BOTÓN ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-pink {
  background-color: #2C1905;
  color: #F6A3FF;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
}


/* LINEUP */
.lineup{background:var(--lineup-bg)}
.lineup-list{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;font-size:clamp(2.4rem,4vw,3rem);font-weight:700}
.lineup.yellow{color:var(--yellow)}
.lineup.pink{color:var(--pink)}


/* ARTISTS */
.artists{background:var(--artists-bg)}


.artist-style {
  text-align: center;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.artist-city {
  text-align: center;
  margin-top: 0;
  line-height: 1.3;
}


/* SCHEDULE */



.schedule{background:var(--schedule-bg)}
.schedule-card{padding:2rem;border-radius:20px;color:var(--text-dark)}
.schedule-card.yellow{background:var(--yellow)}
.schedule-card.pink{background:var(--pink)}
.schedule-day{font-size:1.6rem;margin-bottom:1.25rem}


.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 2rem;
}

.schedule-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.schedule-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.25rem;
  align-items: start;
}

.schedule-row .activity {
  text-align: left;
  justify-self: start;
}

.schedule-row > span{
  display:block;
}

.schedule-venue {
  margin: 0.75rem 0 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}


.hour{
  text-align:right;
  white-space:nowrap;
  font-weight:700;
  line-height:1.4;
}

.schedule-card h3 {
  margin-bottom: 0.5rem;
}

.schedule-card {
  display: flex;
  flex-direction: column;
}

/* LOCATION */
.location{background:var(--location-bg)}
.map-placeholder iframe{
  height:320px;
  margin-bottom:1.5rem;
  border:0;
}

/* FOOTER */
.footer{background:var(--footer-bg)}
.footer-top{display:flex;justify-content:space-between;align-items:center;padding:3rem 1rem}
.footer-paocc{height:207px}
.footer-social a{text-decoration:none}
.footer-social svg{width:30px;height:30px;stroke:var(--text-light);fill:none;stroke-width:1.6}
.footer-bottom{background:var(--footer-bottom-bg);padding:1rem;display:flex;justify-content:center;position:relative}
.pickaxe{position:absolute;left:1rem;color:var(--yellow);font-size:1.5rem}
.pelodelobo{font-size:12px;color:var(--pink)}

.pelodelobo a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

/* VISITED */
.pelodelobo a:visited {
  color: #e0c45a; /* amarillo un poco más apagado */
}

/* HOVER (mouse) */
.pelodelobo a:hover {
  text-decoration: underline;
}

/* FOCUS (teclado – WCAG) */
.pelodelobo a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}



/* =========================
   Flip card – artistas
   ========================= */

.flip-card {
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: inherit;
  padding: 1rem;
}

.flip-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;     /* izquierda */
  justify-content: flex-start; /* arriba */
  text-align: left;
  padding: 1.25rem;
}

.flip-back .btn {
  margin-top: auto;
  align-self: flex-start;
}

.flip-back {
  font-size: 0.9rem;
  line-height: 1.35;
}

html,
body {
  overflow-x: hidden;
}


/* MOBILE */
@media (max-width:900px){
  .talk-card{grid-template-columns:1fr}
}

@media (max-width: 640px){
  .hero-logo{
    width: 120%;
    max-width: none;
    margin-left: -10%;
  }
}


@media(max-width:640px){
  .talk-photo{width:100%}
  .footer-top{flex-direction:column;gap:1.5rem}
  .footer-paocc{height:170px}
}

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

  .schedule-row {
    grid-template-columns: max-content 1fr;
    column-gap: 0.75rem;
  }
}

/* HOVER SOLO EN DISPOSITIVOS CON MOUSE */
@media (hover:hover) and (pointer:fine){
  .btn-yellow:hover,
  .btn-pink:hover,
  .btn-outline-yellow:hover,
  .btn-outline-pink:hover{
    transform:translateY(-2px);
  }
}
@media (max-width:640px){
  .btn{width:100%;text-align:center}
}

@media (prefers-reduced-motion: reduce) {
  .flip-inner {
    transition: none;
  }
}



/* =====================================
   ESCALA REAL – MOBILE
   ===================================== */

@media (max-width: 768px) {

  /* CARDS GENERALES */
  .card,
  .artist-card,
  .programmer-card {
    min-width: 300px;
    height: 460px;
    padding: 1.5rem;
  }

  /* PROGRAMADORES */
  .programmer-name {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .programmer-project {
    font-size: 1.15rem;
    line-height: 1.45;
  }

  .programmer-territory {
    font-size: 1rem;
  }

  /* ARTISTAS */
  .artist-name {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .artist-style {
    font-size: 1.1rem;
  }

  .artist-bio {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  /* TALKS */
  .talk-card {
    padding: 2rem;
  }

  .talk-title {
    font-size: 1.45rem;
    line-height: 1.35;
  }

  .talk-name {
    font-size: 1.1rem;
  }

  .talk-date {
    font-size: 1rem;
  }

  .talk-desc {
    font-size: 1.05rem;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    background: var(--nav-bg);

    display: none;
    flex-direction: column;
    gap: 1.25rem;

    padding: 1.5rem 1rem 2rem;

    z-index: 2000;
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__menu a {
    font-size: 1.2rem;
  }

  .nav__toggle[aria-expanded="true"] {
  color: var(--pink);
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


}