/* ═══════════════════════════════════════════
   AD Curundú — Shared Stylesheet
   ═══════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #0d0d0d;
  --white:      #ffffff;
  --green:      #2bad6d;
  --green-dark: #1f9059;
  --green-pale: #e8f8ef;
  --light:      #f5f5f5;
  --gray:       #6b6b6b;
  --border:     #e0e0e0;
  --font-h:     'League Spartan', sans-serif;
  --font-b:     'Inter', sans-serif;
  --max-w:      1400px;
  --header-h:   70px;
  --t:          0.25s ease;
  --radius:     8px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-b);
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ─── Skip link ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--green);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-family: var(--font-h);
  font-size: 0.9rem;
  z-index: 1000;
  transition: top var(--t);
}
.skip-link:focus { top: 0; }

/* ═══ HEADER ═══ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--black);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  z-index: 900;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 4vw;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-logo a { display: flex; align-items: center; }
.header-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.header-nav a {
  font-family: var(--font-h);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  transition: color var(--t), background var(--t);
}
.header-nav a:hover,
.header-nav a.active { color: var(--white); background: rgba(255,255,255,0.1); }

.header-nav .nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  font-weight: 700;
}
.header-nav .nav-cta:hover { background: var(--green-dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--black);
  padding: 1.5rem 4vw 2rem;
  z-index: 850;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-direction: column;
  gap: 0.15rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--t);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--green); }
.mobile-nav .nav-cta {
  margin-top: 1rem;
  text-align: center;
  background: var(--green);
  color: var(--white) !important;
  padding: 0.8rem;
  border-radius: 100px;
  font-weight: 700;
  border-bottom: none;
}
.mobile-nav .nav-cta:hover { background: var(--green-dark); }

/* ═══ PAGE HERO (sub-pages) ═══ */
.page-hero {
  position: relative;
  padding-top: var(--header-h);
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 4vw;
  width: 100%;
}

.page-hero__label {
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.page-hero__title {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ═══ SECTIONS ═══ */
.section {
  padding: 5.5rem 4vw;
}
.section--light  { background: var(--light); }
.section--dark   { background: var(--black); color: var(--white); }
.section--green  { background: var(--green); color: var(--white); }
.section--pale   { background: var(--green-pale); }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.section--dark .section-label  { color: rgba(43,173,109,0.9); }
.section--green .section-label { color: rgba(255,255,255,0.7); }

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 3rem;
}
.section--dark  .section-divider { background: rgba(255,255,255,0.12); }
.section--green .section-divider { background: rgba(255,255,255,0.3); }
.section--pale  .section-divider { background: rgba(43,173,109,0.25); }

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4, h5 { font-family: var(--font-h); line-height: 1.1; letter-spacing: -0.01em; }

.display-heading {
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.sub-heading {
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.body-text {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.78;
  max-width: 65ch;
}
.section--dark  .body-text  { color: rgba(255,255,255,0.65); }
.section--green .body-text  { color: rgba(255,255,255,0.85); }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-block;
  font-family: var(--font-h);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--t), color var(--t), transform var(--t), border-color var(--t);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary  { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); }

.btn--outline  { background: transparent; color: var(--black); border-color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }

.btn--outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-white:hover { background: var(--white); color: var(--black); }

.btn--white    { background: var(--white); color: var(--green); }
.btn--white:hover { background: var(--light); }

/* ═══ CARDS ═══ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.12); }

.card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card__body { padding: 1.5rem; }
.card__label {
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.card__title {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.card__text { font-size: 0.92rem; color: var(--gray); line-height: 1.65; }

/* ═══ STAT BLOCKS ═══ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-h);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.section--dark .stat-num { color: var(--green); }
.stat-label {
  font-family: var(--font-h);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.section--dark .stat-label { color: rgba(255,255,255,0.55); }

/* ═══ SPONSORS BAR ═══ */
.sponsors-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 2.5rem 4vw;
}
.sponsors-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.sponsor-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--t);
}
.sponsor-logo:hover img { opacity: 0.8; }

/* ═══ SITE FOOTER ═══ */
.site-footer {
  background: var(--green);
  color: var(--white);
  padding: 2.5rem 4vw;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-hashtag h3 {
  font-family: var(--font-h);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  transition: background var(--t), transform var(--t);
}
.footer-social a:hover { background: rgba(255,255,255,0.32); transform: translateY(-2px); }
.footer-social svg { width: 22px; height: 22px; fill: var(--white); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-family: var(--font-h);
  letter-spacing: 0.05em;
}

/* ═══ REVEAL ANIMATION ═══ */
/* Desktop: subtle fade-up. Mobile: instant (no delay or layout jump). */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) {
  .reveal, .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .header-nav  { display: none; }
  .hamburger   { display: flex; }
  .sponsors-inner { gap: 2rem; }
  .sponsor-logo img { height: 36px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .section { padding: 4rem 6vw; }
  .page-hero { min-height: 260px; }
  .page-hero__content { padding: 2.5rem 6vw; }
}

/* ═══════════════════════════════════════════
   LANGUAGE TOGGLE  ES | EN
   ═══════════════════════════════════════════ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
  flex-shrink: 0;
}
.lang-btn {
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  padding: 0.22rem 0.5rem;
  transition: color var(--t), border-color var(--t), background var(--t);
  line-height: 1;
}
.lang-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.6); }
.lang-btn.active { color: var(--white); border-color: var(--green); background: rgba(43,173,109,0.15); }
.lang-sep { color: rgba(255,255,255,0.2); font-size: 0.75rem; user-select: none; }

/* Google Translate — render off-screen (not display:none) so widget inits,
   then aggressively suppress the sticky banner that blocks mobile nav. */
#google_translate_element { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-ftab-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip-content,
.skiptranslate > iframe { display: none !important; visibility: hidden !important; }
body,
body.translated-ltr,
body.translated-rtl { top: 0 !important; margin-top: 0 !important; }

/* ═══════════════════════════════════════════
   CHATBOT WIDGET
   ═══════════════════════════════════════════ */
#adc-chat {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9998;
  font-family: var(--font-b);
}

#chat-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  box-shadow: 0 4px 20px rgba(43,173,109,0.45), 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.25s ease, box-shadow 0.3s ease;
  position: relative;
}
#chat-toggle:hover { transform: scale(1.1); background: var(--green-dark); box-shadow: 0 6px 28px rgba(43,173,109,0.5); }
#chat-toggle svg { width: 26px; height: 26px; stroke: var(--white); }
#chat-toggle .ic-close { display: none; }

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-h);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

#chat-win {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 340px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#chat-win.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

#chat-hdr {
  background: var(--green);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ch-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ch-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--white);
  flex-shrink: 0;
}
.ch-nm {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
}
.ch-st {
  font-size: 0.72rem;
  color: #c8ffd8;
  margin-top: 1px;
}
.ch-close-btn {
  background: rgba(255,255,255,0.18);
  border: none;
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
  flex-shrink: 0;
}
.ch-close-btn:hover { background: rgba(255,255,255,0.32); }

#chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 280px;
  min-height: 140px;
  scroll-behavior: smooth;
}
.cm { display: flex; }
.cm--user { justify-content: flex-end; }
.cm--bot  { justify-content: flex-start; }
.cb {
  max-width: 84%;
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.cm--user .cb { background: var(--green); color: var(--white); border-radius: 16px 16px 4px 16px; }
.cm--bot  .cb { background: var(--light); color: var(--black); border-radius: 16px 16px 16px 4px; }
.chat-link {
  display: inline-block;
  margin-top: 0.3rem;
  color: var(--green);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: underline;
}
.cm--user .chat-link { color: rgba(255,255,255,0.9); }

/* Typing dots */
.cb--typing { display: flex; gap: 5px; align-items: center; padding: 0.65rem 0.85rem; }
.cb--typing span {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--gray);
  border-radius: 50%;
  animation: chatDot 1.2s infinite ease-in-out;
}
.cb--typing span:nth-child(2) { animation-delay: 0.2s; }
.cb--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

#chat-sugg {
  padding: 0.4rem 0.9rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cs {
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.32rem 0.7rem;
  border: 1.5px solid var(--green);
  border-radius: 100px;
  background: var(--green-pale);
  color: var(--green-dark);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.02em;
}
.cs:hover { background: var(--green); color: var(--white); }

#chat-inp {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid var(--border);
}
#chat-field {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-b);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
#chat-field:focus { border-color: var(--green); }
#chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
#chat-send:hover { background: var(--green-dark); transform: scale(1.06); }
#chat-send svg { width: 15px; height: 15px; stroke: var(--white); }

@media (max-width: 420px) {
  #chat-win { width: calc(100vw - 2rem); right: -0.25rem; }
  #adc-chat { bottom: 1.25rem; right: 1.25rem; }
}

/* ═══════════════════════════════════════════
   ENHANCED ANIMATIONS & TRANSITIONS
   ═══════════════════════════════════════════ */

/* Staggered reveal for grids */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* Animated stat counters */
.stat-num {
  display: inline-block;
  transition: color 0.3s;
}

/* Smooth hover on all buttons */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}
.btn:hover::after { transform: translateX(0); }

/* Enhanced card hover */
.card, .blog-card, .team-card, .way-card, .pillar, .schedule-card, .age-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Page transition fade-in */
body { animation: pageFadeIn 0.45s ease; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Green section pulse link */
.section--green .btn--white:hover {
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
}

/* Sponsor logo scroll animation */
@media (prefers-reduced-motion: no-preference) {
  .sponsors-inner {
    animation: none;
  }
}

/* ═══════════════════════════════════════════
   FILTER BAR (shared, calendario + blog)
   ═══════════════════════════════════════════ */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--gray);
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.filter-btn:hover {
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateY(-1px);
}
.filter-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ═══════════════════════════════════════════
   PLACEHOLDER TAG (shared, site-wide)
   ═══════════════════════════════════════════ */
.placeholder-tag {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
