/* ==== CONTACTO ==== */
.contacto-section {
  display: flex;
  width: 100%;
  font-family: 'Open Sans', sans-serif;
  padding-top: 0;
  margin-top: 0;
}

/* Columna izquierda */
.contacto-left {
  width: 40%;
  background-color: #333333;
  color: #98dccb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1; /* cuadrada */
  box-sizing: border-box;
}

.contacto-left-row {
  padding: 4vw;
}

.contacto-phone {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 4.2vw, 88px);
  color: #98dccb;
  text-decoration: none;
  display: block;
}

.contacto-info {
  text-align: right !important;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;

}

.contacto-info-title {
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 12px;
}

.contacto-btn-maps {
  display: inline-flex;
  align-items:center;
  gap: 10px;
  margin-top: 10px;
  color: #98dccb;
  text-decoration: none;
  font-size: 14px;
}

.contacto-btn-maps img{
    width: 45px;
}

/* Columna derecha */
.contacto-right {
  width: 60%;
  background-color: #98dccb;
  color: #333333;
  padding: 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  gap: 4vw;
}

.contacto-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  line-height: 1em;
  display: inline-block;
  padding: 0;
  margin: 0;

}

/* Formulario */
.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 750px;
}

.form-group {
  position: relative;
}

.form-group input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ffffff;
  background: transparent;
  padding: 12px 0;
  font-size: 16px;
  color: #333333;
  outline: none;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
}

/* ==== Estilo personalizado del SELECT ==== */
.form-group select {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ffffff;
  background-color: transparent;
  color: #333333;
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  padding: 12px 0;
  text-transform: uppercase;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  box-shadow: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23333333' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 16px 16px;
}

/* ✅ Elimina colores nativos del sistema */
.form-group select:focus,
.form-group select:active,
.form-group select:visited {
  background-color: transparent !important;
  color: #333333 !important;
  outline: none;
  box-shadow: none;
}

/* ==== Opciones del desplegable ==== */
.form-group select option {
  background-color: #fff; /* Fondo menta */
  color: #333333;
  padding: 10px;
  font-size: 15px;
  text-transform: uppercase;
  border: none;
  outline: none;
  width: 80px;;
}

/* ✅ Hover o selección dentro del menú */
.form-group select option:hover,
.form-group select option:checked,
.form-group select option:focus {
  background-color: #fff !important;
  color: #333 !important;
}

/* Quita el azul de selección forzado en Windows / Chrome */
select::-ms-expand {
  display: none;
}

select:focus::-ms-value {
  background: transparent;
  color: #333333;
}


/* ==== LABELS ==== */

/* Inputs normales → animación flotante */
.form-group:not(.custom-select) label {
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 16px;
  color: #333333;
  pointer-events: none;
  transition: 0.3s ease;
  text-transform: uppercase;
}

.form-group input:focus + label,
.form-group input.filled + label {
  top: -10px;
  font-size: 12px;
  color: #333333;
}

/* Selects personalizados → label fijo arriba */
.custom-select > label {
  position: relative;
  display: block;
  top: 0;
  font-size: 12px;
  color: #333333;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 400;
}

/* 🔹 Los select mantienen el label fijo arriba */
.form-group select + label {
  top: -14px;
  font-size: 12px;
  color: #333333;
}


/* Casillas y botón */
.form-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.form-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #333333;
  width: 80%;
}

.form-checks label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.3;
}

.form-checks a {
  color: #333333;
  text-decoration: underline;
}

.btn-enviar {
  background-color: transparent;
  border: none;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  padding: 0;
}

.btn-enviar img {
  width: 100%;
}

.btn-enviar:hover {
  transform: scale(1.1);
}

/* 📱 Responsive */
@media (max-width: 900px) {
  .contacto-section {
    flex-direction: column;
  }

  .contacto-left {
    display: none;
  }

  .contacto-right {
    width: 100%;
    padding: 50px 30px;
    gap: 10vw;
  }

  .contacto-phone {
    font-size: clamp(32px, 9vw, 72px);
  }

  .contacto-info {
    text-align: left;
  }

  .form-bottom-row {
    flex-direction: row;
    align-items: flex-start;
  }

  .btn-enviar {
    align-self: center;
  }

}



/* ==== Corrige autofill (quita color de fondo y borde) ==== */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px #98dccb inset !important; /* color del fondo del formulario */
  -webkit-text-fill-color: #333333 !important;
  caret-color: #333333 !important;
  transition: background-color 5000s ease-in-out 0s;
}


/* ==== CUSTOM SELECT ==== */
.custom-select {
  position: relative;
  width: 100%;
}

.select-wrapper {
  position: relative;
}

.select-btn {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ffffff;
  color: #333333;
  text-transform: uppercase;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  text-align: left;
  padding: 12px 0;
  cursor: pointer;
  position: relative;
}

.select-btn::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23333333' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.select-btn.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.select-options {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background-color: #98dccb;
  border: 1px solid #33333333;
  z-index: 10;
  display: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.select-options.show {
  display: block;
}

.select-options li {
  padding: 10px 12px;
  text-transform: uppercase;
  color: #333333;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
}

.select-options li:hover {
  background-color: #333333;
  color: #98dccb;
}
