/* =========================================
   HERO
========================================= */

.contact-hero {
  position: relative;

  padding:
    185px 0
    120px;

  overflow: hidden;

  color: white;

  background:
    linear-gradient(
      125deg,
      #061d33 0%,
      var(--primary-dark) 50%,
      var(--primary) 100%
    );
}


.contact-hero::before {
  content: "";

  position: absolute;

  width: 560px;
  height: 560px;

  top: -260px;
  right: -160px;

  border:
    1px solid
    rgba(255,255,255,0.12);

  border-radius: 50%;
}


.contact-hero::after {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  right: 190px;
  bottom: -200px;

  border-radius: 50%;

  background:
    rgba(255,255,255,0.04);
}


.contact-hero .container {
  position: relative;

  z-index: 2;
}


.contact-hero span {
  display: block;

  margin-bottom: 15px;

  color:
    rgba(255,255,255,0.63);

  font-size: 0.78rem;

  font-weight: 800;

  letter-spacing: 0.16em;

  text-transform: uppercase;
}


.contact-hero h1 {
  max-width: 900px;

  margin-bottom: 25px;

  color: white;

  font-size:
    clamp(
      3.2rem,
      7vw,
      6rem
    );

  line-height: 1;
}


.contact-hero p {
  max-width: 680px;

  margin: 0;

  color:
    rgba(255,255,255,0.7);

  font-size: 1.05rem;

  line-height: 1.8;
}



/* =========================================
   TITULOS
========================================= */

.contact-section-header {
  max-width: 760px;

  margin-bottom: 50px;
}


.contact-section-header > span,
.contact-eyebrow {
  display: block;

  margin-bottom: 10px;

  color:
    var(--primary);

  font-size: 0.77rem;

  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}


.contact-section-header h2,
.contact-form-area h2 {
  margin-bottom: 15px;

  color:
    var(--primary-dark);

  font-size:
    clamp(
      2.5rem,
      5vw,
      4.1rem
    );

  line-height: 1.08;
}


.contact-section-header p {
  margin: 0;

  color:
    var(--text-light);

  line-height: 1.7;
}



/* =========================================
   OPCIONES DE CONTACTO
========================================= */

.contact-options {
  padding:
    115px 0
    120px;

  background:
    var(--background);
}


.contact-options-grid {
  display: grid;

  grid-template-columns:
    repeat(4,1fr);

  gap: 17px;
}


.contact-option {
  position: relative;

  min-height: 270px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  padding: 30px;

  overflow: hidden;

  border:
    1px solid
    var(--border);

  border-radius: 25px;

  background: white;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


.contact-option:hover {
  transform:
    translateY(-6px);

  box-shadow:
    var(--shadow);
}


.contact-option::after {
  content: "";

  position: absolute;

  width: 130px;
  height: 130px;

  right: -70px;
  top: -70px;

  border-radius: 50%;

  background:
    rgba(16,60,104,0.04);
}


.contact-option-index {
  color:
    var(--primary);

  font-size: 0.75rem;

  font-weight: 800;

  letter-spacing: 0.08em;
}


.contact-option h3 {
  margin:
    35px 0
    8px;

  color:
    var(--primary-dark);

  font-size: 1.25rem;
}


.contact-option p {
  margin:
    0 0
    17px;

  color:
    var(--text-light);

  font-size: 0.86rem;

  line-height: 1.65;
}


.contact-option a {
  position: relative;

  z-index: 2;

  color:
    var(--primary);

  font-size: 0.83rem;

  font-weight: 800;

  overflow-wrap: anywhere;
}



/* =========================================
   FORMULARIO
========================================= */

.contact-main {
  padding:
    125px 0;

  background:
    white;
}


.contact-main-grid {
  display: grid;

  grid-template-columns:
    1.25fr 0.75fr;

  gap: 80px;

  align-items: start;
}


.contact-form-description {
  max-width: 640px;

  margin-bottom: 40px;

  color:
    var(--text-light);

  line-height: 1.8;
}


.contact-form {
  display: grid;

  gap: 20px;
}


.contact-form-row {
  display: grid;

  grid-template-columns:
    repeat(2,1fr);

  gap: 18px;
}


.contact-field {
  display: flex;

  flex-direction: column;

  gap: 8px;
}


.contact-field label {
  color:
    var(--primary-dark);

  font-size: 0.82rem;

  font-weight: 700;
}


.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;

  padding:
    14px 16px;

  border:
    1px solid
    var(--border);

  border-radius: 13px;

  outline: none;

  background:
    white;

  color:
    var(--text);

  font-family: inherit;

  font-size: 0.92rem;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.contact-field input,
.contact-field select {
  min-height: 52px;
}


.contact-field textarea {
  min-height: 170px;

  resize: vertical;
}


.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color:
    var(--primary);

  box-shadow:
    0 0 0 3px
    rgba(16,60,104,0.08);
}


.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color:
    #a2aab3;
}


.contact-form-footer {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 18px;

  margin-top: 5px;
}


.contact-submit {
  min-height: 51px;

  padding:
    0 25px;

  border: none;

  border-radius: 100px;

  background:
    var(--primary);

  color: white;

  font-family: inherit;

  font-size: 0.86rem;

  font-weight: 800;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}


.contact-submit:hover {
  transform:
    translateY(-2px);

  background:
    var(--primary-dark);
}


.contact-form-footer span {
  max-width: 280px;

  color:
    var(--text-light);

  font-size: 0.76rem;

  line-height: 1.5;
}



/* =========================================
   COLUMNA DERECHA
========================================= */

.contact-side {
  display: grid;

  gap: 20px;
}


.contact-side-card {
  padding: 32px;

  border:
    1px solid
    var(--border);

  border-radius: 26px;

  background:
    var(--background);
}


.contact-side-card > span {
  display: block;

  margin-bottom: 8px;

  color:
    var(--primary);

  font-size: 0.72rem;

  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}


.contact-side-card h3 {
  margin-bottom: 22px;

  color:
    var(--primary-dark);

  font-size: 1.55rem;
}



/* =========================================
   HORARIOS OFICINA
========================================= */

.contact-hours {
  display: grid;

  gap: 0;

  margin-bottom: 25px;
}


.contact-hour-row {
  padding:
    17px 0;

  border-bottom:
    1px solid
    var(--border);
}


.contact-hour-row:first-child {
  padding-top: 0;
}


.contact-hour-row span {
  display: block;

  margin-bottom: 6px;

  color:
    var(--text-light);

  font-size: 0.77rem;
}


.contact-hour-row strong {
  display: block;

  color:
    var(--primary-dark);

  font-size: 1.22rem;
}


.contact-hour-days {
  margin-top: 4px;

  color:
    var(--text-light);

  font-size: 0.72rem;
}


.contact-side-link {
  color:
    var(--primary);

  font-size: 0.82rem;

  font-weight: 800;
}



/* =========================================
   ADMISION
========================================= */

.contact-admission-card {
  background:
    linear-gradient(
      145deg,
      var(--primary-dark),
      #061c31
    );

  color: white;
}


.contact-admission-card > span {
  color:
    rgba(255,255,255,0.58);
}


.contact-admission-card h3 {
  color: white;

  line-height: 1.25;
}


.contact-admission-card p {
  margin-bottom: 25px;

  color:
    rgba(255,255,255,0.65);

  font-size: 0.88rem;

  line-height: 1.75;
}


.contact-admission-button {
  min-height: 46px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding:
    0 19px;

  border-radius: 100px;

  background: white;

  color:
    var(--primary-dark);

  font-size: 0.8rem;

  font-weight: 800;

  transition:
    transform 0.2s ease;
}


.contact-admission-button:hover {
  transform:
    translateY(-2px);
}



/* =========================================
   MAPA
========================================= */

.contact-location {
  padding:
    120px 0;

  background:
    var(--background);
}


.contact-map {
  height: 540px;

  overflow: hidden;

  border:
    1px solid
    var(--border);

  border-radius:
    28px 28px
    0 0;

  background:
    #e5e9ed;
}


.contact-map iframe {
  width: 100%;
  height: 100%;

  border: none;
}


.contact-map-footer {
  min-height: 95px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding:
    20px 27px;

  border:
    1px solid
    var(--border);

  border-top: none;

  border-radius:
    0 0
    28px 28px;

  background:
    white;
}


.contact-map-footer strong {
  display: block;

  margin-bottom: 4px;

  color:
    var(--primary-dark);
}


.contact-map-footer span {
  display: block;

  color:
    var(--text-light);

  font-size: 0.82rem;
}


.contact-directions {
  min-height: 43px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding:
    0 17px;

  border-radius: 100px;

  background:
    var(--primary);

  color: white;

  font-size: 0.8rem;

  font-weight: 800;

  white-space: nowrap;

  transition:
    transform 0.2s ease;
}


.contact-directions:hover {
  transform:
    translateY(-2px);
}



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

@media (max-width: 1050px) {

  .contact-options-grid {
    grid-template-columns:
      repeat(2,1fr);
  }


  .contact-main-grid {
    grid-template-columns:
      1fr;

    gap: 60px;
  }


  .contact-side {
    grid-template-columns:
      repeat(2,1fr);
  }

}


@media (max-width: 650px) {

  .contact-hero {
    padding:
      150px 0
      80px;
  }


  .contact-options,
  .contact-main,
  .contact-location {
    padding:
      80px 0;
  }


  .contact-options-grid {
    grid-template-columns:
      1fr;
  }


  .contact-option {
    min-height: 220px;
  }


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


  .contact-side {
    grid-template-columns:
      1fr;
  }


  .contact-map {
    height: 390px;

    border-radius:
      20px 20px
      0 0;
  }


  .contact-map-footer {
    align-items:
      flex-start;

    flex-direction:
      column;

    border-radius:
      0 0
      20px 20px;
  }

}
/* =========================================
   ESTADO FORMULARIO
========================================= */

.contact-submit:disabled {
  opacity: 0.65;

  cursor: wait;

  transform: none;
}


.contact-form-status {
  display: none;

  padding: 18px 20px;

  border-radius: 14px;

  font-size: 0.84rem;
}


.contact-form-status.success {
  display: block;

  border:
    1px solid
    #b8dfc5;

  background:
    #eef9f1;

  color:
    #24613a;
}


.contact-form-status.error {
  display: block;

  border:
    1px solid
    #e7bcbc;

  background:
    #fff1f1;

  color:
    #8b3030;
}


.contact-form-status strong {
  display: block;

  margin-bottom: 4px;
}


.contact-form-status span {
  display: block;

  line-height: 1.5;
}