/* ============================================
   UJEEQ - Unión de Jubilados EEQ
   Premium Website Stylesheet
   ============================================ */

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

/* === CSS Variables === */
:root {
  --primary: #1a5fa6;
  --primary-dark: #0d3b6e;
  --primary-light: #4fa8d6;
  --accent: #52bde6;
  --accent-light: #a8e0f5;
  --bg-dark: #0a1628;
  --bg-section: #f0f6fc;
  --bg-white: #ffffff;
  --text-dark: #1a2332;
  --text-medium: #4a5568;
  --text-light: #718096;
  --gold: #d4a843;
  --gold-light: #f0d88a;
  --success: #38a169;
  --shadow-sm: 0 2px 8px rgba(26, 95, 166, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 95, 166, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 95, 166, 0.16);
  --shadow-xl: 0 16px 60px rgba(26, 95, 166, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(79, 168, 214, 0.15);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo svg {
  width: 40px;
  height: 40px;
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav-logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(79, 168, 214, 0.15);
}

.nav-links a.active {
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2.5px;
  background: #fff;
  border-radius: 3px;
  transition: var(--transition);
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0f2847 40%, var(--primary) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(79, 168, 214, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 168, 67, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(26, 95, 166, 0.2) 0%, transparent 50%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(168, 224, 245, 0.3);
  border-radius: 50%;
  animation: float-particle 15s infinite ease-in-out;
}

.hero-particles span:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 12s; }
.hero-particles span:nth-child(2) { top: 60%; left: 20%; animation-delay: 2s; animation-duration: 18s; }
.hero-particles span:nth-child(3) { top: 30%; left: 70%; animation-delay: 4s; animation-duration: 14s; }
.hero-particles span:nth-child(4) { top: 80%; left: 80%; animation-delay: 1s; animation-duration: 16s; }
.hero-particles span:nth-child(5) { top: 50%; left: 50%; animation-delay: 3s; animation-duration: 20s; }
.hero-particles span:nth-child(6) { top: 10%; left: 90%; animation-delay: 5s; animation-duration: 13s; }
.hero-particles span:nth-child(7) { top: 70%; left: 40%; animation-delay: 7s; animation-duration: 17s; }
.hero-particles span:nth-child(8) { top: 40%; left: 30%; animation-delay: 6s; animation-duration: 15s; }

@keyframes float-particle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(30px, -40px) scale(1.5); opacity: 0.8; }
  50% { transform: translate(-20px, -80px) scale(1); opacity: 0.4; }
  75% { transform: translate(40px, -30px) scale(1.8); opacity: 0.6; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero-logo {
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-logo svg {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 8px 30px rgba(79, 168, 214, 0.4));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.3);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.8s both;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(82, 189, 230, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(82, 189, 230, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(26, 95, 166, 0.3);
  width: 100%;
  justify-content: center;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 95, 166, 0.4);
}

/* === Sections === */
section {
  padding: 6rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(26, 95, 166, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* === About Section === */
#about {
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-card {
  background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.about-image-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(79, 168, 214, 0.2), transparent 60%);
}

.about-image-card svg {
  width: 180px;
  height: 180px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 30px rgba(79, 168, 214, 0.4));
}

.about-year-badge {
  position: absolute;
  bottom: -15px;
  right: 30px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-dark);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
}

.about-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
}

.about-text p {
  color: var(--text-medium);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 1rem;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

.about-feature:hover {
  background: rgba(26, 95, 166, 0.08);
  transform: translateX(4px);
}

.about-feature .icon {
  font-size: 1.2rem;
}

/* === Leadership Section === */
#leadership {
  background: var(--bg-section);
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.leader-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 95, 166, 0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.leader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}

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

.leader-card:hover::before {
  transform: scaleX(1);
}

.leader-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #fff;
}

.leader-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.leader-card .role {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(26, 95, 166, 0.08);
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

/* === Contact Section === */
#contact {
  background: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-info > p {
  color: var(--text-medium);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(26, 95, 166, 0.06);
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contact-item-text p {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* === Form === */
.form-card {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(26, 95, 166, 0.08);
}

.form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-card > p {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(26, 95, 166, 0.1);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 95, 166, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* === Map Section === */
.map-section {
  padding: 0;
  background: var(--bg-section);
}

.map-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.map-wrapper h3 {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--bg-white);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* === Footer === */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo svg {
  width: 32px;
  height: 32px;
}

.footer-logo span {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.footer p {
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: var(--transition);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-logo svg {
    width: 90px;
    height: 90px;
  }

  .leaders-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .form-card {
    padding: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* === Scroll indicator === */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: scroll-dot 2s infinite;
}

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

@keyframes scroll-dot {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* ============================================
   HERO SPLIT LAYOUT — Directiva Photo
   ============================================ */

.hero {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 100vh;
  padding: 90px 0 0 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  padding: 3rem 3rem 4rem 4rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  animation: heroSlideIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding: 1.2rem 1.6rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(91,188,226,0.2);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(91,188,226,0.25);
}

/* RIGHT PANEL */
.hero-photo-panel {
  position: relative;
  height: 100%;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem 2rem 1rem;
  z-index: 2;
  animation: heroPanelIn 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroPanelIn {
  from { opacity: 0; transform: translateX(50px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* Radial glow behind photo */
.hero-photo-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 55% 50%,
      rgba(91, 188, 226, 0.18) 0%,
      rgba(26, 95, 166, 0.12) 50%,
      transparent 80%);
  pointer-events: none;
}

/* The frame wrapper */
.hero-photo-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(91,188,226,0.25),
    0 25px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(91,188,226,0.12),
    inset 0 1px 0 rgba(255,255,255,0.08);
  width: 100%;
  max-width: 560px;
  background: #f5f5f5;
  transform: perspective(1200px) rotateY(-3deg);
  transition: transform 0.6s ease;
}

.hero-photo-frame:hover {
  transform: perspective(1200px) rotateY(0deg) scale(1.015);
}

/* The photo itself — multiply blends white bg into dark panel */
.hero-directiva-img {
  width: 100%;
  display: block;
  
  filter: none;
  border-radius: 24px 24px 0 0;
}

/* Bottom gradient overlay */
.hero-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top,
    rgba(10,22,40,0.97) 0%,
    rgba(10,22,40,0.85) 30%,
    rgba(10,22,40,0.2) 55%,
    transparent 100%);
  padding: 2rem 1.8rem 1.4rem;
}

.hero-photo-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-photo-label-tag {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.hero-photo-label-sub {
  font-size: 0.78rem;
  color: rgba(91,188,226,0.85);
  letter-spacing: 0.02em;
}

/* Decorative corner accents */
.hero-photo-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 3;
  pointer-events: none;
}
.hero-photo-corner.tl { top: 10px; left: 10px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-radius: 4px 0 0 0; }
.hero-photo-corner.tr { top: 10px; right: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); border-radius: 0 4px 0 0; }
.hero-photo-corner.bl { bottom: 10px; left: 10px; border-bottom: 2px solid rgba(91,188,226,0.4); border-left: 2px solid rgba(91,188,226,0.4); border-radius: 0 0 0 4px; }
.hero-photo-corner.br { bottom: 10px; right: 10px; border-bottom: 2px solid rgba(91,188,226,0.4); border-right: 2px solid rgba(91,188,226,0.4); border-radius: 0 0 4px 0; }

/* Floating badge */
.hero-photo-badge {
  position: absolute;
  top: 2rem;
  right: 0.5rem;
  background: rgba(10, 22, 40, 0.92);
  border: 1px solid rgba(91,188,226,0.3);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.9);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: badgeFloat 4s ease-in-out infinite;
  z-index: 4;
  line-height: 1.4;
}

.hero-photo-badge strong {
  color: var(--accent);
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding-top: 80px;
  }
  .hero-content {
    padding: 2rem 1.5rem 3rem 2rem;
  }
  .hero-photo-panel {
    padding: 1.5rem 1.5rem 1.5rem 0.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr !important;
    padding-top: 70px;
    min-height: auto;
  }
  .hero-content {
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
    align-items: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-photo-panel {
    min-height: auto;
    padding: 1rem 1.5rem 3rem;
  }
  .hero-photo-frame {
    transform: none !important;
    max-width: 100%;
  }
  .hero-photo-badge {
    top: auto;
    bottom: 3.5rem;
    right: 1.5rem;
  }
}


/* ============================================
   FIX: Fade-in fallback — sections always visible
   ============================================ */
/* Safety: after 1s, make all fade-in visible regardless of JS */
@keyframes fadeInFallback {
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeInFallback 0.8s ease-out 0.3s both;
}

/* ============================================
   About — Servicios title
   ============================================ */
.about-services-title {
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}
.about-services-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(26, 95, 166, 0.08);
  border: 1px solid rgba(26, 95, 166, 0.15);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  display: inline-block;
}

/* ============================================
   Horarios — 3 áreas
   ============================================ */
.horario-item {
  align-items: flex-start !important;
}
.horario-areas {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.4rem;
}
.horario-area {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.6rem 0.8rem;
  background: rgba(26, 95, 166, 0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.horario-area-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}
.horario-area-time {
  font-size: 0.82rem;
  color: var(--text-medium);
}

/* ============================================
   ORG CHART
   ============================================ */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 1rem 0 2rem;
  overflow-x: auto;
}

/* Levels */
.org-level {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

/* Nodes */
.org-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  text-align: center;
  min-width: 160px;
  max-width: 200px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.org-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,95,166,0.2);
}

.org-node-president {
  background: linear-gradient(135deg, #1a5fa6, #0d3b6e);
  color: #fff;
  box-shadow: 0 6px 30px rgba(26,95,166,0.4);
  border: 2px solid rgba(91,188,226,0.4);
  min-width: 200px;
}

.org-node-vp {
  background: #1e4d82;
  color: #fff;
  border: 1px solid rgba(91,188,226,0.3);
  box-shadow: 0 4px 20px rgba(26,95,166,0.25);
  min-width: 190px;
}

.org-node-mid {
  background: #2c3e60;
  color: #fff;
  border: 1px solid rgba(91,188,226,0.2);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  min-width: 175px;
}

.org-node-leaf {
  background: #e8f0fa;
  color: var(--text-dark);
  border: 1px solid rgba(26,95,166,0.15);
  min-width: 160px;
}

.org-node-committee {
  background: #f0f6fc;
  color: var(--text-dark);
  border: 1px solid rgba(26,95,166,0.12);
  min-width: 165px;
  max-width: 185px;
  box-shadow: 0 2px 8px rgba(26,95,166,0.08);
}

.org-role {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  opacity: 0.85;
}
.org-node-president .org-role,
.org-node-vp .org-role,
.org-node-mid .org-role {
  color: var(--accent-light);
  opacity: 1;
}
.org-node-committee .org-role,
.org-node-leaf .org-role {
  color: var(--primary);
}

.org-name {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}
.org-name-2 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-medium);
  margin-top: 2px;
}
.org-node-president .org-name,
.org-node-vp .org-name,
.org-node-mid .org-name {
  color: #fff;
  font-weight: 700;
}

/* Connectors */
.org-connector-single {
  width: 2px;
  height: 28px;
  background: rgba(26,95,166,0.35);
  margin: 0 auto;
}
.org-connector-single-child {
  width: 2px;
  height: 20px;
  background: rgba(26,95,166,0.25);
  margin: 0 auto;
}

/* Branch 2 — horizontal for level 3 */
.org-connector-branch-2 {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  height: 20px;
  position: relative;
}
.org-connector-branch-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: rgba(26,95,166,0.35);
}
.org-connector-branch-2::after {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: transparent;
  border-left: 2px solid rgba(26,95,166,0.35);
  border-right: 2px solid rgba(26,95,166,0.35);
  height: 20px;
}

/* Branch 3 — horizontal for committees */
.org-connector-branch-3 {
  width: 100%;
  max-width: 700px;
  height: 20px;
  margin: 0 auto;
  position: relative;
}
.org-connector-branch-3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 17%;
  right: 17%;
  height: 2px;
  background: rgba(26,95,166,0.35);
}
.org-connector-branch-3::after {
  content: '';
  position: absolute;
  top: 0;
  left: 17%;
  right: 17%;
  height: 20px;
  border-left: 2px solid rgba(26,95,166,0.35);
  border-right: 2px solid rgba(26,95,166,0.35);
}

/* Branches for level 3 */
.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Level 4 — committees gap */
.org-level-4 {
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Responsive org chart */
@media (max-width: 768px) {
  .org-level {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .org-connector-branch-2,
  .org-connector-branch-3 {
    display: none;
  }
  .org-connector-single {
    height: 16px;
  }
  .org-level-3,
  .org-level-4 {
    gap: 1rem;
  }
  .org-node {
    min-width: 200px;
  }
}
