/* ================================================
   RECICLAJE YACATZIN — Design System v2.0
   Official Brand Palette · Production Ready
   ================================================ */

:root {
  /* === Official Brand Colors === */
  --green:        #6BCB3D;
  --green-hover:  #4CAF50;
  --green-soft:   #E8F7E8;
  --green-deep:   #2D6A1F;

  --blue:         #2F80ED;
  --blue-2:       #56CCF2;
  --blue-dark:    #1C4E80;
  --blue-soft:    #EAF6FF;

  --pink:         #F29BB2;
  --pink-soft:    #FFE4EC;
  --gold:         #FFD166;

  /* === Neutrals === */
  --bg:           #F5F7FA;
  --surface:      #FFFFFF;
  --surface-2:    #F0F7F4;
  --text:         #2D3748;
  --muted:        #6B7280;
  --border:       #E5E7EB;
  --line:         #E5E7EB; /* alias */

  /* === Gradients === */
  --grad-main:    linear-gradient(135deg, #56CCF2, #6BCB3D);
  --grad-blue:    linear-gradient(135deg, #2F80ED, #6BCB3D);
  --grad-green:   linear-gradient(135deg, #6BCB3D, #4CAF50);

  /* === Shadows === */
  --shadow:       0 4px 24px rgba(0,0,0,.07);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.11);
  --shadow-green: 0 6px 28px rgba(107,203,61,.32);
  --shadow-blue:  0 6px 28px rgba(47,128,237,.24);

  /* === Structure === */
  --radius:       16px;
  --radius-sm:    12px;
  --radius-lg:    24px;
  --radius-pill:  999px;
  --max:          1120px;
}

/* ========= BASE ========= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Work Sans", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 1100px 640px at 10% -5%,  rgba(107,203,61,.14),  transparent 60%),
    radial-gradient(ellipse 900px  620px at 92%  4%,  rgba(86,204,242,.13),  transparent 55%),
    radial-gradient(ellipse 600px  400px at 18%  94%, rgba(255,209,102,.16), transparent 58%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(107,203,61,.07) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: .65;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Work Sans", sans-serif;
  letter-spacing: -.01em;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-deep); }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ========= UTILITIES ========= */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.muted  { color: var(--muted); }
.tiny   { font-size: .88rem; }

/* ========= WEATHER WIDGET ========= */
.weather-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: fit-content;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: fadeIn 0.5s ease-out;
}

.weather-widget__content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.weather-widget__icon {
  width: 48px;
  height: 48px;
  background: var(--blue-soft);
  border-radius: 50%;
}

.weather-widget__info {
  display: flex;
  flex-direction: column;
}

.weather-widget__location {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: -2px;
}

.weather-widget__temp {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.weather-widget__desc {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: capitalize;
}

.weather-widget__tip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-deep);
  margin: 0;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.badge {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  padding: .35rem .85rem;
  border: 1px solid rgba(107,203,61,.35);
  border-radius: var(--radius-pill);
  color: var(--green-deep);
  background: linear-gradient(120deg, rgba(107,203,61,.13), rgba(86,204,242,.09));
  font-weight: 600;
  font-size: .9rem;
}

.beta-link         { color: #946F00; font-weight: 700; }
.beta-link:hover   { color: #B08A00; }

/* ========= HEADER ========= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(245,247,250,.88);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}
.brand__logo {
  width: 38px;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  filter: drop-shadow(0 2px 8px rgba(107,203,61,.2));
}
.brand__name {
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav a {
  padding: .28rem .1rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -.3rem;
  width: 100%; height: 2px;
  background: var(--grad-main);
  opacity: 0;
  transform: scaleX(.45);
  transform-origin: left;
  transition: opacity .2s, transform .2s;
}
.nav a:hover { color: var(--green-deep); }
.nav a:hover::after { opacity: 1; transform: scaleX(1); }

.nav__cta {
  padding: .46rem 1rem !important;
  border-radius: var(--radius-pill) !important;
  border: 1.5px solid rgba(107,203,61,.45) !important;
  background: rgba(107,203,61,.1) !important;
  color: var(--green-deep) !important;
  font-weight: 600 !important;
  transition: all .2s ease !important;
}
.nav__cta:hover {
  background: rgba(107,203,61,.18) !important;
  border-color: var(--green) !important;
}
.nav__cta::after { display: none !important; }

.nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  transition: all .2s ease;
}
.nav__icon img    { width: 18px; height: 18px; object-fit: contain; }
.nav__icon:hover  { background: var(--green-soft); border-color: var(--green); }
.nav__icon::after { display: none !important; }
.nav__icon:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  line-height: 1;
  transition: all .2s ease;
}
.menu-btn:hover { background: var(--green-soft); border-color: var(--green); }
.menu-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.mobile-nav {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.97);
}
.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: .9rem 0 1.1rem;
}
.mobile-nav__inner a {
  padding: .55rem .5rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.mobile-nav__inner a:hover { background: var(--green-soft); }

/* ========= HERO ========= */
.hero {
  padding: 3.5rem 0 3.2rem;
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(245,247,250,.97) 0%, rgba(232,247,232,.88) 50%, rgba(245,247,250,.98) 100%),
    url("../img/imagen-fondo-2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.hero__grid--single { grid-template-columns: 1fr; max-width: 780px; }

.hero__copy  { animation: rise .65s cubic-bezier(.22,.68,0,1.2) both; }
.hero__panel { animation: rise .65s cubic-bezier(.22,.68,0,1.2) both .1s; }

.hero__copy h1 {
  margin: 0 0 .6rem;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1.1;
  color: var(--text);
  font-weight: 700;
}
/* Hero tagline: secondary to the logo, styled as a subtitle */
.hero__copy h3 {
  margin: 0 0 .5rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
  letter-spacing: .01em;
}
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
  line-height: 1.7;
  margin: 0;
}
.hero__brand {
  margin-top: .6rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__logo {
  width: 150px;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  filter: drop-shadow(0 6px 24px rgba(107,203,61,.35));
}
.hero__eyebrow { margin: 0; font-weight: 600; }
.hero__slogan  { margin: .2rem 0 0; color: var(--muted); font-style: italic; }

/* titulo-slogan standalone — the visual star */
.hero__title {
  display: block;
  max-width: 380px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: .6rem;
  margin-left: auto;
  margin-right: auto;
}

/* Hero headline: tagline text + logo side by side */
.hero__headline {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 1rem 0 .9rem;
}
.hero__headline-text { flex: 1; min-width: 0; }

/* Logo in headline position — static, no float */
.hero__headline-logo {
  width: 110px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 20px rgba(107,203,61,.32));
}
@media (max-width: 900px) {
  .hero__headline-logo { width: 80px; }
}
@media (max-width: 600px) {
  .hero__headline-logo { width: 70px; }
}

.hero__actions {
  margin-top: 1.3rem;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}
.hero__meta {
  margin-top: 1rem;
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: .3rem .75rem;
  border-radius: var(--radius-pill);
  font-size: .83rem;
  font-weight: 600;
  color: var(--green-deep);
  background: rgba(107,203,61,.12);
  border: 1px solid rgba(107,203,61,.28);
}

.hero__quick {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}
.quick-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  border-color: rgba(107,203,61,.4);
}
.quick-card__num {
  display: block;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}
.quick-card__label {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin-top: .15rem;
  line-height: 1.4;
}

/* Mascot in hero copy */
.hero__mascot {
  margin-top: 1.4rem;
  display: flex;
  align-items: flex-end;
}
.hero__mascot img {
  width: 170px;
  height: auto;
  filter: drop-shadow(0 8px 28px rgba(107,203,61,.3));
  animation: float 4s ease-in-out infinite;
}

/* ========= HERO PANEL (Form card) ========= */
.hero__panel {
  position: relative;
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.panel__header          { margin-bottom: .6rem; }
.panel__header h2       { margin: 0 0 .25rem; font-size: 1.25rem; }
.panel__footer {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.panel__note {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  background: var(--surface-2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.panel__note:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.panel__note-title { font-size: .78rem; color: var(--muted); display: block; margin-bottom: .2rem; }
.panel__note-text  { font-weight: 600; display: block; font-size: .95rem; }

.detector-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: var(--green-soft);
  border: 1px solid rgba(107,203,61,.25);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.detector-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}
.detector-cta__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}
.detector-cta__body { display: flex; flex-direction: column; gap: .1rem; }
.detector-cta__headline { font-weight: 700; font-size: .88rem; color: var(--deep); }
.detector-cta__sub { font-size: .8rem; color: var(--green); font-weight: 600; }

/* ========= BUTTONS ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius-pill);
  color: #1a3a0f;
  cursor: pointer;
  text-decoration: none;
  background: var(--green);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  font-family: inherit;
  box-shadow: var(--shadow-green);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover {
  background: var(--green-hover);
  color: #0f2e09;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(107,203,61,.42);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: none;
}
.btn--wide {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: var(--radius);
}

/* ========= FORMS ========= */
.qr-form {
  margin-top: 1.1rem;
  display: grid;
  gap: .85rem;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
}
input, textarea, select {
  padding: .7rem .85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(107,203,61,.15);
}

/* ========= SECTIONS ========= */
.section { padding: 3rem 0; }

.section--alt {
  background: linear-gradient(180deg, var(--green-soft) 0%, rgba(245,247,250,.98) 100%);
  border-top: 1px solid rgba(107,203,61,.2);
  border-bottom: 1px solid rgba(107,203,61,.2);
}

.section h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 .4rem;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}
.section h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -.3rem;
  width: 45%;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--grad-main);
}
.section h2 + p {
  margin-top: .85rem;
  max-width: 68ch;
  color: var(--muted);
}

/* Section header with mascot alongside */
.section-header-with-mascot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: .4rem;
}
.section-header-with-mascot > div { flex: 1; }
.section-header-with-mascot .mascot-img { flex-shrink: 0; }

/* About hero uses different background image */
.about-hero {
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(245,247,250,.97) 0%, rgba(232,247,232,.88) 50%, rgba(245,247,250,.98) 100%),
    url("../img/imagen-fondo-1.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-feedback { padding-top: 3.2rem; padding-bottom: 2.5rem; }

/* ========= RANKING ========= */
.ranking {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.ranking__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.ranking__header h2 { margin: 0 0 .2rem; }

.ranking__legend {
  display: flex;
  gap: .65rem;
  color: var(--muted);
  font-size: .87rem;
  flex-wrap: wrap;
}
.ranking__legend span {
  padding: .22rem .65rem;
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  border: 1px solid rgba(86,204,242,.38);
  color: var(--blue-dark);
  font-weight: 500;
}

.ranking__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: .6rem;
}
.ranking__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ranking__item:hover {
  transform: translateX(4px);
  border-color: rgba(107,203,61,.4);
  box-shadow: 0 4px 16px rgba(107,203,61,.12);
}
.ranking__item:first-child  { border-color: rgba(255,209,102,.55); background: rgba(255,247,224,.5); }
.ranking__item:nth-child(2) { border-color: rgba(86,204,242,.45);  background: var(--blue-soft); }
.ranking__item:nth-child(3) { border-color: rgba(107,203,61,.35);  background: var(--green-soft); }

.ranking__meta { display: flex; gap: .8rem; align-items: center; }

.ranking__badge {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-main);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.ranking__item:first-child  .ranking__badge { background: linear-gradient(135deg, #FFD166, #FFA726); }
.ranking__item:nth-child(2) .ranking__badge { background: linear-gradient(135deg, #90CAF9, #42A5F5); }
.ranking__item:nth-child(3) .ranking__badge { background: linear-gradient(135deg, #A5D6A7, #66BB6A); }

.ranking__name   { font-weight: 600; color: var(--text); }
.ranking__org    { color: var(--muted); font-size: .83rem; }
.ranking__points { font-weight: 700; color: var(--green-deep); font-family: "Space Grotesk", sans-serif; }

.ranking__search {
  margin-top: 1.3rem;
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.ranking__search-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.ranking__search-form input { flex: 1 1 220px; }

.ranking__results {
  border: 1px dashed rgba(107,203,61,.4);
  border-radius: var(--radius-sm);
  padding: .85rem;
  background: rgba(107,203,61,.05);
  min-height: 54px;
}
.ranking__results-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.ranking__results-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .55rem .8rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid rgba(107,203,61,.22);
  flex-wrap: wrap;
}
.ranking__results-name { font-weight: 600; }
.ranking__results-meta { color: var(--muted); font-size: .85rem; }

.ranking__footer {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ========= FLOW STEPS ========= */
.flow {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.flow__item {
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--surface);
  display: flex;
  gap: .9rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.flow__item:nth-child(2) { border-top-color: var(--blue-2); }
.flow__item:nth-child(3) { border-top-color: var(--blue); }
.flow__item:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }

.flow__num {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad-main);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(107,203,61,.3);
}
.flow__item:nth-child(2) .flow__num {
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  box-shadow: 0 4px 12px rgba(86,204,242,.3);
}
.flow__item:nth-child(3) .flow__num {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 4px 12px rgba(47,128,237,.3);
}
.flow__item h3 { margin: 0 0 .25rem; font-size: 1rem; }
.flow__item p  { margin: 0; color: var(--muted); font-size: .93rem; }

/* ========= IMPACT CARDS ========= */
.impact {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.impact__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.impact__card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.impact__card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.impact__card p  { margin: 0; color: var(--muted); }
.impact__media   { margin-top: .9rem; display: flex; justify-content: center; }
.impact__image {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.vision__highlight {
  background: linear-gradient(140deg, rgba(107,203,61,.12), rgba(86,204,242,.08));
  border-top: 3px solid var(--gold) !important;
  border-color: rgba(255,209,102,.5) !important;
  box-shadow: 0 6px 24px rgba(255,209,102,.2);
}
.vision__highlight p { color: var(--muted); }

/* ========= STORY (project.html) ========= */
.story          { margin-top: .85rem; max-width: 68ch; }
.story p        { margin: 0 0 .85rem; color: var(--muted); }
.story p:last-child { margin-bottom: 0; }

.story__more { margin-top: .4rem; }
.story__more summary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(107,203,61,.4);
  background: rgba(107,203,61,.08);
  color: var(--green-deep);
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  list-style: none;
}
.story__more summary:hover {
  background: rgba(107,203,61,.15);
  border-color: var(--green);
  transform: translateY(-1px);
}
.story__more summary::-webkit-details-marker { display: none; }
.story__more summary::marker { content: ""; }
.story__less-text { display: none; }
.story__more[open] summary          { margin-bottom: .7rem; }
.story__more[open] .story__more-text { display: none; }
.story__more[open] .story__less-text { display: inline; }

/* ========= FEEDBACK CARD (project.html) ========= */
.feedback-card {
  border: 1px solid rgba(107,203,61,.3);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  background: linear-gradient(135deg, rgba(107,203,61,.1), rgba(86,204,242,.07));
  box-shadow: 0 8px 32px rgba(107,203,61,.12);
}
.feedback-card h1 {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  margin: 0;
  line-height: 1.45;
}
.feedback-link       { color: var(--blue); font-weight: 700; }
.feedback-link:hover { color: var(--blue-dark); }

/* ========= TECH CHIPS ========= */
.tech-list {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.tech-chip {
  display: inline-flex;
  align-items: center;
  padding: .4rem .9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(86,204,242,.45);
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 600;
  font-size: .9rem;
}

/* ========= VERSION CARD ========= */
.version-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.version-card h3    { margin: 0 0 .2rem; }
.version-badge {
  display: inline-flex;
  align-items: center;
  padding: .42rem 1.1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, rgba(255,209,102,.55), rgba(255,209,102,.2));
  border: 1px solid rgba(255,209,102,.7);
  color: #7a5300;
  font-weight: 700;
  font-size: .95rem;
}

/* ========= TEAM ========= */
.team {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}
.team__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.team__card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.team__card h3    { margin: 0; font-size: 1rem; }
.team__photo {
  height: 100px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(107,203,61,.45);
  background: linear-gradient(140deg, var(--green-soft), var(--blue-soft));
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  margin-bottom: .85rem;
}

/* ========= ALLY SECTION ========= */
.ally {
  border: 1px solid rgba(107,203,61,.3);
  border-radius: var(--radius-lg);
  padding: 2rem 2.4rem;
  background: linear-gradient(135deg, var(--green-soft), var(--blue-soft));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 6px 28px rgba(107,203,61,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ally:hover        { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(107,203,61,.2); }
.ally h2           { margin: 0 0 .45rem; }
.ally__actions     { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ========= ADMIN STYLES ========= */
.admin__intro { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin__intro h1  { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin: .4rem 0; }

.admin__block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.admin__block:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }

.admin__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin__header h2 { margin: 0 0 .25rem; }

.admin__form {
  display: grid;
  grid-template-columns: minmax(200px,1.2fr) repeat(2, minmax(0,1fr)) auto auto;
  gap: .8rem;
  align-items: end;
  margin-top: 1rem;
}
.admin__form label { min-width: 180px; }
.admin__hint   { color: var(--muted); font-size: .9rem; align-self: center; }
.admin__note   { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.admin__export { font-size: .85rem; padding: .45rem .75rem; }

.admin__table {
  margin-top: 1.1rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #FAFBFC;
}
.admin__table table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin__table th,
.admin__table td   { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.admin__table thead th { font-weight: 600; background: var(--blue-soft); color: var(--blue-dark); }
.admin__table input,
.admin__table select {
  width: 100%;
  padding: .4rem .55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: .88rem;
  font-family: inherit;
}

/* ========= MASCOT UTILITIES ========= */
.mascot-img {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(107,203,61,.25));
  animation: float 4s ease-in-out infinite;
}
.mascot-img--sm { width: 110px; }
.mascot-img--lg { width: 190px; }

/* ========= FOOTER ========= */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  background: linear-gradient(180deg, var(--green-soft), var(--bg));
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
}
.footer strong { color: var(--text); }

/* ========= SLOGAN / MISC ========= */
.slogan { margin-top: 1rem; color: var(--muted); }

/* ========= SUCCESS MODAL ========= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 40, 30, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}
.modal-overlay.is-open {
  display: flex;
  animation: fadeIn .2s ease-out both;
}
.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: pop .35s cubic-bezier(.22,.68,0,1.25) both;
}
.modal-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(107,203,61,.35));
  animation: float 4s ease-in-out infinite;
}
.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-deep);
  margin: 0;
}
.modal-title::after { display: none; }
.modal-subtitle {
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
  line-height: 1.5;
}
.modal-points {
  background: var(--green-soft);
  border: 1px solid rgba(107,203,61,.3);
  border-radius: var(--radius);
  padding: .65rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.6;
  width: 100%;
}
.modal-btn {
  margin-top: .5rem;
  width: 100%;
}

/* ========= ANIMATIONS ========= */
@keyframes pop {
  from { opacity: 0; transform: scale(.85) translateY(12px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ========= RESPONSIVE ========= */
@media (max-width: 900px) {
  .hero__grid      { grid-template-columns: 1fr; }
  .hero__quick     { grid-template-columns: 1fr 1fr; }
  .hero__mascot    { display: none; }
  .flow            { grid-template-columns: 1fr; }
  .impact          { grid-template-columns: 1fr; }
  .panel__footer   { grid-template-columns: 1fr; }
  .form__row       { grid-template-columns: 1fr; }
  .ranking__header { flex-direction: column; align-items: flex-start; }
  .ranking__footer { flex-direction: column; align-items: flex-start; }
  .ally            { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .ally__actions   { width: 100%; }
  .admin__intro    { flex-direction: column; align-items: flex-start; }
  .admin__form     { grid-template-columns: 1fr; }
  .nav             { display: none; }
  .menu-btn        { display: inline-flex; }
  .section-header-with-mascot { flex-direction: column; gap: 1rem; }
  .section-header-with-mascot .mascot-img { width: 100px; }
  .mascot-img--lg  { width: 140px; }
}

@media (max-width: 600px) {
  .hero__quick   { grid-template-columns: 1fr; }
  .panel__footer { grid-template-columns: 1fr; }
  .section       { padding: 2.2rem 0; }
}
