/* ==========================================================
   SISTEMA DE DISEÑO - RED DE ACCIÓN COMUNITARIA ISLEÑA (RACI)
   ========================================================== */

:root {
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Color Palette matching RACI Logo - ENRIQUECIDA (no minimalista) */
  --bg-primary: #fbf9f6;       /* Warm cream background */
  --bg-secondary: #f0e6d2;     /* Warm clay/kraft background */
  --bg-glass: rgba(251, 249, 246, 0.88);
  --bg-glass-hover: rgba(251, 249, 246, 0.98);
  
  --border-glass: rgba(92, 61, 36, 0.18);
  --border-glass-focus: rgba(92, 61, 36, 0.5); 
  
  --text-primary: #25160b;     /* Very dark coffee charcoal */
  --text-secondary: #5c4738;   /* Medium coffee brown */
  --text-muted: #8e7a6c;       /* Muted brown-gray */
  
  /* Brand Colors */
  --color-raci: #2c5e3b;          /* Primary Brand Green (Forest Green) */
  --color-terracotta: #c85c28;    /* Terracotta Orange accent */
  --color-coffee: #5c3d24;        /* Rich Earthy Brown / Coffee (NEW) */
  --color-blue: #22577a;          /* Serene Maipo Blue (NEW) */
  
  /* Category Colors */
  --color-activity: #2c5e3b;      
  --color-announcement: #c85c28;   
  --color-workshop: #22577a;      
  --color-need: #5c3d24;          
  
  /* Shadows & Radius */
  --shadow-premium: 0 12px 35px -10px rgba(92, 61, 36, 0.15), 0 2px 5px rgba(92, 61, 36, 0.05);
  --shadow-glow: 0 0 15px rgba(92, 61, 36, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  /* Textura de papel artesanal o cuadrícula punteada en café suave */
  background-image: radial-gradient(rgba(92, 61, 36, 0.04) 1px, transparent 0), 
                    radial-gradient(rgba(92, 61, 36, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  color: var(--text-primary);
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(27, 48, 34, 0.08);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(27, 48, 34, 0.15);
}

/* Header & Nav */
.portal-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.portal-header.scrolled {
  padding: 10px 3%;
  box-shadow: 0 4px 20px rgba(27, 48, 34, 0.06);
}

.portal-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.portal-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--color-raci);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.portal-logo:hover .portal-logo-img {
  transform: rotate(15deg) scale(1.05);
}

.portal-logo-text h1 {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-raci);
  line-height: 1.25;
  white-space: nowrap;
}

.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-terracotta);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.portal-nav-links a:hover {
  color: var(--text-primary);
}

.portal-nav-links a:hover::after {
  width: 100%;
}

.portal-nav-btn {
  background: var(--color-raci);
  color: white !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(44, 94, 63, 0.2);
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.portal-nav-btn:hover {
  background: #234c2f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 94, 63, 0.3);
}

.portal-nav-btn::after {
  display: none !important;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Hero Section */
.portal-hero {
  padding: 160px 5% 100px 5%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(44, 94, 63, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(200, 92, 40, 0.04) 0%, transparent 50%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tag {
  background: rgba(44, 94, 63, 0.08);
  color: var(--color-raci);
  border: 1px solid rgba(44, 94, 63, 0.15);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-content h2 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-content h2 span {
  color: var(--color-raci);
  background: linear-gradient(135deg, var(--color-raci), var(--color-terracotta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: var(--color-raci);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(44, 94, 63, 0.25);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary:hover {
  background: #234c2f;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(44, 94, 63, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-glass-focus);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(27, 48, 34, 0.04);
  transform: translateY(-3px);
  border-color: var(--text-primary);
}

.hero-badge-panel {
  display: flex;
  gap: 24px;
  margin-top: 50px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-terracotta);
}

.hero-badge-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.2;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatImage 6s ease-in-out infinite;
}

.hero-circle-bg {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(44, 94, 63, 0.08) 0%, rgba(200, 92, 40, 0.08) 100%);
  z-index: 1;
}

.hero-logo-badge-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.45);
  border: 2px solid rgba(44, 94, 63, 0.12);
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  animation: floatLogo 6s ease-in-out infinite;
}

.hero-logo-badge-img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  border-radius: 50%;
  z-index: 3;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-logo-badge-container:hover .hero-logo-badge-img {
  transform: rotate(360deg) scale(1.05);
}

.hero-logo-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 94, 63, 0.15) 0%, transparent 70%);
  filter: blur(10px);
  z-index: 1;
  pointer-events: none;
}

.hero-logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(44, 94, 63, 0.25);
  pointer-events: none;
  z-index: 1;
}

.hero-logo-ring.line-1 {
  width: 350px;
  height: 350px;
  animation: spinRing 30s linear infinite;
}

.hero-logo-ring.line-2 {
  width: 380px;
  height: 380px;
  border-style: dotted;
  animation: spinRing 50s linear infinite reverse;
}

.floating-badge {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid rgba(44, 94, 63, 0.15);
  box-shadow: 0 4px 12px rgba(27, 48, 34, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 4;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.floating-badge:hover {
  transform: scale(1.2) translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 94, 63, 0.25);
  border-color: var(--color-raci);
}

.floating-badge.badge-1 { top: -10px; left: 15%; }
.floating-badge.badge-2 { top: 38%; right: -22px; }
.floating-badge.badge-3 { bottom: -15px; left: 25%; }
.floating-badge.badge-4 { top: 48%; left: -22px; }
.floating-badge.badge-5 { top: -5px; right: 15%; }
.floating-badge.badge-6 { bottom: -10px; right: 25%; }

@keyframes floatLogo {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes popupFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.animate-float {
  animation: popupFloat 4s ease-in-out infinite;
}

/* Sections General */
.portal-section {
  padding: 50px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 30px auto;
}

.section-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-terracotta);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.section-header h3 {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-coffee);
  margin-bottom: 16px;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-header h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-terracotta));
  border-radius: 2px;
}

.section-header p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 8px;
}

/* Divisores de curvas orgánicas */
.section-divider-curve {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
  padding: 0;
  fill: var(--bg-secondary);
  background-color: var(--bg-primary);
}

.section-divider-curve.reverse {
  transform: scaleY(-1);
}

.section-divider-curve.to-primary {
  fill: var(--bg-primary);
  background-color: var(--bg-secondary);
}

.section-divider-curve.to-secondary {
  fill: var(--bg-secondary);
  background-color: var(--bg-primary);
}

/* Overrides for full-width sections in index2 */
#nosotros, #galeria {
  max-width: none;
  width: 100%;
  background-color: var(--bg-secondary);
  padding: 60px 0;
}

#nosotros .section-header,
#nosotros .about-manifesto,
#nosotros .principles-row,
#nosotros .committee-title,
#nosotros .team-grid,
#galeria .section-header,
#galeria .gallery-controls,
#galeria .gallery-carousel-wrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 5%;
  padding-right: 5%;
}

/* Quiénes Somos Section */
.about-manifesto {
  max-width: 800px;
  margin: 0 auto 24px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-manifesto h4 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-raci);
  margin-bottom: 8px;
}

.about-manifesto p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.principles-row {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 15px 0;
  border-top: 1px dashed var(--border-glass-focus);
  border-bottom: 1px dashed var(--border-glass-focus);
}

.principle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  flex: 1;
  min-width: 140px;
  max-width: 220px;
  transition: var(--transition-smooth);
}

.principle-item:hover {
  transform: translateY(-4px);
}

.principle-icon {
  width: 80px;
  height: 80px;
  background: white;
  border: 1px solid rgba(44, 94, 63, 0.1);
  color: var(--color-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px -5px rgba(27, 48, 34, 0.08), 0 3px 6px -2px rgba(27, 48, 34, 0.03);
  transition: var(--transition-smooth);
}

/* Custom organic shapes matching the screenshot */
.principle-icon.blob-1 {
  border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%;
}
.principle-icon.blob-2 {
  border-radius: 40% 60% 45% 55% / 55% 45% 60% 40%;
}
.principle-icon.blob-3 {
  border-radius: 50% 50% 60% 40% / 45% 60% 40% 55%;
}
.principle-icon.blob-4 {
  border-radius: 60% 40% 50% 50% / 50% 45% 55% 50%;
}

.principle-item:hover .principle-icon {
  background: var(--color-raci);
  color: white;
  border-color: var(--color-raci);
  box-shadow: 0 12px 30px rgba(44, 94, 63, 0.25);
  transform: scale(1.03);
}

.principle-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.3;
  transition: var(--transition-smooth);
}

.principle-item:hover .principle-name {
  color: var(--color-raci);
}

/* Committee Section */
.committee-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.team-card {
  text-align: center;
  padding: 20px 14px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 2px solid var(--border-glass);
  border-bottom: 5px solid var(--color-blue); /* Borde inferior azul Maipo */
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-blue);
  box-shadow: 0 15px 35px rgba(34, 87, 122, 0.15);
}

.team-avatar-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  margin-bottom: 10px;
}

.team-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(27, 48, 34, 0.1);
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 3px solid white;
  object-fit: cover;
}

.team-card:hover .team-avatar {
  transform: scale(1.05);
}

.team-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--color-terracotta);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.team-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.team-card p {
  font-size: 11px;
  color: var(--color-raci);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.team-bio {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Podcast Player */
.podcast-cover-wrapper {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.podcast-cover-wrapper:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  border-color: #fb923c;
}

.podcast-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podcast-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
  background: linear-gradient(135deg, #2c5e3b, #1b3022);
  color: white;
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(27, 48, 34, 0.25);
  position: relative;
  overflow: hidden;
}

.podcast-layout::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(200, 92, 40, 0.08);
  top: -100px;
  right: -100px;
  z-index: 1;
}

.podcast-meta {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.podcast-meta-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #fb923c;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 30px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.5px;
}

.podcast-meta h4 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.podcast-meta p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(250, 248, 245, 0.8);
  margin-bottom: 24px;
}

.radio-badge-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.radio-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.radio-badge-card h5 {
  font-size: 12px;
  font-weight: 700;
}

.radio-badge-card p {
  font-size: 10px;
  margin: 0;
  color: rgba(250, 248, 245, 0.6);
}

.podcast-player-box {
  z-index: 2;
  background: rgba(250, 248, 245, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.player-active-track {
  margin-bottom: 20px;
}

.player-track-cat {
  font-size: 9px;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.5);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.player-track-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

.audio-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.play-pause-main-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-terracotta);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(200, 92, 40, 0.4);
  transition: var(--transition-smooth);
}

.play-pause-main-btn:hover {
  background: #e0662d;
  transform: scale(1.08);
}

.btn-drive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-drive-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1.5px);
}

.btn-drive-link svg {
  color: #fb923c;
}

.timeline-slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: rgba(250, 248, 245, 0.7);
  margin-bottom: 24px;
}

.timeline-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.timeline-bar-fill {
  height: 100%;
  background: var(--color-terracotta);
  border-radius: 2px;
  width: 0%;
  position: relative;
}

.timeline-bar-handle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.podcast-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 8px;
}

.episode-row-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  text-align: left;
}

.episode-row-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.episode-row-btn.active {
  background: rgba(200, 92, 40, 0.12);
  border-color: rgba(200, 92, 40, 0.3);
}

.ep-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ep-num {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 248, 245, 0.8);
}

.ep-title {
  font-size: 12px;
  font-weight: 600;
}

.ep-time {
  font-size: 10px;
  color: rgba(250, 248, 245, 0.5);
}

/* Equalizer Animation */
.equalizer-container {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  width: 30px;
}

.equalizer-bar {
  width: 3px;
  background-color: var(--color-terracotta);
  height: 2px;
  border-radius: 1px;
}

.equalizer-container.playing .equalizer-bar {
  animation: eqWave 1s ease-in-out infinite alternate;
}

.equalizer-container.playing .equalizer-bar:nth-child(2) { animation-delay: 0.15s; }
.equalizer-container.playing .equalizer-bar:nth-child(3) { animation-delay: 0.3s; }
.equalizer-container.playing .equalizer-bar:nth-child(4) { animation-delay: 0.45s; }
.equalizer-container.playing .equalizer-bar:nth-child(5) { animation-delay: 0.05s; }

@keyframes eqWave {
  0% { height: 2px; }
  100% { height: 20px; }
}

/* Actividades & Blog Grid */
.dynamic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.activity-portal-card {
  background: white;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-glass);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.activity-portal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(92, 61, 36, 0.15);
  border-color: var(--color-coffee);
}

.activity-portal-card.announcement { border-top: 6px solid var(--color-announcement); }
.activity-portal-card.activity { border-top: 6px solid var(--color-raci); }
.activity-portal-card.workshop { border-top: 6px solid var(--color-workshop); }
.activity-portal-card.meeting { border-top: 6px solid var(--color-need); }

.act-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.act-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.act-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
}

.act-badge.activity { background: rgba(44, 94, 63, 0.08); color: var(--color-raci); }
.act-badge.announcement { background: rgba(219, 39, 119, 0.08); color: var(--color-announcement); }
.act-badge.workshop { background: rgba(2, 132, 199, 0.08); color: var(--color-workshop); }
.act-badge.meeting { background: rgba(200, 92, 40, 0.08); color: var(--color-terracotta); }

.act-date-badge {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.activity-portal-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.activity-portal-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.act-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(27, 48, 34, 0.05);
}

.act-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.act-info-item span {
  font-weight: 500;
}

/* Blog Cards */
.blog-card {
  background: white;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-glass);
  border-top: 6px solid var(--color-coffee); /* Borde superior café rústico */
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(92, 61, 36, 0.15);
  border-color: var(--color-coffee);
}

.blog-card-img-wrapper {
  width: 100%;
  height: 140px;
  background: #eae6db;
  position: relative;
  overflow: hidden;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.blog-card h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.blog-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.blog-read-more {
  margin-top: auto;
  background: transparent;
  border: none;
  color: var(--color-terracotta);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  width: fit-content;
}

.blog-read-more:hover {
  color: var(--color-raci);
  transform: translateX(3px);
}

/* Gallery Controls & Tabs */
.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}

.gallery-tabs {
  display: flex;
  background: rgba(27, 48, 34, 0.04);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(27, 48, 34, 0.05);
}

.gallery-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.gallery-tab-btn.active {
  background: white;
  color: var(--color-raci);
  box-shadow: 0 4px 10px rgba(27, 48, 34, 0.08);
}

.gallery-nav-arrows {
  display: flex;
  gap: 8px;
}

.gallery-arrow-btn {
  background: white;
  border: 1.5px solid rgba(27, 48, 34, 0.1);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(27, 48, 34, 0.05);
}

.gallery-arrow-btn:hover {
  background: var(--color-raci);
  color: white;
  border-color: var(--color-raci);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 94, 63, 0.2);
}

/* Gallery Carousel */
.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.gallery-carousel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 5px 0 10px 0;
  scrollbar-width: none; /* Firefox */
}

.gallery-carousel::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.gallery-carousel .gallery-item {
  flex: 0 0 calc(25% - 11.25px); /* 4 items visible on desktop */
  scroll-snap-align: start;
}

@media (max-width: 1200px) {
  .gallery-carousel .gallery-item {
    flex: 0 0 calc(33.333% - 10px); /* 3 items */
  }
}

@media (max-width: 768px) {
  .gallery-carousel .gallery-item {
    flex: 0 0 calc(50% - 7.5px); /* 2 items */
  }
}

@media (max-width: 480px) {
  .gallery-carousel .gallery-item {
    flex: 0 0 100%; /* 1 item */
  }
}

.gallery-item {
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-glass);
}

.gallery-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(27, 48, 34, 0.8) 0%, rgba(27, 48, 34, 0.1) 70%);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: white;
}

.gallery-item:hover .gallery-item-img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h5 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.gallery-overlay p {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 48, 34, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-backdrop.active {
  display: flex;
}

.lightbox-content-box {
  max-width: 800px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.lightbox-img,
.lightbox-video {
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  outline: none;
}

.lightbox-info {
  margin-top: 16px;
  text-align: center;
  color: white;
}

.lightbox-info h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.lightbox-info p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* Promoción del Mapa */
.map-promo-box {
  background: linear-gradient(135deg, rgba(44, 94, 63, 0.03) 0%, rgba(200, 92, 40, 0.03) 100%);
  border: 1.5px dashed var(--border-glass-focus);
  border-radius: var(--radius-lg);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  box-shadow: var(--shadow-premium);
}

.map-promo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.map-promo-text h4 {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.25;
}

.map-promo-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.map-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.map-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.map-feature-icon {
  color: var(--color-raci);
}

.map-promo-mockup-circle {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(27, 48, 34, 0.15);
  border: 8px solid white;
  aspect-ratio: 1/1;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.map-promo-mockup-circle:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(27, 48, 34, 0.22);
}

.map-pulse-beacon {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-terracotta);
  border: 2px solid white;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.map-pulse-beacon::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--color-terracotta);
  animation: map-ping 1.8s ease-in-out infinite;
  opacity: 0;
}

.map-pulse-beacon.primary-pulse {
  background-color: var(--color-raci);
}

.map-pulse-beacon.primary-pulse::after {
  border-color: var(--color-raci);
}

.map-feature-check {
  margin-right: 8px;
  flex-shrink: 0;
}

@keyframes map-ping {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Footer */
.portal-footer {
  background: var(--text-primary);
  color: white;
  padding: 80px 5% 40px 5%;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 50px auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand h4 {
  font-size: 18px;
  font-weight: 800;
  color: #fb923c;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(250, 248, 245, 0.6);
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.social-circle-btn:hover {
  background: var(--color-terracotta);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(250, 248, 245, 0.9);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(250, 248, 245, 0.6);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.footer-links a:hover {
  color: white;
  padding-left: 3px;
}

.footer-col-contact p {
  font-size: 13px;
  color: rgba(250, 248, 245, 0.6);
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(250, 248, 245, 0.4);
}

/* Admin Modal (Simulador Local) */
.admin-portal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-portal-modal.active {
  display: flex;
}

.admin-portal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 48, 34, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.admin-portal-card-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-glass-focus);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-premium);
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.admin-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-header h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-raci);
}

.admin-modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50%;
  padding: 4px;
  display: flex;
  align-items: center;
}

.admin-modal-close-btn:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
}

.admin-modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-secondary);
}

.admin-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
}

.admin-tab-btn.active {
  color: var(--color-raci);
  border-bottom-color: var(--color-raci);
  background: var(--bg-primary);
}

.admin-tab-content {
  padding: 24px;
  flex: 1;
}

.admin-pane {
  display: none;
}

.admin-pane.active {
  display: block;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.admin-form-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  font-family: var(--font-family);
  font-size: 13px;
  color: var(--text-primary);
  background: white;
}

.admin-form-group input:focus,
.admin-form-group textarea:focus,
.admin-form-group select:focus {
  outline: none;
  border-color: var(--border-glass-focus);
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--color-raci);
  color: white;
  border: none;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 10px;
}

.admin-submit-btn:hover {
  background: #234c2f;
}

.admin-items-list {
  margin-top: 20px;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: white;
  border: 1px solid var(--border-glass);
  border-radius: 6px;
}

.admin-item-title {
  font-size: 13px;
  font-weight: 700;
}

.admin-item-date {
  font-size: 10px;
  color: var(--text-muted);
}

.admin-item-actions {
  display: flex;
  gap: 8px;
}

.admin-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}

.admin-action-btn.delete { color: var(--color-need); }
.admin-action-btn.delete:hover { background: rgba(200, 92, 40, 0.08); }

/* Utility classes */
.hidden {
  display: none !important;
}

/* Animation Keyframes */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatImage {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(44, 94, 63, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(44, 94, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(44, 94, 63, 0); }
}

@keyframes pulseGreen {
  0% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 0 rgba(44, 94, 63, 0.4); }
  70% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 8px rgba(44, 94, 63, 0); }
  100% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 0 rgba(44, 94, 63, 0); }
}

@keyframes pulseTerracotta {
  0% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 0 rgba(200, 92, 40, 0.4); }
  70% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 8px rgba(200, 92, 40, 0); }
  100% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 0 rgba(200, 92, 40, 0); }
}

@keyframes pulsePurple {
  0% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 0 rgba(124, 58, 237, 0.4); }
  70% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 8px rgba(124, 58, 237, 0); }
  100% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 0 rgba(124, 58, 237, 0); }
}

@keyframes pulseOrange {
  0% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 0 rgba(251, 146, 60, 0.4); }
  70% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 8px rgba(251, 146, 60, 0); }
  100% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 0 rgba(251, 146, 60, 0); }
}

@keyframes pulseBlue {
  0% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 0 rgba(2, 132, 199, 0.4); }
  70% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 8px rgba(2, 132, 199, 0); }
  100% { box-shadow: -1px 1.5px 3px rgba(0,0,0,0.2), 0 0 0 0 rgba(2, 132, 199, 0); }
}

.animate-fade-in {
  animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-badge-panel {
    justify-content: center;
  }
  .principles-row {
    gap: 20px;
  }
  .podcast-layout {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .dynamic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-promo-box {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .portal-header {
    padding: 12px 20px;
  }
  .portal-logo-text h1 {
    font-size: 13px;
    max-width: 260px;
  }
  .portal-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  .portal-nav-links.active {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-content h2 {
    font-size: 34px;
  }
  .section-header h3 {
    font-size: 28px;
  }
  .dynamic-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   EFECTOS DE SCROLL (REVEAL ANIMATIONS)
   ========================================================== */

/* Estados iniciales */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Estados activos (animados) */
.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Delays para efectos escalonados (staggered) */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

