/* Estructura general */
* {
  font-family: 'Poppins', sans-serif;
}

html, body {
  margin: 0;
  padding:0;
  min-height: 100vh; 
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 400;
  background: white; /*linear-gradient(to bottom, #ffffff, #a7d1ff);*/ /* lo comentado es para un background con degradado */
}

/* Imagen */
.responsive_image {
  width: 100%;
  height: auto;
	max-width: 300px;
}
  
/* Header */
header {
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header h1 {
  margin-top: 80px;
  margin-bottom: 0; /* evita exceso de espacio con el formulario */
  font-family: Poppins;
  font-size: 35.7px;
  line-height: 1.2;
  font-weight: 500;
  color: #00333f;
  text-transform: none;
}

/* Centrado vertical */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Div adicional para rellenar contenido de la página */
.contenido {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 90%; /* clave */
  box-sizing: border-box;
}

/* Formulario */
.search_form {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
	margin-top: 40px;
}
  
.search_form label {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bolder;
  text-align: center;
  color: #00333f;   
}
  
.search_form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  border: 2px solid;
  border-radius: 0;
}
  
button {
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 12px 30px;
  font-size: 14px;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(45deg, #00333f 40%, #00143f);
  border: 2px solid transparent;
  border-radius: 0;
  transition: .2s ease-in-out;
  transition-property: color, background-color, background-position, background-size, border-color, box-shadow;
  text-transform: none;
  letter-spacing: .5px;
  cursor: pointer;
  display: inline-block;
}

button:hover {
  border-color: transparent;
  box-shadow: 0 0 30px 0 rgba(0, 51, 63, 0.5);
}
 
/* Footer */
footer {
  font-size: 13px;
  color:aliceblue;
  text-align: center;
  padding: 10px;
  margin-top: 0px;
  background-color: #00333f;
}

/* Footer texto */
.footer_text {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 18px;
  text-align: center !important;
}

.footer_text svg {
  vertical-align: middle;
  margin: 0 5px;
}

/* Botones social media */
.social_icons {
  display: flex;
  gap: 15px;
  padding: 20px;
  justify-content: center;
  margin-top: 10px;
}

/* Icono con background circular */
.icon {
  width: 36px;
  height: 36px;
  background-color: #00333f; /* #07202b */
  border-radius: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

.icon:hover {
  background-color: #F86F67;
}

/* Icono sin background circular */
.icon i {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

/* Estilos para el resultado */
#resultado {
  font-size: 18px;
	font-family: Poppins;
  padding: 20px;
  border-radius: 0px;
  margin-top: 15px;
  max-width: 400px;
  text-align: center;
  white-space: pre-wrap;
}

.resultado-ok {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.resultado-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Adaptación a pantallas móviles */
@media (max-width: 767px) { /* ew */

  header h1 {
    font-size: 1.4em;
    margin-top: 40px;
    padding: 0 10px;
  }

  .search_form {
    padding: 10px;
    margin-top: 20px;
  }

  .search_form input,
  .search_form button {
    font-size: 14px;
    padding: 8px;
  }

  #resultado {
    font-size: 16px;
    padding: 15px;
    margin-top: 10px;
    width: 90%;
  }

  footer {
    font-size: 12px;
    padding: 8px;
  }

  .responsive_image {
    max-width: 80%;
  }
}

/* Para forzar a que todos los elementos usen Poppins: */
input, button, textarea, select {
  font-family: 'Poppins', sans-serif;
}