/* ============================================
   SOCHIMT - Shared Styles
   Sociedad Chilena de Medicina Transfusional
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Base ── */
body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

section[id] {
  scroll-margin-top: 80px;
}

/* ── iPhone / iOS Safe Areas ── */
@supports (padding: env(safe-area-inset-top)) {
  .site-header {
    padding-top: env(safe-area-inset-top);
  }
  .mobile-panel {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #32373c; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ── Keyframe Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card Hover ── */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

/* ── Glass Morphism ── */
.glass-morphism {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ── Text Utilities ── */
.text-gradient {
  color: #7a00df;
}
.gradient-mesh {
  background: #4a0080;
}

/* ============================================
   ANZSBT TOP BAR
   ============================================ */
.anzsbt-topbar {
  background: #1a1a2e;
  padding: 0.4rem 0;
  font-size: 0.8125rem;
}
.anzsbt-topbar a {
  color: #d1d5db;
  transition: color 0.2s;
  text-decoration: none;
}
.anzsbt-topbar a:hover {
  color: #fff;
}

/* ============================================
   HEADER SOCIAL ICONS
   ============================================ */
.header-social-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: all 0.2s;
}
.header-social-icons a:hover {
  background: #f3f4f6;
  transform: scale(1.25);
}
.header-social-icons a svg {
  transition: transform 0.25s ease;
}
.header-social-icons a:hover svg {
  transform: scale(1.35);
}
.header-social-icons a.social-facebook { color: #1877F2; }
.header-social-icons a.social-youtube { color: #FF0000; }
.header-social-icons a.social-instagram { color: #E4405F; }

/* ============================================
   UTILITY BAR (top links row)
   ============================================ */
.utility-bar {
  background: linear-gradient(135deg, #4a1028 0%, #6b1d3a 50%, #3d1025 100%);
  position: relative;
  z-index: 51;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  max-height: 40px;
  overflow: hidden;
}
.utility-bar.hidden-bar {
  max-height: 0;
  opacity: 0;
  padding: 0;
}

/* ============================================
   STICKY HEADER (ANZSBT-style blue gradient)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease, margin 0.3s ease, border-radius 0.3s ease;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 640px) {
  .site-header {
    border-radius: 1rem;
    width: calc(100% - 3rem);
    max-width: 1280px;
  }
}
@media (min-width: 1024px) {
  .site-header { width: calc(100% - 4rem); }
}
.site-header.header-transparent {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-radius: 0;
}
@media (min-width: 640px) {
  .site-header.header-transparent {
    border-radius: 1rem;
  }
}
.site-header.header-scrolled {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 0;
  width: 100%;
  max-width: 100%;
}
.site-header.header-hidden {
  transform: translateY(-100%);
}

/* Inline utility row inside header (visible on scroll) */
.header-utility-inline {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 40px;
  opacity: 1;
  overflow: hidden;
}
.header-utility-inline.hidden {
  max-height: 0;
  opacity: 0;
  display: block !important;
}

/* Header element colors: dark on white, white on transparent */
.site-header .header-logo-title { color: #1f2937; }
.site-header .header-logo-subtitle { color: #6b7280; }
.site-header .header-mobile-btn { color: #374151; }
.site-header .header-mobile-btn:hover { background: #f3f4f6; }
.site-header.header-transparent .header-logo-title { color: #1f2937; }
.site-header.header-transparent .header-logo-subtitle { color: #6b7280; }
.site-header.header-transparent .header-mobile-btn { color: #374151; }
.site-header.header-transparent .header-mobile-btn:hover { background: #f3f4f6; }

/* ============================================
   DROPDOWN NAVIGATION
   ============================================ */
.nav-link {
  color: #374151;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-link:hover {
  color: #111827;
}
.header-transparent .nav-link {
  color: #374151;
}
.header-transparent .nav-link:hover {
  color: #111827;
}
.nav-link.active {
  color: #1e3a7b;
  border-bottom: 2px solid #1e3a7b;
  padding-bottom: calc(0.5rem - 2px);
}
.header-transparent .nav-link.active {
  color: #1e3a7b;
  border-bottom-color: #1e3a7b;
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #374151;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}
.nav-dropdown-trigger:hover {
  color: #111827;
}
.header-transparent .nav-dropdown-trigger {
  color: #374151;
}
.header-transparent .nav-dropdown-trigger:hover {
  color: #111827;
}
.nav-dropdown.active .nav-dropdown-trigger {
  color: #1e3a7b;
}
.header-transparent .nav-dropdown.active .nav-dropdown-trigger {
  color: #1e3a7b;
}
.nav-dropdown-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.active .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 260px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(30, 58, 123, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8edf4;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 60;
  overflow: hidden;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e3a7b, #9b2040);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: #374151;
  border-radius: 10px;
  transition: all 0.15s ease;
  text-decoration: none;
  position: relative;
}
.nav-dropdown-menu a:hover {
  background: #f0f4fa;
  color: #1e3a7b;
}
.nav-dropdown-menu .dropdown-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.nav-dropdown-menu a:hover .dropdown-icon {
  transform: scale(1.08);
}
.nav-dropdown-menu .dropdown-label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: #1f2937;
}
.nav-dropdown-menu a:hover .dropdown-label {
  color: #1e3a7b;
}
.nav-dropdown-menu .dropdown-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  letter-spacing: 0.01em;
}

/* ============================================
   MOBILE MENU (Slide-in Panel)
   ============================================ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 85vw);
  background: #fff;
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-panel.active {
  transform: translateX(0);
}

.mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #374151;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.15s;
  text-decoration: none;
}
.mobile-nav-link:hover {
  background: #f9fafb;
  color: #0693e3;
}

.mobile-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1.25rem;
  color: #374151;
  font-weight: 500;
  font-size: 0.9375rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.15s;
}
.mobile-accordion-btn:hover {
  background: #f9fafb;
  color: #0693e3;
}
.mobile-accordion-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}
.mobile-accordion-btn.open svg {
  transform: rotate(180deg);
}

.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-accordion-content.open {
  max-height: 300px;
}
.mobile-accordion-content a {
  display: block;
  padding: 0.6rem 1.25rem 0.6rem 2.5rem;
  color: #6b7280;
  font-size: 0.875rem;
  transition: all 0.15s;
  text-decoration: none;
}
.mobile-accordion-content a:hover {
  color: #7a00df;
  background: #f5f0ff;
}

.mobile-panel-footer {
  margin-top: auto;
  padding: 1.25rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: #32373c;
  color: #fff;
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #444;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  border: 2px solid #32373c;
  color: #32373c;
  padding: 10px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #32373c;
  color: #fff;
}

.btn-accent {
  background: #7a00df;
  color: #fff;
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-accent:hover {
  background: #6b00c4;
  box-shadow: 0 4px 12px rgba(122, 0, 223, 0.25);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-input {
  width: 100%;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}
.form-input:focus {
  border-color: #7a00df;
  box-shadow: 0 0 0 3px rgba(122, 0, 223, 0.1);
}

.form-label {
  display: block;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  font-size: 14px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: #32373c;
  color: #d1d5db;
  padding: 3rem 0 0;
}
.site-footer h4 {
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-link {
  color: #9ca3af;
  font-size: 14px;
  transition: color 0.2s;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
}
.footer-link:hover {
  color: #fff;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #d1d5db;
}
.footer-social-icon:hover {
  transform: scale(1.3);
}
.footer-social-facebook { color: #1877F2; }
.footer-social-facebook:hover { background: #1877F2; color: #fff; }
.footer-social-youtube { color: #FF0000; }
.footer-social-youtube:hover { background: #FF0000; color: #fff; }
.footer-social-instagram { color: #E4405F; }
.footer-social-instagram:hover { background: #E4405F; color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  text-align: center;
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}
.carousel-slide {
  min-width: 100%;
  transition: transform 0.5s ease-in-out;
}
.carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}
.carousel-dot.active {
  background: #7a00df;
  width: 24px;
  border-radius: 4px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
  font-size: 0.875rem;
  color: #6b7280;
  padding: 0.75rem 0;
}
.breadcrumb a {
  color: #6b7280;
  transition: color 0.2s;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #0693e3;
}
.breadcrumb .separator {
  margin: 0 0.5rem;
  color: #d1d5db;
}
.breadcrumb .current {
  color: #111827;
  font-weight: 500;
}

/* ============================================
   PAGE HERO (secondary pages)
   ============================================ */
.page-hero {
  padding: 3rem 0;
  text-align: center;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.page-hero h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}
.page-hero p {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 40rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .page-hero h2 {
    font-size: 2.5rem;
  }
}

/* ============================================
   MACROZONAS TOOLTIP
   ============================================ */
.macro-tooltip {
  position: absolute;
  pointer-events: none;
  background: #32373c;
  color: #f8fafc;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  min-width: 300px;
  max-width: 360px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -110%);
  z-index: 100;
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.macro-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -115%);
  pointer-events: auto;
}
.macro-tooltip::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #32373c;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header .section-tag {
  display: inline-block;
  color: #7a00df;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
}
.section-header p {
  color: #6b7280;
  margin-top: 0.75rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .section-header h2 {
    font-size: 2.5rem;
  }
}

/* ============================================
   ANZSBT-INSPIRED HERO (secondary pages)
   ============================================ */
.hero-anzsbt {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #4a1028 0%, #6b1d3a 20%, #7a2040 40%, #5c1a35 60%, #3d1025 80%, #2a0a1a 100%);
}
.hero-anzsbt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}
.hero-anzsbt .hero-content {
  position: relative;
  z-index: 2;
}
.hero-anzsbt .hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  z-index: 0;
}
.hero-anzsbt .hero-glow-1 {
  top: -200px;
  right: -100px;
  background: #9b2040;
}
.hero-anzsbt .hero-glow-2 {
  bottom: -200px;
  left: -100px;
  background: #7a2040;
}

/* ============================================
   HOME HERO (ANZSBT-style with gradient wave)
   ============================================ */
.hero-home {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: visible;
  background: transparent;
  min-height: auto;
  margin-top: -80px;
  padding-top: 80px;
  padding-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .hero-home {
    margin-top: -112px;
    padding-top: 112px;
    padding-bottom: 2.5rem;
  }
}
.hero-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, #4a1028 0%, #6b1d3a 20%, #7a2040 40%, #5c1a35 60%, #3d1025 80%, #2a0a1a 100%);
  z-index: 0;
}
.hero-home::after {
  display: none;
}
.hero-home .hero-content {
  position: relative;
  z-index: 2;
}
/* Mascota Gotita Feliz */
.droplet-mascot {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
  z-index: 10;
}
.droplet-bounce {
  animation: dropletWalk 6s linear infinite;
  position: absolute;
  bottom: 0;
}
.droplet-walk {
  animation: dropletJump 0.6s ease-in-out infinite;
}
.droplet-body {
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
  transform-origin: center bottom;
  animation: dropletTilt 1.2s ease-in-out infinite;
}
.droplet-shadow {
  animation: dropletShadowPulse 0.6s ease-in-out infinite;
}
.droplet-arms {
  animation: dropletWaveArms 0.8s ease-in-out infinite;
  transform-origin: center;
}
.droplet-legs {
  animation: dropletMovLegs 0.3s ease-in-out infinite alternate;
  transform-origin: center top;
}
.droplet-eyes {
  animation: dropletBlink 3s ease-in-out infinite;
}
@keyframes dropletWalk {
  0%   { left: -10%; }
  25%  { left: 25%; }
  50%  { left: 55%; }
  75%  { left: 80%; }
  100% { left: 110%; }
}
@keyframes dropletJump {
  0%, 100% { transform: translateY(0); }
  30%  { transform: translateY(-18px); }
  50%  { transform: translateY(-22px); }
  70%  { transform: translateY(-14px); }
}
@keyframes dropletTilt {
  0%, 100% { transform: rotate(-4deg) scaleY(1); }
  25%  { transform: rotate(4deg) scaleY(0.95); }
  50%  { transform: rotate(-3deg) scaleY(1.03); }
  75%  { transform: rotate(3deg) scaleY(0.97); }
}
@keyframes dropletShadowPulse {
  0%, 100% { rx: 14; ry: 3; opacity: 0.15; }
  50%  { rx: 10; ry: 2; opacity: 0.08; }
}
@keyframes dropletWaveArms {
  0%, 100% { transform: rotate(0deg); }
  25%  { transform: rotate(8deg); }
  75%  { transform: rotate(-8deg); }
}
@keyframes dropletMovLegs {
  0%   { transform: skewX(-5deg); }
  100% { transform: skewX(5deg); }
}
@keyframes dropletBlink {
  0%, 42%, 46%, 100% { transform: scaleY(1); }
  44% { transform: scaleY(0.1); }
}

/* Chile Map Zones */
.chile-zone {
  cursor: pointer;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  transform-origin: center;
}
.chile-zone:hover {
  filter: brightness(1.1) drop-shadow(0 4px 14px rgba(0,0,0,0.3));
  opacity: 1 !important;
}
.chile-zone.active {
  filter: brightness(1.1) drop-shadow(0 4px 14px rgba(0,0,0,0.3));
  opacity: 1 !important;
}
.chile-zone.active path,
.chile-zone.active {
  stroke-width: 2.5;
}
.chile-map .chile-zone:not(:hover):not(.active) {
  opacity: 1;
}
.chile-map:hover .chile-zone:not(:hover):not(.active),
.chile-map.has-active .chile-zone:not(.active) {
  opacity: 0.35;
  filter: saturate(0.5) brightness(0.85);
}
#map-info-panel {
  transition: all 0.3s ease;
}

/* Macrozona Cards */
.macrozona-card {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}
.macrozona-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: var(--zone-color, #e5e7eb);
}
.macrozona-card.highlighted {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
  border-color: var(--zone-color, #3b82f6);
}
.macrozona-info {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.macrozona-card:hover .macrozona-info,
.macrozona-card.highlighted .macrozona-info {
  max-height: 200px;
}

.hero-event-card {
  animation: heroCardFloat 4s ease-in-out infinite;
}
@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-event-card:hover {
  animation-play-state: paused;
}
/* Red Blood Cells (Glóbulos Rojos) - Blood Flow Simulation */
@keyframes rbcFlow1 {
  0%   { transform: translateX(-120%) translateY(0px) rotate(0deg); }
  25%  { transform: translateX(-20%) translateY(-12px) rotate(95deg); }
  50%  { transform: translateX(60%) translateY(8px) rotate(190deg); }
  75%  { transform: translateX(140%) translateY(-5px) rotate(280deg); }
  100% { transform: translateX(220%) translateY(0px) rotate(360deg); }
}
@keyframes rbcFlow2 {
  0%   { transform: translateX(-140%) translateY(0px) rotate(0deg); }
  20%  { transform: translateX(-50%) translateY(10px) rotate(75deg); }
  40%  { transform: translateX(20%) translateY(-8px) rotate(150deg); }
  60%  { transform: translateX(90%) translateY(12px) rotate(220deg); }
  80%  { transform: translateX(160%) translateY(-6px) rotate(295deg); }
  100% { transform: translateX(230%) translateY(0px) rotate(360deg); }
}
@keyframes rbcFlow3 {
  0%   { transform: translateX(-100%) translateY(5px) rotate(0deg); }
  33%  { transform: translateX(30%) translateY(-15px) rotate(120deg); }
  66%  { transform: translateX(120%) translateY(10px) rotate(240deg); }
  100% { transform: translateX(210%) translateY(5px) rotate(360deg); }
}
.rbc {
  position: absolute;
  z-index: 0;
  border-radius: 42% 58% 55% 45% / 52% 48% 52% 48%;
  background: radial-gradient(ellipse at 40% 35%,
    rgba(240, 120, 130, 0.9) 0%,
    rgba(210, 80, 90, 0.75) 25%,
    rgba(180, 55, 65, 0.55) 45%,
    rgba(150, 40, 55, 0.3) 65%,
    transparent 100%);
  box-shadow:
    inset -6px -4px 16px rgba(100, 20, 30, 0.5),
    inset 4px 3px 12px rgba(255, 140, 150, 0.35),
    0 0 25px rgba(200, 70, 85, 0.15);
}
.rbc::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(80, 15, 25, 0.55) 0%,
    rgba(110, 25, 40, 0.2) 50%,
    transparent 70%);
}
.rbc::after {
  content: '';
  position: absolute;
  top: 8%;
  left: 10%;
  width: 38%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 190, 0.4) 0%, transparent 65%);
  transform: rotate(-15deg);
}
.rbc-1 {
  top: 8%; left: -8%; width: 150px; height: 100px;
  opacity: 0.50;
  animation: rbcFlow1 6s linear infinite;
}
.rbc-2 {
  top: 30%; left: -12%; width: 120px; height: 78px;
  opacity: 0.45;
  animation: rbcFlow2 7s linear infinite 1s;
}
.rbc-3 {
  top: 55%; left: -6%; width: 95px; height: 62px;
  opacity: 0.40;
  animation: rbcFlow3 5s linear infinite 2s;
}
.rbc-4 {
  top: 15%; left: -15%; width: 135px; height: 88px;
  opacity: 0.42;
  animation: rbcFlow2 6.5s linear infinite 3s;
}
.rbc-5 {
  top: 68%; left: -10%; width: 80px; height: 52px;
  opacity: 0.35;
  animation: rbcFlow1 7s linear infinite 0.5s;
}
.rbc-6 {
  top: 40%; left: -5%; width: 110px; height: 72px;
  opacity: 0.48;
  animation: rbcFlow3 5.5s linear infinite 1.5s;
}
.rbc-7 {
  top: 3%; left: -18%; width: 70px; height: 46px;
  opacity: 0.38;
  animation: rbcFlow2 8s linear infinite 4s;
}
.rbc-8 {
  top: 78%; left: -8%; width: 105px; height: 68px;
  opacity: 0.43;
  animation: rbcFlow1 6s linear infinite 3.5s;
}
.hero-home .hero-glow {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.hero-home .hero-glow-1 {
  top: 20px;
  right: 10%;
  width: 300px;
  height: 300px;
  background: rgba(160, 40, 60, 0.3);
  filter: blur(80px);
}
.hero-home .hero-glow-2 {
  top: 60px;
  left: 15%;
  width: 200px;
  height: 200px;
  background: rgba(100, 25, 40, 0.25);
  filter: blur(60px);
}

/* ============================================
   ANZSBT EVENT BANNER
   ============================================ */
.anzsbt-event-section {
  background: linear-gradient(180deg, #f8f4f5 0%, #f0f2f5 100%);
  padding: 4rem 0;
}
.anzsbt-event-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(122, 32, 64, 0.08);
  overflow: hidden;
  padding: 3rem;
  border-left: 5px solid #9b2040;
}

/* ============================================
   ANZSBT MEMBERSHIP SECTION
   ============================================ */
.anzsbt-membership {
  background: linear-gradient(135deg, #1a2e5a 0%, #1e3a7b 40%, #2952a3 70%, #1e3a7b 100%);
  padding: 5rem 0;
  overflow: hidden;
}
.membership-benefit {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.membership-benefit:last-child {
  border-bottom: none;
}
.membership-benefit-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
}

/* ============================================
   SLIDE-IN ANIMATIONS
   ============================================ */
.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-in-left.active,
.slide-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   FEATURE CARDS SLIDER (ANZSBT-style)
   ============================================ */
.feature-cards-section {
  position: relative;
  margin-top: -4rem;
  z-index: 10;
  padding: 0 0 3rem 0;
  background: transparent;
}
.feature-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  border-left: 4px solid #9b2040;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: #fef2f2;
  border: 2px solid #fecaca;
  transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* ============================================
   PROFESSIONAL DEVELOPMENT TABS
   ============================================ */
.pd-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.pd-tab {
  padding: 0.625rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #374151;
  transition: all 0.3s ease;
}
.pd-tab:hover {
  border-color: #9b2040;
  color: #9b2040;
  background: #fdf2f4;
}
.pd-tab.active {
  background: linear-gradient(135deg, #7a2040, #9b2040);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(122, 32, 64, 0.35);
}
/* IMPORTANT: !important needed to override Tailwind 'grid' class in HTML */
.pd-content {
  display: none !important;
  animation: pdFadeIn 0.4s ease;
}
.pd-content.active {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .pd-content.active {
    grid-template-columns: 1fr;
  }
}
@keyframes pdFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.pd-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
}
.pd-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 1rem 0 0 1rem;
  background: #e5e7eb;
  transition: all 0.3s ease;
}
.pd-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  border-color: transparent;
}
.pd-card:hover::before {
  width: 4px;
}
.pd-card .pd-card-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  width: 100%;
}
.pd-card .pd-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pd-card .pd-card-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}
.pd-card .pd-card-text p {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}
.pd-card .pd-card-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: #d1d5db;
  transition: all 0.3s ease;
}
.pd-card:hover .pd-card-arrow {
  color: #9b2040;
  transform: translateX(3px);
}
/* Card accent colors */
.pd-card[data-accent="sochimt"]::before { background: #9b2040; }
.pd-card[data-accent="blue"]::before { background: #3b82f6; }
.pd-card[data-accent="red"]::before { background: #ef4444; }
.pd-card[data-accent="green"]::before { background: #10b981; }
.pd-card[data-accent="amber"]::before { background: #f59e0b; }
.pd-card[data-accent="purple"]::before { background: #8b5cf6; }
.pd-card[data-accent="cyan"]::before { background: #06b6d4; }
.pd-card:hover[data-accent="sochimt"] { border-color: rgba(155,32,64,0.2); }
.pd-card:hover[data-accent="blue"] { border-color: rgba(59,130,246,0.2); }
.pd-card:hover[data-accent="red"] { border-color: rgba(239,68,68,0.2); }
.pd-card:hover[data-accent="green"] { border-color: rgba(16,185,129,0.2); }
.pd-card:hover[data-accent="amber"] { border-color: rgba(245,158,11,0.2); }
.pd-card:hover[data-accent="purple"] { border-color: rgba(139,92,246,0.2); }
.pd-card:hover[data-accent="cyan"] { border-color: rgba(6,182,212,0.2); }

/* ============================================
   EXPLORE RESOURCES (ANZSBT-style)
   ============================================ */
.explore-card {
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.explore-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.explore-card:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.explore-card > * {
  position: relative;
  z-index: 2;
}

/* ============================================
   ENHANCED ANIMATIONS (ANZSBT-style)
   ============================================ */
@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Staggered reveal animations */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Scale reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Float animation for decorative elements */
.float-animation {
  animation: floatUp 4s ease-in-out infinite;
}

/* Parallax scroll effect */
.parallax-slow {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Gradient text animation */
.gradient-text-animated {
  background: linear-gradient(90deg, #9b2040, #c44d60, #7a2040, #9b2040);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}

/* Enhanced link arrow animation */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.link-arrow svg {
  transition: transform 0.3s ease;
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ============================================
   NEWS CARDS (ANZSBT-style)
   ============================================ */
.news-card-anzsbt {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}
.news-card-anzsbt:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}
.news-card-anzsbt .news-date {
  font-size: 0.75rem;
  color: #9b2040;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   CTA BANNER (ANZSBT-style)
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, #2a0a1a 0%, #4a1028 40%, #7a2040 70%, #6b1d3a 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/banners/cta_conversatorios_bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.cta-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 10, 26, 0.85) 0%, rgba(74, 16, 40, 0.80) 40%, rgba(122, 32, 64, 0.75) 70%, rgba(107, 29, 58, 0.82) 100%);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath fill-rule='evenodd' d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   MEMBERSHIP BENEFITS (ANZSBT-style)
   ============================================ */
.benefit-card-anzsbt {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
}
.benefit-card-anzsbt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #9b2040;
  transition: width 0.3s ease;
  border-radius: 3px 3px 0 0;
}
.benefit-card-anzsbt:hover::after {
  width: 60%;
}
.benefit-card-anzsbt:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}
.benefit-card-anzsbt .benefit-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: transform 0.3s ease;
}
.benefit-card-anzsbt:hover .benefit-icon {
  transform: scale(1.1);
}

/* ============================================
   FOOTER ENHANCED (ANZSBT-style)
   ============================================ */
.footer-mission {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #9ca3af;
  max-width: 600px;
}

/* Ultrawide screen enhancements */
@media (min-width: 1920px) {
  .max-w-7xl {
    max-width: 90rem; /* 1440px */
  }
}

@media (min-width: 2560px) {
  .max-w-7xl {
    max-width: 100rem; /* 1600px */
  }
}
