/* ============================================================
   Orquesta de Charangos de Chile — estilos del sitio
   Los tokens de :root reflejan la fuente de verdad del workspace:
   recursos/identidad-visual/tokens-orquesta-charangos.css
   No hardcodear colores fuera de este bloque.
   ============================================================ */
:root {
  --papel:             #f6f5f3;
  --arena:             #b29e84;
  --linea:             #bdb3a4;
  --taupe:             #807666;   /* solo titulares y texto grande (4.1:1 sobre papel) */
  --taupe-oscuro:      #6e6556;   /* cuerpo sobre papel (5.3:1) y bandas con texto blanco (5.7:1) */
  --tinta:             #282725;
  --terracota:         #aa6534;   /* botones; blanco encima 4.55:1 — no para texto pequeño sobre papel */
  --terracota-oscuro:  #965a2c;   /* hover y enlaces (5.1:1 sobre papel) */
  --mostaza:           #cd9237;   /* solo decorativo */
  --verde:             #2d5439;
  --white:             #ffffff;

  /* Colores de marca de terceros — solo para identificar los botones de redes.
     No forman parte de la identidad visual de la orquesta: no usar en otras piezas. */
  --ig-amarillo:  #f9ce34;
  --ig-rosa:      #ee2a7b;
  --ig-morado:    #8a3ab9;
  --yt-rojo:      #ff0000;
  --fb-azul:      #1877f2;

  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(40, 39, 37, .10);

  /* Playfair Display reemplaza a Manison (la del dossier), cuya licencia web no está verificada. */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* El sitio es claro por diseño (regla R2). En un sitio claro, `light` solo NO basta: el Auto
     Dark Theme de Chrome en Android igual oscurece el fondo y el texto del logo (casi negro) queda
     sin contraste. `only light` le prohíbe al navegador forzar el modo oscuro. Va también como
     <meta> en el <head>, para que aplique antes de que cargue esta hoja. */
  color-scheme: only light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, figure, figcaption { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--tinta);
  background: var(--papel);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--terracota-oscuro); }
a:hover { color: var(--tinta); }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 760px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--tinta); color: var(--white); padding: .75rem 1.25rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; }

/* ---------- Tipografía común ---------- */
/* Subtítulo entre dos filetes, como en el dossier ("JUSTIFICACIÓN ARTÍSTICA Y CONCEPTUAL"). */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--taupe-oscuro);
  padding: .35rem 0;
  border-block: 1px solid var(--linea);
  margin-bottom: 1rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem);
  line-height: 1.12;
  color: var(--taupe);
}
.section__lead { color: var(--taupe-oscuro); margin-top: .9rem; max-width: 62ch; }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--white); border-block: 1px solid var(--linea); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: .98rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--terracota); color: var(--white); }
.btn--primary:hover { background: var(--terracota-oscuro); color: var(--white); }
.btn--ghost { border: 1px solid var(--tinta); color: var(--tinta); }
.btn--ghost:hover { background: var(--tinta); color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--papel);
  border-bottom: 1px solid var(--linea);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.nav__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--tinta); }
.nav__brand img { width: auto; height: 46px; }
.nav__brand span {
  font-size: .78rem; font-weight: 600; line-height: 1.25;
  text-transform: uppercase; letter-spacing: .1em;
}
.nav__menu { display: flex; gap: 1.4rem; }
.nav__menu a {
  color: var(--tinta); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .25rem 0; border-bottom: 2px solid transparent;
}
.nav__menu a:hover { border-bottom-color: var(--terracota); }

/* Los links de sección son navegación interna; los íconos son salidas a otra plataforma.
   El divisor mantiene esa distinción en vez de mezclarlos en una sola fila. */
.nav__right { display: flex; align-items: center; gap: 1.4rem; }
.nav__social {
  display: flex; align-items: center; gap: .9rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--linea);
}
.nav__social-link { display: flex; color: var(--tinta); }
.nav__social-link svg { width: 20px; height: 20px; }
.nav__social-link--ig:hover { color: var(--ig-rosa); }
.nav__social-link--yt:hover { color: var(--yt-rojo); }
.nav__social-link--fb:hover { color: var(--fb-azul); }

.nav__toggle {
  display: none;
  /* appearance:none porque iOS Safari pinta su propio estilo de <button> encima. */
  appearance: none; -webkit-appearance: none;
  background: none; border: 0; cursor: pointer;
  color: var(--tinta);
  width: 42px; height: 38px; padding: 8px;
}
/* width:100% explícito: sin él las barras dependen del ancho de contenido del botón. */
.nav__toggle span { display: block; width: 100%; height: 2px; background: currentColor; margin: 5px 0; transition: .2s; }

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  /* El menú sale del flujo, así que acá el divisor separaría la marca de los íconos: sin él. */
  .nav__right { gap: .5rem; }
  .nav__social { padding-left: 0; border-left: 0; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--papel);
    border-bottom: 1px solid var(--linea);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav__menu a { padding: .9rem 1.25rem; border-bottom: 1px solid var(--linea); }
  .nav__menu a:hover { border-bottom-color: var(--linea); background: var(--white); }
  .nav.is-open .nav__menu { max-height: 420px; }
}
@media (max-width: 520px) {
  .nav__brand span { display: none; }
  .nav__social { gap: .7rem; }
}

/* ---------- Hero ---------- */
/* Dos paneles, como la portada del dossier: el logo sobre papel y el texto sobre arena. */
.hero { display: grid; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1fr; min-height: min(86vh, 760px); } }
.hero__logo {
  display: grid; place-items: center;
  background: var(--papel);
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
}
.hero__logo img { width: min(100%, 340px); }
.hero__text {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--arena);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4.5rem);
}
.hero__kicker {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--tinta);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.8rem);
  line-height: 1.06;
  color: var(--tinta);
  margin-top: .8rem;
}
.hero__lead { margin-top: 1.25rem; max-width: 46ch; font-size: clamp(1rem, .95rem + .3vw, 1.12rem); color: var(--tinta); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Anuncio de la próxima presentación ---------- */
/* Fondo verde de la marca, que dialoga con el verde del afiche. Los acentos (mostaza, arena) no
   alcanzan contraste de texto sobre verde: el texto va en blanco y la mostaza solo decora. */
.anuncio { background: var(--verde); color: var(--white); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.anuncio__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .anuncio__inner { grid-template-columns: minmax(280px, 400px) 1fr; gap: 4rem; } }
.anuncio__figura { position: relative; justify-self: center; width: min(100%, 360px); }
.anuncio__afiche {
  width: 100%; height: auto;
  border-radius: var(--radius); box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}
/* En móvil el botón de entradas va al centro del afiche, inclinado como un sello, para que se vea
   de inmediato al abrir la página. */
.anuncio__boton-afiche { display: none; }
@media (max-width: 899px) {
  .anuncio__figura { width: min(100%, 300px); }
  .anuncio__boton-afiche {
    display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
    white-space: nowrap; font-size: 1.05rem; padding: 1rem 1.7rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  }
}
.anuncio .eyebrow { color: var(--white); border-block-color: rgba(255, 255, 255, .4); }
.anuncio__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.8rem); line-height: 1.06;
}
.anuncio__lead { margin-top: 1.1rem; max-width: 46ch; font-size: clamp(1rem, .95rem + .3vw, 1.12rem); }
.anuncio__datos { margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.anuncio__datos div { border-left: 3px solid var(--mostaza); padding-left: 1rem; }
.anuncio__datos dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.anuncio__datos dd { margin: 0; font-size: 1.1rem; }
.anuncio__acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.anuncio .btn--primary { background: var(--white); color: var(--verde); }
.anuncio .btn--primary:hover { background: var(--papel); color: var(--verde); }
.anuncio .btn--ghost { border-color: var(--white); color: var(--white); }
.anuncio .btn--ghost:hover { background: var(--white); color: var(--verde); }
.anuncio__colabora { margin-top: 1.5rem; font-size: .88rem; }

/* ---------- Split (texto + imagen) ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .split--reverse { grid-template-columns: .9fr 1.1fr; }
  .split--reverse .split__media { order: -1; }
}
.split__text p { color: var(--taupe-oscuro); }
.split__text p + p { margin-top: 1rem; }
.split__text strong { color: var(--tinta); }

/* Foto con la parte superior en arco de medio punto, recurso propio del dossier.
   Con aspect-ratio 4/5, el radio vertical del 40% del alto equivale a la mitad del ancho. */
.arco {
  aspect-ratio: 4 / 5;
  max-width: 440px;
  justify-self: center;
  width: 100%;
  overflow: hidden;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
}
.arco img { width: 100%; height: 100%; object-fit: cover; }

.instrumentos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.instrumentos li {
  font-size: .85rem; font-weight: 600;
  padding: .35rem .9rem;
  border: 1px solid var(--linea);
  border-radius: 999px;
  color: var(--verde);
  background: var(--white);
}

.figure { margin-top: 2.5rem; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption { margin-top: .7rem; font-size: .88rem; color: var(--taupe-oscuro); }
.credito { display: block; margin-top: .15rem; font-size: .82rem; }

/* ---------- Repertorio ---------- */
.repertorio { display: grid; gap: 2rem; margin-top: 2.5rem; }
/* Mismo padding a ambos lados de cada bloque (y margen negativo en la grilla) para que las tres
   columnas, y sus fotos, queden del mismo ancho con un filete entre ellas. */
@media (min-width: 860px) {
  .repertorio { grid-template-columns: repeat(3, 1fr); gap: 0; margin-inline: -1.75rem; }
  .bloque { padding: 0 1.75rem; border-left: 1px solid var(--linea); }
  .bloque:first-child { border-left: 0; }
}
.bloque img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.bloque__num {
  margin-top: 1.25rem;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--terracota-oscuro);
}
.bloque__title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; margin-top: .3rem; }
.obras { margin-top: 1rem; display: grid; gap: .9rem; }
.obra__name { font-weight: 700; }
.obra__detail { color: var(--taupe-oscuro); font-size: .94rem; }

/* ---------- Equipo ---------- */
.equipo { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .equipo { grid-template-columns: repeat(3, 1fr); } }
.persona img { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.persona__name { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; margin-top: 1.1rem; }
.persona__role {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--verde); margin-top: .15rem;
}
.persona__bio { color: var(--taupe-oscuro); font-size: .95rem; margin-top: .7rem; }

/* ---------- Estreno ---------- */
.estreno { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .estreno { grid-template-columns: 1.2fr .8fr; gap: 3.5rem; } }
.estreno .figure { margin-top: 0; }
.programa { margin-top: 1.25rem; display: grid; gap: .6rem; counter-reset: obra; }
.programa li { display: flex; gap: .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--linea); }
.programa li::before {
  counter-increment: obra; content: counter(obra, upper-roman) ".";
  font-family: var(--font-display); color: var(--terracota-oscuro); min-width: 2rem;
}
.programa span { color: var(--taupe-oscuro); font-size: .92rem; display: block; }

/* ---------- Red ---------- */
.red { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 860px) { .red { grid-template-columns: repeat(3, 1fr); } }
.red__item {
  background: var(--white);
  border: 1px solid var(--linea);
  border-top: 4px solid var(--verde);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.red__item:nth-child(2) { border-top-color: var(--mostaza); }
.red__item:nth-child(3) { border-top-color: var(--terracota); }
.red__item h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.25; }
.red__item p { color: var(--taupe-oscuro); font-size: .95rem; margin-top: .6rem; }

/* ---------- Contrataciones ---------- */
.contacto-band { background: var(--taupe-oscuro); color: var(--white); text-align: center; }
.contacto-band .section__title { color: var(--white); }
.contacto-band .section__lead { color: var(--white); margin-inline: auto; }
.contacto { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
.contacto .btn--ghost { border-color: var(--white); color: var(--white); }
.contacto .btn--ghost:hover { background: var(--white); color: var(--tinta); }

/* ---------- Cierre ---------- */
.final-cta { padding: clamp(3.5rem, 8vw, 5.5rem) 0; text-align: center; }
.final-cta h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.5rem); color: var(--taupe); }
.final-cta p { color: var(--taupe-oscuro); margin-top: .75rem; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.75rem; }

/* Botones de redes: cada uno alude a su plataforma con ícono y color de marca */
.social-btn {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 240px;
  padding: .9rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--linea);
  background: var(--white);
  color: var(--tinta);
  text-align: left;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.social-btn:hover { color: var(--tinta); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .social-btn:hover { transform: none; } }
.social-btn__icon { flex: none; }
.social-btn__text { display: flex; flex-direction: column; line-height: 1.3; }
.social-btn__title { font-weight: 700; font-size: 1.02rem; }
.social-btn__handle { font-size: .82rem; color: var(--taupe-oscuro); }

.ig-stop--1 { stop-color: var(--ig-amarillo); }
.ig-stop--2 { stop-color: var(--ig-rosa); }
.ig-stop--3 { stop-color: var(--ig-morado); }
.yt-caja { fill: var(--yt-rojo); }
.yt-play { fill: var(--white); }
.fb-circulo { fill: var(--fb-azul); }
.fb-f { fill: var(--white); }

.social-btn--ig:hover { border-color: var(--ig-rosa); }
.social-btn--yt:hover { border-color: var(--yt-rojo); }
.social-btn--fb:hover { border-color: var(--fb-azul); }

@media (max-width: 520px) {
  .social-btn { min-width: 0; width: 100%; }
}

/* ---------- Footer ---------- */
.footer { background: var(--tinta); color: var(--papel); padding: 2.5rem 0 1.75rem; }
.footer a { color: var(--papel); }
.footer a:hover { color: var(--white); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer__name { font-family: var(--font-display); font-size: 1.15rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__links a { font-size: .95rem; text-decoration: none; }
.footer__copy { margin-top: 1.5rem; color: var(--linea); font-size: .82rem; }
