/* ============================================================
   GRUPO SCOUT KENYA — hoja de estilos compartida
   Paleta: rojo y amarillo (los colores reales del grupo: "la
   sangre y el fuego"), sobre un fondo cálido tipo pañoleta/lona.
   Todas las páginas cargan este único archivo.
   ============================================================ */

:root {
  /* ---- paleta ---- */
  --red: #c11f2b;
  --red-deep: #8a1620;
  --red-soft: #f6dcdc;
  --gold: #e3a815;
  --gold-deep: #b1810c;
  --ink: #221a12;
  --ink-soft: #5c5346;
  --cream: #faf5e8;
  --cream-high: #fffcf4;
  --line: rgba(34, 26, 18, 0.14);
  --line-on-dark: rgba(250, 245, 232, 0.24);

  /* ---- Colores de Ramas Oficiales ---- */
  --color-manada: #e3a815;    /* Amarillo */
  --color-manada-bg: #fef3c7;
  --color-tropa: #1d63b8;     /* Azul */
  --color-tropa-bg: #dbeafe;
  --color-comandos: #c11f2b;  /* Rojo */
  --color-comandos-bg: #fee2e2;
  --color-rovers: #2d6a4f;    /* Verde */
  --color-rovers-bg: #d1fae5;
  --color-jefes: #5c677d;     /* Gris */
  --color-jefes-bg: #e2e8f0;

  /* ---- tipografía ---- */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 17px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

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

.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
.eyebrow.on-dark { color: var(--gold); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
}

/* ---------- pennant marker (bandera de patrulla) ---------- */
.pennant {
  display: inline-block;
  width: 0; height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--red);
  margin-right: 10px;
  vertical-align: middle;
}
.section-head { display: flex; align-items: center; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }

/* ---------- header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: var(--cream-high);
  border-bottom: 3px solid var(--red);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto; padding: 12px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
@media (max-width: 640px) {
  .nav-inner { padding: 12px 18px; }
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; object-fit: contain; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); line-height: 1.1; }
.brand-text span { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.12em; color: var(--ink-soft); text-transform: uppercase; }

.links, ul.links, nav.links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}
.links > li, ul.links > li, nav.links > li {
  position: relative;
  list-style: none !important;
  list-style-type: none !important;
}
.links > li > a, ul.links > li > a, nav.links > li > a {
  display: block; padding: 10px 12px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 3px;
}
.links > li > a:hover, ul.links > li > a:hover, nav.links > li > a:hover { color: var(--red); }
.links > li > a.current, ul.links > li > a.current, nav.links > li > a.current { color: var(--red); font-weight: 600; }

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--cream-high);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 160px;
  padding: 6px;
  box-shadow: 0 12px 24px rgba(34,26,18,0.12);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 4px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.dropdown a:hover { background: var(--red-soft); color: var(--red-deep); }

.nav-cta {
  background: var(--red); color: var(--cream-high) !important;
  padding: 9px 18px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase;
  transition: background 0.15s ease;
  display: inline-block;
}
.nav-cta:hover { background: var(--red-deep); }

.burger {
  display: none; background: none; border: 1px solid var(--line); border-radius: 3px;
  width: 40px; height: 36px; color: var(--ink); font-size: 1.1rem; cursor: pointer;
}

@media (max-width: 900px) {
  .links, ul.links, nav.links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--cream-high);
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
    border-bottom: 3px solid var(--red);
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
  }
  .links.open, ul.links.open, nav.links.open { max-height: 520px; overflow-y: auto; }
  .links > li > a, ul.links > li > a, nav.links > li > a, .nav-cta { border-top: 1px solid var(--line); border-radius: 0; padding: 14px 24px; }
  .dropdown { display: block; position: static; box-shadow: none; border: none; padding: 0 0 0 14px; }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
  .burger { display: block; }
}

main { min-height: 40vh; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 18px rgba(193,31,43,0.24); }
.btn-primary { background: var(--red); color: var(--cream-high); }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream-high); }
.btn-ghost.on-dark { color: var(--cream-high); border-color: var(--line-on-dark); }
.btn-ghost.on-dark:hover { background: var(--cream-high); color: var(--ink); }

/* ---------- hero genérico (páginas internas) ---------- */
.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 10px 0 12px; }
.page-hero .lead { max-width: 76ch; color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- hero inicio ---------- */
.hero { position: relative; padding: 78px 0 64px; overflow: hidden; }
.hero-flag {
  position: absolute; top: -70px; right: -90px; width: 420px; height: 420px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold) 48%, var(--red) 48%, var(--red) 100%);
  transform: rotate(18deg);
  opacity: 0.95;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  animation: float-slow 8s ease-in-out infinite;
}
.hero-flag-2 {
  position: absolute; top: 70px; right: 260px; width: 90px; height: 90px;
  border-radius: 50%; background: var(--ink); opacity: 0.06;
}
@keyframes float-slow {
  0%, 100% { transform: rotate(18deg) translateY(0); }
  50% { transform: rotate(18deg) translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) { .hero-flag { animation: none; } }

.hero-inner { position: relative; max-width: 800px; margin: 0 auto; text-align: left; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-eyebrow .hero-eyebrow-main {
  color: var(--red);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(193, 31, 43, 0.12);
}

.hero-eyebrow .hero-eyebrow-sep {
  color: var(--gold);
  font-weight: 700;
}

.hero-eyebrow .hero-eyebrow-sub {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.5rem); line-height: 1.08; font-weight: 700; margin: 14px 0 18px; text-align: left; }
.hero h1 .hl { background: linear-gradient(180deg, transparent 58%, var(--gold) 58%); padding: 0 2px; }
.hero p.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 68ch; margin: 0 0 30px; text-align: left; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; margin-bottom: 42px; }

.stat-pill-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.stat-pill {
  display: flex; align-items: baseline; gap: 8px;
  background: var(--cream-high); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px 10px 16px;
}
.stat-pill strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--red); font-weight: 700; }
.stat-pill span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- ticker decorativo ---------- */
.marquee-wrap {
  overflow: hidden;
  background: var(--ink);
  padding: 14px 0;
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  display: flex;
  width: 100%;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 35s linear infinite;
  will-change: transform;
}
.marquee-track span {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- secciones ---------- */
section.block { padding: 64px 0; }
section.block.on-dark { background: var(--ink); color: var(--cream-high); }
section.block.on-dark h2, section.block.on-dark h3 { color: var(--cream-high); }
section.block.on-dark p { color: rgba(250,245,232,0.8); }
section.block.on-dark .testi-card p.quote { color: var(--ink); }
section.block.on-dark .testi-card p.who { color: var(--ink-soft); }
section.block.on-dark .pennant { border-left-color: var(--gold); }
section.block.alt { background: var(--cream-high); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.lead-block { max-width: 78ch; font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 30px; }

/* ---------- qué hacemos / tarjetas simples ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  border-top: 3px solid var(--red);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(34,26,18,0.13); }
.info-grid .info-card:nth-child(3n+2) { border-top-color: var(--gold); }
.info-grid .info-card:nth-child(3n+3) { border-top-color: var(--ink); }
.info-card .icon-badge { background: var(--red-soft); color: var(--red-deep); }
.info-grid .info-card:nth-child(3n+2) .icon-badge { background: #faf0d6; color: var(--gold-deep); }
.info-grid .info-card:nth-child(3n+3) .icon-badge { background: rgba(34,26,18,0.08); color: var(--ink); }
.info-card .tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 10px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.info-card p { font-size: 0.92rem; color: var(--ink-soft); }

.icon-badge {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* LA TRIBU Banner con imagen vectorial a la izquierda */
.info-card-tribu {
  background: #ffffff;
}
.tribu-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}
.tribu-art-side {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tribu-brush-svg {
  display: block;
  width: 68px;
  height: auto;
}
.tribu-content-side {
  flex: 1;
  min-width: 0;
}
.tribu-content-side .tag {
  margin-bottom: 4px;
}
.tribu-content-side h3 {
  margin-bottom: 6px;
}
.tribu-content-side p {
  margin: 0;
}

/* ---------- ramas ---------- */
.rama-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.rama-card {
  background: var(--cream-high); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rama-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(34,26,18,0.13); }
.rama-card .rama-top { padding: 20px 22px 16px; border-bottom: 3px solid var(--band, var(--red)); }
.rama-card .edad { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.07em; }
.rama-card h3 { font-size: 1.25rem; margin: 4px 0 0; }
.rama-card .rama-body { padding: 16px 22px 22px; }
.rama-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- jefes ---------- */
.jefe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.jefe-card {
  background: var(--cream-high); border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.jefe-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(34,26,18,0.13); }
.jefe-photo {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--red-soft); color: var(--red-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 14px;
}
.jefe-card h3 { font-size: 1rem; margin-bottom: 2px; }
.jefe-card .rol { font-size: 0.85rem; color: var(--red); font-weight: 600; margin-bottom: 6px; }
.jefe-card .cargo { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 10px; }
.jefe-card .tel { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  background: var(--cream-high); border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; padding: 26px 22px 22px;
  position: relative; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testi-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,0,0,0.28); }
.testi-card::before {
  content: "\201C"; position: absolute; top: -6px; right: 14px;
  font-family: var(--font-display); font-size: 4.5rem; font-weight: 700;
  color: var(--gold); opacity: 0.35; line-height: 1;
}
.testi-card p.quote { font-size: 0.98rem; color: var(--ink); margin-bottom: 14px; font-style: italic; position: relative; }
.testi-card p.who { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- listas de documentos ---------- */
.doc-list { border-top: 1px solid var(--line); }
.doc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
  transition: background 0.15s ease;
}
.doc-row:hover {
  background: rgba(193, 31, 43, 0.02);
}
.doc-row-left {
  flex: 1; min-width: 280px;
}
.doc-row .doc-name { font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-row .doc-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.doc-row .doc-desc { font-size: 0.88rem; color: var(--ink-soft); margin-top: 4px; max-width: 75ch; }
.doc-row-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.doc-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 6px;
}
.doc-tag.fev { background: #fee2e2; color: var(--red); border: 1px solid #fca5a5; }
.doc-tag.req { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; }
.doc-tag.opt { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

.doc-guide-box {
  background: var(--cream-high);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 22px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(45, 35, 25, 0.04);
}
.doc-guide-box h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--ink); }
.doc-guide-box p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 12px; }
.doc-steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 14px;
}
.doc-step-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.doc-step-item strong { display: block; color: var(--red); font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- tesorería ---------- */
.fee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 26px 0; }
.fee-card { background: var(--cream-high); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.fee-card .amount { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--red); }
.fee-card .period { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; color: var(--ink-soft); }
.bank-box {
  background: linear-gradient(135deg, #241d17 0%, #352b21 100%);
  color: var(--cream-high);
  border-radius: 14px;
  border: 1px solid rgba(227, 168, 21, 0.25);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(34, 26, 18, 0.12);
}
.bank-box .iban { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: 0.06em; }
.bank-box .label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; color: var(--gold); display:block; margin-bottom:6px; }

/* ---------- galería ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery-item {
  aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, var(--red-soft), var(--cream-high));
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line);
}
.gallery-item span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); text-align: center; padding: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info .item { margin-bottom: 22px; }
.contact-info .item .eyebrow { display: block; margin-bottom: 6px; }
.social-row { display: flex; gap: 10px; margin-top: 8px; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  text-decoration: none; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
}
.social-row a:hover { border-color: var(--red); color: var(--red); }

form.contact-form { display: flex; flex-direction: column; gap: 14px; }
form.contact-form label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; display: block; }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--cream-high); font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
}
form.contact-form textarea { min-height: 120px; resize: vertical; }
form.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { form.contact-form .row2 { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- reveal on scroll ---------- */
.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
/* El estado oculto NO vive aquí: lo aplica main.js en línea, solo si el
   script realmente se ejecuta. Así, si el JS falla, el contenido se ve igual. */

/* ---------- footer ---------- */
footer.site { background: var(--ink); color: var(--cream-high); padding: 54px 0 26px; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 36px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col .eyebrow { margin-bottom: 10px; display: block; }
.foot-col p, .foot-col a { font-size: 0.92rem; color: rgba(250,245,232,0.82); text-decoration: none; display: block; margin-bottom: 6px; }
.foot-col a:hover { color: var(--cream-high); text-decoration: underline; }
.foot-bottom {
  border-top: 1px solid var(--line-on-dark); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: 0.7rem; color: rgba(250,245,232,0.5);
}

/* ---------- Componentes Interactivos & Dinámicos ---------- */
.tab-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .tab-switcher {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 6px;
    margin-bottom: 18px;
    scrollbar-width: thin;
  }
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.76rem;
  }
}

.tab-btn {
  background: var(--cream-high);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.tab-btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.copy-btn {
  background: var(--gold);
  color: var(--ink);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.copy-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.branch-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 12px;
  margin-top: 4px;
}
/* Colores de Rama Oficiales */
.badge-manada { background: #fef3c7; color: #b45309; border: 1px solid #f59e0b; }
.badge-tropa { background: #dbeafe; color: #1e40af; border: 1px solid #3b82f6; }
.badge-comandos { background: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }
.badge-rovers { background: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.badge-kraal { background: #e2e8f0; color: #334155; border: 1px solid #94a3b8; }

/* Fotos de Scouters con color de rama */
.jefe-photo.manada { background: #fef3c7; color: #b45309; border: 2px solid #f59e0b; }
.jefe-photo.tropa { background: #dbeafe; color: #1e40af; border: 2px solid #3b82f6; }
.jefe-photo.comandos { background: #fee2e2; color: #991b1b; border: 2px solid #ef4444; }
.jefe-photo.rovers { background: #d1fae5; color: #065f46; border: 2px solid #10b981; }
.jefe-photo.kraal, .jefe-photo.apoyo { background: #e2e8f0; color: #334155; border: 2px solid #94a3b8; }

/* ---------- Fila de Logotipos Institucionales ---------- */
.logos-section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: center;
}
.logo-card {
  background: var(--cream-high);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(34,26,18,0.1);
  border-color: var(--gold);
}
.logo-card img {
  max-width: 100%;
  height: 54px;
  object-fit: contain;
}

@media (max-width: 540px) {
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .logo-card {
    padding: 12px 14px;
  }
  .logo-card img {
    height: 42px;
  }
  .tribu-brush-svg {
    width: 58px;
  }
  .tribu-card-body {
    gap: 12px;
  }
}

/* ---------- Input de Contraseña con Ojo Minimalista ---------- */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-input-wrap input {
  width: 100%;
  padding-right: 44px !important;
}
.btn-toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: color 0.18s ease, transform 0.15s ease;
  z-index: 2;
}
.btn-toggle-password:hover {
  color: var(--red, #c11f2b);
  transform: translateY(-50%) scale(1.08);
}
.btn-toggle-password svg {
  display: block;
}



