@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --wine: #930526;
  --wine-dark: #76031e;
  --blue: #123879;
  --text: #232326;
  --muted: #5d5d66;
  --light: #f7f7f8;
  --border: #e5e0e2;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(35, 35, 38, 0.11);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   HEADER
========================= */

.site-header {
  width: 100%;
  min-height: 92px;
  padding: 18px 60px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}

.logo-main span {
  color: var(--wine);
}

.logo-sub {
  margin-top: 5px;
  font-size: 13px;
  color: #333;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.main-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  padding: 10px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--wine);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 38px;
}

.header-btn {
  padding: 17px 32px;
  border: 1px solid var(--wine);
  color: var(--wine);
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  transition: 0.25s ease;
}

.header-btn:hover,
.header-btn.active-btn {
  background: var(--wine);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  display: block;
  margin: 6px auto;
  transition: 0.25s ease;
}

/* =========================
   ACCESO FACILITADORES
========================= */

.access-page {
  width: 100%;
  min-height: calc(100vh - 92px);
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.access-layout {
  width: 100%;
  max-width: 1680px;
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 54px 86px 54px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 92px;
  align-items: center;
  position: relative;
}

.access-info {
  position: relative;
  z-index: 2;
}

.access-info::after {
  content: "";
  position: absolute;
  right: -92px;
  top: 130px;
  width: 350px;
  height: 350px;
  background:
    radial-gradient(circle at 50% 22%, transparent 0 34px, rgba(147, 5, 38, 0.035) 35px 58px, transparent 59px),
    radial-gradient(circle at 23% 47%, transparent 0 30px, rgba(147, 5, 38, 0.035) 31px 52px, transparent 53px),
    radial-gradient(circle at 76% 58%, transparent 0 24px, rgba(147, 5, 38, 0.035) 25px 42px, transparent 43px);
  border-radius: 50%;
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--wine);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 54px;
  transition: 0.25s ease;
}

.back-link:hover {
  transform: translateX(-4px);
}

.access-info h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(58px, 5.2vw, 86px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -2.4px;
  margin-bottom: 26px;
}

.access-info h1 span {
  color: var(--wine);
}

.title-line {
  width: 66px;
  height: 2px;
  display: block;
  background: var(--wine);
  margin-bottom: 34px;
}

.access-intro {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.8;
  color: #34343a;
  margin-bottom: 68px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 830px;
  margin-bottom: 44px;
}

.resource-card {
  min-height: 245px;
  padding: 32px 28px;
  border: 1px solid #dedee4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  transition: 0.25s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(35, 35, 38, 0.08);
  border-color: rgba(147, 5, 38, 0.25);
}

.resource-icon {
  width: 48px;
  height: 48px;
  color: var(--wine);
  margin-bottom: 26px;
}

.resource-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-card h2 {
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 14px;
}

.resource-card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #3f3f47;
}

.access-note {
  max-width: 830px;
  min-height: 78px;
  padding: 20px 32px;
  border-radius: 9px;
  background: linear-gradient(90deg, #f7f7f8 0%, #ffffff 48%, #f8f8fa 100%);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  align-items: center;
}

.note-icon {
  width: 42px;
  height: 42px;
  color: var(--wine);
  border: 1.5px solid rgba(147, 5, 38, 0.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.note-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-note p {
  font-size: 14.5px;
  line-height: 1.55;
  color: #3f3f47;
}

.access-note a {
  color: var(--wine);
  font-weight: 600;
}

/* =========================
   LOGIN CARD
========================= */

.login-card {
  width: 100%;
  max-width: 520px;
  justify-self: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(232, 232, 236, 0.95);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 42px 34px 32px;
}

.login-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #f2f2f3;
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-card h2 {
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 12px;
}

.login-text {
  max-width: 330px;
  margin: 0 auto 30px;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4b4b53;
}

.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #202026;
  margin-bottom: 9px;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 17px;
  border: 1px solid #d9dbe2;
  border-radius: 7px;
  background: #ffffff;
  color: #24242a;
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  outline: none;
  transition: 0.25s ease;
}

.input-wrap input::placeholder {
  color: #8e919d;
}

.input-wrap input:focus {
  border-color: rgba(147, 5, 38, 0.72);
  box-shadow: 0 0 0 4px rgba(147, 5, 38, 0.08);
}

.input-icon,
.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8d9099;
  font-size: 17px;
}

.password-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
}

.forgot-wrap {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 20px;
}

.forgot-link {
  color: var(--wine);
  font-size: 14px;
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #af001e 0%, #930526 100%);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 16px 28px rgba(147, 5, 38, 0.17);
}

.login-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #bd0024 0%, #7f031f 100%);
}

.separator {
  position: relative;
  height: 32px;
  margin: 12px 0;
}

.separator::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #dedee4;
}

.separator span {
  width: 28px;
  height: 28px;
  background: #ffffff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.separator span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #9b9ea8;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.support-btn {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(147, 5, 38, 0.7);
  border-radius: 7px;
  color: var(--wine);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  transition: 0.25s ease;
}

.support-btn:hover {
  background: rgba(147, 5, 38, 0.06);
}

.support-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-response {
  display: none;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 8px;
  background: rgba(147, 5, 38, 0.08);
  color: var(--wine);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.form-response.show {
  display: block;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1400px) {
  .access-layout {
    padding-left: 64px;
    padding-right: 64px;
    gap: 60px;
  }

  .resource-grid {
    gap: 12px;
  }

  .resource-card {
    padding: 28px 22px;
  }
}

@media (max-width: 1200px) {
  .site-header {
    padding: 18px 28px;
    grid-template-columns: 190px 1fr auto;
  }

  .main-nav {
    gap: 24px;
  }

  .access-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 42px;
  }

  .access-info::after {
    right: 40px;
    top: 120px;
  }

  .login-card {
    max-width: 650px;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 78px;
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
  }

  .header-btn {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    width: 100%;
    padding: 22px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  .access-layout {
    padding: 34px 28px 48px;
  }

  .back-link {
    margin-bottom: 36px;
  }

  .access-info h1 {
    font-size: 56px;
    letter-spacing: -1.5px;
  }

  .access-intro {
    font-size: 17px;
    margin-bottom: 42px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: auto;
  }

  .access-note {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .login-card {
    padding: 36px 28px 30px;
  }
}

@media (max-width: 520px) {
  .logo-main {
    font-size: 27px;
  }

  .access-layout {
    padding-left: 20px;
    padding-right: 20px;
  }

  .access-info h1 {
    font-size: 43px;
  }

  .login-card {
    padding: 32px 20px 26px;
  }

  .login-card h2 {
    font-size: 19px;
  }

  .login-btn {
    font-size: 16px;
  }
}