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

:root {
  --primary-color: #0066cc;
  --secondary-color: #00a86b;
  --accent-color: #ff6b35;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

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

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Partners Carousel */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partners-carousel {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.partners-track {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: scroll 30s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

.content-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.carousel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.carousel-card:hover .carousel-card-image {
  transform: scale(1.05);
}

.carousel-card:hover span:last-child {
  transform: translateX(5px);
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.75rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
  background: var(--bg-light);
}

.nav-link.active {
  color: var(--primary-color);
  
  box-shadow: inset 0 -2px 0 var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: var(--spacing-xxl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle depth highlights for non-video heroes (video hero has its own overlay) */
.hero:not(.hero-video-background)::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.15), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero:not(.hero-video-background) .container { position: relative; z-index: 2; }

.hero-video-background {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

.hero-video-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.7), rgba(0, 168, 107, 0.7));
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  font-weight: 300;
  letter-spacing: 0.005em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-video {
  width: 100%;
  max-width: 800px;
  margin: var(--spacing-lg) auto 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-video video {
  width: 100%;
  height: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(0, 102, 204, 0.25);
}

.btn-secondary:hover {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
}

/* Section */
.section {
  padding: var(--spacing-xxl) 0;
}

.section-light {
  background: var(--bg-light);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  text-align: center;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  line-height: 1.65;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.stat-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  color: var(--text-light);
  font-size: 1rem;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.content-box {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.content-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: var(--spacing-md);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.card-text {
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.card-meta {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-sm);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-warning {
  background: #fff3cd;
  color: #856404;
}

.badge-info {
  background: #d1ecf1;
  color: #0c5460;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.value-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

/* Article Detail */
.article-header {
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  text-align: center;
}

.article-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.article-meta {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.article-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  border-radius: 8px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: var(--spacing-md);
}

/* Transparency */
.transparency-section {
  margin-bottom: var(--spacing-xl);
}

.transparency-section h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-color);
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.document-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.document-info h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.document-info p {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Job Listings */
.job-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing-lg);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.job-title {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.job-location {
  color: var(--text-light);
  margin-top: 4px;
}

.job-content h4 {
  margin: var(--spacing-md) 0 var(--spacing-sm);
  color: var(--primary-color);
}

.job-content ul {
  list-style: none;
  padding: 0;
}

.job-content li {
  padding: 4px 0 4px 24px;
  position: relative;
}

.job-content li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--primary-color);
  font-weight: bold;
}

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.contact-info {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.contact-info:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.contact-info h3 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.contact-info p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-light);
}

.contact-info a {
  transition: all 0.3s ease;
}

.contact-info a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.contact-form {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.contact-form:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--bg-light);
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
  transform: translateY(-1px);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--secondary-color);
}

/* File input polish for public forms */
.form-group input[type=file] {
  padding: 10px 12px;
  background: var(--white);
  cursor: pointer;
}

.map-container {
  margin-top: var(--spacing-xl);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xxl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-xs);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Breadcrumb */
.breadcrumb {
  padding: var(--spacing-md) 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary-color);
  margin-right: var(--spacing-xs);
  transition: opacity 0.2s ease;
}

.breadcrumb a:hover { opacity: 0.75; }

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

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

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

  .hero-video-background {
    min-height: 450px;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .job-header {
    flex-direction: column;
  }

  .carousel-card {
    flex: 0 0 calc(50% - 12px);
    min-width: 250px;
  }

  .carousel-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-video-background {
    min-height: 400px;
  }

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

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

  .carousel-card {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .carousel-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .carousel-container {
    gap: 8px;
  }
}

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

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

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease;
}

.fade-in-left {
  animation: fadeInLeft 0.6s ease;
}

.fade-in-right {
  animation: fadeInRight 0.6s ease;
}

.scale-in {
  animation: scaleIn 0.5s ease;
}

.stagger-1 {
  animation-delay: 0.1s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.stagger-2 {
  animation-delay: 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.stagger-3 {
  animation-delay: 0.3s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.stagger-4 {
  animation-delay: 0.4s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* Modern Carousel */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: var(--spacing-xl);
}

.carousel-wrapper {
  overflow: hidden;
  flex: 1;
}

.carousel-container .carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.carousel-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.carousel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

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

.carousel-card:hover span:last-child {
  transform: translateX(4px);
}

.carousel-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-card-content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.carousel-card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
  font-weight: 600;
}

.carousel-card-text {
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
  flex: 1;
}

.carousel-nav-btn {
  background: var(--white);
  border: 2px solid var(--border-color);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  color: var(--primary-color);
  font-weight: bold;
  line-height: 1;
}

.carousel-nav-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.carousel-nav-btn:active {
  transform: scale(0.95);
}

/* History Carousel */
.history-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.history-carousel .carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  gap: 0;
}

.carousel-slide {
  width: 100%;
  min-width: 100%;
  flex-shrink: 0;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
}

.carousel-year {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: white;
}

.carousel-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: white;
  max-width: 700px;
}

.carousel-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-button:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.carousel-indicators {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: white;
  transform: scale(1.3);
}

/* Team Cards with Photos */
.team-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.team-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.team-info {
  padding: 24px;
  text-align: center;
}

.team-name {
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 1.125rem;
  font-weight: 600;
}

.team-role {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Values Section with Background */
.values-section-bg {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  position: relative;
  overflow: hidden;
}

.values-section-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.values-section-bg .container {
  position: relative;
  z-index: 1;
}

.values-section-bg .section-title {
  color: white;
}

.values-section-bg .value-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.values-section-bg .value-card:hover {
  background: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

/* -------- External link CTA (project detail) -------- */
.home-article__cta {
  margin-top: 1.25rem;
  text-align: center;
}
.home-external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border: 2px solid var(--home-accent, #0066cc);
  color: var(--home-accent, #0066cc);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  background: #fff;
}
.home-external-link:hover {
  background: var(--home-accent, #0066cc);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 102, 204, 0.25);
}
.home-external-link:focus-visible {
  outline: 2px solid var(--home-accent, #0066cc);
  outline-offset: 3px;
}
.home-external-link svg { flex-shrink: 0; }

/* -------- Project Photo Gallery -------- */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-thumb {
  width: 150px;
  height: 150px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--bg-light);
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

.gallery-thumb img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-thumb:hover img { transform: scale(1.06); }

/* -------- Lightbox -------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img-wrap img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}

/* Controls are position:absolute inside the position:fixed lightbox overlay.
   They are fully hidden when the parent has display:none. */
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255, 255, 255, 0.28); }

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  border-radius: 4px;
  font-size: 2.75rem;
  padding: 0.25rem 0.875rem;
}

.lightbox__prev  { left: 1rem; }
.lightbox__next  { right: 1rem; }

.lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .gallery-thumb,
  .gallery-thumb img { width: 120px; height: 120px; }
  .lightbox__prev { left: 0.25rem; }
  .lightbox__next { right: 0.25rem; }
}

/* =============================================================
   HOME REDESIGN — design system (2026)
   Scoped under .home-* classes to avoid collisions with other
   pages. Token-based so future sections can reuse it.
   ============================================================= */
:root {
  --home-ink:        #0f172a;
  --home-ink-soft:   #475569;
  --home-ink-muted:  #94a3b8;
  --home-surface:    #ffffff;
  --home-surface-2:  #f8fafc;
  --home-border:     #e2e8f0;
  --home-accent:     #0066cc;
  --home-accent-2:   #00a86b;
  --home-radius-md:  12px;
  --home-radius-lg:  16px;
  --home-radius-xl:  24px;
  --home-shadow-sm:  0 1px 3px rgba(15,23,42,0.05), 0 1px 2px rgba(15,23,42,0.04);
  --home-shadow-md:  0 4px 14px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --home-shadow-lg:  0 22px 48px -12px rgba(15,23,42,0.12);
}

/* ---------- Hero refinements (video stays) ---------- */
.home-hero { text-align: center; }

.home-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 1.25rem;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
  color: #fff;
}

.home-hero__subtitle {
  font-size: clamp(1.0625rem, 1.8vw, 1.375rem);
  font-weight: 300;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 2.25rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  opacity: 0.95;
  color: #fff;
}

.home-hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons (home-scoped modern pill variants) ---------- */
.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.home-btn--pill { border-radius: 999px; }
.home-btn--lg   { padding: 15px 36px; font-size: 1.0625rem; }
.home-btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.home-btn--ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

/* Upgrade the site's .btn-primary when used on the hero so the arrow icon aligns */
.home-hero .btn-primary { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Section rhythm ---------- */
.home-section {
  padding: 112px 0;
  background: var(--home-surface);
  position: relative;
}
.home-section--alt { background: var(--home-surface-2); }

@media (max-width: 900px) {
  .home-section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .home-section { padding: 56px 0; }
}

/* Intro block (eyebrow + title + lead) */
.home-section__intro {
  max-width: 720px;
  margin-bottom: 56px;
}
.home-section__intro--center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Header with right-aligned link */
.home-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}
.home-section__header > div { max-width: 640px; }
.home-section__header .home-section__lead { margin-bottom: 0; }

/* ---------- Eyebrow ---------- */
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-accent);
}
.home-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.9;
}
.home-eyebrow--center {
  display: inline-flex;
  justify-content: center;
}
.home-eyebrow--center::after {
  content: '';
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.9;
}
.home-section__intro--center .home-eyebrow { display: inline-flex; }

/* ---------- Titles / lead ---------- */
.home-section__title {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--home-ink);
  line-height: 1.15;
  margin: 0 0 14px;
}
.home-section__lead {
  font-size: 1.0625rem;
  color: var(--home-ink-soft);
  line-height: 1.7;
  margin: 0 0 12px;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: none;
  hyphens: none;
}

/* ---------- "Ver todos" link ---------- */
.home-section__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--home-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: gap 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.home-section__link:hover {
  gap: 10px;
  background: rgba(0, 102, 204, 0.08);
  text-decoration: none;
}

/* ---------- Mission two-column ---------- */
.home-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 860px) {
  .home-two-col { grid-template-columns: 1fr; }
}

/* ---------- Generic card ---------- */
.home-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
  padding: 40px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.home-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow-lg);
  border-color: transparent;
}

.home-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 22px;
  color: #fff;
}
.home-card__icon svg { width: 26px; height: 26px; }

.home-card__icon--blue  { background: linear-gradient(135deg, #0066cc, #0080ff); box-shadow: 0 8px 20px rgba(0, 102, 204, 0.25); }
.home-card__icon--green { background: linear-gradient(135deg, #00a86b, #00d084); box-shadow: 0 8px 20px rgba(0, 168, 107, 0.25); }

.home-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--home-ink);
  margin: 0 0 12px;
  line-height: 1.25;
}
.home-card__text {
  color: var(--home-ink-soft);
  line-height: 1.75;
  font-size: 1rem;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: none;
  hyphens: none;
}

/* ---------- Ejes Estratégicos grid ---------- */
.home-ejes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1000px) { .home-ejes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .home-ejes-grid { grid-template-columns: 1fr; } }

.home-eje {
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.home-eje::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--eje-accent, var(--home-accent));
}
.home-eje:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow-lg);
  border-color: transparent;
}

.home-eje__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--eje-soft, rgba(0, 102, 204, 0.10));
  color: var(--eje-accent, var(--home-accent));
  margin-bottom: 22px;
}
.home-eje__icon svg { width: 26px; height: 26px; display: block; }

.home-eje__title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--home-ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 10px;
}
.home-eje__text {
  color: var(--home-ink-soft);
  line-height: 1.65;
  font-size: 0.9375rem;
  margin: 0;
}

/* Eje color variants */
.home-eje--green  { --eje-accent: #059669; --eje-soft: rgba(16, 185, 129, 0.12); }
.home-eje--amber  { --eje-accent: #d97706; --eje-soft: rgba(245, 158, 11, 0.14); }
.home-eje--blue   { --eje-accent: #2563eb; --eje-soft: rgba(59, 130, 246, 0.12); }
.home-eje--purple { --eje-accent: #7c3aed; --eje-soft: rgba(139, 92, 246, 0.14); }

/* ---------- Project card (carousel item) ---------- */
.home-proj {
  border-radius: var(--home-radius-lg) !important;
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow-sm) !important;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.home-proj:hover {
  border-color: transparent;
  box-shadow: var(--home-shadow-lg) !important;
  transform: translateY(-6px) !important;
}
.home-proj__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--home-surface-2);
}
.home-proj__media img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.home-proj__tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--home-accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.home-proj__body { padding: 24px !important; }
.home-proj__title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--home-ink) !important;
  line-height: 1.3;
  margin: 0 0 10px !important;
  letter-spacing: -0.01em;
}
.home-proj__desc {
  color: var(--home-ink-soft) !important;
  line-height: 1.65 !important;
  font-size: 0.9375rem;
  margin: 0 0 18px !important;
}
.home-proj__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--home-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: auto;
}
.home-proj__arrow { transition: transform 0.25s ease; display: inline-block; }
.home-proj:hover .home-proj__arrow { transform: translateX(4px); }

/* ---------- News card (carousel item) ---------- */
.home-news {
  border-radius: var(--home-radius-lg) !important;
  border: 1px solid var(--home-border) !important;
  box-shadow: var(--home-shadow-sm) !important;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.home-news:hover {
  border-color: transparent !important;
  box-shadow: var(--home-shadow-lg) !important;
  transform: translateY(-6px) !important;
}
.home-news__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--home-surface-2);
}
.home-news__media img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.home-news__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--home-accent-2);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 168, 107, 0.3);
}
.home-news__body { padding: 22px 24px 24px !important; display: flex; flex-direction: column; }
.home-news__date {
  font-size: 0.8125rem;
  color: var(--home-ink-muted);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.home-news__title {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: var(--home-ink) !important;
  line-height: 1.35 !important;
  margin: 0 0 10px !important;
  letter-spacing: -0.01em;
}
.home-news__text {
  color: var(--home-ink-soft) !important;
  line-height: 1.6 !important;
  font-size: 0.9375rem;
  margin: 0 0 16px !important;
}
.home-news__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--home-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: auto;
}

/* ---------- Partners ---------- */
.home-partners { padding-bottom: 80px; }
.home-partner {
  flex: 0 0 auto;
  min-width: 200px;
  height: 110px;
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-partner:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow-md);
}
.home-partner img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(0.1);
  transition: filter 0.25s ease;
}
.home-partner:hover img { filter: grayscale(0); }

@media (max-width: 560px) {
  .home-card    { padding: 28px; }
  .home-eje     { padding: 26px 22px; }
  .home-hero__actions { flex-direction: column; align-items: stretch; }
  .home-section__header { align-items: flex-start; }
  .home-partner { min-width: 160px; height: 90px; padding: 16px; }
  .home-partner img { max-height: 52px; }
}

/* =============================================================
   HOME DESIGN SYSTEM — EXTENSIONS (for other pages)
   Reusable building blocks that extend the home-* patterns to
   every public page. Heroes are not touched by these rules.
   ============================================================= */

/* Intro variants */
.home-section__intro--left {
  max-width: 820px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
.home-section__intro--narrow { max-width: 560px; }

/* Subsection title (used inside a larger section) */
.home-subsection-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--home-ink);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  text-align: center;
}
.home-subsection-title--left { text-align: left; }

/* ---------- Generic listing grid (proyectos, noticias index) ---------- */
.home-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
@media (max-width: 560px) {
  .home-listing-grid { grid-template-columns: 1fr; }
}

/* Listing card — replaces .card on listing pages */
.home-listing-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--home-shadow-sm);
}
.home-listing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--home-shadow-lg);
  border-color: transparent;
  text-decoration: none;
}
.home-listing-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--home-surface-2);
}
.home-listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.home-listing-card:hover .home-listing-card__media img { transform: scale(1.05); }
.home-listing-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--home-accent-2);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 168, 107, 0.3);
}
.home-listing-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.home-listing-card__meta {
  font-size: 0.8125rem;
  color: var(--home-ink-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.home-listing-card__title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--home-ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
}
.home-listing-card__text {
  color: var(--home-ink-soft);
  line-height: 1.6;
  font-size: 0.9375rem;
  margin: 0;
}
.home-listing-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--home-ink-soft);
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--home-border);
}
.home-listing-card__info strong { color: var(--home-ink); font-weight: 600; }
.home-listing-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--home-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: auto;
  padding-top: 8px;
}
.home-listing-card__cta .arrow { transition: transform 0.25s ease; display: inline-block; }
.home-listing-card:hover .home-listing-card__cta .arrow { transform: translateX(4px); }

/* ---------- Value card ---------- */
.home-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.home-value {
  padding: 32px 24px;
  text-align: center;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.home-value:hover {
  border-color: transparent;
  box-shadow: var(--home-shadow-lg);
  transform: translateY(-4px);
}
.home-value__icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: inline-block;
  line-height: 1;
}
.home-value__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--home-ink);
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.home-value__text {
  color: var(--home-ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Document item (transparencia) ---------- */
.home-doc-group { margin-bottom: 40px; }
.home-doc-group:last-child { margin-bottom: 0; }
.home-doc-group__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--home-ink);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  line-height: 1.3;
}
.home-doc-group__lead {
  color: var(--home-ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 18px;
}
.home-doc-subgroup__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--home-ink-soft);
  letter-spacing: 0.01em;
  margin: 24px 0 12px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.home-doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  gap: 20px;
  flex-wrap: wrap;
}
.home-doc-item:hover {
  border-color: var(--home-accent);
  box-shadow: var(--home-shadow-sm);
  transform: translateY(-1px);
}
.home-doc-item__info { flex: 1; min-width: 200px; }
.home-doc-item__info h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--home-ink);
  margin: 0 0 4px;
  line-height: 1.4;
}
.home-doc-item__info p {
  font-size: 0.8125rem;
  color: var(--home-ink-muted);
  margin: 0;
}
.home-doc-item__download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--home-accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.home-doc-item__download:hover {
  background: #0052a3;
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}
.home-doc-empty {
  padding: 24px;
  text-align: center;
  color: var(--home-ink-muted);
  background: var(--home-surface-2);
  border: 1px dashed var(--home-border);
  border-radius: 10px;
  font-size: 0.9375rem;
}

/* ---------- Info card (vacantes, general info) ---------- */
.home-info-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.home-info-card:hover {
  box-shadow: var(--home-shadow-md);
  border-color: transparent;
}
.home-info-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.home-info-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--home-ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 4px;
}
.home-info-card__meta {
  color: var(--home-ink-muted);
  font-size: 0.875rem;
  margin: 0;
}
.home-info-card__tag {
  background: rgba(0, 102, 204, 0.1);
  color: var(--home-accent);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.home-info-card__tag--success { background: rgba(5, 150, 105, 0.12); color: #059669; }
.home-info-card__desc { color: var(--home-ink-soft); line-height: 1.7; margin: 0 0 20px; }
.home-info-card h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--home-accent);
  margin: 20px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.home-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.home-info-card ul li {
  padding: 4px 0 4px 20px;
  position: relative;
  color: var(--home-ink-soft);
  line-height: 1.6;
}
.home-info-card ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-accent);
}

/* ---------- Institution chip ---------- */
.home-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}
.home-chip {
  padding: 18px 20px 18px 26px;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  color: var(--home-ink);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.home-chip::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--home-accent);
}
.home-chip:hover {
  border-color: transparent;
  box-shadow: var(--home-shadow-md);
  transform: translateY(-2px);
}

/* ---------- Form container ---------- */
.home-form {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
  padding: 40px;
  box-shadow: var(--home-shadow-sm);
  max-width: 700px;
  margin: 0 auto;
}
.home-form__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--home-ink);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.home-form__lead {
  color: var(--home-ink-soft);
  margin: 0 0 28px;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.home-form__footer {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--home-border);
  text-align: center;
  font-size: 0.9375rem;
}
.home-form__footer a { color: var(--home-accent); font-weight: 600; }

/* Submit button variant */
.home-btn--block { width: 100%; justify-content: center; }

@media (max-width: 560px) {
  .home-form { padding: 28px 22px; }
}

/* ---------- Status card + timeline (queja-estado) ---------- */
.home-status-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-lg);
  padding: 32px;
  box-shadow: var(--home-shadow-sm);
}
.home-status-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.home-status-card__header h3 {
  margin: 0;
  color: var(--home-ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.home-status-badge {
  background: var(--home-accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}
.home-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 20px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
}
.home-status-grid__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--home-ink-muted);
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}
.home-status-grid__value {
  color: var(--home-ink);
  font-weight: 500;
  margin: 0;
  word-break: break-word;
}
.home-status-grid__value--mono { font-family: monospace; font-size: 0.875rem; }

.home-timeline-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--home-accent);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.home-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-timeline__item {
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid var(--home-border);
  position: relative;
}
.home-timeline__item:last-child { border-bottom: none; padding-bottom: 0; }
.home-timeline__item::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}
.home-timeline__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.home-timeline__date {
  font-size: 0.75rem;
  color: var(--home-ink-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.home-timeline__user {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.home-timeline__user--action {
  background: rgba(0, 102, 204, 0.10);
  color: var(--home-accent);
}
.home-timeline__user--note {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}
.home-timeline__body {
  margin-top: 6px;
  color: var(--home-ink);
  line-height: 1.55;
}
.home-timeline__body .muted { color: var(--home-ink-muted); }
.home-timeline__note-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7c3aed;
  margin-right: 4px;
}

/* ---------- Notices / alerts ---------- */
.home-notice {
  padding: 18px 22px;
  border-radius: 10px;
  margin-bottom: 24px;
  line-height: 1.55;
  font-size: 0.9375rem;
  border-left: 4px solid;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-direction: column;
}
.home-notice strong { color: inherit; font-weight: 700; }
.home-notice--success { background: #ecfdf5; color: #065f46; border-color: #10b981; }
.home-notice--error   { background: #fef2f2; color: #991b1b; border-color: #ef4444; }
.home-notice--info    { background: #eff6ff; color: #1e40af; border-color: #3b82f6; }

.home-uuid-pill {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.875rem;
  word-break: break-all;
  color: #065f46;
}

/* ---------- Article (news/project detail) ---------- */
.home-article { max-width: 900px; margin: 0 auto; }
.home-article__breadcrumb {
  font-size: 0.875rem;
  color: var(--home-ink-muted);
  margin-bottom: 24px;
}
.home-article__breadcrumb a {
  color: var(--home-accent);
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.home-article__breadcrumb a:hover { opacity: 0.75; text-decoration: none; }

.home-article__header { text-align: center; margin-bottom: 40px; }
.home-article__title {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--home-ink);
  margin: 0 0 16px;
}
.home-article__meta {
  color: var(--home-ink-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.home-article__image {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: var(--home-radius-lg);
  overflow: hidden;
  box-shadow: var(--home-shadow-md);
}
.home-article__image img { width: 100%; display: block; }

.home-article__body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--home-ink);
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: none;
}
.home-article__body p { margin: 0 0 1.25em; }
/* No justificar el .home-article__meta-grid (que vive dentro de __body en proyecto.php) */
.home-article__body .home-article__meta-grid { text-align: left; hyphens: manual; }
.home-article__body .home-article__meta-grid p { text-align: left; }

.home-article__meta-grid {
  background: var(--home-surface-2);
  border: 1px solid var(--home-border);
  padding: 24px;
  border-radius: var(--home-radius-lg);
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.home-article__meta-grid strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--home-accent);
  font-weight: 700;
  margin-bottom: 4px;
}
.home-article__meta-grid p { margin: 0; color: var(--home-ink); font-weight: 500; }

.home-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 12px 28px;
  background: transparent;
  color: var(--home-accent);
  border: 2px solid var(--home-border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.home-back-link:hover {
  background: var(--home-accent);
  color: #fff;
  border-color: var(--home-accent);
  text-decoration: none;
  transform: translateY(-1px);
}
.home-back-wrap { text-align: center; }
