  /* =========================
   BRANDING MADA.CL
========================= */

:root{
    --verde-mada: #2fbdbe;
    --azul-hover: #488ffb;
    --gris-fondo: #e0f3f3;
    --gris-borde: #dcdcdc;
}

/* Reset básico */
/* *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
} */

/* Fondo general */
/* body{
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--gris-fondo);
    color: var(--color4);
    line-height: 1.5;
} */

/* Contenedor */
.formulario{
  background: var(--gris-fondo);
  font-family: var(--font-textos);
  color: var(--color4);
  width: 100%;
  margin: 40px auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  font-size: 1em;
  
}

/* Título */
.formulario h2 {
  text-align: center;
  color: var(--color4);
  margin-bottom: 20px;
  font-weight: 600;
}

#contacto-formulario form,
#contacto-formulario .flex__formulario {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
}

#contacto-formulario .flex__formulario {
  /* background: var(--color3); */
  justify-content: center;
  align-items: center;
}



/* Inputs */
input,
select,
textarea{
  font-family: var(--font-textos);
  color: var(--color4);
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--gris-borde);
  border-radius: 6px;
  font-size: 1em;
  transition: border-color .3s, box-shadow .3s;
}

/* Focus */
input:focus,
select:focus,
textarea:focus{
  outline: none;
  border-color: var(--verde-mada);
  box-shadow: 0 0 0 2px rgba(11,74,117,.7);
}

/* Select */
select{
  background-color: var(--color3);
  color: var(--color4);
  cursor: pointer;
  font-family: var(--font-textos);
  font-size: 1em;
}

/* Textarea */
textarea{
  resize: vertical;
  font-family: var(--font-textos);
  color: var(--color4);
  font-size: 1em;
}

/* Botón */
button{
  display: block;
  font-family: var(--font-textos);
  width: fit-content;
  padding: .9rem 1rem;
  background: var(--verde-mada);
  color: var(--color3);
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: background .3s, transform .2s;
  margin: auto;
  margin-top: 1rem;
}

/* Hover botón */
button:hover{
  background: var(--azul-hover);
  transform: translateY(-1px);
}

/* Mensaje éxito */
.mensaje-exito {
  text-align: center;
  color: var(--color4);
  font-size: 1.2em;
  line-height: 150%;
}

.mensaje-exito h2{
  margin-bottom: 10px;
}

.mensaje-exito strong{
  color: var(--color4);
}

/* Error */
.error{
  background: #ffe6e6;
  color: var(--color2);
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
}

/* =========================
   CAPTCHA
========================= */

label{
  font-size: 1em;
  /* margin-bottom: 6px; */
  font-weight:500;
  margin-top:10px;
  /* display:block; */
  text-align: center;
  margin: 0 auto;
  width: fit-content;
}

input[name="captcha"]{
  font-family: var(--font-textos);
  font-size: 1em;
  color: var(--color4);
  font-weight: 600;
  text-align: center;
  letter-spacing: 2px;
  width: fit-content;
  margin: 0;
}

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

@media (width <= 768px){
  .formulario {
    display: block;
    padding: 24px;
  }
}

@media (width <= 480px){
  .formulario{
    display: block;
    padding: 20px;
    margin: 20px auto;
  }
  input,
  select,
  textarea{
    font-size: 14px;
    padding: 12px;
  }
  button{
    font-size: 15px;
    padding: 13px;
  }
}

/* =========================
   VALIDACIÓN JS ELEGANTE
========================= */

.input-error{
  border-color: var(--color2) !important;
}

.error-js{
  display: block;
  margin-top: -8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--color2);
  animation: fadeIn .3s ease-in;
}

@keyframes fadeIn{
  from{
    opacity: 0;
    transform: translateY(-4px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* DESDE ACA MAPA */
#mapa iframe {
	width: 100%;
	height: 150px;
}

#mapa img {
	width: 100%;
	border: 0;
	border: 4px solid var(--color1);
	box-sizing: border-box;
}

#error, #ok {
	width: 100%;
	height: 250px;
	font-size: 1.3em;
	line-height: 160%;
	text-align: center;
	padding: 3em;
}

/* DESDE TAMAÑO TABLET */

@media (width >= 768px) {
  #mapa iframe {
	  width: 100%;
	  height: 300px;
  }

  #mapa img {
	  height: 100%;
  }
}

