/* ===============================
   CONTACT SECTION
==================================*/
.contact-section {
  position: relative;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
}

.contact-flex {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 3rem;
}

/* ===============================
   COLUMNA IZQUIERDA
==================================*/
.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 3vw, 44px);
  height: 100%;
  width: 100%;
  max-width: 100%;
  z-index: 1;
}

.contact-info {
  position: relative;
  left: 0;
}

.contact-info h1 {
  width: 100%;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: var(--font-size-title);
  line-height: 1.1;
  color: var(--color-neutral-1000);
}

/* ===============================
   FORMULARIO
==================================*/
.contact-form {
  width: 100%;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 1.6vw, 24px);
}

.inputsHorizontal {
  display: flex;
  gap: 3rem;
}

.inputBox {
  width: 100%;
  display: flex;
  flex-direction: column;
  max-width: 550px;
}

/* Inputs de texto */
.contact-form input:not([type="checkbox"]):not([type="submit"]) {
  width: 100%;
  height: 54px;
  padding: 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(35, 18, 76, 0.75);
  border-radius: 0;
  font-family: var(--font-paragraph);
  font-size: clamp(0.98rem, 0.4vw + 0.9rem, 1.08rem);
  color: var(--color-neutral-900);
  transition: border-color 0.25s ease;
}

.contact-form input:not([type="checkbox"]):not([type="submit"]):focus {
  outline: none;
  border-bottom-color: var(--color-primary-400);
}

/* Placeholder */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-neutral-900);
  opacity: 1;
}

.contact-form input::-webkit-input-placeholder,
.contact-form textarea::-webkit-input-placeholder {
  color: var(--color-neutral-900);
  opacity: 1;
}

.contact-form input::-moz-placeholder,
.contact-form textarea::-moz-placeholder {
  color: var(--color-neutral-900);
  opacity: 1;
}

/* Label textarea */
.textarea-label {
  margin-bottom: 12px;
  font-family: var(--font-paragraph);
  font-size: clamp(0.98rem, 0.4vw + 0.9rem, 1.08rem);
  line-height: 1.2;
  color: var(--color-neutral-900);
}

/* Textarea */
.contact-form textarea {
  width: 100%;
  min-height: 190px;
  padding: 18px;
  background: #e6e6e6;
  border: none;
  border-radius: 14px;
  resize: vertical;
  font-family: var(--font-paragraph);
  font-size: clamp(0.98rem, 0.4vw + 0.9rem, 1.05rem);
  line-height: 1.5;
  color: var(--color-neutral-900);
  transition: background-color 0.25s ease;
}

.contact-form textarea:focus {
  outline: none;
  background: #dedede;
}

/* ===============================
   CHECKBOX
==================================*/
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}

.checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  appearance: none;
  border: 1.5px solid rgba(35, 18, 76, 0.65);
  border-radius: 4px;
  background: transparent;
  position: relative;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.checkbox input[type="checkbox"]:checked {
  background: var(--color-primary-300);
  border-color: var(--color-primary-300);
}

.checkbox input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-neutral-100);
}

.checkbox label {
  font-family: var(--font-paragraph);
  font-size: clamp(0.85rem, 0.35vw + 0.84rem, 0.9rem);
  line-height: 1.4;
  color: var(--color-neutral-900);
}

.checkbox a {
  color: var(--color-neutral-900);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox a:hover {
  color: var(--color-primary-400);
}

/* ===============================
   BOTÓN
==================================*/
#SubmitBtn {
  width: fit-content;
  min-width: 190px;
  padding: 14px 22px;
  border: none;
  border-radius: 14px;
  background: var(--color-primary-300);
  color: #000;
  font-family: var(--font-paragraph);
  font-size: clamp(0.8rem, 0.3vw + 0.9rem, 0.7rem);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

#SubmitBtn:hover {
  background: var(--color-primary-400);
  color: var(--color-neutral-100);
  transform: translateY(-2px);
}

/* ===============================
   VISUAL DERECHA
==================================*/
.contact-visual {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.visual-collage {
  position: relative;
  width: 90%;
  z-index: 2;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.visual-collage img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  -webkit-user-drag: none;
}

/* ===============================
   CONTACT PERSON (CORINNE)
==================================*/
.contact-person {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

/* Imagen */
.contact-person-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}

.contact-person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

/* Info */
.contact-person-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Nombre */
.contact-person-name {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 0.4vw + 1.5rem, 2rem);
  font-weight: 500;
  color: var(--color-neutral-1000);
  line-height: 1.2;
}

/* Email */
.contact-person-email {
  font-family: var(--font-paragraph);
  font-size: clamp(0.6rem, 0.2vw + 0.8rem, 1.5rem);
  color: var(
    --color-primary-400
  ); /* puedes cambiarlo por var(--color-primary-300) si quieres consistencia */
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-person-email:hover {
  opacity: 0.7;
}

/* ===============================
   ALERTAS
==================================*/
.alert-success,
.alert-error {
  position: fixed;
  top: 90px;
  right: 0px;
  z-index: 50;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: var(--font-paragraph);
  font-size: 0.95rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.alert-success {
  background: #d9f5df;
  color: #174b22;
}

.alert-error {
  background: #ffe1e1;
  color: #7a1f1f;
}

@media (max-width: 1023px) {
  .contact-flex {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2.5rem;
  }

  .visual-collage {
    display: none;
  }

  .contact-left {
    align-items: center;
  }
  .contact-form {
    width: 50%;
    min-width: 380px;
    padding-bottom: 35px;
  }

  .contact-visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding-top: 90px;
  }

  .contact-flex {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1.5rem;
  }

  /* Imagen */
  .contact-person-avatar {
    width: 120px;
    height: 120px;
  }

  .contact-person-name {
    font-size: clamp(1.1rem, 0.4vw + 1rem, 1.5rem);
  }

  .contact-person-email {
    font-family: var(--font-paragraph);
    font-size: clamp(0.6rem, 0.2vw + 0.55rem, 1.2rem);
    color: var(
      --color-primary-400
    ); /* puedes cambiarlo por var(--color-primary-300) si quieres consistencia */
    text-decoration: none;
    transition: opacity 0.2s ease;
  }
}

@media (max-width: 480px) {
  .contact-form {
    width: 90%;
    min-width: auto;
    padding-bottom: 35px;
  }

  .contact-visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .contact-person-avatar {
    width: 100px;
    height: 100px;
  }
}
