:root {
  --aietic-dark: #1f2b35;
  --aietic-dark-2: #2b3840;
  --aietic-blue: #5daec2;
  --aietic-cyan: #67c8d6;
  --aietic-lime: #c1c94a;
  --aietic-orange: #f0b24b;
  --aietic-red: #e95f66;
  --aietic-light: #f4f7fb;
  --aietic-text: #34495e;
  --aietic-muted: #6c7a89;
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --shadow-soft: 0 12px 30px rgba(23, 38, 56, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  color: var(--aietic-text);
  background-color: #fff;
}

.section-space {
  padding: 4rem 0;
}

.section-title {
  color: var(--aietic-dark);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--aietic-muted);
  max-width: 760px;
}

.site-header {
  background: linear-gradient(110deg, #16212a 0%, var(--aietic-dark) 35%, var(--aietic-dark-2) 100%);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand img {
  width: auto;
  max-height: 56px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.45)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.28));
}

.site-header .navbar-brand {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 0.75rem;
  background: transparent;
  backdrop-filter: none;
}

.site-header .navbar-brand::before {
  content: none;
}

.site-header .navbar-brand::after {
  content: none;
}

.site-header .navbar-brand img {
  filter: none;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.87);
  font-weight: 500;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
}

.hero,
.page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: none;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(18, 31, 42, 0.9), rgba(28, 52, 66, 0.8));
  z-index: 1;
}

.hero .container,
.page-hero .container,
.hero .carousel-caption {
  position: relative;
  z-index: 2;
}

.hero .carousel-item {
  position: relative;
  min-height: 74vh;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
}

.hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 28, 0.38);
  z-index: 1;
}

.hero .carousel-caption {
  position: relative;
  z-index: 2;
  text-align: left;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem 2.25rem;
}

.hero h1 {
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.hero p {
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.hero .carousel-indicators {
  bottom: 1.2rem;
  z-index: 3;
}

.hero .carousel-indicators [data-bs-target] {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.45);
}

.hero .carousel-indicators .active {
  background-color: #fff;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 4.5rem;
  opacity: 1;
  z-index: 3;
}

.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background-color: rgba(10, 20, 32, 0.55);
  background-size: 1.15rem;
}

.hero .kicker,
.page-hero .kicker {
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--aietic-cyan);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
}

.hero p,
.page-hero p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
}

.page-hero {
  background: linear-gradient(115deg, #172533 0%, #20384a 40%, #305067 100%);
  padding: 5rem 0 4.25rem;
}

.btn-aietic {
  background: linear-gradient(90deg, var(--aietic-orange), var(--aietic-red));
  color: #fff;
  border: 0;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
}

.btn-aietic:hover {
  color: #fff;
  filter: brightness(1.03);
}

.metric-card,
.service-card,
.info-card,
.partner-card,
.contact-card,
.mission-card {
  border: 1px solid #e8edf3;
  border-radius: var(--radius-lg);
  background-color: #fff;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.metric-card,
.service-card,
.info-card,
.mission-card,
.contact-card {
  padding: 1.35rem;
}

.metric-card h3,
.service-card h3,
.info-card h3,
.mission-card h3,
.contact-card h3 {
  color: var(--aietic-dark);
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.icon-badge {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 0.9rem;
}

.service-card p,
.metric-card p,
.info-card p,
.mission-card p,
.contact-card p,
.partner-card p {
  color: var(--aietic-muted);
  margin-bottom: 0;
}

.bg-soft {
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fa 100%);
}

.services-showcase {
  position: relative;
  background: linear-gradient(180deg, #f9fbfe 0%, #f2f7fd 100%);
}

.services-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 9% 9%, rgba(93, 174, 194, 0.14), transparent 40%), radial-gradient(circle at 92% 78%, rgba(240, 178, 75, 0.12), transparent 36%);
  z-index: 1;
  pointer-events: none;
}

.services-showcase .container {
  z-index: 2;
}

.service-photo-card {
  position: relative;
  min-height: 380px;
  border-radius: 1rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 28px rgba(18, 33, 48, 0.2);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.service-photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 17, 28, 0.8) 0%, rgba(8, 17, 28, 0.34) 45%, rgba(8, 17, 28, 0.1) 100%);
  z-index: 1;
}

.service-photo-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 34px rgba(18, 33, 48, 0.24);
}

.service-photo-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1rem 1rem 1.1rem;
  color: #fff;
}

.service-photo-overlay p {
  margin-bottom: 0.15rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.service-photo-overlay h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.fortaleza-section {
  position: relative;
  background: linear-gradient(180deg, #f5f9ff 0%, #eef4fb 100%);
  overflow: hidden;
}

.fortaleza-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 8% 12%, rgba(93, 174, 194, 0.16), transparent 32%), radial-gradient(circle at 92% 84%, rgba(233, 95, 102, 0.14), transparent 28%);
  pointer-events: none;
}

.fortaleza-section .container {
  position: relative;
  z-index: 2;
}

.fortaleza-section .kicker {
  color: #4e8ea2;
  margin-bottom: 0.3rem;
}

.fortaleza-card {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  padding: 1.35rem 1.35rem 1.25rem;
  border: 1px solid #dce7f2;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 30px rgba(28, 51, 72, 0.12);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.fortaleza-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.fortaleza-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px rgba(28, 51, 72, 0.17);
}

.fortaleza-card-empresa::before {
  background: linear-gradient(90deg, #5daec2, #67c8d6);
}

.fortaleza-card-talento::before {
  background: linear-gradient(90deg, #f0b24b, #e95f66);
}

.fortaleza-card-universidad::before {
  background: linear-gradient(90deg, #93b241, #67c8d6);
}

.fortaleza-index {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 2.3rem;
  font-weight: 800;
  color: rgba(24, 47, 68, 0.1);
  letter-spacing: 0.03em;
  line-height: 1;
}

.fortaleza-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.fortaleza-card h3 {
  color: var(--aietic-dark);
  font-size: 1.22rem;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.fortaleza-card p {
  color: var(--aietic-muted);
  margin-bottom: 0;
}

.quote-band {
  background: linear-gradient(95deg, var(--aietic-dark), #13202b);
  color: #fff;
  padding: 2rem 1rem;
  border-radius: var(--radius-lg);
}

.quote-band p {
  margin: 0;
  text-align: center;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.mission-card img,
.info-card img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 0.9rem;
}

.mission-intro {
  margin-bottom: 1.35rem;
  border-left: 4px solid var(--aietic-blue);
  background: #f9fcff;
  border-radius: 0 0.95rem 0.95rem 0;
  padding: 1.3rem 1.4rem;
}

.mission-tile {
  border: 1px solid #e8edf3;
  border-radius: var(--radius-lg);
  background-color: #fff;
  box-shadow: var(--shadow-soft);
  padding: 1.35rem;
  height: 100%;
}

.mission-tile .tile-kicker {
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--aietic-blue);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mission-tile h3 {
  color: var(--aietic-dark);
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.mission-tile p {
  margin-bottom: 0;
  color: var(--aietic-muted);
}

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

.director-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #eef2f6;
}

.director-list li:last-child {
  border-bottom: 0;
}

.director-role {
  display: block;
  font-weight: 700;
  color: var(--aietic-dark);
}

.partner-card {
  padding: 1rem 1rem 1.15rem;
}

.partner-logo {
  height: 76px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #eef2f6;
  padding-bottom: 0.75rem;
}

.partner-name {
  color: var(--aietic-dark);
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.partner-meta {
  font-size: 0.93rem;
  line-height: 1.45;
}

.partner-meta a,
.contact-card a,
.footer-links a {
  color: var(--aietic-blue);
  text-decoration: none;
}

.partner-meta a:hover,
.contact-card a:hover,
.footer-links a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 4rem;
  background: #12202a;
  color: rgba(255, 255, 255, 0.88);
  padding-top: 2.8rem;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 0.85rem;
}

.brand-soft-wrap {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: 0.75rem;
  background: transparent;
}

.brand-soft-wrap::before {
  content: "";
  position: absolute;
  inset: -18px -24px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.12) 42%, rgba(255, 255, 255, 0) 78%);
  filter: blur(14px);
  opacity: 0.5;
  z-index: -2;
  pointer-events: none;
}

.brand-soft-wrap::after {
  content: none;
}

.footer-brand {
  max-width: 190px;
  width: 100%;
  display: block;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.45)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.28));
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.08);
  margin-right: 0.4rem;
}

.social-links img {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  margin-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.85rem 0;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, var(--aietic-cyan), var(--aietic-blue));
  box-shadow: var(--shadow-soft);
  display: none;
  z-index: 30;
}

.form-control,
.form-select {
  border-radius: 0.65rem;
  border-color: #dbe4ee;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--aietic-blue);
  box-shadow: 0 0 0 0.2rem rgba(93, 174, 194, 0.2);
}

.form-status {
  margin-top: 0.85rem;
}

@media (max-width: 991.98px) {
  .hero .carousel-item {
    min-height: 62vh;
  }

  .hero .carousel-caption {
    padding: 0 1rem 2.1rem;
  }

  .service-photo-card {
    min-height: 300px;
  }
}

@media (max-width: 575.98px) {
  .section-space {
    padding: 3.25rem 0;
  }

  .navbar-brand img {
    max-height: 50px;
  }
}
