@charset "UTF-8";
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Google Sans", "Roboto", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #1f2937;
  background: #ffffff;
}

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

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

.container {
  width: 100%;
  padding-inline: 48px;
  box-sizing: border-box;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand__logo {
  width: 200px;
  height: auto;
}

.brand__name {
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #156fb1;
}

.menu {
  display: flex;
  justify-content: flex-end;
  gap: 34px;
  align-items: center;
  grid-column: 2/3;
}

.menu__link {
  font-size: 18px;
  color: #334155;
  padding: 10px 6px;
  transition: color 0.2s ease;
}

.menu__link:hover {
  color: #1c78c6;
}

.menu__link.is-active {
  color: #1c78c6;
}

.nav__spacer {
  display: block;
  min-width: 100px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #1f2937;
  border-radius: 0;
  transition: all 0.3s ease;
  display: block;
  transform-origin: center;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -6px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  border: 2px solid transparent;
  transition: transform 0.08s ease, filter 0.12s ease, background-color 0.12s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: #1c78c6;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(28, 120, 198, 0.18);
}

.btn--primary:hover {
  filter: brightness(1.03);
}

.btn--accent {
  background: #f6b233;
  color: #1b2a34;
  box-shadow: 0 10px 22px rgba(246, 178, 51, 0.2);
}

.btn--accent:hover {
  filter: brightness(1.02);
}

.btn--secondary {
  background: #1c78c6;
  color: #ffffff;
  padding: 12px 20px;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(28, 120, 198, 0.2);
}
.btn--secondary:hover {
  filter: brightness(1.05);
}

.hero {
  background: #eaf4fb;
  padding: 40px 0 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 56px;
}

.hero__title {
  margin: 0 0 22px;
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: -0.6px;
  color: #156fb1;
  font-weight: 900;
}

.hero__lead {
  margin: 0 0 34px;
  font-size: 22px;
  line-height: 1.55;
  color: #384657;
  max-width: 56ch;
}

.hero__cta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: flex-end;
}

.hero__image {
  width: min(560px, 100%);
  height: auto;
  filter: drop-shadow(0 22px 40px rgba(11, 47, 74, 0.12));
}

.features {
  padding: 80px 0;
  background: #eaf4fb;
}

.features h2 {
  text-align: center;
  font-size: 48px;
  margin-bottom: 60px;
  color: #156fb1;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-panel {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(11, 47, 74, 0.08);
  text-align: center;
}

.feature-panel i {
  font-size: 48px;
  color: #1c78c6;
  margin-bottom: 20px;
}

.feature-panel h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #1f2937;
}

.feature-panel p {
  color: #4b5563;
  line-height: 1.6;
}

.actors {
  padding: 80px 0;
  background: #ffffff;
}

.actors h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 18px;
  color: #156fb1;
  font-weight: 700;
}

.actors__subtitle {
  text-align: center;
  color: #1f2937;
  font-size: 1.18rem;
  margin-bottom: 38px;
}

.actors__grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.actor-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 340px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(11, 47, 74, 0.1);
  overflow: hidden;
  background: #ffffff;
}

.actor-panel__icon {
  width: 100%;
  padding: 32px 0 18px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  color: #ffffff;
}

.actor-panel--center .actor-panel__icon {
  background: #156fb1;
}

.actor-panel--student .actor-panel__icon {
  background: #4e9a51;
}

.actor-panel--company .actor-panel__icon {
  background: #d14d36;
}

.actor-panel__header {
  width: 100%;
  background: inherit;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  padding: 0 0 18px 0;
  background: none;
  margin-top: -8px;
  background: inherit;
}

.actor-panel--center .actor-panel__header {
  background: #156fb1;
}

.actor-panel--student .actor-panel__header {
  background: #4e9a51;
}

.actor-panel--company .actor-panel__header {
  background: #d14d36;
}

.actor-panel__desc {
  background: #ffffff;
  color: #1f2937;
  font-size: 1.08rem;
  padding: 22px 18px 28px 18px;
  text-align: center;
  min-height: 70px;
}

.stats {
  padding: 60px 0;
  background: #ffffff;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-panel {
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  color: #156fb1;
}

.stat-label {
  font-size: 18px;
  color: #4b5563;
  margin-top: 10px;
}

.news-hero {
  background: linear-gradient(135deg, #156fb1 0%, #1a6ec0 50%, #156fb1 100%);
  padding: 40px 0;
  color: #ffffff;
}

.news-hero__title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.news-hero__subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.news-section {
  padding: 80px 0;
  background: #ffffff;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.news-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  order: var(--order, 0);
}

.news-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.news-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card__image--contain {
  overflow: visible;
  height: auto;
  aspect-ratio: 16/6;
  min-height: 200px;
}

.news-card__image--contain img {
  width: auto;
  height: 100%;
  max-width: 95%;
  -o-object-fit: contain;
     object-fit: contain;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}

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

.news-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card__meta {
  margin-bottom: 16px;
}

.news-card__date {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card__tags {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  background: #f3f4f6;
  color: #156fb1;
  border-radius: 12px;
  font-weight: 500;
}

.news-card__reviews-icons {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.review-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #156fb1;
  color: #ffffff;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 14px;
}

.review-icon-link:hover {
  background: #1a6ec0;
  transform: translateY(-2px);
}

.news-card__reviews-section {
  background: #eaf4fb;
  padding: 12px 0;
  margin: 12px -24px 16px -24px;
  padding-left: 24px;
  padding-right: 24px;
  border-top: 1px solid #cfe3f0;
  border-bottom: 1px solid #cfe3f0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-card__reviews-title {
  font-size: 12px;
  font-weight: 600;
  color: #156fb1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
  white-space: nowrap;
}

.news-card__reviews {
  display: flex;
  gap: 24px;
  justify-content: flex-start;
}

.review-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ffffff;
  color: #156fb1;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #cfe3f0;
}

.review-link:hover {
  background: #ffffff;
  color: #156fb1;
  border-color: #156fb1;
}

.news-card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #1f2937;
  line-height: 1.4;
}

.news-card__excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 12px;
  flex-grow: 1;
  text-align: justify;
}

.news-card__btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  padding: 20px;
  overflow-y: auto;
}

.modal.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.modal__content {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 201;
  animation: slideUp 0.3s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 202;
  width: 32px;
  height: 32px;
}
.modal__close:hover {
  color: #1f2937;
}

.modal__body {
  grid-column: 1/-1;
  display: contents;
}

/* Galería */
.modal__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery__main {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.gallery__nav-buttons {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  pointer-events: none;
}

.gallery__btn {
  background: rgba(21, 111, 177, 0.9);
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  width: 36px;
  height: 36px;
}
.gallery__btn:hover {
  background: #1c78c6;
}
.gallery__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.gallery__thumbnails {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
}

.gallery__thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.gallery__thumbnail:hover {
  border-color: #156fb1;
}
.gallery__thumbnail.is-active {
  border-color: #156fb1;
  box-shadow: 0 0 0 1px rgba(21, 111, 177, 0.3);
}
.gallery__thumbnail img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Texto del modal */
.modal__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.modal__meta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  font-size: 12px;
}

.modal__date {
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.modal__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.modal__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #1f2937;
  line-height: 1.4;
}

.modal__description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.modal__description p {
  margin: 12px 0;
}

.modal__description ul {
  margin: 16px 0;
  padding-left: 24px;
  list-style-type: none;
}

.modal__description li {
  margin: 8px 0;
  padding-left: 24px;
  position: relative;
}

.modal__description li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #156fb1;
  font-weight: 700;
}

.modal__description a {
  color: #156fb1;
  text-decoration: none;
  font-weight: 500;
  display: inline;
}

.modal__description a:hover {
  text-decoration: underline;
}

/* ========== PARTNERS & SPONSORS SECTIONS ========== */
.partners-section {
  padding: 30px 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.partners-section h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #1f2937;
}

.partners-section p {
  font-size: 16px;
  text-align: center;
  color: #6b7280;
  margin-bottom: 40px;
  line-height: 1.6;
}

.partners__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 150px;
  align-items: flex-start;
}

.partners__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.partners__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.partners__logo img {
  max-height: 80px;
  max-width: 200px;
  -o-object-fit: contain;
     object-fit: contain;
}

.partners__logo--large {
  height: 120px;
}

.partners__logo--large img {
  max-height: 120px;
  max-width: 300px;
}

.partners__grid--companies {
  gap: 150px;
}

.about-hero {
  background: linear-gradient(135deg, #156fb1 0%, #6c99c7 100%);
  padding: 40px 0;
  color: #ffffff;
}

.about-hero__title {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.about-hero__subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.about-content {
  padding: 60px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.about-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 30px;
  transition: box-shadow 0.3s ease;
}

.about-card:hover {
  box-shadow: 0 10px 30px rgba(11, 47, 74, 0.08);
}

.about-card h2 {
  font-size: 20px;
  color: #156fb1;
  margin-bottom: 16px;
}

.about-card p {
  color: #4b5563;
  line-height: 1.8;
  font-size: 16px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li {
  color: #4b5563;
  line-height: 1.8;
  font-size: 16px;
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
}

.about-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #156fb1;
  font-weight: bold;
}

/* Centers Section */
.centers {
  padding: 60px 0;
  background: #eaf4fb;
}

.centers__title {
  font-size: 36px;
  font-weight: 700;
  color: #156fb1;
  text-align: center;
  margin-bottom: 50px;
}

.centers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.center-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(11, 47, 74, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.center-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(11, 47, 74, 0.08);
}

.center-card__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  margin-bottom: 24px;
}

.center-card__logo img {
  max-height: 120px;
  max-width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.center-card__name {
  font-size: 24px;
  font-weight: 700;
  color: #156fb1;
  text-align: center;
  margin-bottom: 8px;
}

.center-card__consejeria {
  font-size: 14px;
  color: #4b5563;
  text-align: center;
  margin-bottom: 24px;
}

.center-card__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.center-card__field {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 16px;
}

.center-card__field strong {
  display: block;
  color: #156fb1;
  font-weight: 600;
  margin-bottom: 8px;
}

.center-card__field p {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.center-card__links {
  display: none;
}

.center-card__socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.center-card__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #156fb1;
  color: #ffffff;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.center-card__social:hover {
  background: #1a6ec0;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(21, 111, 177, 0.3);
}

/* Maps */
.center-card__map {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.leaflet-container {
  border-radius: 8px;
}

.leaflet-popup-content-wrapper {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(11, 47, 74, 0.08);
}

.leaflet-popup-tip {
  background-color: #ffffff;
}

.leaflet-marker-icon {
  filter: hue-rotate(-10deg) saturate(1.5);
}

/* Contact Form Section */
.contact-section {
  padding: 60px 0;
  background: #ffffff;
}

.contact-form__wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form__wrapper h2 {
  font-size: 32px;
  font-weight: 700;
  color: #156fb1;
  margin-bottom: 16px;
  text-align: center;
}

.contact-form__wrapper p {
  font-size: 16px;
  color: #4b5563;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #156fb1;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  font-family: inherit;
  font-size: 14px;
  color: #156fb1;
  background: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #156fb1;
  box-shadow: 0 0 0 3px rgba(21, 111, 177, 0.1);
}

.form-group input::-moz-placeholder, .form-group textarea::-moz-placeholder {
  color: rgba(15, 23, 42, 0.4);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(15, 23, 42, 0.4);
}

.contact-form .btn {
  align-self: center;
  margin-top: 16px;
}

/* ========== COLLABORATION PAGE ========== */
.collaboration-section {
  padding: 60px 0;
  background: #ffffff;
}

.collaboration-section--alt {
  background: #eaf4fb;
}

.collaboration-header {
  text-align: center;
  margin-bottom: 50px;
}

.collaboration-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #156fb1;
  margin-bottom: 12px;
}

.collaboration-header p {
  font-size: 18px;
  color: #4b5563;
}

/* Center Cards for Collaboration */
.center-card__role {
  margin: 16px 0;
}

.role-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.role-badge--coordinator {
  background: #dbeafe;
  color: #0c4a6e;
}

.role-badge--pilot {
  background: #dcfce7;
  color: #15803d;
}

.role-badge--web {
  background: #ddd6fe;
  color: #5b21b6;
}

.role-badge--app {
  background: #fce7f3;
  color: #be123c;
}

.role-badge--deployment {
  background: #fef08a;
  color: #854d0e;
}

.center-card__description {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
  margin: 16px 0 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 16px;
}

/* Teams Grid */
.teams__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.team-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(11, 47, 74, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(11, 47, 74, 0.08);
}

.team-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid #156fb1;
  padding-bottom: 12px;
}

.team-card__header i {
  font-size: 28px;
  color: #156fb1;
}

.team-card__header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #156fb1;
  margin: 0;
}

.team-card__members {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.team-card__location {
  font-size: 14px;
  font-weight: 600;
  color: #156fb1;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-card__description-text {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.members-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.members-list li {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.member-name {
  font-weight: 500;
  color: #156fb1;
  font-size: 14px;
  display: block;
}

.member-role {
  font-size: 13px;
  color: #4b5563;
  font-style: italic;
  display: none;
}

/* Company Cards */
.company-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(11, 47, 74, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.company-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(11, 47, 74, 0.08);
}

.company-card__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  margin-bottom: 20px;
  width: 100%;
}

.company-card__logo img {
  max-height: 100px;
  max-width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.company-card__name {
  font-size: 18px;
  font-weight: 700;
  color: #156fb1;
  margin-bottom: 12px;
}

.company-card__contribution {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.company-card__contribution i {
  color: #156fb1;
  font-size: 18px;
  flex-shrink: 0;
}

/* Collaboration Synthesis */
.collaboration-synthesis {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.collaboration-synthesis h2 {
  font-size: 36px;
  font-weight: 700;
  color: #156fb1;
  margin-bottom: 20px;
}

.collaboration-synthesis p {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 40px;
}

.synthesis-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.pillar {
  padding: 30px 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(11, 47, 74, 0.04);
}

.pillar i {
  font-size: 40px;
  color: #156fb1;
  margin-bottom: 16px;
  display: block;
}

.pillar h4 {
  font-size: 18px;
  font-weight: 700;
  color: #156fb1;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
}

/* ========== PROJECT PAGE ========== */
.project-section {
  padding: 60px 0;
  background: #ffffff;
}

.project-section--alt {
  background: #eaf4fb;
}

.project-header {
  text-align: center;
  margin-bottom: 40px;
}

.project-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #156fb1;
  margin-bottom: 12px;
}

.project-header p {
  font-size: 16px;
  color: #4b5563;
}

.project-intro {
  font-size: 18px;
  line-height: 1.8;
  color: #1f2937;
  margin-bottom: 40px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Problem Panels */
.problems__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.problem-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(11, 47, 74, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(11, 47, 74, 0.08);
}

.problem-panel i {
  font-size: 40px;
  color: #156fb1;
  margin-bottom: 16px;
  display: block;
}

.problem-panel h3 {
  font-size: 18px;
  font-weight: 700;
  color: #156fb1;
  margin-bottom: 12px;
}

.problem-panel p {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
}

.project-solution {
  background: #dbeafe;
  border-left: 4px solid #156fb1;
  padding: 24px;
  border-radius: 8px;
  font-size: 16px;
  color: #156fb1;
  line-height: 1.8;
  margin-top: 30px;
}

/* Objective Box */
.objective-box {
  background: #ffffff;
  border: 2px solid #156fb1;
  border-radius: 16px;
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.objective-box p {
  font-size: 16px;
  line-height: 1.8;
  color: #1f2937;
  margin-bottom: 20px;
}

.objective-box p:last-child {
  margin-bottom: 0;
}

.objective-box strong {
  color: #156fb1;
  font-weight: 700;
}

/* Specific Objectives Grid */
.objectives__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.objective-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(11, 47, 74, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.objective-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(11, 47, 74, 0.08);
}

.objective-card__icon {
  font-size: 48px;
  color: #156fb1;
  margin-bottom: 16px;
  display: block;
}

.objective-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #156fb1;
  margin-bottom: 12px;
}

.objective-card p {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
}

/* Features Grid */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(11, 47, 74, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(11, 47, 74, 0.08);
}

.feature-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #156fb1;
}

.feature-card__header i {
  font-size: 32px;
  color: #156fb1;
}

.feature-card__header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #156fb1;
  margin: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  font-size: 14px;
  color: #1f2937;
  line-height: 1.6;
  padding-left: 24px;
  position: relative;
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #156fb1;
  font-weight: 700;
  font-size: 16px;
}

/* AI Cases Grid */
.ai-cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.ai-case {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(11, 47, 74, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-case:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(11, 47, 74, 0.08);
}

.ai-case__icon {
  font-size: 40px;
  color: #156fb1;
  margin-bottom: 16px;
  display: block;
}

.ai-case h3 {
  font-size: 18px;
  font-weight: 700;
  color: #156fb1;
  margin-bottom: 12px;
}

.ai-case p {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
}

.ai-note {
  background: #dcfce7;
  border-left: 4px solid #15803d;
  padding: 20px;
  border-radius: 8px;
  font-size: 14px;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-note i {
  font-size: 20px;
  flex-shrink: 0;
}

/* Collaborative Message */
.collaborative-message {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.collaborative-message p {
  font-size: 16px;
  line-height: 1.8;
  color: #1f2937;
  margin-bottom: 20px;
}

.collaborative-message p:last-child {
  margin-bottom: 0;
}

.collaborative-message strong {
  color: #156fb1;
  font-weight: 700;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #eaf4fb;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 30px 0;
  margin-top: 60px;
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer__section {
  flex: 1;
  text-align: center;
}

.footer__section--left {
  text-align: left;
}

.footer__section--right {
  text-align: right;
}

.footer__institute {
  font-size: 16px;
  color: #1f2937;
  line-height: 1.6;
}

.footer__institute-name {
  font-weight: 600;
  color: #156fb1;
  display: block;
}

.footer__consejeria {
  font-size: 14px;
  color: #4b5563;
  display: block;
}

.footer__branding {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #156fb1;
}

.footer__year {
  font-size: 12px;
  color: #4b5563;
  margin-top: 8px;
}

@media (max-width: 1400px) {
  .nav {
    gap: 18px;
  }
  .brand__logo {
    width: 150px;
  }
  .brand__name {
    font-size: 28px;
  }
  .menu__link {
    font-size: 16px;
  }
}
@media (max-width: 1180px) {
  .menu-toggle {
    display: flex;
    order: 2;
  }
  .nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 12px 48px;
    gap: 16px;
    width: 100%;
    max-width: none;
  }
  .menu {
    flex-basis: 100%;
    order: 3;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    background: transparent;
    display: flex;
    margin-top: 0;
  }
  .menu.is-active {
    max-height: 500px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
  }
  .menu__link {
    font-size: 16px;
    display: block;
    text-align: center;
  }
  .nav__spacer {
    display: none;
  }
  .brand {
    min-width: auto;
    gap: 12px;
  }
  .brand__logo {
    width: 120px;
  }
  .brand__name {
    font-size: 28px;
  }
  .hero {
    padding: 56px 0 64px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero__content {
    text-align: center;
  }
  .hero__cta {
    justify-content: center;
  }
  .hero__visual {
    justify-content: center;
  }
  .hero__title {
    font-size: 42px;
  }
  .hero__lead {
    font-size: 20px;
  }
  .features {
    padding: 60px 0;
  }
  .features h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }
  .features__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 500px;
    margin: 0 auto;
  }
  .feature-panel {
    padding: 30px 20px;
  }
  .feature-panel i {
    font-size: 40px;
  }
  .feature-panel h3 {
    font-size: 20px;
  }
  .actors {
    padding: 60px 0;
  }
  .actors h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }
  .actors__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 400px;
    margin: 0 auto;
  }
  .actor-panel {
    padding: 0;
    overflow: hidden;
  }
  .actor-panel h3 {
    font-size: 20px;
    padding: 20px;
    margin: 0;
  }
  .actor-panel i {
    font-size: 40px;
    padding: 20px;
  }
  .stats__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stat-number {
    font-size: 40px;
  }
  .partners__grid {
    gap: 40px;
  }
  .partners__logo {
    height: 70px;
  }
  .partners__logo img {
    max-height: 70px;
  }
  .partners__logo--large {
    height: 100px;
  }
  .partners__logo--large img {
    max-height: 100px;
    max-width: 250px;
  }
  .news-hero {
    padding: 60px 0;
  }
  .news-hero__title {
    font-size: 36px;
  }
  .news-hero__subtitle {
    font-size: 16px;
  }
  .news__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 980px) {
  .brand__logo {
    width: 80px;
  }
  .brand__name {
    font-size: 28px;
  }
}
@media (max-width: 768px) {
  /* Collaboration - Switch to single column */
  .teams__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .synthesis-pillars {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .centers__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .team-card,
  .company-card {
    padding: 20px;
  }
  .company-card__logo {
    height: 80px;
    margin-bottom: 16px;
  }
}
@media (max-width: 520px) {
  .container {
    padding-inline: 14px;
  }
  .brand__logo {
    width: 50px;
  }
  .brand__name {
    font-size: 20px;
  }
  .menu__link {
    font-size: 16px;
  }
  .hero {
    padding: 40px 0;
  }
  .hero__title {
    font-size: 28px;
  }
  .hero__lead {
    font-size: 16px;
  }
  .hero__cta {
    flex-direction: column;
    gap: 12px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .features {
    padding: 40px 0;
  }
  .features h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .features__grid {
    gap: 20px;
  }
  .feature-panel {
    padding: 20px 15px;
  }
  .feature-panel i {
    font-size: 32px;
  }
  .actors {
    padding: 40px 0;
  }
  .actors h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .actors__grid {
    gap: 20px;
  }
  .actor-panel {
    padding: 20px 15px;
  }
  .actor-panel i {
    font-size: 32px;
  }
  .stats {
    padding: 40px 0;
  }
  .stat-panel {
    text-align: center;
  }
  .stat-number {
    font-size: 32px;
  }
  .stat-label {
    font-size: 14px;
  }
  .partners-section {
    padding: 30px 0;
  }
  .partners-section h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  .partners-section p {
    font-size: 14px;
    margin-bottom: 30px;
  }
  .partners__grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .partners__grid--companies {
    gap: 30px;
  }
  .partners__group {
    gap: 12px;
    align-items: center;
  }
  .partners__logo {
    height: 60px;
  }
  .partners__logo img {
    max-height: 60px;
  }
  .partners__logo--large {
    height: 80px;
  }
  .partners__logo--large img {
    max-height: 80px;
    max-width: 200px;
  }
  .news-hero {
    padding: 30px 0;
  }
  .news-hero__title {
    font-size: 28px;
    margin-bottom: 12px;
  }
  .news-hero__subtitle {
    font-size: 16px;
  }
  .news__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .news-card {
    max-width: 100%;
  }
  .gallery__thumbnail {
    width: 50px;
    height: 50px;
  }
  .modal__content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .modal__gallery,
  .modal__text {
    grid-column: 1;
  }
  .about-hero__title {
    font-size: 32px;
  }
  .about-hero__subtitle {
    font-size: 16px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .centers__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer__content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .footer__section,
  .footer__section--left,
  .footer__section--right {
    text-align: center;
  }
  .footer__branding {
    font-size: 20px;
  }
  .footer__institute {
    font-size: 14px;
  }
  .footer__consejeria {
    font-size: 12px;
  }
  .collaboration-section {
    padding: 40px 0;
  }
  .collaboration-header h2 {
    font-size: 28px;
  }
  .collaboration-header p {
    font-size: 16px;
  }
  /* Project page responsive */
  .project-section {
    padding: 40px 0;
  }
  .project-header h2 {
    font-size: 28px;
  }
  .project-intro {
    font-size: 16px;
  }
  .problems__grid,
  .objectives__grid,
  .features__grid,
  .ai-cases__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .objective-box {
    padding: 24px;
  }
  .objective-card,
  .problem-panel,
  .feature-card,
  .ai-case {
    padding: 20px;
  }
  .feature-card__header i {
    font-size: 28px;
  }
  .feature-card__header h3 {
    font-size: 18px;
  }
  .ai-case__icon,
  .problem-panel i {
    font-size: 32px;
  }
}