/* Clase genérica para ocultar contenido con transición (necesaria para la lógica JS) */
.hidden-content {
  display: none; /* Por defecto, oculto */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  width: 100%; /* Asegura que ocupe todo el ancho cuando está oculto */
}

/* Clase para mostrar contenido con transición y animación (necesaria para la lógica JS) */
.show-content {
  opacity: 1;
  visibility: visible;
  display: flex; /* Usa flex para centrar el contenido dentro de la columna */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.6s ease-out;
  width: 100%; /* Asegura que ocupe todo el ancho cuando se muestra */

  @media (max-width: 960px) and (min-width: 1px) {
    opacity: 1;
    visibility: visible;
    display: flex; /* Usa flex para centrar el contenido dentro de la columna */
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out;
    width: 100%; /* Asegura que ocupe todo el ancho cuando se muestra */
  }
}

/* --- ESTILOS ORIGINALES DEL USUARIO --- */

/* Common CSS */
.user-data-form__input {
  color: var(--gray_500) !important;
  padding-left: var(--space-3xl);
  padding-right: var(--space-3xl);
  height: 3rem;
  border-radius: 8px !important;
  border: 1px solid var(--gray_700_04) !important;
}

.user-data-form__field {
  gap: var(--space-sm);
  display: flex;
  background-color: var(--white_a700_01);
  flex-direction: column;
  align-items: flex-start;
}

.user-data-form__disclaimer-span {
  text-decoration: underline;
  display: inline;
}

/* Page CSS */
.cover-2 {
  background-color: var(--white_a700_01);
  display: flex;
  margin-top: 2rem;
  align-items: flex-end;
  margin-bottom: -1rem;
}

@media (max-width: 960px) and (min-width: 1px) {
  .cover-2 {
    flex-direction: column;
  }
}

.contact-section {
  flex: 1;
}

@media (max-width: 960px) and (min-width: 1px) {
  .contact-section {
    align-self: stretch;
    padding-left: 0rem;
    padding-right: 0rem;
  }
}

.contact-section__content {
  gap: 4rem;
  background-color: var(--blue_gray_800_f2);
  display: flex;
  flex-direction: column;
  padding: 11rem 2.5rem 11rem 2.5rem;
  border-bottom: 3px solid var(--blue_gray_800);
  margin-top: -6rem;
  margin-bottom: 0rem;
}

@media (min-width: 1650px) {
  .contact-section__content {
    gap: 4rem;
    background-color: var(--blue_gray_800_f2);
    display: flex;
    flex-direction: column;
    padding: 8.75rem var(--space-12xl);
    border-bottom: 3px solid var(--blue_gray_800);
    margin-top: -5rem;
    padding-bottom: 10rem;
  }
}


@media (max-width: 1350px) and (min-width: 1080px) {
  .contact-section__content {
  gap: 4rem;
  background-color: var(--blue_gray_800_f2);
  display: flex;
  flex-direction: column;
  padding: 10rem 2.5rem 11rem 2.5rem;
  border-bottom: 3px solid var(--blue_gray_800);
  margin-top: -6rem;
  margin-bottom: 0rem;
}
}


@media (max-width: 960px) and (min-width: 1px) {
  .contact-section__content {
    gap: 2.5rem;
    margin-top: -6rem;
    padding: 7rem 1.5rem 0rem 1.5rem;
  }
}

.contact-section__heading {
  color: var(--white_a700_01) !important;
  letter-spacing: -0.06rem;
  line-height: 4rem;
}

.contact-section__description-container {
  margin-bottom: 7.38rem;
  gap: 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 960px) and (min-width: 1px) {
  .contact-section__description-container {
    gap: 2.5rem;
    margin-bottom: 6rem;
  }
}

.contact-section__description {
  font-size: 1.25rem !important;
  width: 95%;
  line-height: 1.63rem;
  font-weight: 300 !important;
}

@media (min-width: 1650px) {
  .contact-section__description {
    width: 90%;
    line-height: 1.63rem;
    font-weight: 300 !important;
    font-size: 1.5rem !important;
  }
}

@media (max-width: 960px) and (min-width: 1px) {
  .contact-section__description {
    width: 100%;
    font-size: 1.3rem !important;
  }
}

.contact-section__description-span-1 {
  color: var(--green_a400);
  font-weight: 600;
  text-decoration: underline;
  display: inline;
}

.contact-section__divider {
  height: 0.06rem;
  background-color: rgba(
    255,
    255,
    255,
    0.3
  ); /* Fallback for var(--white_a700_4c) */
  width: 5%;
}

.contact-section__contact-details {
  gap: var(--space-2xl);
  align-self: stretch;
  display: flex;
  align-items: center;
}

.contact-section__icon--lock {
  height: 1rem;
}

/* Contenedor de columna derecha (50% en desktop, 100% en móvil) */
.col-right {
  width: 41%;
  padding: 1rem;
  display: flex; /* Para centrar el contact-form */
  justify-content: center;
  align-items: flex-start; /* Alinea el form arriba */
}
@media (max-width: 960px) and (min-width: 1px) {
  .col-right {
    width: 100%;
    padding: 3rem 1rem 1rem 1rem;
  }
}

/* Formulario */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  transform: scale(0.95);
  /* Añadido para gestionar el layout interno de form/mensajes */
  display: flex; /* Usa flex para gestionar los hijos (form, success, error) */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 450px; /* Altura mínima para evitar saltos de layout */
  width: 100%; /* Asegura que ocupe el ancho disponible */
  padding: 1rem; /* Padding interno para el contact-form */
  background-color: var(--white_a700_01); /* Fondo blanco */
}

@media (min-width: 1650px) {
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
    transform: scale(1);
  }
}

@media (max-width: 960px) and (min-width: 1px) {
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
    transform: scale(1);
    padding: 0.2rem;
  }
}
.contactanos-form {
  /* Este es ahora #formContent */
  width: 100%; /* Asegura que ocupe todo el ancho de contact-form */
}
.contactanos-form__field,
.contactanos-form__field-4 {
  margin-bottom: 1.5rem;
}
.contactanos-form__label {
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 600;
  color: #545454 !important;
}
.contactanos-form__input,
.contactanos-form__dropdown,
.contactanos-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc; /* Original color */
  border-radius: 0.5rem; /* Original radius */
  font-size: 1rem;
  color: #333; /* Original color */
}

.contactanos-form__input::placeholder,
.contactanos-form__textarea::placeholder {
  color: #bcbcbc;
  opacity: 0.9;
}

.contactanos-form__dropdown {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23838383'><path d='M7 10l5 5 5-5z'/></svg>")
    no-repeat right 0.75rem center;
  background-size: 1.5rem; /* Added for consistency */
}
.contactanos-form__button {
  width: 100%;
  padding: 0.2rem;
  font-size: 1.8rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}
.deep_purple_500_01 {
  background-color: #6a1b9a;
  color: #fff;
}

.user-data-form {
  gap: 0rem;
  display: flex;
  background-color: var(--white_a700_01);
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1rem 1rem 1rem;
  width: 57rem;
}

@media (max-width: 960px) and (min-width: 1px) {
  .user-data-form {
    padding: var(--space-7xl);
  }
}

.header__menu-itemc {
  letter-spacing: 0rem;
  margin-left: 2.5rem;
}

.columnnombre {
  margin-top: 2rem;
  margin-bottom: 3rem;
  gap: 0rem;
  display: flex;
  align-self: stretch;
  flex-direction: column;
}

.user-data-form__dropdown {
  color: var(--gray_900) !important;
  font-family: Segoe UI;
  font-size: 1rem;
  font-weight: 600;
  gap: var(--space-5xl);
  align-self: stretch;
  background-image: url(../public/images/img_arrowdropdown.svg);
  background-repeat: no-repeat;
  background-size: 1.5rem;
  background-position: calc(100% - 10px);
  padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-3xl);
  border-radius: 8px !important;
  border: 1px solid var(--gray_700_04) !important;
}

.user-data-form__field-4 {
  gap: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.user-data-form__textarea {
  color: var(--gray_500);
  padding-top: 2.13rem;
  padding-bottom: 2.13rem;
  padding-left: var(--space-2xl);
  font-family: Segoe UI;
  font-size: 1rem;
  gap: var(--space-5xl);
  display: flex;
  align-self: stretch;
  height: 5.75rem;
  border-radius: 8px !important;
  border: 1px solid var(--gray_700_04) !important;
}

@media only screen and (max-width: 550px) {
  .user-data-form__textarea {
    padding-top: var(--space-7xl);
    padding-bottom: var(--space-7xl);
  }
}

.contactanos-form__disclaimer {
  margin-top: 0.5rem;
}

.contactanos-form__disclaimer-span {
  border-bottom: 1px solid var(--blue_gray_900_05);
}

.user-data-form__disclaimer {
  color: var(--blue_gray_900_05) !important;
  letter-spacing: 0rem;
  display: flex;
}

.user-data-form__submit-button {
  color: var(--white_a700_01) !important;
  padding-left: 2.13rem;
  padding-right: 2.13rem;
  font-family: Segoe UI;
  font-size: 1.25rem;
  font-weight: 600;
  background-color: var(--deep_purple_500_01) !important;
  box-shadow: 0 5px 13px 0 #00000019 !important;
  align-self: stretch;
  height: 3rem;
  border-radius: 8px !important;
}

@media only screen and (max-width: 550px) {
  .user-data-form__submit-button {
    padding-left: var(--space-7xl);
    padding-right: var(--space-7xl);
  }
}

/* Success screen styles */
/* Note: The HTML uses id="successScreen", so the #successScreen selector will take precedence */
#successScreen {
  /* Applying original .success-screen styles directly */
  display: none; /* Controlled by JS hidden/show-content */
  text-align: center;
  padding: 3rem 0rem;
  margin-bottom: 8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 33rem; /* Added for better sizing within the column */
  width: 100%; /* Added for better sizing within the column */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* This is the animation class for the success screen */
.success-screen.show {
  /* This class is not directly used in JS, show-content handles display */
  display: block;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  width: 220px;
  height: 220px;
  margin: 0 auto 2rem;
  position: relative;
}

.success-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  opacity: 0.1;
}

.success-circle:nth-child(1) {
  background: #594ccf;
  animation: pulse 2s infinite;
}

.success-circle:nth-child(2) {
  background: #594ccf;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  opacity: 0.2;
  animation: pulse 2s infinite 0.3s;
}

.success-circle:nth-child(3) {
  background: #594ccf;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite 0.6s;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.success-checkmark {
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: black;
  margin-bottom: 2.5rem;
  margin-top: 1.5rem;
  margin-left: 0rem;
  width: 24rem;

}

.success-message {
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.8);
  line-height: 2.2rem;
  max-width: 480px;
  margin: 0 auto;
  font-weight: 340;
  font-family: Segoe UI;
}

.success-name {
  color: #594ccf;
  font-weight: 600;
}

/* --- ESTILOS DE LA PANTALLA DE ERROR (ajustados para ser consistentes con el éxito) --- */
/* Note: The HTML uses id="errorMessage", so the #errorMessage selector will take precedence */
#errorMessage {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.05); /* Consistent with success screen */
  border-radius: 20px; /* Consistent with success screen */
  backdrop-filter: blur(10px); /* Consistent with success screen */
  border: 0px solid rgba(255, 255, 255, 0.1); /* Consistent with success screen */
  max-width: 28rem;
  width: 100%;
  box-sizing: border-box;
}
#errorMessage h2 {
  font-size: 1.875rem; /* Keeping original size */
  font-weight: 800;
  margin-bottom: 1rem;
  color: #dc2626; /* Tailwind red */
}
#errorMessage p {
  color: #4a5568;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}
#errorMessage button {
  font-weight: bold;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
  background-color: #dc2626; /* Rojo de Tailwind */
  color: white;
}
#errorMessage button:hover {
  background-color: #b91c1c; /* Rojo más oscuro de Tailwind */
  transform: scale(1.05);
}
#errorMessage .error-icon svg {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  color: #ef4444; /* Rojo de Tailwind */
}

/* Footer related styles (from original CSS, not directly used by form logic) */
.footer__links {
  margin-top: 2.13rem;
  width: 94%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-7xl);
}

@media (max-width: 960px) and (min-width: 1px) {
  .footer__links {
    margin-top: 2.5rem;
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
  }
}

.footer__links-list {
  margin-top: 0.63rem !important;
  width: 38%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-7xl);
}

@media (max-width: 960px) and (min-width: 1px) {
  .footer__links-list {
    width: 35%;
    padding-bottom: 2rem;
    padding-top: 1rem;
  }
}

.footer__partnership-row {
  margin-top: 2.88rem;
  gap: 2rem;
  display: flex;
  align-items: center;
}

@media (max-width: 960px) and (min-width: 1px) {
  .footer__partnership-row {
    margin-top: 3.5rem;
    padding-bottom: 3rem;
    gap: 1.5rem;
  }
}

.footer__partnership-logo {
  height: 3.63rem;
  width: 7.63rem;
  object-fit: contain;
  transform: scale(1.3);
}
@media (max-width: 1350px) and (min-width: 1080px) {
 .ui.heading.size-heading15xlc {
    font-size: 2.7rem;
    font-weight: 700;
    margin-left: -3rem;
    padding: 3rem;
    
  }
  .contact-section__content {
    gap: 2rem;
}
}
@media (max-width: 349px) and (min-width: 20px){
  .container-xs {
    padding: 0 var(--space-md);
    max-width: 96%;
  }
    .dots-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
    width: 100%;
    height: 100%;
}
  .header__menu {
    margin-right: 0 !important;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    width: 100%;
  }
  .dot {
    width: 5px;
    height: 5px;
    background-color: var(--gray_900, #1b1b20);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
  .header__row.expanded .dots-menu {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
  }
  .dots-menu {
  display: inline-flex !important;
  }
  .header__row.expanded {
        flex-direction: column;
        align-items: flex-start;
    }
    .cover-2 {
    flex-direction: column;
  }
  .contact-section {
    align-self: stretch;
    padding-left: 0rem;
    padding-right: 0rem;
  }
   .contact-section__content {
    gap: 2.5rem;
    margin-top: -6rem;
    padding: 7rem 1.5rem 0rem 1.5rem;
  }
  .contact-section__heading {
  color: var(--white_a700_01) !important;
  letter-spacing: -0.06rem;
  line-height: 4rem;
}
.ui.heading.size-heading15xlc{
  font-size: 2.1rem;
  line-height: 2.5rem;
}

.contact-section__description-container {
  margin-bottom: 7.38rem;
  gap: 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.col-right {
    width: 100%;
    padding: 3rem 1rem 1rem 1rem;
  }
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
    transform: scale(1);
    padding: 0.2rem;
  }
   .user-data-form {
    padding: var(--space-7xl);
  }
  .footer__links {
    margin-top: 2.5rem;
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
  }
  .footer__links-list {
    width: 35%;
    padding-bottom: 2rem;
    padding-top: 1rem;
  }
  .footer__partnership-row {
    margin-top: 3.5rem;
    padding-bottom: 3rem;
    gap: 1.5rem;
  }
  .footer__contact-column {
    width: 100%;
    gap: 1.5rem;
  }
   .footer__copyright-row {
    flex-direction: row;
    align-items: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    gap: 3.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    }
   
}
