/* =========================================================
   C-SUITE Academy — Página de contacto
   Cargar después de css/style.css
   ========================================================= */

.contact-page {
  color: var(--text, #0f2340);
  background: #ffffff;
  font-family: var(--sans, "Montserrat", Arial, sans-serif);
}

.contact-page *,
.contact-page *::before,
.contact-page *::after {
  box-sizing: border-box;
}

.contact-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #a8741f;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.35;
  text-transform: uppercase;
}


/* =========================================================
   PORTADA
   ========================================================= */

.contact-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #f4f7fa;
}

.contact-hero::before {
  position: absolute;
  top: -280px;
  left: -230px;
  z-index: -1;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(242, 205, 122, .12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.contact-hero-media {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -2;
  width: 53%;
  overflow: hidden;
  background: #071f3f;
}

.contact-hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 17, 35, .92), rgba(7, 31, 63, .7)),
    linear-gradient(180deg, transparent 55%, rgba(4, 17, 35, .32));
  content: "";
  pointer-events: none;
}

.contact-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.contact-hero-grid {
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, .9fr) minmax(470px, 1.1fr);
  gap: clamp(60px, 8vw, 110px);
  align-items: center;
  padding-top: clamp(85px, 9vw, 120px);
  padding-bottom: clamp(70px, 8vw, 105px);
}

.contact-copy {
  max-width: 660px;
  color: #ffffff;
}

.contact-copy .contact-eyebrow {
  color: var(--gold-2, #f2cd7a);
}

.contact-copy h1 {
  margin: 0 0 23px;
  color: #ffffff;
  font-family: var(--serif, "DM Serif Display", Georgia, serif);
  font-size: clamp(3.1rem, 5.3vw, 5rem);
  font-weight: 400;
  letter-spacing: -.028em;
  line-height: 1.02;
  text-wrap: balance;
}

.contact-copy > p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.75;
}

.contact-reasons {
  display: grid;
  gap: 13px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.contact-reasons li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, .84);
  font-size: .84rem;
  line-height: 1.5;
}

.contact-reasons svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--gold-2, #f2cd7a);
  stroke-width: 1.9;
}

.contact-direct {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 34px;
  padding-top: 23px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.contact-direct > span {
  color: rgba(255, 255, 255, .62);
  font-size: .74rem;
}

.contact-direct a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-2, #f2cd7a);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-direct a:hover {
  color: #ffffff;
}

.contact-direct svg {
  width: 17px;
  height: 17px;
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.contact-form {
  position: relative;
  padding: clamp(30px, 4vw, 45px);
  background: #ffffff;
  border: 1px solid rgba(7, 31, 63, .1);
  border-top: 5px solid var(--gold, #bc954c);
  border-radius: 18px;
  box-shadow: 0 25px 65px rgba(7, 31, 63, .16);
}

.contact-form-heading {
  margin-bottom: 27px;
}

.contact-form-heading > span {
  display: block;
  margin-bottom: 7px;
  color: #9b6b1c;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.contact-form-heading h2 {
  margin: 0 0 8px;
  color: var(--navy, #071f3f);
  font-family: var(--serif, "DM Serif Display", Georgia, serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.08;
}

.contact-form-heading p {
  margin: 0;
  color: var(--muted, #65738a);
  font-size: .82rem;
  line-height: 1.6;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.contact-form .form-field {
  min-width: 0;
}

.contact-form .form-field-full {
  grid-column: 1 / -1;
}

.contact-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy, #071f3f);
  font-size: .71rem;
  font-weight: 700;
}

.contact-form .field {
  display: block;
  width: 100%;
  min-height: 47px;
  padding: 12px 13px;
  color: var(--text, #0f2340);
  background: #fbfcfd;
  border: 1px solid #d9e0e9;
  border-radius: 8px;
  font: inherit;
  font-size: .79rem;
  line-height: 1.4;
  outline: none;
  transition: background-color .2s ease, border-color .2s ease,
    box-shadow .2s ease;
}

.contact-form textarea.field {
  min-height: 120px;
  resize: vertical;
}

.contact-form .field::placeholder {
  color: #939dac;
}

.contact-form .field:focus {
  background: #ffffff;
  border-color: var(--gold, #bc954c);
  box-shadow: 0 0 0 3px rgba(188, 149, 76, .15);
}

.contact-form .field[aria-invalid="true"] {
  border-color: #bd3d3d;
}

.contact-form .error-message {
  display: block;
  min-height: 14px;
  margin-top: 4px;
  color: #a72d2d;
  font-size: .63rem;
  line-height: 1.35;
}

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contact-submit .btn {
  min-width: 180px;
  min-height: 49px;
}

.contact-submit p {
  max-width: 255px;
  margin: 0;
  color: #7b8798;
  font-size: .65rem;
  line-height: 1.5;
  text-align: right;
}

.contact-submit p a {
  color: #8e6219;
  font-weight: 650;
}

.contact-secure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 21px;
  padding-top: 17px;
  color: #758197;
  border-top: 1px solid var(--line, #dfe5ee);
  font-size: .66rem;
  line-height: 1.45;
}

.contact-secure svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #9b6b1c;
}

.contact-form .honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}


/* =========================================================
   CANALES DE CONTACTO
   ========================================================= */

.contact-section {
  padding: clamp(78px, 8vw, 110px) 0;
}

.contact-section-header {
  max-width: 760px;
  margin-bottom: 39px;
}

.contact-section-header h2,
.contact-next h2 {
  margin: 0 0 13px;
  color: var(--navy, #071f3f);
  font-family: var(--serif, "DM Serif Display", Georgia, serif);
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -.024em;
  line-height: 1.07;
  text-wrap: balance;
}

.contact-section-header p {
  margin: 0;
  color: var(--muted, #65738a);
  line-height: 1.7;
}

.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.contact-channel-card {
  position: relative;
  min-width: 0;
  min-height: 220px;
  padding: 25px;
  color: var(--text, #0f2340);
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid var(--line, #dfe5ee);
  border-top: 3px solid var(--gold, #bc954c);
  border-radius: 13px;
  text-decoration: none;
  box-shadow: 0 10px 27px rgba(7, 31, 63, .05);
  transition: transform .2s ease, border-color .2s ease,
    box-shadow .2s ease;
}

a.contact-channel-card:hover {
  color: var(--text, #0f2340);
  transform: translateY(-4px);
  border-color: rgba(188, 149, 76, .55);
  box-shadow: 0 16px 32px rgba(7, 31, 63, .1);
}

.contact-channel-featured {
  background:
    linear-gradient(145deg, rgba(242, 205, 122, .12), transparent 48%),
    #ffffff;
}

.contact-channel-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  place-items: center;
  color: #9b6b1c;
  background: #f7f0e3;
  border-radius: 50%;
}

.contact-channel-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.contact-channel-card > span,
.contact-channel-card > strong,
.contact-channel-card > small {
  display: block;
}

.contact-channel-card > span {
  margin-bottom: 7px;
  color: #7a8698;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-channel-card > strong {
  overflow-wrap: anywhere;
  color: var(--navy, #071f3f);
  font-size: .88rem;
  line-height: 1.4;
}

.contact-channel-card > small {
  margin-top: 7px;
  color: var(--muted, #65738a);
  font-size: .68rem;
  line-height: 1.5;
}


/* =========================================================
   SIGUIENTE PASO
   ========================================================= */

.contact-next {
  padding: 0 0 clamp(82px, 9vw, 120px);
}

.contact-next-panel {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 8vw, 100px);
  padding: clamp(36px, 6vw, 64px);
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 5%, rgba(242, 205, 122, .2), transparent 28%),
    linear-gradient(135deg, #071f3f, #0b3157);
  border: 1px solid rgba(188, 149, 76, .3);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(7, 31, 63, .14);
}

.contact-next .contact-eyebrow {
  color: var(--gold-2, #f2cd7a);
}

.contact-next h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3.7vw, 3rem);
}

.contact-next-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-next-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 25px;
}

.contact-next-steps li:last-child {
  padding-bottom: 0;
}

.contact-next-steps li:not(:last-child)::after {
  position: absolute;
  top: 38px;
  bottom: 7px;
  left: 23px;
  width: 1px;
  background: rgba(242, 205, 122, .28);
  content: "";
}

.contact-next-steps li > span {
  display: grid;
  z-index: 1;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--navy, #071f3f);
  background: linear-gradient(135deg, #f1d17e, var(--gold, #bc954c));
  border-radius: 50%;
  font-size: .66rem;
  font-weight: 800;
}

.contact-next-steps h3 {
  margin: 3px 0 6px;
  color: #ffffff;
  font-family: var(--serif, "DM Serif Display", Georgia, serif);
  font-size: 1.22rem;
  font-weight: 400;
}

.contact-next-steps p {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
  line-height: 1.6;
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

.contact-page a:focus-visible,
.contact-page button:focus-visible,
.contact-page input:focus-visible,
.contact-page select:focus-visible,
.contact-page textarea:focus-visible {
  outline: 3px solid rgba(242, 205, 122, .88);
  outline-offset: 3px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .contact-hero-media {
    width: 100%;
    height: 53%;
  }

  .contact-hero-media::after {
    background: linear-gradient(
      180deg,
      rgba(4, 17, 35, .58) 0%,
      rgba(7, 31, 63, .86) 72%,
      #071f3f 100%
    );
  }

  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-copy {
    max-width: 760px;
  }

  .contact-form {
    max-width: 820px;
  }

  .contact-channels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .contact-hero-grid {
    padding-top: 86px;
  }

  .contact-copy h1 {
    font-size: clamp(2.75rem, 11vw, 4rem);
  }

  .contact-next-panel {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 580px) {
  .contact-hero-grid {
    width: min(100% - 26px, 1180px);
    padding-top: 72px;
  }

  .contact-form {
    padding: 26px 21px;
    border-radius: 15px;
  }

  .contact-form-grid,
  .contact-channels-grid {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-submit .btn {
    width: 100%;
  }

  .contact-submit p {
    max-width: none;
    text-align: left;
  }

  .contact-channel-card {
    min-height: auto;
  }

  .contact-next-panel {
    border-radius: 0;
  }
}


.contact-support {
  position: relative;
  padding: clamp(70px, 8vw, 110px) 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(179, 132, 42, 0.08),
      transparent 28%
    ),
    #ffffff;
}

.contact-support .contact-section-header {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.contact-support .contact-section-header h2 {
  margin: 8px 0 14px;
  color: #071f3f;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
}

.contact-support .contact-section-header p {
  margin: 0 auto;
  color: #68758a;
  line-height: 1.7;
}

/* Separación entre canales y proceso */

.contact-support .contact-channels-grid {
  margin-bottom: clamp(45px, 6vw, 75px);
}

/* Panel inferior */

.contact-support .contact-next-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(500px, 1.4fr);
  gap: clamp(35px, 6vw, 80px);
  align-items: center;
  padding: clamp(36px, 5vw, 64px);
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      rgba(7, 31, 63, 0.98),
      rgba(20, 55, 91, 0.96)
    );
  border: 1px solid rgba(205, 160, 69, 0.35);
  border-radius: 24px;
  box-shadow: 0 24px 55px rgba(7, 31, 63, 0.18);
}

.contact-next-header .contact-eyebrow {
  color: #e4b653;
}

.contact-next-header h2 {
  margin: 10px 0 16px;
  color: #ffffff;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
}

.contact-next-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

/* Pasos */

.contact-next-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-next-steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.contact-next-steps li:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(228, 182, 83, 0.45);
}

.contact-step-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #071f3f;
  background: linear-gradient(135deg, #f0ca73, #c99735);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-next-steps h3 {
  margin: 0 0 4px;
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.contact-next-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* Responsive */

@media (max-width: 900px) {
  .contact-support .contact-next-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-support {
    padding: 60px 0;
  }

  .contact-support .contact-next-panel {
    padding: 30px 22px;
    border-radius: 18px;
  }

  .contact-next-steps li {
    grid-template-columns: 44px 1fr;
    padding: 16px;
  }

  .contact-step-number {
    width: 42px;
    height: 42px;
  }
}