:root {
  --bg-main: #0057aa;
  --bg-main-dark: #003a7d;
  --bg-gradient: radial-gradient(circle at 0 0, #2e398b 0, #1953a4 45%, #016fba 100%);
  --white: #ffffff;
  --text-main: #f5f7ff;
  --text-soft: #c4d3f8;
  --pill-blue: #00a4e8;
  --pill-blue-dark: #0081bd;
  --circle-border: #e0ebff;
  --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.35);
  --radius-card: 24px;
  --transition-fast: 0.18s ease-out;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-image: url("../images/bg-landing.avif");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center color: var(--text-main);
}

.page {
  min-height: 100vh;
  max-width: 100vw;
  margin: 0 auto;
  padding: 26px 8rem 40px;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo-universidad {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  justify-content: flex-end;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 20%, #ffffff 0, #dce7ff 60%, #b0c5ff 100%);
  color: #123a7f;
  font-weight: 800;
  font-size: 12px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-subtitle {
  font-size: 12px;
  color: var(--text-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #00c1ff;
  transition: width var(--transition-fast);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 10px;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--white);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--white);
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.main {
  flex: 1;
  display: flex;
  gap: 6rem;
  align-items: stretch;
}

.left-panel {
  flex: 0 0 46%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  margin-top: -4rem;
}

.title-card {
  border-radius: var(--radius-card);
  border: 2px solid rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 24px 32px;
  max-width: 100%;
  margin: auto;
  margin-bottom: 4rem;
  margin-top: 0;
}

.title-card h1 {
  font-size: 3rem;
  line-height: 1.22;
  text-align: center;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: #fff;
}

.title-card h2 {
  font-size: 3rem;
  line-height: 1.22;
  text-align: center;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: #fff;
}

.access-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 22px;
}

.access-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.access-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.access-icon {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px dashed var(--circle-border);
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.access-icon-empty {
  background: radial-gradient(circle at 40% 30%, #ffffff 0, #e1ecff 55%, #c2d2ff 100%);
}

.access-logo {
  display: inline-block;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #124089;
  padding: 0 6px;
}

.access-label {
  position: relative;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--pill-blue), var(--pill-blue-dark));
  color: var(--white);
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.access-label::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0.4),
      transparent 45%,
      transparent 100%);
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s ease-out, opacity 0.55s ease-out;
}

.access-item:hover .access-label::after {
  transform: translateX(0);
  opacity: 1;
}

.access-item:hover .access-icon {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.access-icon,
.access-label {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
  background-color: #fff;
}

.access-icon img {
  display: flex;
  align-content: center;
  justify-content: center;
  width: 90%;
}

.right-panel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin-right: -6rem;
  margin-left: 4rem;
}

.panel-layer {
  position: absolute;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg,
      rgba(0, 155, 255, 0.4),
      rgba(0, 52, 122, 0.9));
  pointer-events: none;
}

.panel-layer-back {
  inset: 4% 5% 8% 16%;
  opacity: 0.35;
}

.panel-layer-front {
  inset: 9% 3% 3% 26%;
  opacity: 0.5;
}

.image-frame {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 100%;
  border-radius: 40px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.image-main {
  display: block;
  width: 80%;
  height: 80%;
  object-fit: cover;
  margin-left: 1rem;
  border-radius: 1.5rem 1.5rem 6rem 1.5rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.8);
}

.image-main-logo {
  display: block;
  width: 80%;
  height: 80%;
  max-height: 96px;
  object-fit: cover;
}

.footer {
  margin-top: 20px;
  font-size: 11px;
  color: rgba(216, 229, 255, 0.9);
  text-align: right;
}

@media (max-width: 1100px) {
  .page {
    padding: 22px 20px 32px;
  }

  .header {
    flex-wrap: wrap;
  }

  .main {
    flex-direction: column;
  }

  .left-panel {
    max-width: 100%;
  }

  .right-panel {
    min-height: 320px;
    display: none;
  }

  body {
    background-size: auto;
  }

  .panel-layer {
    display: none;
  }

  .image-frame {
    max-width: 100%;
    border-radius: 32px;
  }
}

@media (max-width: 900px) {
  .header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    right: 0;
    top: 72px;
    padding: 12px 20px 14px;
    background: linear-gradient(145deg,
        rgba(0, 55, 130, 0.96),
        rgba(0, 30, 80, 0.98));
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
    display: none;
    flex-wrap: wrap;
    gap: 10px 18px;
    z-index: 10;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav a {
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 18px 14px 28px;
  }

  .header {
    gap: 14px;
  }

  .logo-universidad {
    padding: 6px 10px;
    display: flex;
    justify-content: center;
  }

  .access-column {
    padding: 0 1rem;
  }

  .logo-mark {
    width: 52px;
    height: 52px;
    font-size: 11px;
  }

  .logo-title {
    font-size: 13px;
  }

  .logo-subtitle {
    font-size: 11px;
  }

  .header-badges {
    display: none;
  }

  .title-card {
    padding: 18px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
  }

  .title-card h1 {
    font-size: 22px;
  }

  .title-card h2 {
    font-size: 18px;
  }

  .access-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .access-item {
    padding: 4px 2px;
  }

  .access-icon {
    width: 70px;
    height: 70px;
  }

  .access-label {
    font-size: 12px;
    padding: 9px 18px;
    white-space: nowrap;
    max-width: calc(100% - 80px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .image-frame {
    margin-top: 8px;
    border-radius: 26px;
  }

  .footer {
    text-align: center;
    margin-top: 18px;
  }
}

@media (max-width: 480px) {
  .access-layout {
    gap: 14px;
  }

  .access-item {
    gap: 12px;
  }

  .access-icon {
    width: 64px;
    height: 64px;
  }

  .access-label {
    font-size: 11px;
    padding: 8px 14px;
  }
}
