:root {
  --primary: #84c44c;
  --primary-light: #a5df72;
  --primary-dark: #639e36;
  --secondary: #2d86c8;
  --secondary-light: #5ba4dd;
  --accent: #e9bd36;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
  --bg-earth: #1b4e7a;
  --white: #ffffff;
  --border: #e5e7eb;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h1 span {
  color: var(--primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}
.text-primary {
  color: var(--primary);
}
.text-secondary {
  color: var(--secondary);
}
.text-warning {
  color: var(--accent);
}
.text-white {
  color: var(--white);
}
.text-white-50 {
  color: rgba(255, 255, 255, 0.8);
}
.bg-light {
  background-color: var(--bg-light);
}
.bg-earth {
  background-color: var(--primary-dark);
  position: relative;
} /* Dark tone for observatory contrast */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.mt-3 {
  margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(132, 196, 76, 0.39);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132, 196, 76, 0.23);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(45, 134, 200, 0.39);
}
.btn-secondary:hover {
  background-color: #216ba2;
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
}

.btn-link {
  color: var(--primary);
  font-weight: 600;
}
.btn-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.navbar.navbar-solid {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.navbar.navbar-solid .logo,
.navbar.navbar-solid .logo small {
  color: var(--primary-dark);
}
.navbar.navbar-solid .nav-links a {
  color: var(--text-main);
}
.navbar.navbar-solid .nav-links a:hover {
  color: var(--primary);
}
.navbar.navbar-solid .btn-nav {
  border-color: var(--primary);
  color: var(--white);
}
.navbar.navbar-solid .hamburger {
  color: var(--primary-dark);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  color: var(--white);
}
.navbar.scrolled .logo,
.navbar.scrolled .logo small {
  color: var(--primary-dark);
}
.logo img {
  height: 50px;
  border-radius: 8px;
}
.logo span {
  font-size: 1.1rem;
  line-height: 0.75;
}
.logo small {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}
.org-name {
  display: block;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--white);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--primary-light);
}
.navbar.scrolled .nav-links a {
  color: var(--text-main);
}
.navbar.scrolled .nav-links a:hover {
  color: var(--primary);
}
.btn-nav {
  padding: 0.5rem 1.25rem;
}
.navbar.scrolled .btn-nav {
  border-color: var(--primary);
  color: var(--white);
}
.hamburger {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}
.navbar.scrolled .hamburger {
  color: var(--primary-dark);
}

/* Portal de agremiados – nombre de usuario en navbar */
.nav-agremiado-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1625246333195-78d9c38ad449?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80")
    center/cover no-repeat;
  z-index: 1;
  animation: zoomIn 20s infinite alternate linear;
}
@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(27, 94, 32, 0.9) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo {
  max-height: 250px;
  margin: 0 auto 2rem auto;
  display: block;
  animation: fadeInDown 1s ease-out;
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero h1 {
  font-size: 4rem;
  max-width: 900px;
  margin-bottom: 1.5rem;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
  opacity: 0.9;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.section .btn-outline {
  color: var(--primary);
  border-color: var(--border);
}
.section .btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 3;
  display: flex;
  justify-content: space-around;
  padding: 1.5rem 0;
}
.stat-item {
  text-align: center;
  color: var(--white);
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
  color: var(--accent);
}
.stat-num::after {
  content: "+";
}

/* Quick Access */
.relative-up {
  position: relative;
  margin-top: -3rem;
  z-index: 10;
}
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.qa-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}
.qa-card:hover {
  transform: translateY(-10px);
  border-bottom: 4px solid var(--primary);
}
.qa-card.qa-highlight {
  background: linear-gradient(135deg, var(--secondary) 0%, #c08d5c 100%);
  color: var(--white);
}
.qa-card.qa-highlight h3,
.qa-card.qa-highlight p {
  color: var(--white);
}
.qa-card.qa-highlight:hover {
  border-bottom: 4px solid var(--primary-dark);
}
.qa-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}
.qa-card.qa-highlight .qa-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.qa-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.qa-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section Header */
.section-header {
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
}
.bg-earth .section-header h2 {
  color: var(--white);
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* News Carousel */
.news-slider-wrapper {
  position: relative;
  padding: 0 40px;
}
.news-slider {
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  min-height: 400px;
  box-shadow: var(--shadow-lg);
}
.news-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: flex-end;
}
.news-slide.slide-active {
  opacity: 1;
  z-index: 10;
}
.news-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-content {
  position: relative;
  z-index: 11;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  width: 100%;
  padding: 4rem 3rem 2rem;
  color: var(--white);
}
.tag {
  background: var(--accent);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}
.slide-content h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.slide-content p {
  max-width: 800px;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.read-more {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.read-more:hover {
  color: var(--white);
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  color: var(--primary);
  font-size: 1.2rem;
  transition: var(--transition);
}
.slider-btn:hover {
  background: var(--primary);
  color: var(--white);
}
.prev-btn {
  left: 0;
}
.next-btn {
  right: 0;
}

/* Observatory (Glassmorphism) */
.bg-earth::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1599264259461-7fc0004dc5de?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80")
    center/cover;
  opacity: 0.2;
}
.obs-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}
.obs-card.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  color: var(--white);
  transition: var(--transition);
}
.obs-card.glass:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}
.obs-card.alert-card {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.1);
}
.obs-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.obs-icon {
  font-size: 1.5rem;
  color: var(--secondary-light);
}
.obs-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
}
.obs-value small {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
}
.obs-trend {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
}
.obs-trend.positive {
  color: #4caf50;
}
.obs-trend.negative {
  color: #f44336;
}
.obs-desc {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Events */
.event-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.event-card {
  display: flex;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 5px solid var(--primary);
}
.event-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(5px);
}
.event-date {
  background: var(--bg-light);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  min-width: 120px;
}
.event-date strong {
  font-size: 2rem;
  color: var(--primary-dark);
  line-height: 1;
}
.event-date span {
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.event-info {
  padding: 1.5rem;
  flex: 1;
}
.event-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.event-info p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.event-info p i {
  width: 20px;
  color: var(--secondary);
}

/* Engineer of the Month */
.engineer-profile {
  display: flex;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  gap: 0;
}
.eng-image {
  position: relative;
  flex: 0 0 40%;
}
.eng-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eng-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eng-details {
  padding: 4rem;
  flex: 1;
}
.eng-bio {
  font-size: 1.1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  line-height: 1.8;
}
.eng-achievements {
  list-style: none;
  margin-bottom: 2rem;
}
.eng-achievements li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}
.eng-achievements li i {
  color: var(--primary-light);
  font-size: 1.25rem;
}

/* ── Consejo Directivo Grid ─────────────────────────────────────────────── */
.cd-section-header {
  margin-bottom: 2.5rem;
}

.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cd-member-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
  cursor: default;
}

.cd-member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.cd-member-card:hover img {
  transform: scale(1.08);
}

.cd-overlay {
  position: absolute;
  top: 65%;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.1rem 1rem 1rem;
  background: linear-gradient(
    to top,
    rgba(10, 30, 10, 0.97) 0%,
    rgba(10, 30, 10, 0.88) 70%,
    rgba(10, 30, 10, 0.55) 100%
  );
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.cd-member-card:hover .cd-overlay {
  top: 0;
  justify-content: flex-start;
  padding-top: 1.5rem;
}

.cd-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0;
  transition: margin-bottom 0.35s ease;
}

.cd-member-card:hover .cd-header {
  margin-bottom: 0.85rem;
}

.cd-cargo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary-light);
}

.cd-nombre {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--white);
}

.cd-especialidad {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.35;
}

.cd-detail {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 0.25s ease 0.1s,
    max-height 0.4s ease;
}

.cd-member-card:hover .cd-detail {
  opacity: 1;
  max-height: 300px;
}

.cd-detail li {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  padding-left: 0.9rem;
  position: relative;
  line-height: 1.4;
}

.cd-detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-light);
}

@media (max-width: 900px) {
  .cd-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cd-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* En mobile: layout horizontal — foto izda, info dcha */
  .cd-member-card {
    aspect-ratio: unset;
    display: flex;
    flex-direction: row;
    border-radius: 12px;
    min-height: 130px;
  }

  .cd-member-card img {
    width: 110px;
    min-width: 110px;
    height: 100%;
    border-radius: 12px 0 0 12px;
    object-fit: cover;
    transition: none;
  }

  .cd-member-card:hover img {
    transform: none;
  }

  /* El overlay ocupa el espacio restante y siempre visible */
  .cd-overlay {
    position: static;
    flex: 1;
    top: unset;
    bottom: unset;
    padding: 0.85rem 1rem;
    background: rgba(10, 30, 10, 0.93);
    border-radius: 0 12px 12px 0;
    justify-content: flex-start;
    transition: none;
    overflow-y: auto;
  }

  .cd-member-card:hover .cd-overlay {
    top: unset;
    padding-top: 0.85rem;
    justify-content: flex-start;
  }

  .cd-header {
    margin-bottom: 0.6rem;
  }

  .cd-member-card:hover .cd-header {
    margin-bottom: 0.6rem;
  }

  .cd-nombre {
    font-size: 0.85rem;
  }

  .cd-especialidad {
    display: block;
  }

  /* Detalle siempre visible en mobile */
  .cd-detail {
    opacity: 1;
    max-height: none;
    overflow: visible;
    gap: 0.35rem;
  }

  .cd-member-card:hover .cd-detail {
    max-height: none;
  }

  .cd-detail li {
    font-size: 0.72rem;
  }
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.k-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.k-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.k-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.k-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.k-card:hover .k-img img {
  transform: scale(1.1);
}
.k-type {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.k-content {
  padding: 1.5rem;
}
.k-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.k-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.k-content a {
  font-weight: 600;
  color: var(--secondary);
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.k-content a:hover {
  border-color: var(--secondary);
}

/* IA Assistant */
.artificial-intelligence {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: var(--white);
}
.ia-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.ia-icon-pulse {
  width: 80px;
  height: 80px;
  background: rgba(76, 175, 80, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-light);
  margin-bottom: 2rem;
  position: relative;
}
.ia-icon-pulse::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  animation: pulse 2s infinite auto;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
.ia-info p {
  color: #9ca3af;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.ia-samples {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sample-prompt {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-style: italic;
  color: #d1d5db;
  cursor: pointer;
  transition: var(--transition);
}
.sample-prompt:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-light);
}
.ia-chat-interface {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  height: 450px;
}
.chat-header {
  background: var(--bg-light);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-main);
  font-weight: 600;
}
.chat-status {
  width: 10px;
  height: 10px;
  background: #4caf50;
  border-radius: 50%;
}
.chat-body {
  flex: 1;
  padding: 1.5rem;
  background: #f3f4f6;
  overflow-y: auto;
}
.message {
  max-width: 80%;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
}
.bot-msg {
  background: var(--white);
  border-bottom-left-radius: 0;
  box-shadow: var(--shadow-sm);
}
.chat-input-area {
  padding: 1rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
}
.chat-input-area input {
  flex: 1;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
}
.chat-input-area input:focus {
  border-color: var(--primary);
}
.chat-input-area button {
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.chat-input-area button:hover {
  background: var(--primary-dark);
}

/* Dual Layout (Bolsa de trabajo & Alianzas) */
.dual-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
}
.dual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.dual-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0;
}
.job-list {
  list-style: none;
}
.job-list li {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.job-list li:hover {
  box-shadow: var(--shadow);
  border-color: var(--secondary);
}
.job-role h4 {
  font-size: 1.1rem;
}
.job-role span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.alliance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.alliance-logo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: var(--transition);
}
.alliance-logo img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}
.alliance-logo:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}
.alliance-logo:hover img {
  filter: grayscale(0%);
}

/* ── Page Hero (páginas internas) ──────────────────────────────────────── */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 100%
  );
  color: var(--white);
  padding: 5rem 0 3.5rem;
  margin-top: 70px; /* altura del navbar */
}

.page-hero .breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.page-hero .breadcrumb-nav a {
  color: var(--white);
  text-decoration: none;
}

.page-hero .breadcrumb-nav a:hover {
  text-decoration: underline;
}

.page-hero .breadcrumb-nav .sep {
  opacity: 0.5;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.page-hero h1 span {
  color: var(--primary-light);
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 620px;
  line-height: 1.6;
  margin: 0;
}

/* ── Requisitos ─────────────────────────────────────────────────────────── */
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.requisitos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.requisito-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.requisito-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.requisito-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(132, 196, 76, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.requisito-card p {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.55;
  margin: 0;
}

.requisitos-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.requisitos-cta p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

@media (max-width: 1024px) {
  .requisitos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .requisitos-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .requisitos-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.footer-logo img {
  height: 50px;
  border-radius: 8px;
  background: var(--white);
  padding: 2px;
}
.footer-logo h3 {
  font-size: 1.1rem;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.branding-col p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}
.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  gap: 0.75rem;
}
.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}
.footer-bottom {
  background: #124016; /* Darker green */
  padding: 1.5rem 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive Maps & Media queries */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dual-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Consejo Directivo ──────────────────────────────────────────────────── */
.consejo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.consejo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.consejo-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.consejo-card--presidente {
  border-color: var(--primary);
  background: linear-gradient(
    135deg,
    rgba(132, 196, 76, 0.08) 0%,
    var(--white) 100%
  );
}

.consejo-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(132, 196, 76, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary-dark);
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}

.consejo-card--presidente .consejo-card__icon {
  background: rgba(132, 196, 76, 0.2);
}

.consejo-card__cargo {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
}

.consejo-card__nombre {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.consejo-card__suplente {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  margin-top: 0.25rem;
  width: 100%;
  line-height: 1.45;
}

/* Órganos colegiados */
.consejo-colegiados {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.consejo-colegiado-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.consejo-colegiado-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.consejo-colegiado-card__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.consejo-colegiado-card__cargo {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
}

.consejo-colegiado-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.consejo-colegiado-card ul li {
  font-size: 0.95rem;
  color: var(--text-main);
  padding-left: 1rem;
  position: relative;
}

.consejo-colegiado-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

@media (max-width: 768px) {
  .consejo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .consejo-colegiados {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 768px) {
  .logo span br {
    display: none;
  }
  .logo .org-name {
    font-size: 0.9rem;
    line-height: 1;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: 0.4s ease-in-out;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active {
    left: 0;
  }
  .hamburger {
    display: block;
    z-index: 1001;
  }
  .hamburger.active {
    color: var(--primary-dark);
  }
  .nav-links a {
    color: var(--text-main);
    font-size: 1.25rem;
  }
  .nav-links a:hover {
    color: var(--primary);
  }
  .navbar .btn-nav {
    border-color: var(--primary);
    color: var(--primary);
  }

  .hero {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 120px;
    height: auto;
    min-height: 100vh;
  }
  .hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 2rem;
  }
  .hero h1 {
    font-size: 2.25rem;
    line-height: 1.3;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-stats {
    position: relative;
    background: var(--primary-dark);
    padding: 2rem 1rem;
    flex-direction: column;
    gap: 1.5rem;
  }

  .engineer-profile {
    flex-direction: column;
  }
  .eng-details {
    padding: 2rem;
  }

  .ia-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .alliance-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    padding-top: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .footer-logo {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-col ul li {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    word-break: break-all;
  }
  .footer-col ul li i {
    margin-bottom: 0.5rem;
  }
}
