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

:root {
  --green-dark:   #0d3320;
  --green-deep:   #1a6b2f;
  --green-main:   #1f8a3c;
  --green-mid:    #27a848;
  --green-light:  #4cce6e;
  --green-pale:   #e8f5ec;
  --green-bg:     #f0f7f0;
  --gold:         #f9a825;
  --silver:       #90a4ae;
  --bronze:       #a1887f;
  --text:         #1a2e1e;
  --text-muted:   #5a7260;
  --white:        #ffffff;

  --font-body:    'Outfit', sans-serif;
  --font-display: 'Playfair Display', serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --shadow:    0 8px 32px rgba(13, 51, 32, 0.12);
  --shadow-lg: 0 20px 60px rgba(13, 51, 32, 0.18);
}

html { scroll-behavior: smooth; }

body.loading { overflow: hidden; }

/* ========================
   PANTALLA DE CARGA
======================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}
.loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #061a0e 0%, #0d3320 40%, #155a27 75%, #1a6b2f 100%);
}
.loader-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 45% at 50% 20%, rgba(39,168,72,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 30% 30% at 15% 65%, rgba(26,107,47,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 85% 65%, rgba(26,107,47,0.18) 0%, transparent 60%);
}

.loader-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.loader-leaves span {
  position: absolute;
  font-size: clamp(1rem, 2vw, 1.5rem);
  opacity: 0.5;
  animation: bosqueLeaf calc(8s + var(--li) * 1.4s) ease-in-out infinite;
}
.loader-leaves span:nth-child(1) { left: 9%;  top: 14%; }
.loader-leaves span:nth-child(2) { left: 20%; top: 58%; }
.loader-leaves span:nth-child(3) { left: 74%; top: 11%; }
.loader-leaves span:nth-child(4) { left: 84%; top: 52%; }
.loader-leaves span:nth-child(5) { left: 44%; top: 80%; }
.loader-leaves span:nth-child(6) { left: 58%; top: 70%; }

.loader-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  animation: loaderFadeIn 0.9s ease both;
}

.loader-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 20px;
}
.loader-logo-agro  { height: 110px; width: auto; }
.loader-logos-sep  { width: 1px; height: 74px; background: rgba(255,255,255,0.22); flex-shrink: 0; }
.loader-logo-cunor { height: 118px; width: auto; }

.loader-edition {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 36px;
}
.loader-edition sup { font-size: 0.6rem; vertical-align: super; }

.loader-bar-track {
  width: min(300px, 80vw);
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  overflow: hidden;
  margin: 0 auto 14px;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-mid), var(--green-light));
  border-radius: 100px;
  transition: width 0.35s ease;
  box-shadow: 0 0 10px rgba(76,206,110,0.6);
}

.loader-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  transition: color 0.3s;
}

.loader-grass {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  line-height: 0;
}
.loader-grass svg { display: block; width: 100%; }

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================
   TYPOGRAPHY HELPERS
======================== */
.section-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-tag.light {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--green-dark);
  margin-bottom: 48px;
}
.section-title em {
  font-style: italic;
  color: var(--green-main);
}
.section-title.light { color: var(--white); }
.section-title.light em { color: var(--green-light); }

/* ========================
   NAVBAR
======================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 12px 40px;
  background: rgba(13, 51, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 24px;
  transition: background 0.3s;
}

.nav-logo { margin-right: auto; }
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.nav-logo-img:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--green-light); }

.nav-cta {
  background: var(--green-mid);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========================
   HERO
======================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-photo-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/fotos/foto\ \(1\).jpeg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-photo-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13, 51, 32, 0.88) 0%,
    rgba(10, 74, 30, 0.82) 50%,
    rgba(26, 107, 47, 0.75) 100%
  );
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(39,168,72,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(26,107,47,0.15) 0%, transparent 50%);
  pointer-events: none;
}


.floating-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.leaf {
  position: absolute;
  font-size: clamp(1rem, 2vw, 1.6rem);
  animation: floatLeaf calc(8s + var(--i) * 1.5s) ease-in-out infinite;
  opacity: 0.6;
}
.leaf:nth-child(1) { left: 10%; top: 20%; }
.leaf:nth-child(2) { left: 25%; top: 60%; }
.leaf:nth-child(3) { left: 70%; top: 15%; }
.leaf:nth-child(4) { left: 85%; top: 55%; }
.leaf:nth-child(5) { left: 50%; top: 75%; }
.leaf:nth-child(6) { left: 45%; top: 30%; }

@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
  50%       { transform: translateY(-20px) rotate(12deg); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 860px;
}

/* Logos en hero */
.hero-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}
.hero-logo-agro {
  height: 110px;
  width: auto;
}
.hero-logos-divider {
  width: 1px;
  height: 70px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.hero-logo-cunor {
  height: 115px;
  width: auto;
}

.hero-edition-badge {
  display: inline-block;
  border: 1px solid rgba(76,206,110,0.5);
  color: var(--green-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 100px;
  margin-bottom: 28px;
  background: rgba(39,168,72,0.12);
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.title-line { display: block; }
.title-line.accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--green-light);
  text-stroke: 2px var(--green-light);
  font-size: clamp(2rem, 7vw, 6rem);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
}

.hero-date-box {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 16px 28px;
  border-radius: var(--radius-md);
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
  justify-content: center;
}
.date-item { display: flex; flex-direction: column; align-items: center; }
.date-num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--white);
}
.date-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green-light);
  text-transform: uppercase;
}
.date-sep { color: rgba(255,255,255,0.3); font-size: 1.5rem; }
.date-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--green-mid);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s;
  box-shadow: 0 8px 24px rgba(39,168,72,0.4);
}
.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(39,168,72,0.5);
}

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 14px 34px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s;
}
.btn-outline:hover {
  border-color: var(--green-light);
  color: var(--green-light);
  transform: translateY(-2px);
}

.hero-ground {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-ground svg { display: block; }

/* ========================
   STATS BAR
======================== */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 40px 24px;
  background: var(--green-bg);
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--green-main);
  line-height: 1;
}
.stat-num sup { font-size: 1rem; vertical-align: super; }
.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.stat-divider {
  color: rgba(31,138,60,0.25);
  font-size: 2rem;
  font-weight: 100;
}

/* ========================
   SOBRE EL EVENTO
======================== */
.sobre {
  padding: 100px 0;
  background: var(--white);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.sobre-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.sobre-text p strong { color: var(--green-dark); }

.pilares {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.pilar { display: flex; align-items: flex-start; gap: 12px; }
.pilar-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.pilar strong {
  display: block;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}
.pilar p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Foto sobre */
.sobre-foto-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.sobre-foto {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.sobre-foto-wrapper:hover .sobre-foto { transform: scale(1.04); }
.sobre-foto-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(13,51,32,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sobre-foto-badge span:first-child { font-weight: 800; font-size: 1rem; color: var(--green-light); }
.sobre-foto-badge span:last-child { font-size: 0.78rem; color: rgba(255,255,255,0.65); }

/* ========================
   PROGRAMA
======================== */
.programa {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(160deg, var(--green-dark) 0%, #0a4a1e 100%);
  overflow: hidden;
}

.programa-bg-leaves span {
  position: absolute;
  top: var(--t);
  left: var(--l);
  font-size: 3rem;
  opacity: 0.07;
  pointer-events: none;
}

.dias-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.dia-tab {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.65);
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}
.dia-tab:hover { background: rgba(255,255,255,0.18); color: var(--white); }
.dia-tab.active {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
}

.agenda { display: flex; flex-direction: column; }
.agenda-item {
  display: grid;
  grid-template-columns: 80px 24px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 32px;
  position: relative;
}
.agenda-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(80px + 32px);
  top: 24px;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.1);
}
.agenda-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-light);
  padding-top: 2px;
  letter-spacing: 0.05em;
}
.agenda-dot {
  width: 12px;
  height: 12px;
  background: var(--green-mid);
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(39,168,72,0.2);
}
.agenda-content strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.agenda-content span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ========================
   PONENTES — COMING SOON
======================== */
.ponentes {
  padding: 100px 0;
  background: var(--green-bg);
}

.ponentes-coming-soon {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px dashed rgba(31,138,60,0.2);
}

.pcs-icon { font-size: 3.5rem; margin-bottom: 20px; }

.ponentes-coming-soon h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.ponentes-coming-soon > p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 48px;
}

.pcs-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.pcs-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--green-pale);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: left;
}

.pcs-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  border: 2px solid var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.pcs-slot-text { display: flex; flex-direction: column; gap: 4px; }
.pcs-area {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-dark);
}
.pcs-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pcs-cta {
  border-top: 1px solid var(--green-pale);
  padding-top: 36px;
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: left;
}
.pcs-cta-text { max-width: 480px; }
.pcs-cta-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ========================
   MINICURSOS
======================== */
.minicursos {
  padding: 100px 0;
  background: var(--green-bg);
}
.minicursos-intro {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}
.minicursos-intro strong { color: var(--green-dark); }

.minicursos-day {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.minicursos-day-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mc-badge {
  background: var(--green-main);
  color: var(--white);
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.minicursos-day-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-dark);
  margin: 0;
}
.mc-schedule {
  margin-left: auto;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.mc-schedule b { color: var(--green-dark); font-weight: 700; }

.minicursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mc-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 4px solid var(--c);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
}
.mc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mc-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.mc-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mc-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.mc-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.minicursos-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(31,138,60,0.08);
  border-left: 4px solid var(--green-main);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 8px;
}
.mc-note-icon { font-size: 1.4rem; flex-shrink: 0; }
.minicursos-note p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

/* Highlight variant for agenda item marking parallel minicursos */
.agenda-item-note {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--green-light);
  border-radius: var(--radius-md);
  padding: 14px 16px 14px 12px !important;
  margin-bottom: 8px;
}
.agenda-item-note::after { display: none !important; }
.agenda-item-note .agenda-time {
  color: var(--white);
  font-weight: 800;
  font-size: 0.78rem;
}
.agenda-item-note .agenda-dot {
  background: var(--green-light);
  box-shadow: 0 0 0 4px rgba(39,168,72,0.35);
}
.agenda-item-note .agenda-content strong { color: var(--green-light); }

/* ========================
   TEMAS
======================== */
.temas {
  padding: 100px 0;
  background: var(--white);
}

.temas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tema-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-top: 4px solid var(--c);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.tema-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.tema-icon { font-size: 2.2rem; margin-bottom: 16px; display: block; }
.tema-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.tema-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========================
   GALERÍA
======================== */
.galeria {
  padding: 100px 0;
  background: var(--green-bg);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--green-pale);
}
.gal-item.gal-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.gal-item:hover img { transform: scale(1.06); }

.gal-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,51,32,0.85));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 24px 14px 12px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gal-item:hover .gal-caption { opacity: 1; }

/* ========================
   PATROCINADORES
======================== */
.patrocinadores {
  padding: 100px 0;
  background: var(--white);
}

.pat-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 56px;
}

.pat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.pat-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-md);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(13,51,32,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.pat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(13,51,32,0.13);
}

.pat-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px 28px;
  display: block;
}

.pat-cta-box {
  background: var(--green-pale);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.pat-cta-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.pat-cta-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

/* ========================
   REGISTRO
======================== */
.registro {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(135deg, var(--green-main) 0%, var(--green-dark) 100%);
  overflow: hidden;
}

.registro-leaves { position: absolute; inset: 0; pointer-events: none; }
.reg-tree { position: absolute; bottom: 0; width: 160px; opacity: 0.4; }
.reg-tree-l { left: -20px; }
.reg-tree-r { right: -20px; transform: scaleX(-1); }

.registro-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.registro-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.registro-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 48px;
}

.registro-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.registro-form input,
.registro-form select {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: background 0.2s, border-color 0.2s;
}
.registro-form input::placeholder { color: rgba(255,255,255,0.55); }
.registro-form input:focus,
.registro-form select:focus {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
}
.registro-form select option { background: var(--green-dark); color: var(--white); }

/* Variante clara — para usar dentro de modales con fondo blanco */
.registro-form--light input,
.registro-form--light select {
  background: #f4f8f4;
  color: var(--green-dark);
  border-color: #b8d8b8;
}
.registro-form--light input::placeholder { color: #8aab8a; }
.registro-form--light input:focus,
.registro-form--light select:focus {
  background: #eaf3ea;
  border-color: var(--green-mid, #2e7d32);
}
.registro-form--light select option { background: #fff; color: var(--green-dark); }

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  color: var(--green-dark);
  padding: 18px 36px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 1.05rem;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-submit:hover {
  background: var(--green-light);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-leaf { font-size: 1.2rem; }

.form-note {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

/* ========================
   FOOTER
======================== */
.footer {
  background: var(--green-dark);
  padding-top: 0;
}
.footer-wave svg { display: block; }

.footer-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 36px 24px 56px;
  text-align: center;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
}
.footer-logo-agro {
  height: 88px;
  width: auto;
}
.footer-logos-sep {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.footer-logo-cunor {
  height: 96px;
  width: auto;
}

.footer-desc { color: rgba(255,255,255,0.45); font-size: 0.85rem; line-height: 1.5; }

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green-light); }

.footer-social { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.social-btn {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}
.social-btn:hover {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}

.footer-copy { color: rgba(255,255,255,0.22); font-size: 0.78rem; }

/* ========================
   MODAL
======================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(13,51,32,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px);
  transition: transform 0.3s;
}
.modal.open .modal-box { transform: translateY(0); }
#modalPatrocinador .modal-box { max-width: 600px; }
.modal-icon { font-size: 3.5rem; margin-bottom: 16px; }
.modal-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.modal-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ========================
   JUNTA DIRECTIVA
======================== */
.junta {
  padding: 100px 0;
  background: var(--white);
}

.junta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.junta-card {
  background: var(--green-pale);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(13,51,32,0.07);
}

.junta-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.junta-card--featured {
  background: linear-gradient(160deg, #d4edda 0%, var(--green-pale) 100%);
  border: 2px solid rgba(31,138,60,0.25);
}

.junta-img-wrap {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 16px;
}

.junta-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  box-shadow: 0 6px 20px rgba(13,51,32,0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.junta-card--featured .junta-avatar {
  width: 108px;
  height: 108px;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-main) 100%);
  box-shadow: 0 8px 28px rgba(39,168,72,0.35);
}

.junta-card:hover .junta-avatar {
  transform: scale(1.07) translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,51,32,0.28);
}

.junta-info {
  padding: 18px 16px 22px;
  border-top: 3px solid rgba(31,138,60,0.12);
}

.junta-cargo {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-main);
  margin-bottom: 5px;
}

.junta-nombre {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.3;
}

/* ========================
   SCROLL ANIMATIONS
======================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
  .pcs-slots { grid-template-columns: repeat(2, 1fr); }
  .temas-grid { grid-template-columns: repeat(2, 1fr); }
  .minicursos-grid { grid-template-columns: repeat(2, 1fr); }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-item.gal-wide { grid-column: span 2; }
  .pat-cta-box { padding: 40px 32px; }
  .junta-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-foto { height: 300px; }
}

@media (max-width: 768px) {
  .hero-logo-agro { height: 80px; }
  .hero-logo-cunor { height: 65px; }
  .hero-logos-divider { height: 52px; }
  .navbar { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: rgba(13,51,32,0.98);
    padding: 20px 28px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-cta { display: none; }
  .hamburger { display: block; }

  .galeria-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gal-item.gal-wide { grid-column: span 2; }

  .pcs-slots { grid-template-columns: 1fr 1fr; }
  .temas-grid { grid-template-columns: 1fr; }
  .minicursos-grid { grid-template-columns: 1fr; }
  .minicursos-day { padding: 24px; }
  .mc-schedule { margin-left: 0; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { gap: 28px; }
  .stat-divider { display: none; }
  .agenda-item { grid-template-columns: 60px 20px 1fr; gap: 12px; }
  .pilares { grid-template-columns: 1fr; }
  .ponentes-coming-soon { padding: 40px 24px; }
  .pat-cta-box { flex-direction: column; text-align: center; }
  .pat-logos { justify-content: center; }
  .pat-slot-gold { width: 180px; height: 90px; }
  .junta-grid { grid-template-columns: repeat(2, 1fr); }
  .pat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .galeria-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gal-item.gal-wide { grid-column: span 1; grid-row: span 1; }
  .pcs-slots { grid-template-columns: 1fr; }
  .hero-date-box { flex-direction: column; gap: 12px; }
  .date-sep { display: none; }
  .junta-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pat-grid { grid-template-columns: 1fr; }
}
