:root {
  --purple: #2c2490;
  --purple-2: #3f32ad;
  --purple-soft: #403d96;
  --white: #ffffff;
  --text-dark: #181429;
  --text-soft: #74747c;
  --field: #f0eef7;
  --line: rgba(38, 36, 48, 0.42);
  --gold: #ffb22b;
  --green: #24c45a;
  --max: 1040px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  overflow-x: hidden;
}

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

img,
svg {
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* ============================= */
/* HEADER */
/* ============================= */

.site-header {
  width: 100%;
  min-height: 74px;
  padding: 0 12%;
  display: grid;
  grid-template-columns: 230px 1fr 150px;
  align-items: center;
  gap: 28px;
  background: linear-gradient(90deg, #2b257f 0%, #4334b3 48%, #2a257e 100%);
  color: var(--white);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-self: start;
  color: var(--white);
}

.brand-name {
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.brand-subtitle {
  margin-top: 5px;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  transition: color 0.22s ease, transform 0.22s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  transform: translateY(-1px);
  font-weight: 800;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-button {
  justify-self: end;
  min-width: 126px;
  height: 28px;
  padding: 0 18px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  color: #29215f;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

/* ============================= */
/* CONTACTO */
/* ============================= */

.contact-section {
  min-height: calc(100vh - 74px);
  background: #ffffff;
  padding: 122px 0 70px;
}

.contact-container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: 72px;
  align-items: start;
}

.contact-left {
  position: relative;
}

.contact-title-row {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: flex-start;
}

.contact-title-row h1 {
  position: relative;
  z-index: 2;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--purple-soft);
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.contact-mascot {
  position: absolute;
  z-index: 1;
  right: -92px;
  top: -20px;
  width: 178px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.contact-form {
  margin-top: 16px;
  position: relative;
  z-index: 3;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.field {
  position: relative;
  display: block;
}

.field span {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 2;
  color: rgba(95, 94, 107, 0.72);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 400;
  pointer-events: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: var(--field);
  color: #292633;
  font-size: 0.82rem;
  font-weight: 500;
  transition: box-shadow 0.22s ease, background 0.22s ease;
}

.field input,
.field select {
  height: 52px;
  border-radius: 8px;
  padding: 18px 20px 8px;
}

.field select {
  appearance: none;
  cursor: pointer;
}

.field textarea {
  min-height: 128px;
  resize: none;
  border-radius: 8px;
  padding: 30px 20px 16px;
}

.textarea-field span {
  top: 22px;
  transform: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #f5f3fb;
  box-shadow: 0 0 0 2px rgba(64, 61, 150, 0.16);
}

.field-full {
  grid-column: 1 / -1;
}

.submit-button {
  margin-top: 32px;
  width: 150px;
  height: 38px;
  border: 0;
  border-radius: 5px;
  background: var(--purple-soft);
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(64, 61, 150, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.submit-button:hover {
  background: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(64, 61, 150, 0.24);
}

/* ============================= */
/* CANALES */
/* ============================= */

.contact-right {
  padding-top: 28px;
}

.contact-intro {
  max-width: 330px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 500;
}

.contact-links {
  margin-top: 64px;
  display: grid;
  gap: 30px;
}

.contact-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.contact-icon svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.whatsapp-icon {
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.72),
    0 12px 24px rgba(37, 211, 102, 0.22);
}

.instagram-icon {
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 105%, #fdf497 0%, #fdf497 16%, transparent 36%),
    radial-gradient(circle at 70% 10%, #8a3ab9 0%, #8a3ab9 16%, transparent 35%),
    linear-gradient(135deg, #f58529 0%, #dd2a7b 38%, #8134af 68%, #515bd4 100%);
  box-shadow: 0 12px 24px rgba(221, 42, 123, 0.2);
}

.facebook-icon {
  border-radius: 999px;
  background: #1877f2;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(24, 119, 242, 0.2);
}

.facebook-icon svg {
  width: 34px;
  height: 34px;
  transform: translateY(3px);
}

.contact-link-text {
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
  color: #77767d;
  font-size: 1.08rem;
  line-height: 1.1;
  font-weight: 400;
}

.contact-link-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: rgba(55, 55, 64, 0.42);
}

.contact-link:hover .contact-link-text {
  color: var(--purple-soft);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1180px) {
  .site-header {
    padding: 0 6%;
    grid-template-columns: 230px 1fr 145px;
  }

  .main-nav {
    gap: 26px;
  }

  .contact-container {
    gap: 54px;
  }

  .contact-mascot {
    right: -54px;
    width: 162px;
  }
}

@media (max-width: 980px) {
  .site-header {
    min-height: 116px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand button"
      "nav nav";
    gap: 12px;
    padding: 20px 5% 16px;
  }

  .brand {
    grid-area: brand;
  }

  .header-button {
    grid-area: button;
  }

  .main-nav {
    grid-area: nav;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
    font-size: 0.78rem;
  }

  .contact-section {
    min-height: auto;
    padding: 70px 0 70px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .contact-title-row {
    justify-content: center;
    text-align: center;
  }

  .contact-mascot {
    right: 4%;
    top: -34px;
    width: 142px;
    opacity: 0.95;
  }

  .contact-right {
    padding-top: 0;
  }

  .contact-intro {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
  }

  .contact-links {
    width: min(460px, 100%);
    margin: 42px auto 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "button"
      "nav";
    text-align: center;
  }

  .brand,
  .header-button {
    justify-self: center;
  }

  .header-button {
    width: 100%;
    max-width: 220px;
    height: 34px;
    border-radius: 8px;
  }

  .contact-container {
    width: min(100% - 32px, var(--max));
  }

  .contact-title-row h1 {
    font-size: 2.8rem;
  }

  .contact-mascot {
    position: relative;
    right: auto;
    top: auto;
    width: 118px;
    margin-left: 12px;
  }

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

  .submit-button {
    width: 100%;
    height: 44px;
  }

  .contact-link {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
  }

  .contact-link-text {
    font-size: 0.98rem;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 1.42rem;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .contact-section {
    padding: 52px 0 58px;
  }

  .contact-title-row {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .contact-title-row h1 {
    font-size: 2.35rem;
    line-height: 1.02;
  }

  .contact-mascot {
    margin-left: 0;
  }

  .field input,
  .field select {
    height: 50px;
  }

  .field textarea {
    min-height: 122px;
  }

  .contact-links {
    gap: 24px;
  }

  .contact-link {
    align-items: start;
  }

  .contact-link-text {
    min-height: 44px;
    font-size: 0.92rem;
  }
}
/* ========================================================= */
/* CONTACTO MOBILE HEADER - HEDMONT LÓPEZ */
/* Pegar al final de contactanos.css */
/* Solo modifica header y menú móvil */
/* ========================================================= */

@media (max-width: 720px) {
  body.menu-open {
    overflow: hidden !important;
  }

  .site-header {
    position: relative !important;
    z-index: 120 !important;
    width: 100% !important;
    min-height: 50px !important;
    height: 50px !important;
    padding: 6px 28px 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    background: linear-gradient(90deg, #2b257f 0%, #4435b5 52%, #2a257e 100%) !important;
    color: #ffffff !important;
    overflow: visible !important;
  }

  .brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    color: #ffffff !important;
    text-decoration: none !important;
  }

  .brand-name {
    color: #ffffff !important;
    font-size: 1.03rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0.015em !important;
  }

  .brand-subtitle {
    margin-top: 3px !important;
    color: #ffffff !important;
    font-size: 0.43rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
  }

  .main-nav,
  .header-button {
    display: none !important;
  }

  .mobile-menu-toggle {
    position: absolute !important;
    right: 29px !important;
    top: 12px !important;
    z-index: 140 !important;
    width: 27px !important;
    height: 27px !important;
    border: 0 !important;
    padding: 0 !important;
    display: grid !important;
    gap: 7px !important;
    background: transparent !important;
    cursor: pointer !important;
  }

  .mobile-menu-toggle span {
    display: block !important;
    width: 27px !important;
    height: 1px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    transition: transform 0.25s ease, opacity 0.25s ease !important;
  }

  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }

  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0 !important;
  }

  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }

  .mobile-menu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 130 !important;
    display: grid !important;
    place-items: start center !important;
    padding: 68px 22px 22px !important;
    background: rgba(21, 17, 72, 0.42) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  .mobile-menu.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .mobile-menu-panel {
    width: min(100%, 360px) !important;
    border-radius: 22px !important;
    padding: 26px 24px 24px !important;
    background: linear-gradient(180deg, #33299b 0%, #2c2490 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 24px 60px rgba(11, 10, 35, 0.35) !important;
  }

  .mobile-menu-brand {
    display: grid !important;
    gap: 5px !important;
    text-align: center !important;
    margin-bottom: 24px !important;
  }

  .mobile-menu-brand strong {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
  }

  .mobile-menu-brand span {
    color: #ffffff !important;
    font-size: 0.55rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
  }

  .mobile-menu-nav {
    display: grid !important;
    gap: 14px !important;
    text-align: center !important;
  }

  .mobile-menu-nav a {
    min-height: 40px !important;
    border-radius: 999px !important;
    display: grid !important;
    place-items: center !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    background: rgba(255, 255, 255, 0.07) !important;
    text-decoration: none !important;
  }

  .mobile-menu-nav a.active {
    color: #2c2490 !important;
    background: #ffb22b !important;
  }

  .mobile-menu-cta {
    height: 42px !important;
    margin-top: 18px !important;
    border-radius: 999px !important;
    display: grid !important;
    place-items: center !important;
    background: #ffffff !important;
    color: #2c2490 !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    text-decoration: none !important;
  }
}