/* ==========================================================================
   FUNDACIÓN JOAO ROJAS - HOJA DE ESTILOS PRINCIPAL
   Paleta: Amarillo Oro (#F5C400, #E5AC00), Negro Azabache (#111111, #18181B), Blanco (#FFFFFF)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,800;1,900&family=Outfit:wght@300;400;500;600;700;800&family=Bebas+Neue&display=swap');

:root {
  --primary-yellow: #F4C400;
  --primary-yellow-light: #FDE047;
  --primary-yellow-dark: #D9A300;
  --accent-gold: #EAB308;
  --dark-bg: #0F0F11;
  --dark-card: #18181C;
  --dark-surface: #222228;
  --text-dark: #121214;
  --text-muted: #52525B;
  --text-light-muted: #A1A1AA;
  --font-heading: 'Bebas Neue', 'Montserrat', sans-serif;
  --font-body: 'Outfit', 'Montserrat', sans-serif;
  --font-accent: 'Montserrat', sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-dark);
}

body {
  background-color: #FAFAFA;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography Helpers */
.font-bebas {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.font-outfit {
  font-family: var(--font-body);
}

.font-montserrat {
  font-family: var(--font-accent);
}

/* Sporty Slanted Section Titles */
.sport-badge-title {
  display: inline-block;
  background: #FFFFFF;
  color: #111111;
  padding: 0.5rem 2rem;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: skewX(-12deg);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  position: relative;
  z-index: 10;
  border-left: 5px solid var(--primary-yellow);
}

.sport-badge-title > span {
  display: inline-block;
  transform: skewX(12deg);
}

.sport-badge-title.dark {
  background: #18181C;
  color: #FFFFFF;
  border-left: 5px solid var(--primary-yellow);
}

.sport-badge-title.yellow {
  background: var(--primary-yellow);
  color: #111111;
  border-left: 5px solid #111111;
}

/* Yellow Gradient Backdrops */
.bg-yellow-brand {
  background: linear-gradient(135deg, #FDE68A 0%, #F5C400 45%, #EAB308 100%);
}


.bg-yellow-pattern {
  background-color: #F8D32A;
  background-image: 
    radial-gradient(at 10% 20%, rgba(255, 255, 255, 0.4) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(217, 163, 0, 0.3) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.2) 0px, transparent 50%);
}

.bg-dark-sport {
  background: linear-gradient(180deg, #18181D 0%, #0F0F12 100%);
}

/* Subtle Watermark Branding */
.watermark-jr {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 28vw;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.watermark-jr-yellow {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 26vw;
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 0, 0, 0.04);
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

/* Custom Premium Corporate Support Cards */
.support-card {
  background: linear-gradient(155deg, #FFE266 0%, #F5BA00 48%, #E5A300 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 1.25rem;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(245, 186, 0, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.support-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.45) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.35s ease;
}

.support-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px -12px rgba(0, 0, 0, 0.6), 0 8px 28px rgba(245, 186, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.85);
}

.support-card:hover::before {
  opacity: 1;
}

/* Premium Corporate Vector Icon Badge */
.support-icon-badge {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: #111215;
  color: #F8C300;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-icon-badge svg,
.support-icon-badge i {
  transition: transform 0.35s ease;
}

.support-card:hover .support-icon-badge {
  transform: scale(1.08);
  background: #000000;
  color: #FFE566;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 18px rgba(248, 195, 0, 0.4);
  border-color: rgba(248, 195, 0, 0.45);
}

/* Circular Objective Nodes */
.objective-node {
  background: #FFFFFF;
  border-radius: 9999px;
  width: 130px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 12px 25px -4px rgba(0, 0, 0, 0.12);
  border: 4px solid #FFFFFF;
  transition: all 0.3s ease;
}

.objective-node:hover {
  transform: scale(1.1) rotate(3deg);
  border-color: var(--primary-yellow);
  box-shadow: 0 15px 30px -2px rgba(245, 196, 0, 0.4);
}

/* Connecting Line and Pillars in ¿Quiénes Somos? */
.pillar-card {
  background: rgba(17, 18, 22, 0.92);
  color: #FFFFFF;
  padding: 1rem 1.25rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-align: left;
}

.pillar-card:hover {
  transform: translateY(-4px);
  background: #000000;
  border-color: rgba(245, 196, 0, 0.5);
  box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 196, 0, 0.2);
}

.pillar-icon-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: rgba(245, 196, 0, 0.12);
  border: 1px solid rgba(245, 196, 0, 0.25);
  color: #F8C300;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.pillar-card:hover .pillar-icon-badge {
  transform: scale(1.08);
  background: #F8C300;
  color: #111113;
  box-shadow: 0 4px 12px rgba(248, 195, 0, 0.3);
}

.pillar-node {
  background: #111111;
  color: #FFFFFF;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 2;
}

.pillar-node:hover {
  background: var(--primary-yellow);
  color: #111111;
  transform: translateY(-4px);
}

/* Sport Strip Ribbon */
.sport-ribbon {
  background: #111111;
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  display: inline-block;
  transform: skewX(-10deg);
  border-radius: 2px;
}

.sport-ribbon span {
  display: inline-block;
  transform: skewX(10deg);
}

/* Interactive Project Card - Premium Corporate Styling */
.project-card {
  background: #FFFFFF;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #F5BA00, #FDE047);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(245, 186, 0, 0.2);
  border-color: rgba(245, 186, 0, 0.3);
}

.project-card:hover::before {
  opacity: 1;
}

.project-icon-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: rgba(245, 186, 0, 0.1);
  border: 1px solid rgba(245, 186, 0, 0.22);
  color: #B45309;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.project-card:hover .project-icon-badge {
  transform: scale(1.06);
  background: #F8C300;
  color: #111113;
  box-shadow: 0 6px 14px rgba(248, 195, 0, 0.25);
  border-color: #F8C300;
}

/* Glassmorphism Elements */
.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-panel-dark {
  background: rgba(24, 24, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Premium Corporate Impact Metric Cards */
.impact-card {
  background: linear-gradient(165deg, rgba(26, 27, 32, 0.85) 0%, rgba(16, 17, 20, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 196, 0, 0.35);
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 196, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.impact-icon-badge {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(245, 196, 0, 0.1);
  border: 1px solid rgba(245, 196, 0, 0.25);
  color: #F8C300;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-card:hover .impact-icon-badge {
  transform: scale(1.08);
  background: #F8C300;
  color: #111113;
  box-shadow: 0 8px 18px rgba(248, 195, 0, 0.35);
  border-color: #F8C300;
}

/* Premium Corporate Alliance Cards */
.alliance-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.alliance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F5BA00, #FDE047);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.alliance-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 186, 0, 0.3);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(245, 186, 0, 0.15);
}

.alliance-card:hover::before {
  opacity: 1;
}

.alliance-icon-badge {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: rgba(245, 186, 0, 0.1);
  border: 1px solid rgba(245, 186, 0, 0.2);
  color: #B45309;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.alliance-card:hover .alliance-icon-badge {
  transform: scale(1.06);
  background: #F8C300;
  color: #111113;
  box-shadow: 0 6px 16px rgba(248, 195, 0, 0.25);
  border-color: #F8C300;
}

/* Animated Pulse Button */
.btn-gold-pulse {
  background: linear-gradient(135deg, #FDE047 0%, #F5C400 100%);
  color: #111111;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.9rem 2.2rem;
  border-radius: 9999px;
  box-shadow: 0 0 0 0 rgba(245, 196, 0, 0.7);
  animation: pulse-gold 2s infinite;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-gold-pulse:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(245, 196, 0, 0.5);
  animation: none;
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 196, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(245, 196, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 196, 0, 0);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #18181B;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-yellow);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #D9A300;
}

/* Yellow Top Navbar matching original brand mockup */
.navbar-original-yellow {
  background: linear-gradient(90deg, #FBE35C 0%, #FAE465 20%, #FBE771 50%, #FEEA83 80%, #FFEA89 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.08);
}

.nav-divider-white {
  width: 2px;
  height: 52px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.nav-link-original {
  font-family: 'Bebas Neue', var(--font-heading), sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #1F1F1F;
  line-height: 1.02;
  text-transform: uppercase;
  transition: all 0.2s ease;
  padding: 0.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.nav-link-original:hover {
  color: #000000;
  transform: translateY(-1px);
}

/* Sticky Nav Scrolled State */
.nav-scrolled {
  background: linear-gradient(90deg, rgba(251, 227, 92, 0.98) 0%, rgba(251, 231, 113, 0.98) 50%, rgba(255, 234, 137, 0.98) 100%) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 25px -2px rgba(0, 0, 0, 0.14);
}

/* Mint Green Navbar for Caso Diego subpage (tal cual mockup) */
.navbar-caso-green {
  background: linear-gradient(90deg, #A8F5CD 0%, #B8F8D6 30%, #CBFCE3 70%, #DAFEEB 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.06);
}

.navbar-caso-green.nav-scrolled {
  background: linear-gradient(90deg, rgba(168, 245, 205, 0.98) 0%, rgba(184, 248, 214, 0.98) 50%, rgba(218, 254, 235, 0.98) 100%) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.12);
}

/* Pink Salmon Navbar for Embajadores subpage */
.navbar-embajadores-pink {
  background: linear-gradient(90deg, #c46878 0%, #d98898 30%, #ebb0b8 70%, #f5d0d4 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.08);
}

.navbar-embajadores-pink.nav-scrolled {
  background: linear-gradient(90deg, rgba(196, 104, 120, 0.98) 0%, rgba(217, 136, 152, 0.98) 50%, rgba(245, 208, 212, 0.98) 100%) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.12);
}


/* Tab active button */
.tab-btn.active {
  background-color: #111111;
  color: #FFFFFF;
}

/* Modal Animations */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.open .modal-content {
  transform: scale(1) translateY(0);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-drawer.open {
  transform: translateX(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sport-badge-title {
    font-size: 1.6rem;
    padding: 0.4rem 1.25rem;
  }
  
  .objective-node {
    width: 100px;
    height: 100px;
  }
}

/* ================================================================
   ANIMATION SYSTEM — FUNDACIÓN JOAO ROJAS
   Premium scroll-triggered, hover and micro-interactions
   ================================================================ */

/* Base reveal state — elements start invisible */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.reveal-left {
  transform: translateX(-40px);
}
.reveal.reveal-right {
  transform: translateX(40px);
}
.reveal.reveal-scale {
  transform: scale(0.94);
}
.reveal.reveal-fast {
  transition-duration: 0.45s;
}
.reveal.reveal-slow {
  transition-duration: 1.1s;
}

/* Visible state — triggered by JS IntersectionObserver */
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for children */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.55s; }
.stagger-children > *:nth-child(7) { transition-delay: 0.65s; }
.stagger-children > *:nth-child(8) { transition-delay: 0.75s; }


/* Yellow pulse for Home hero/CTA */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 196, 0, 0.5); }
  50% { box-shadow: 0 0 0 15px rgba(244, 196, 0, 0); }
}
.btn-pulse-gold {
  animation: pulse-gold 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Shimmer sweep on hover for cards */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.card-shimmer {
  position: relative;
  overflow: hidden;
}
.card-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card-shimmer:hover::after {
  opacity: 1;
  animation: shimmer 0.8s ease forwards;
}

/* Floating animation for hero elements and badges */
@keyframes float-subtle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}
.float-anim {
  animation: float-subtle 4s ease-in-out infinite;
}

/* Page fade-in */
@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.page-fadein {
  animation: fadeInPage 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Image sections: smooth fade in with micro-scale */
.section-img-reveal {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.section-img-reveal.visible {
  opacity: 1;
  transform: scale(1);
}

/* Underline animated bar */
.nav-link-original {
  position: relative;
}
.nav-link-original::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.25s ease;
  border-radius: 2px;
}
.nav-link-original:hover::after {
  width: 65%;
}

/* Number counter pop animation */
@keyframes counterPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); color: #F4C400; }
  100% { transform: scale(1); }
}
.counter-pop.popping {
  animation: counterPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

